@puth/gui 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var Ny=Object.defineProperty;var Dy=(e,t,n)=>t in e?Ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>(Dy(e,typeof t!="symbol"?t+"":t,n),n);function Iy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kh={exports:{}},Wl={},Th={exports:{}},Z={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Io=Symbol.for("react.element"),My=Symbol.for("react.portal"),Ly=Symbol.for("react.fragment"),jy=Symbol.for("react.strict_mode"),Fy=Symbol.for("react.profiler"),zy=Symbol.for("react.provider"),By=Symbol.for("react.context"),Uy=Symbol.for("react.forward_ref"),Vy=Symbol.for("react.suspense"),Wy=Symbol.for("react.memo"),Hy=Symbol.for("react.lazy"),od=Symbol.iterator;function Ky(e){return e===null||typeof e!="object"?null:(e=od&&e[od]||e["@@iterator"],typeof e=="function"?e:null)}var $h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rh=Object.assign,Nh={};function _i(e,t,n){this.props=e,this.context=t,this.refs=Nh,this.updater=n||$h}_i.prototype.isReactComponent={};_i.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};_i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dh(){}Dh.prototype=_i.prototype;function Dc(e,t,n){this.props=e,this.context=t,this.refs=Nh,this.updater=n||$h}var Ic=Dc.prototype=new Dh;Ic.constructor=Dc;Rh(Ic,_i.prototype);Ic.isPureReactComponent=!0;var sd=Array.isArray,Ih=Object.prototype.hasOwnProperty,Mc={current:null},Mh={key:!0,ref:!0,__self:!0,__source:!0};function Lh(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Ih.call(t,r)&&!Mh.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Io,type:e,key:o,ref:s,props:i,_owner:Mc.current}}function Gy(e,t){return{$$typeof:Io,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Lc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Io}function Qy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ld=/\/+/g;function ka(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qy(""+e.key):t.toString(36)}function Is(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Io:case My:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ka(s,0):r,sd(i)?(n="",e!=null&&(n=e.replace(ld,"$&/")+"/"),Is(i,t,n,"",function(u){return u})):i!=null&&(Lc(i)&&(i=Gy(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(ld,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",sd(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+ka(o,l);s+=Is(o,t,n,a,i)}else if(a=Ky(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+ka(o,l++),s+=Is(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function rs(e,t,n){if(e==null)return e;var r=[],i=0;return Is(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Yy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Qe={current:null},Ms={transition:null},Xy={ReactCurrentDispatcher:Qe,ReactCurrentBatchConfig:Ms,ReactCurrentOwner:Mc};Z.Children={map:rs,forEach:function(e,t,n){rs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rs(e,function(){t++}),t},toArray:function(e){return rs(e,function(t){return t})||[]},only:function(e){if(!Lc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=_i;Z.Fragment=Ly;Z.Profiler=Fy;Z.PureComponent=Dc;Z.StrictMode=jy;Z.Suspense=Vy;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xy;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Rh({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Mc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Ih.call(t,a)&&!Mh.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Io,type:e.type,key:i,ref:o,props:r,_owner:s}};Z.createContext=function(e){return e={$$typeof:By,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zy,_context:e},e.Consumer=e};Z.createElement=Lh;Z.createFactory=function(e){var t=Lh.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:Uy,render:e}};Z.isValidElement=Lc;Z.lazy=function(e){return{$$typeof:Hy,_payload:{_status:-1,_result:e},_init:Yy}};Z.memo=function(e,t){return{$$typeof:Wy,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=Ms.transition;Ms.transition={};try{e()}finally{Ms.transition=t}};Z.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Z.useCallback=function(e,t){return Qe.current.useCallback(e,t)};Z.useContext=function(e){return Qe.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Qe.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Qe.current.useEffect(e,t)};Z.useId=function(){return Qe.current.useId()};Z.useImperativeHandle=function(e,t,n){return Qe.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Qe.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Qe.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Qe.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Qe.current.useReducer(e,t,n)};Z.useRef=function(e){return Qe.current.useRef(e)};Z.useState=function(e){return Qe.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Qe.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Qe.current.useTransition()};Z.version="18.2.0";Th.exports=Z;var v=Th.exports;const Ne=Nc(v),Zy=Iy({__proto__:null,default:Ne},[v]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Jy=v,qy=Symbol.for("react.element"),ew=Symbol.for("react.fragment"),tw=Object.prototype.hasOwnProperty,nw=Jy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rw={key:!0,ref:!0,__self:!0,__source:!0};function jh(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)tw.call(t,r)&&!rw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qy,type:e,key:o,ref:s,props:i,_owner:nw.current}}Wl.Fragment=ew;Wl.jsx=jh;Wl.jsxs=jh;kh.exports=Wl;var b=kh.exports,mu={},Fh={exports:{}},ht={},zh={exports:{}},Bh={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(T,M){var F=T.length;T.push(M);e:for(;0<F;){var K=F-1>>>1,ee=T[K];if(0<i(ee,M))T[K]=M,T[F]=ee,F=K;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var M=T[0],F=T.pop();if(F!==M){T[0]=F;e:for(var K=0,ee=T.length,Xe=ee>>>1;K<Xe;){var Oe=2*(K+1)-1,$e=T[Oe],ue=Oe+1,j=T[ue];if(0>i($e,F))ue<ee&&0>i(j,$e)?(T[K]=j,T[ue]=F,K=ue):(T[K]=$e,T[Oe]=F,K=Oe);else if(ue<ee&&0>i(j,F))T[K]=j,T[ue]=F,K=ue;else break e}}return M}function i(T,M){var F=T.sortIndex-M.sortIndex;return F!==0?F:T.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,p=!1,y=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(T){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=T)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function x(T){if(m=!1,w(T),!y)if(n(a)!==null)y=!0,z(S);else{var M=n(u);M!==null&&X(x,M.startTime-T)}}function S(T,M){y=!1,m&&(m=!1,g(A),A=-1),p=!0;var F=d;try{for(w(M),f=n(a);f!==null&&(!(f.expirationTime>M)||T&&!N());){var K=f.callback;if(typeof K=="function"){f.callback=null,d=f.priorityLevel;var ee=K(f.expirationTime<=M);M=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===n(a)&&r(a),w(M)}else r(a);f=n(a)}if(f!==null)var Xe=!0;else{var Oe=n(u);Oe!==null&&X(x,Oe.startTime-M),Xe=!1}return Xe}finally{f=null,d=F,p=!1}}var E=!1,C=null,A=-1,k=5,P=-1;function N(){return!(e.unstable_now()-P<k)}function R(){if(C!==null){var T=e.unstable_now();P=T;var M=!0;try{M=C(!0,T)}finally{M?W():(E=!1,C=null)}}else E=!1}var W;if(typeof h=="function")W=function(){h(R)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,B=L.port2;L.port1.onmessage=R,W=function(){B.postMessage(null)}}else W=function(){_(R,0)};function z(T){C=T,E||(E=!0,W())}function X(T,M){A=_(function(){T(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,z(S))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var F=d;d=M;try{return T()}finally{d=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,M){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var F=d;d=T;try{return M()}finally{d=F}},e.unstable_scheduleCallback=function(T,M,F){var K=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?K+F:K):F=K,T){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=F+ee,T={id:c++,callback:M,priorityLevel:T,startTime:F,expirationTime:ee,sortIndex:-1},F>K?(T.sortIndex=F,t(u,T),n(a)===null&&T===n(u)&&(m?(g(A),A=-1):m=!0,X(x,F-K))):(T.sortIndex=ee,t(a,T),y||p||(y=!0,z(S))),T},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(T){var M=d;return function(){var F=d;d=M;try{return T.apply(this,arguments)}finally{d=F}}}})(Bh);zh.exports=Bh;var iw=zh.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Uh=v,dt=iw;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Vh=new Set,lo={};function Sr(e,t){oi(e,t),oi(e+"Capture",t)}function oi(e,t){for(lo[e]=t,e=0;e<t.length;e++)Vh.add(t[e])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=Object.prototype.hasOwnProperty,ow=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ad={},ud={};function sw(e){return yu.call(ud,e)?!0:yu.call(ad,e)?!1:ow.test(e)?ud[e]=!0:(ad[e]=!0,!1)}function lw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aw(e,t,n,r){if(t===null||typeof t>"u"||lw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ze[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var jc=/[\-:]([a-z])/g;function Fc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jc,Fc);ze[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jc,Fc);ze[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jc,Fc);ze[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function zc(e,t,n,r){var i=ze.hasOwnProperty(t)?ze[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(aw(t,n,i,r)&&(n=null),r||i===null?sw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var _n=Uh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,is=Symbol.for("react.element"),Lr=Symbol.for("react.portal"),jr=Symbol.for("react.fragment"),Bc=Symbol.for("react.strict_mode"),wu=Symbol.for("react.profiler"),Wh=Symbol.for("react.provider"),Hh=Symbol.for("react.context"),Uc=Symbol.for("react.forward_ref"),_u=Symbol.for("react.suspense"),xu=Symbol.for("react.suspense_list"),Vc=Symbol.for("react.memo"),Pn=Symbol.for("react.lazy"),Kh=Symbol.for("react.offscreen"),cd=Symbol.iterator;function Ri(e){return e===null||typeof e!="object"?null:(e=cd&&e[cd]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Ta;function Wi(e){if(Ta===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ta=t&&t[1]||""}return`
|
|
34
|
-
`+Ta+e}var $a=!1;function Ra(e,t){if(!e||$a)return"";$a=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
-
`),o=r.stack.split(`
|
|
36
|
-
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
|
|
37
|
-
`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{$a=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wi(e):""}function uw(e){switch(e.tag){case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return e=Ra(e.type,!1),e;case 11:return e=Ra(e.type.render,!1),e;case 1:return e=Ra(e.type,!0),e;default:return""}}function bu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jr:return"Fragment";case Lr:return"Portal";case wu:return"Profiler";case Bc:return"StrictMode";case _u:return"Suspense";case xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hh:return(e.displayName||"Context")+".Consumer";case Wh:return(e._context.displayName||"Context")+".Provider";case Uc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vc:return t=e.displayName||null,t!==null?t:bu(e.type)||"Memo";case Pn:t=e._payload,e=e._init;try{return bu(e(t))}catch{}}return null}function cw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bu(t);case 8:return t===Bc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fw(e){var t=Gh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function os(e){e._valueTracker||(e._valueTracker=fw(e))}function Qh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Su(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yh(e,t){t=t.checked,t!=null&&zc(e,"checked",t,!1)}function Eu(e,t){Yh(e,t);var n=Vn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cu(e,t,n){(t!=="number"||tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hi=Array.isArray;function Zr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Vn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Au(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Hi(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vn(n)}}function Xh(e,t){var n=Vn(t.value),r=Vn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function hd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ou(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ss,Jh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ss=ss||document.createElement("div"),ss.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ss.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dw=["Webkit","ms","Moz","O"];Object.keys(Qi).forEach(function(e){dw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qi[t]=Qi[e]})});function qh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qi.hasOwnProperty(e)&&Qi[e]?(""+t).trim():t+"px"}function ev(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=qh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pw=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pu(e,t){if(t){if(pw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function ku(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tu=null;function Wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $u=null,Jr=null,qr=null;function vd(e){if(e=jo(e)){if(typeof $u!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Yl(t),$u(e.stateNode,e.type,t))}}function tv(e){Jr?qr?qr.push(e):qr=[e]:Jr=e}function nv(){if(Jr){var e=Jr,t=qr;if(qr=Jr=null,vd(e),t)for(e=0;e<t.length;e++)vd(t[e])}}function rv(e,t){return e(t)}function iv(){}var Na=!1;function ov(e,t,n){if(Na)return e(t,n);Na=!0;try{return rv(e,t,n)}finally{Na=!1,(Jr!==null||qr!==null)&&(iv(),nv())}}function uo(e,t){var n=e.stateNode;if(n===null)return null;var r=Yl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var Ru=!1;if(fn)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Ru=!1}function hw(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Yi=!1,nl=null,rl=!1,Nu=null,vw={onError:function(e){Yi=!0,nl=e}};function gw(e,t,n,r,i,o,s,l,a){Yi=!1,nl=null,hw.apply(vw,arguments)}function mw(e,t,n,r,i,o,s,l,a){if(gw.apply(this,arguments),Yi){if(Yi){var u=nl;Yi=!1,nl=null}else throw Error(O(198));rl||(rl=!0,Nu=u)}}function Er(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function sv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gd(e){if(Er(e)!==e)throw Error(O(188))}function yw(e){var t=e.alternate;if(!t){if(t=Er(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return gd(i),e;if(o===r)return gd(i),t;o=o.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function lv(e){return e=yw(e),e!==null?av(e):null}function av(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=av(e);if(t!==null)return t;e=e.sibling}return null}var uv=dt.unstable_scheduleCallback,md=dt.unstable_cancelCallback,ww=dt.unstable_shouldYield,_w=dt.unstable_requestPaint,be=dt.unstable_now,xw=dt.unstable_getCurrentPriorityLevel,Hc=dt.unstable_ImmediatePriority,cv=dt.unstable_UserBlockingPriority,il=dt.unstable_NormalPriority,bw=dt.unstable_LowPriority,fv=dt.unstable_IdlePriority,Hl=null,Qt=null;function Sw(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Hl,e,void 0,(e.current.flags&128)===128)}catch{}}var Dt=Math.clz32?Math.clz32:Aw,Ew=Math.log,Cw=Math.LN2;function Aw(e){return e>>>=0,e===0?32:31-(Ew(e)/Cw|0)|0}var ls=64,as=4194304;function Ki(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Ki(l):(o&=s,o!==0&&(r=Ki(o)))}else s=n&~i,s!==0?r=Ki(s):o!==0&&(r=Ki(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Dt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ow(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Dt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=Ow(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Du(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dv(){var e=ls;return ls<<=1,!(ls&4194240)&&(ls=64),e}function Da(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function kw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Dt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Kc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ie=0;function pv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hv,Gc,vv,gv,mv,Iu=!1,us=[],In=null,Mn=null,Ln=null,co=new Map,fo=new Map,Tn=[],Tw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function yd(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fo.delete(t.pointerId)}}function Di(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=jo(t),t!==null&&Gc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function $w(e,t,n,r,i){switch(t){case"focusin":return In=Di(In,e,t,n,r,i),!0;case"dragenter":return Mn=Di(Mn,e,t,n,r,i),!0;case"mouseover":return Ln=Di(Ln,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return co.set(o,Di(co.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,fo.set(o,Di(fo.get(o)||null,e,t,n,r,i)),!0}return!1}function yv(e){var t=sr(e.target);if(t!==null){var n=Er(t);if(n!==null){if(t=n.tag,t===13){if(t=sv(n),t!==null){e.blockedOn=t,mv(e.priority,function(){vv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tu=r,n.target.dispatchEvent(r),Tu=null}else return t=jo(n),t!==null&&Gc(t),e.blockedOn=n,!1;t.shift()}return!0}function wd(e,t,n){Ls(e)&&n.delete(t)}function Rw(){Iu=!1,In!==null&&Ls(In)&&(In=null),Mn!==null&&Ls(Mn)&&(Mn=null),Ln!==null&&Ls(Ln)&&(Ln=null),co.forEach(wd),fo.forEach(wd)}function Ii(e,t){e.blockedOn===t&&(e.blockedOn=null,Iu||(Iu=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,Rw)))}function po(e){function t(i){return Ii(i,e)}if(0<us.length){Ii(us[0],e);for(var n=1;n<us.length;n++){var r=us[n];r.blockedOn===e&&(r.blockedOn=null)}}for(In!==null&&Ii(In,e),Mn!==null&&Ii(Mn,e),Ln!==null&&Ii(Ln,e),co.forEach(t),fo.forEach(t),n=0;n<Tn.length;n++)r=Tn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Tn.length&&(n=Tn[0],n.blockedOn===null);)yv(n),n.blockedOn===null&&Tn.shift()}var ei=_n.ReactCurrentBatchConfig,sl=!0;function Nw(e,t,n,r){var i=ie,o=ei.transition;ei.transition=null;try{ie=1,Qc(e,t,n,r)}finally{ie=i,ei.transition=o}}function Dw(e,t,n,r){var i=ie,o=ei.transition;ei.transition=null;try{ie=4,Qc(e,t,n,r)}finally{ie=i,ei.transition=o}}function Qc(e,t,n,r){if(sl){var i=Mu(e,t,n,r);if(i===null)Wa(e,t,r,ll,n),yd(e,r);else if($w(i,e,t,n,r))r.stopPropagation();else if(yd(e,r),t&4&&-1<Tw.indexOf(e)){for(;i!==null;){var o=jo(i);if(o!==null&&hv(o),o=Mu(e,t,n,r),o===null&&Wa(e,t,r,ll,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Wa(e,t,r,null,n)}}var ll=null;function Mu(e,t,n,r){if(ll=null,e=Wc(r),e=sr(e),e!==null)if(t=Er(e),t===null)e=null;else if(n=t.tag,n===13){if(e=sv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ll=e,null}function wv(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(xw()){case Hc:return 1;case cv:return 4;case il:case bw:return 16;case fv:return 536870912;default:return 16}default:return 16}}var Rn=null,Yc=null,js=null;function _v(){if(js)return js;var e,t=Yc,n=t.length,r,i="value"in Rn?Rn.value:Rn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return js=i.slice(e,1<r?1-r:void 0)}function Fs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function cs(){return!0}function _d(){return!1}function vt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?cs:_d,this.isPropagationStopped=_d,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),t}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xc=vt(xi),Lo=we({},xi,{view:0,detail:0}),Iw=vt(Lo),Ia,Ma,Mi,Kl=we({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Mi&&(Mi&&e.type==="mousemove"?(Ia=e.screenX-Mi.screenX,Ma=e.screenY-Mi.screenY):Ma=Ia=0,Mi=e),Ia)},movementY:function(e){return"movementY"in e?e.movementY:Ma}}),xd=vt(Kl),Mw=we({},Kl,{dataTransfer:0}),Lw=vt(Mw),jw=we({},Lo,{relatedTarget:0}),La=vt(jw),Fw=we({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),zw=vt(Fw),Bw=we({},xi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uw=vt(Bw),Vw=we({},xi,{data:0}),bd=vt(Vw),Ww={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kw[e])?!!t[e]:!1}function Zc(){return Gw}var Qw=we({},Lo,{key:function(e){if(e.key){var t=Ww[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zc,charCode:function(e){return e.type==="keypress"?Fs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yw=vt(Qw),Xw=we({},Kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sd=vt(Xw),Zw=we({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zc}),Jw=vt(Zw),qw=we({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),e1=vt(qw),t1=we({},Kl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),n1=vt(t1),r1=[9,13,27,32],Jc=fn&&"CompositionEvent"in window,Xi=null;fn&&"documentMode"in document&&(Xi=document.documentMode);var i1=fn&&"TextEvent"in window&&!Xi,xv=fn&&(!Jc||Xi&&8<Xi&&11>=Xi),Ed=String.fromCharCode(32),Cd=!1;function bv(e,t){switch(e){case"keyup":return r1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fr=!1;function o1(e,t){switch(e){case"compositionend":return Sv(t);case"keypress":return t.which!==32?null:(Cd=!0,Ed);case"textInput":return e=t.data,e===Ed&&Cd?null:e;default:return null}}function s1(e,t){if(Fr)return e==="compositionend"||!Jc&&bv(e,t)?(e=_v(),js=Yc=Rn=null,Fr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xv&&t.locale!=="ko"?null:t.data;default:return null}}var l1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ad(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!l1[e.type]:t==="textarea"}function Ev(e,t,n,r){tv(r),t=al(t,"onChange"),0<t.length&&(n=new Xc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zi=null,ho=null;function a1(e){Iv(e,0)}function Gl(e){var t=Ur(e);if(Qh(t))return e}function u1(e,t){if(e==="change")return t}var Cv=!1;if(fn){var ja;if(fn){var Fa="oninput"in document;if(!Fa){var Od=document.createElement("div");Od.setAttribute("oninput","return;"),Fa=typeof Od.oninput=="function"}ja=Fa}else ja=!1;Cv=ja&&(!document.documentMode||9<document.documentMode)}function Pd(){Zi&&(Zi.detachEvent("onpropertychange",Av),ho=Zi=null)}function Av(e){if(e.propertyName==="value"&&Gl(ho)){var t=[];Ev(t,ho,e,Wc(e)),ov(a1,t)}}function c1(e,t,n){e==="focusin"?(Pd(),Zi=t,ho=n,Zi.attachEvent("onpropertychange",Av)):e==="focusout"&&Pd()}function f1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gl(ho)}function d1(e,t){if(e==="click")return Gl(t)}function p1(e,t){if(e==="input"||e==="change")return Gl(t)}function h1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:h1;function vo(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!yu.call(t,i)||!jt(e[i],t[i]))return!1}return!0}function kd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Td(e,t){var n=kd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kd(n)}}function Ov(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ov(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pv(){for(var e=window,t=tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tl(e.document)}return t}function qc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function v1(e){var t=Pv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ov(n.ownerDocument.documentElement,n)){if(r!==null&&qc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Td(n,o);var s=Td(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var g1=fn&&"documentMode"in document&&11>=document.documentMode,zr=null,Lu=null,Ji=null,ju=!1;function $d(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ju||zr==null||zr!==tl(r)||(r=zr,"selectionStart"in r&&qc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ji&&vo(Ji,r)||(Ji=r,r=al(Lu,"onSelect"),0<r.length&&(t=new Xc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function fs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Br={animationend:fs("Animation","AnimationEnd"),animationiteration:fs("Animation","AnimationIteration"),animationstart:fs("Animation","AnimationStart"),transitionend:fs("Transition","TransitionEnd")},za={},kv={};fn&&(kv=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);function Ql(e){if(za[e])return za[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kv)return za[e]=t[n];return e}var Tv=Ql("animationend"),$v=Ql("animationiteration"),Rv=Ql("animationstart"),Nv=Ql("transitionend"),Dv=new Map,Rd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qn(e,t){Dv.set(e,t),Sr(t,[e])}for(var Ba=0;Ba<Rd.length;Ba++){var Ua=Rd[Ba],m1=Ua.toLowerCase(),y1=Ua[0].toUpperCase()+Ua.slice(1);Qn(m1,"on"+y1)}Qn(Tv,"onAnimationEnd");Qn($v,"onAnimationIteration");Qn(Rv,"onAnimationStart");Qn("dblclick","onDoubleClick");Qn("focusin","onFocus");Qn("focusout","onBlur");Qn(Nv,"onTransitionEnd");oi("onMouseEnter",["mouseout","mouseover"]);oi("onMouseLeave",["mouseout","mouseover"]);oi("onPointerEnter",["pointerout","pointerover"]);oi("onPointerLeave",["pointerout","pointerover"]);Sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),w1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gi));function Nd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mw(r,t,void 0,e),e.currentTarget=null}function Iv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;Nd(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;Nd(i,l,u),o=a}}}if(rl)throw e=Nu,rl=!1,Nu=null,e}function fe(e,t){var n=t[Vu];n===void 0&&(n=t[Vu]=new Set);var r=e+"__bubble";n.has(r)||(Mv(t,e,2,!1),n.add(r))}function Va(e,t,n){var r=0;t&&(r|=4),Mv(n,e,r,t)}var ds="_reactListening"+Math.random().toString(36).slice(2);function go(e){if(!e[ds]){e[ds]=!0,Vh.forEach(function(n){n!=="selectionchange"&&(w1.has(n)||Va(n,!1,e),Va(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ds]||(t[ds]=!0,Va("selectionchange",!1,t))}}function Mv(e,t,n,r){switch(wv(t)){case 1:var i=Nw;break;case 4:i=Dw;break;default:i=Qc}n=i.bind(null,t,n,e),i=void 0,!Ru||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wa(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=sr(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}ov(function(){var u=o,c=Wc(n),f=[];e:{var d=Dv.get(e);if(d!==void 0){var p=Xc,y=e;switch(e){case"keypress":if(Fs(n)===0)break e;case"keydown":case"keyup":p=Yw;break;case"focusin":y="focus",p=La;break;case"focusout":y="blur",p=La;break;case"beforeblur":case"afterblur":p=La;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Lw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Jw;break;case Tv:case $v:case Rv:p=zw;break;case Nv:p=e1;break;case"scroll":p=Iw;break;case"wheel":p=n1;break;case"copy":case"cut":case"paste":p=Uw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Sd}var m=(t&4)!==0,_=!m&&e==="scroll",g=m?d!==null?d+"Capture":null:d;m=[];for(var h=u,w;h!==null;){w=h;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,g!==null&&(x=uo(h,g),x!=null&&m.push(mo(h,x,w)))),_)break;h=h.return}0<m.length&&(d=new p(d,y,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==Tu&&(y=n.relatedTarget||n.fromElement)&&(sr(y)||y[dn]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?sr(y):null,y!==null&&(_=Er(y),y!==_||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(m=xd,x="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(m=Sd,x="onPointerLeave",g="onPointerEnter",h="pointer"),_=p==null?d:Ur(p),w=y==null?d:Ur(y),d=new m(x,h+"leave",p,n,c),d.target=_,d.relatedTarget=w,x=null,sr(c)===u&&(m=new m(g,h+"enter",y,n,c),m.target=w,m.relatedTarget=_,x=m),_=x,p&&y)t:{for(m=p,g=y,h=0,w=m;w;w=$r(w))h++;for(w=0,x=g;x;x=$r(x))w++;for(;0<h-w;)m=$r(m),h--;for(;0<w-h;)g=$r(g),w--;for(;h--;){if(m===g||g!==null&&m===g.alternate)break t;m=$r(m),g=$r(g)}m=null}else m=null;p!==null&&Dd(f,d,p,m,!1),y!==null&&_!==null&&Dd(f,_,y,m,!0)}}e:{if(d=u?Ur(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var S=u1;else if(Ad(d))if(Cv)S=p1;else{S=f1;var E=c1}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=d1);if(S&&(S=S(e,u))){Ev(f,S,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Cu(d,"number",d.value)}switch(E=u?Ur(u):window,e){case"focusin":(Ad(E)||E.contentEditable==="true")&&(zr=E,Lu=u,Ji=null);break;case"focusout":Ji=Lu=zr=null;break;case"mousedown":ju=!0;break;case"contextmenu":case"mouseup":case"dragend":ju=!1,$d(f,n,c);break;case"selectionchange":if(g1)break;case"keydown":case"keyup":$d(f,n,c)}var C;if(Jc)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Fr?bv(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(xv&&n.locale!=="ko"&&(Fr||A!=="onCompositionStart"?A==="onCompositionEnd"&&Fr&&(C=_v()):(Rn=c,Yc="value"in Rn?Rn.value:Rn.textContent,Fr=!0)),E=al(u,A),0<E.length&&(A=new bd(A,e,null,n,c),f.push({event:A,listeners:E}),C?A.data=C:(C=Sv(n),C!==null&&(A.data=C)))),(C=i1?o1(e,n):s1(e,n))&&(u=al(u,"onBeforeInput"),0<u.length&&(c=new bd("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}Iv(f,t)})}function mo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function al(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=uo(e,n),o!=null&&r.unshift(mo(e,o,i)),o=uo(e,t),o!=null&&r.push(mo(e,o,i))),e=e.return}return r}function $r(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dd(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=uo(n,o),a!=null&&s.unshift(mo(n,a,l))):i||(a=uo(n,o),a!=null&&s.push(mo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var _1=/\r\n?/g,x1=/\u0000|\uFFFD/g;function Id(e){return(typeof e=="string"?e:""+e).replace(_1,`
|
|
38
|
-
`).replace(x1,"")}function ps(e,t,n){if(t=Id(t),Id(e)!==t&&n)throw Error(O(425))}function ul(){}var Fu=null,zu=null;function Bu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uu=typeof setTimeout=="function"?setTimeout:void 0,b1=typeof clearTimeout=="function"?clearTimeout:void 0,Md=typeof Promise=="function"?Promise:void 0,S1=typeof queueMicrotask=="function"?queueMicrotask:typeof Md<"u"?function(e){return Md.resolve(null).then(e).catch(E1)}:Uu;function E1(e){setTimeout(function(){throw e})}function Ha(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),po(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);po(t)}function jn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ld(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bi=Math.random().toString(36).slice(2),Ht="__reactFiber$"+bi,yo="__reactProps$"+bi,dn="__reactContainer$"+bi,Vu="__reactEvents$"+bi,C1="__reactListeners$"+bi,A1="__reactHandles$"+bi;function sr(e){var t=e[Ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[Ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ld(e);e!==null;){if(n=e[Ht])return n;e=Ld(e)}return t}e=n,n=e.parentNode}return null}function jo(e){return e=e[Ht]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ur(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Yl(e){return e[yo]||null}var Wu=[],Vr=-1;function Yn(e){return{current:e}}function pe(e){0>Vr||(e.current=Wu[Vr],Wu[Vr]=null,Vr--)}function ae(e,t){Vr++,Wu[Vr]=e.current,e.current=t}var Wn={},We=Yn(Wn),nt=Yn(!1),hr=Wn;function si(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rt(e){return e=e.childContextTypes,e!=null}function cl(){pe(nt),pe(We)}function jd(e,t,n){if(We.current!==Wn)throw Error(O(168));ae(We,t),ae(nt,n)}function Lv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,cw(e)||"Unknown",i));return we({},n,r)}function fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,hr=We.current,ae(We,e),ae(nt,nt.current),!0}function Fd(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Lv(e,t,hr),r.__reactInternalMemoizedMergedChildContext=e,pe(nt),pe(We),ae(We,e)):pe(nt),ae(nt,n)}var nn=null,Xl=!1,Ka=!1;function jv(e){nn===null?nn=[e]:nn.push(e)}function O1(e){Xl=!0,jv(e)}function Xn(){if(!Ka&&nn!==null){Ka=!0;var e=0,t=ie;try{var n=nn;for(ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nn=null,Xl=!1}catch(i){throw nn!==null&&(nn=nn.slice(e+1)),uv(Hc,Xn),i}finally{ie=t,Ka=!1}}return null}var Wr=[],Hr=0,dl=null,pl=0,gt=[],mt=0,vr=null,on=1,sn="";function rr(e,t){Wr[Hr++]=pl,Wr[Hr++]=dl,dl=e,pl=t}function Fv(e,t,n){gt[mt++]=on,gt[mt++]=sn,gt[mt++]=vr,vr=e;var r=on;e=sn;var i=32-Dt(r)-1;r&=~(1<<i),n+=1;var o=32-Dt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,on=1<<32-Dt(t)+i|n<<i|r,sn=o+e}else on=1<<o|n<<i|r,sn=e}function ef(e){e.return!==null&&(rr(e,1),Fv(e,1,0))}function tf(e){for(;e===dl;)dl=Wr[--Hr],Wr[Hr]=null,pl=Wr[--Hr],Wr[Hr]=null;for(;e===vr;)vr=gt[--mt],gt[mt]=null,sn=gt[--mt],gt[mt]=null,on=gt[--mt],gt[mt]=null}var ct=null,ut=null,he=!1,Nt=null;function zv(e,t){var n=_t(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function zd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,ut=jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=vr!==null?{id:on,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_t(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ct=e,ut=null,!0):!1;default:return!1}}function Hu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ku(e){if(he){var t=ut;if(t){var n=t;if(!zd(e,t)){if(Hu(e))throw Error(O(418));t=jn(n.nextSibling);var r=ct;t&&zd(e,t)?zv(r,n):(e.flags=e.flags&-4097|2,he=!1,ct=e)}}else{if(Hu(e))throw Error(O(418));e.flags=e.flags&-4097|2,he=!1,ct=e}}}function Bd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function hs(e){if(e!==ct)return!1;if(!he)return Bd(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bu(e.type,e.memoizedProps)),t&&(t=ut)){if(Hu(e))throw Bv(),Error(O(418));for(;t;)zv(e,t),t=jn(t.nextSibling)}if(Bd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ct?jn(e.stateNode.nextSibling):null;return!0}function Bv(){for(var e=ut;e;)e=jn(e.nextSibling)}function li(){ut=ct=null,he=!1}function nf(e){Nt===null?Nt=[e]:Nt.push(e)}var P1=_n.ReactCurrentBatchConfig;function $t(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var hl=Yn(null),vl=null,Kr=null,rf=null;function of(){rf=Kr=vl=null}function sf(e){var t=hl.current;pe(hl),e._currentValue=t}function Gu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ti(e,t){vl=e,rf=Kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(rf!==e)if(e={context:e,memoizedValue:t,next:null},Kr===null){if(vl===null)throw Error(O(308));Kr=e,vl.dependencies={lanes:0,firstContext:e}}else Kr=Kr.next=e;return t}var lr=null;function lf(e){lr===null?lr=[e]:lr.push(e)}function Uv(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,lf(t)):(n.next=i.next,i.next=n),t.interleaved=n,pn(e,r)}function pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var kn=!1;function af(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,pn(e,n)}return i=r.interleaved,i===null?(t.next=t,lf(r)):(t.next=i.next,i.next=t),r.interleaved=t,pn(e,n)}function zs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kc(e,n)}}function Ud(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gl(e,t,n,r){var i=e.updateQueue;kn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,m=l;switch(d=t,p=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){f=y.call(p,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,d=typeof y=="function"?y.call(p,f,d):y,d==null)break e;f=we({},f,d);break e;case 2:kn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,a=f):c=c.next=p,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);mr|=s,e.lanes=s,e.memoizedState=f}}function Vd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(O(191,i));i.call(r)}}}var Wv=new Uh.Component().refs;function Qu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zl={isMounted:function(e){return(e=e._reactInternals)?Er(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ke(),i=Bn(e),o=ln(r,i);o.payload=t,n!=null&&(o.callback=n),t=Fn(e,o,i),t!==null&&(It(t,e,i,r),zs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ke(),i=Bn(e),o=ln(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Fn(e,o,i),t!==null&&(It(t,e,i,r),zs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ke(),r=Bn(e),i=ln(n,r);i.tag=2,t!=null&&(i.callback=t),t=Fn(e,i,r),t!==null&&(It(t,e,r,n),zs(t,e,r))}};function Wd(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!vo(n,r)||!vo(i,o):!0}function Hv(e,t,n){var r=!1,i=Wn,o=t.contextType;return typeof o=="object"&&o!==null?o=Et(o):(i=rt(t)?hr:We.current,r=t.contextTypes,o=(r=r!=null)?si(e,i):Wn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Hd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zl.enqueueReplaceState(t,t.state,null)}function Yu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Wv,af(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Et(o):(o=rt(t)?hr:We.current,i.context=si(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Qu(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Zl.enqueueReplaceState(i,i.state,null),gl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Li(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;l===Wv&&(l=i.refs={}),s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function vs(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kd(e){var t=e._init;return t(e._payload)}function Kv(e){function t(g,h){if(e){var w=g.deletions;w===null?(g.deletions=[h],g.flags|=16):w.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(g,h){return g=Un(g,h),g.index=0,g.sibling=null,g}function o(g,h,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<h?(g.flags|=2,h):w):(g.flags|=2,h)):(g.flags|=1048576,h)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,h,w,x){return h===null||h.tag!==6?(h=qa(w,g.mode,x),h.return=g,h):(h=i(h,w),h.return=g,h)}function a(g,h,w,x){var S=w.type;return S===jr?c(g,h,w.props.children,x,w.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pn&&Kd(S)===h.type)?(x=i(h,w.props),x.ref=Li(g,h,w),x.return=g,x):(x=Ks(w.type,w.key,w.props,null,g.mode,x),x.ref=Li(g,h,w),x.return=g,x)}function u(g,h,w,x){return h===null||h.tag!==4||h.stateNode.containerInfo!==w.containerInfo||h.stateNode.implementation!==w.implementation?(h=eu(w,g.mode,x),h.return=g,h):(h=i(h,w.children||[]),h.return=g,h)}function c(g,h,w,x,S){return h===null||h.tag!==7?(h=fr(w,g.mode,x,S),h.return=g,h):(h=i(h,w),h.return=g,h)}function f(g,h,w){if(typeof h=="string"&&h!==""||typeof h=="number")return h=qa(""+h,g.mode,w),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case is:return w=Ks(h.type,h.key,h.props,null,g.mode,w),w.ref=Li(g,null,h),w.return=g,w;case Lr:return h=eu(h,g.mode,w),h.return=g,h;case Pn:var x=h._init;return f(g,x(h._payload),w)}if(Hi(h)||Ri(h))return h=fr(h,g.mode,w,null),h.return=g,h;vs(g,h)}return null}function d(g,h,w,x){var S=h!==null?h.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:l(g,h,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case is:return w.key===S?a(g,h,w,x):null;case Lr:return w.key===S?u(g,h,w,x):null;case Pn:return S=w._init,d(g,h,S(w._payload),x)}if(Hi(w)||Ri(w))return S!==null?null:c(g,h,w,x,null);vs(g,w)}return null}function p(g,h,w,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(w)||null,l(h,g,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case is:return g=g.get(x.key===null?w:x.key)||null,a(h,g,x,S);case Lr:return g=g.get(x.key===null?w:x.key)||null,u(h,g,x,S);case Pn:var E=x._init;return p(g,h,w,E(x._payload),S)}if(Hi(x)||Ri(x))return g=g.get(w)||null,c(h,g,x,S,null);vs(h,x)}return null}function y(g,h,w,x){for(var S=null,E=null,C=h,A=h=0,k=null;C!==null&&A<w.length;A++){C.index>A?(k=C,C=null):k=C.sibling;var P=d(g,C,w[A],x);if(P===null){C===null&&(C=k);break}e&&C&&P.alternate===null&&t(g,C),h=o(P,h,A),E===null?S=P:E.sibling=P,E=P,C=k}if(A===w.length)return n(g,C),he&&rr(g,A),S;if(C===null){for(;A<w.length;A++)C=f(g,w[A],x),C!==null&&(h=o(C,h,A),E===null?S=C:E.sibling=C,E=C);return he&&rr(g,A),S}for(C=r(g,C);A<w.length;A++)k=p(C,g,A,w[A],x),k!==null&&(e&&k.alternate!==null&&C.delete(k.key===null?A:k.key),h=o(k,h,A),E===null?S=k:E.sibling=k,E=k);return e&&C.forEach(function(N){return t(g,N)}),he&&rr(g,A),S}function m(g,h,w,x){var S=Ri(w);if(typeof S!="function")throw Error(O(150));if(w=S.call(w),w==null)throw Error(O(151));for(var E=S=null,C=h,A=h=0,k=null,P=w.next();C!==null&&!P.done;A++,P=w.next()){C.index>A?(k=C,C=null):k=C.sibling;var N=d(g,C,P.value,x);if(N===null){C===null&&(C=k);break}e&&C&&N.alternate===null&&t(g,C),h=o(N,h,A),E===null?S=N:E.sibling=N,E=N,C=k}if(P.done)return n(g,C),he&&rr(g,A),S;if(C===null){for(;!P.done;A++,P=w.next())P=f(g,P.value,x),P!==null&&(h=o(P,h,A),E===null?S=P:E.sibling=P,E=P);return he&&rr(g,A),S}for(C=r(g,C);!P.done;A++,P=w.next())P=p(C,g,A,P.value,x),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?A:P.key),h=o(P,h,A),E===null?S=P:E.sibling=P,E=P);return e&&C.forEach(function(R){return t(g,R)}),he&&rr(g,A),S}function _(g,h,w,x){if(typeof w=="object"&&w!==null&&w.type===jr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case is:e:{for(var S=w.key,E=h;E!==null;){if(E.key===S){if(S=w.type,S===jr){if(E.tag===7){n(g,E.sibling),h=i(E,w.props.children),h.return=g,g=h;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pn&&Kd(S)===E.type){n(g,E.sibling),h=i(E,w.props),h.ref=Li(g,E,w),h.return=g,g=h;break e}n(g,E);break}else t(g,E);E=E.sibling}w.type===jr?(h=fr(w.props.children,g.mode,x,w.key),h.return=g,g=h):(x=Ks(w.type,w.key,w.props,null,g.mode,x),x.ref=Li(g,h,w),x.return=g,g=x)}return s(g);case Lr:e:{for(E=w.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===w.containerInfo&&h.stateNode.implementation===w.implementation){n(g,h.sibling),h=i(h,w.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=eu(w,g.mode,x),h.return=g,g=h}return s(g);case Pn:return E=w._init,_(g,h,E(w._payload),x)}if(Hi(w))return y(g,h,w,x);if(Ri(w))return m(g,h,w,x);vs(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,h!==null&&h.tag===6?(n(g,h.sibling),h=i(h,w),h.return=g,g=h):(n(g,h),h=qa(w,g.mode,x),h.return=g,g=h),s(g)):n(g,h)}return _}var ai=Kv(!0),Gv=Kv(!1),Fo={},Yt=Yn(Fo),wo=Yn(Fo),_o=Yn(Fo);function ar(e){if(e===Fo)throw Error(O(174));return e}function uf(e,t){switch(ae(_o,t),ae(wo,e),ae(Yt,Fo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ou(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ou(t,e)}pe(Yt),ae(Yt,t)}function ui(){pe(Yt),pe(wo),pe(_o)}function Qv(e){ar(_o.current);var t=ar(Yt.current),n=Ou(t,e.type);t!==n&&(ae(wo,e),ae(Yt,n))}function cf(e){wo.current===e&&(pe(Yt),pe(wo))}var me=Yn(0);function ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ga=[];function ff(){for(var e=0;e<Ga.length;e++)Ga[e]._workInProgressVersionPrimary=null;Ga.length=0}var Bs=_n.ReactCurrentDispatcher,Qa=_n.ReactCurrentBatchConfig,gr=0,ye=null,Pe=null,De=null,yl=!1,qi=!1,xo=0,k1=0;function Be(){throw Error(O(321))}function df(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function pf(e,t,n,r,i,o){if(gr=o,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bs.current=e===null||e.memoizedState===null?N1:D1,e=n(r,i),qi){o=0;do{if(qi=!1,xo=0,25<=o)throw Error(O(301));o+=1,De=Pe=null,t.updateQueue=null,Bs.current=I1,e=n(r,i)}while(qi)}if(Bs.current=wl,t=Pe!==null&&Pe.next!==null,gr=0,De=Pe=ye=null,yl=!1,t)throw Error(O(300));return e}function hf(){var e=xo!==0;return xo=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?ye.memoizedState=De=e:De=De.next=e,De}function Ct(){if(Pe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=De===null?ye.memoizedState:De.next;if(t!==null)De=t,Pe=e;else{if(e===null)throw Error(O(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},De===null?ye.memoizedState=De=e:De=De.next=e}return De}function bo(e,t){return typeof t=="function"?t(e):t}function Ya(e){var t=Ct(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Pe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((gr&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,ye.lanes|=c,mr|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,jt(r,t.memoizedState)||(tt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ye.lanes|=o,mr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xa(e){var t=Ct(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);jt(o,t.memoizedState)||(tt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Yv(){}function Xv(e,t){var n=ye,r=Ct(),i=t(),o=!jt(r.memoizedState,i);if(o&&(r.memoizedState=i,tt=!0),r=r.queue,vf(qv.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,So(9,Jv.bind(null,n,r,i,t),void 0,null),Ie===null)throw Error(O(349));gr&30||Zv(n,t,i)}return i}function Zv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jv(e,t,n,r){t.value=n,t.getSnapshot=r,eg(t)&&tg(e)}function qv(e,t,n){return n(function(){eg(t)&&tg(e)})}function eg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function tg(e){var t=pn(e,1);t!==null&&It(t,e,1,-1)}function Gd(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:e},t.queue=e,e=e.dispatch=R1.bind(null,ye,e),[t.memoizedState,e]}function So(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ng(){return Ct().memoizedState}function Us(e,t,n,r){var i=Wt();ye.flags|=e,i.memoizedState=So(1|t,n,void 0,r===void 0?null:r)}function Jl(e,t,n,r){var i=Ct();r=r===void 0?null:r;var o=void 0;if(Pe!==null){var s=Pe.memoizedState;if(o=s.destroy,r!==null&&df(r,s.deps)){i.memoizedState=So(t,n,o,r);return}}ye.flags|=e,i.memoizedState=So(1|t,n,o,r)}function Qd(e,t){return Us(8390656,8,e,t)}function vf(e,t){return Jl(2048,8,e,t)}function rg(e,t){return Jl(4,2,e,t)}function ig(e,t){return Jl(4,4,e,t)}function og(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sg(e,t,n){return n=n!=null?n.concat([e]):null,Jl(4,4,og.bind(null,t,e),n)}function gf(){}function lg(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ag(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ug(e,t,n){return gr&21?(jt(n,t)||(n=dv(),ye.lanes|=n,mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=n)}function T1(e,t){var n=ie;ie=n!==0&&4>n?n:4,e(!0);var r=Qa.transition;Qa.transition={};try{e(!1),t()}finally{ie=n,Qa.transition=r}}function cg(){return Ct().memoizedState}function $1(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fg(e))dg(t,n);else if(n=Uv(e,t,n,r),n!==null){var i=Ke();It(n,e,r,i),pg(n,t,r)}}function R1(e,t,n){var r=Bn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fg(e))dg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,jt(l,s)){var a=t.interleaved;a===null?(i.next=i,lf(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Uv(e,t,i,r),n!==null&&(i=Ke(),It(n,e,r,i),pg(n,t,r))}}function fg(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function dg(e,t){qi=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kc(e,n)}}var wl={readContext:Et,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},N1={readContext:Et,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Qd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Us(4194308,4,og.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){return Us(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$1.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Gd,useDebugValue:gf,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Gd(!1),t=e[0];return e=T1.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=Wt();if(he){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ie===null)throw Error(O(349));gr&30||Zv(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Qd(qv.bind(null,r,o,e),[e]),r.flags|=2048,So(9,Jv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Ie.identifierPrefix;if(he){var n=sn,r=on;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=k1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},D1={readContext:Et,useCallback:lg,useContext:Et,useEffect:vf,useImperativeHandle:sg,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:ag,useReducer:Ya,useRef:ng,useState:function(){return Ya(bo)},useDebugValue:gf,useDeferredValue:function(e){var t=Ct();return ug(t,Pe.memoizedState,e)},useTransition:function(){var e=Ya(bo)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:Yv,useSyncExternalStore:Xv,useId:cg,unstable_isNewReconciler:!1},I1={readContext:Et,useCallback:lg,useContext:Et,useEffect:vf,useImperativeHandle:sg,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:ag,useReducer:Xa,useRef:ng,useState:function(){return Xa(bo)},useDebugValue:gf,useDeferredValue:function(e){var t=Ct();return Pe===null?t.memoizedState=e:ug(t,Pe.memoizedState,e)},useTransition:function(){var e=Xa(bo)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:Yv,useSyncExternalStore:Xv,useId:cg,unstable_isNewReconciler:!1};function ci(e,t){try{var n="",r=t;do n+=uw(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Za(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var M1=typeof WeakMap=="function"?WeakMap:Map;function hg(e,t,n){n=ln(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xl||(xl=!0,sc=r),Xu(e,t)},n}function vg(e,t,n){n=ln(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Xu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Xu(e,t),typeof r!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Yd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new M1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=X1.bind(null,e,t,n),t.then(e,e))}function Xd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ln(-1,1),t.tag=2,Fn(n,t,1))),n.lanes|=1),e)}var L1=_n.ReactCurrentOwner,tt=!1;function He(e,t,n,r){t.child=e===null?Gv(t,null,n,r):ai(t,e.child,n,r)}function Jd(e,t,n,r,i){n=n.render;var o=t.ref;return ti(t,i),r=pf(e,t,n,r,o,i),n=hf(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hn(e,t,i)):(he&&n&&ef(t),t.flags|=1,He(e,t,r,i),t.child)}function qd(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ef(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,gg(e,t,o,r,i)):(e=Ks(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:vo,n(s,r)&&e.ref===t.ref)return hn(e,t,i)}return t.flags|=1,e=Un(o,r),e.ref=t.ref,e.return=t,t.child=e}function gg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(vo(o,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,hn(e,t,i)}return Zu(e,t,n,r,i)}function mg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(Qr,lt),lt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(Qr,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ae(Qr,lt),lt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ae(Qr,lt),lt|=r;return He(e,t,i,n),t.child}function yg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zu(e,t,n,r,i){var o=rt(n)?hr:We.current;return o=si(t,o),ti(t,i),n=pf(e,t,n,r,o,i),r=hf(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hn(e,t,i)):(he&&r&&ef(t),t.flags|=1,He(e,t,n,i),t.child)}function ep(e,t,n,r,i){if(rt(n)){var o=!0;fl(t)}else o=!1;if(ti(t,i),t.stateNode===null)Vs(e,t),Hv(t,n,r),Yu(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Et(u):(u=rt(n)?hr:We.current,u=si(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Hd(t,s,r,u),kn=!1;var d=t.memoizedState;s.state=d,gl(t,r,s,i),a=t.memoizedState,l!==r||d!==a||nt.current||kn?(typeof c=="function"&&(Qu(t,n,c,r),a=t.memoizedState),(l=kn||Wd(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Vv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$t(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Et(a):(a=rt(n)?hr:We.current,a=si(t,a));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&Hd(t,s,r,a),kn=!1,d=t.memoizedState,s.state=d,gl(t,r,s,i);var y=t.memoizedState;l!==f||d!==y||nt.current||kn?(typeof p=="function"&&(Qu(t,n,p,r),y=t.memoizedState),(u=kn||Wd(t,n,u,r,d,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ju(e,t,n,r,o,i)}function Ju(e,t,n,r,i,o){yg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Fd(t,n,!1),hn(e,t,o);r=t.stateNode,L1.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ai(t,e.child,null,o),t.child=ai(t,null,l,o)):He(e,t,l,o),t.memoizedState=r.state,i&&Fd(t,n,!0),t.child}function wg(e){var t=e.stateNode;t.pendingContext?jd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jd(e,t.context,!1),uf(e,t.containerInfo)}function tp(e,t,n,r,i){return li(),nf(i),t.flags|=256,He(e,t,n,r),t.child}var qu={dehydrated:null,treeContext:null,retryLane:0};function ec(e){return{baseLanes:e,cachePool:null,transitions:null}}function _g(e,t,n){var r=t.pendingProps,i=me.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ae(me,i&1),e===null)return Ku(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=ta(s,r,0,null),e=fr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ec(n),t.memoizedState=qu,e):mf(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return j1(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Un(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Un(l,o):(o=fr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?ec(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=qu,r}return o=e.child,e=o.sibling,r=Un(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function mf(e,t){return t=ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gs(e,t,n,r){return r!==null&&nf(r),ai(t,e.child,null,n),e=mf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function j1(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Za(Error(O(422))),gs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ta({mode:"visible",children:r.children},i,0,null),o=fr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ai(t,e.child,null,s),t.child.memoizedState=ec(s),t.memoizedState=qu,o);if(!(t.mode&1))return gs(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(O(419)),r=Za(o,r,void 0),gs(e,t,s,r)}if(l=(s&e.childLanes)!==0,tt||l){if(r=Ie,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,pn(e,i),It(r,e,i,-1))}return Sf(),r=Za(Error(O(421))),gs(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Z1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ut=jn(i.nextSibling),ct=t,he=!0,Nt=null,e!==null&&(gt[mt++]=on,gt[mt++]=sn,gt[mt++]=vr,on=e.id,sn=e.overflow,vr=t),t=mf(t,r.children),t.flags|=4096,t)}function np(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gu(e.return,t,n)}function Ja(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function xg(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(He(e,t,r.children,n),r=me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&np(e,n,t);else if(e.tag===19)np(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ae(me,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ml(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ml(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o);break;case"together":Ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=Un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function F1(e,t,n){switch(t.tag){case 3:wg(t),li();break;case 5:Qv(t);break;case 1:rt(t.type)&&fl(t);break;case 4:uf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae(hl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?_g(e,t,n):(ae(me,me.current&1),e=hn(e,t,n),e!==null?e.sibling:null);ae(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,mg(e,t,n)}return hn(e,t,n)}var bg,tc,Sg,Eg;bg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};tc=function(){};Sg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ar(Yt.current);var o=null;switch(n){case"input":i=Su(e,i),r=Su(e,r),o=[];break;case"select":i=we({},i,{value:void 0}),r=we({},r,{value:void 0}),o=[];break;case"textarea":i=Au(e,i),r=Au(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ul)}Pu(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(lo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(lo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&fe("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Eg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ji(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function z1(e,t,n){var r=t.pendingProps;switch(tf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return rt(t.type)&&cl(),Ue(t),null;case 3:return r=t.stateNode,ui(),pe(nt),pe(We),ff(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(uc(Nt),Nt=null))),tc(e,t),Ue(t),null;case 5:cf(t);var i=ar(_o.current);if(n=t.type,e!==null&&t.stateNode!=null)Sg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Ue(t),null}if(e=ar(Yt.current),hs(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ht]=t,r[yo]=o,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(i=0;i<Gi.length;i++)fe(Gi[i],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":fd(r,o),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},fe("invalid",r);break;case"textarea":pd(r,o),fe("invalid",r)}Pu(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&ps(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&ps(r.textContent,l,e),i=["children",""+l]):lo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&fe("scroll",r)}switch(n){case"input":os(r),dd(r,o,!0);break;case"textarea":os(r),hd(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=ul)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ht]=t,e[yo]=r,bg(e,t,!1,!1),t.stateNode=e;e:{switch(s=ku(n,r),n){case"dialog":fe("cancel",e),fe("close",e),i=r;break;case"iframe":case"object":case"embed":fe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gi.length;i++)fe(Gi[i],e);i=r;break;case"source":fe("error",e),i=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),i=r;break;case"details":fe("toggle",e),i=r;break;case"input":fd(e,r),i=Su(e,r),fe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=we({},r,{value:void 0}),fe("invalid",e);break;case"textarea":pd(e,r),i=Au(e,r),fe("invalid",e);break;default:i=r}Pu(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?ev(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Jh(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ao(e,a):typeof a=="number"&&ao(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(lo.hasOwnProperty(o)?a!=null&&o==="onScroll"&&fe("scroll",e):a!=null&&zc(e,o,a,s))}switch(n){case"input":os(e),dd(e,r,!1);break;case"textarea":os(e),hd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Zr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Zr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ul)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ue(t),null;case 6:if(e&&t.stateNode!=null)Eg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=ar(_o.current),ar(Yt.current),hs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ht]=t,(o=r.nodeValue!==n)&&(e=ct,e!==null))switch(e.tag){case 3:ps(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ps(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ht]=t,t.stateNode=r}return Ue(t),null;case 13:if(pe(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&ut!==null&&t.mode&1&&!(t.flags&128))Bv(),li(),t.flags|=98560,o=!1;else if(o=hs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(O(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(O(317));o[Ht]=t}else li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),o=!1}else Nt!==null&&(uc(Nt),Nt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||me.current&1?ke===0&&(ke=3):Sf())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return ui(),tc(e,t),e===null&&go(t.stateNode.containerInfo),Ue(t),null;case 10:return sf(t.type._context),Ue(t),null;case 17:return rt(t.type)&&cl(),Ue(t),null;case 19:if(pe(me),o=t.memoizedState,o===null)return Ue(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)ji(o,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ml(e),s!==null){for(t.flags|=128,ji(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(me,me.current&1|2),t.child}e=e.sibling}o.tail!==null&&be()>fi&&(t.flags|=128,r=!0,ji(o,!1),t.lanes=4194304)}else{if(!r)if(e=ml(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ji(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!he)return Ue(t),null}else 2*be()-o.renderingStartTime>fi&&n!==1073741824&&(t.flags|=128,r=!0,ji(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=be(),t.sibling=null,n=me.current,ae(me,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return bf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function B1(e,t){switch(tf(t),t.tag){case 1:return rt(t.type)&&cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ui(),pe(nt),pe(We),ff(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cf(t),null;case 13:if(pe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(me),null;case 4:return ui(),null;case 10:return sf(t.type._context),null;case 22:case 23:return bf(),null;case 24:return null;default:return null}}var ms=!1,Ve=!1,U1=typeof WeakSet=="function"?WeakSet:Set,D=null;function Gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function nc(e,t,n){try{n()}catch(r){_e(e,t,r)}}var rp=!1;function V1(e,t){if(Fu=sl,e=Pv(),qc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},sl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,_=y.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:$t(t.type,m),_);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(x){_e(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return y=rp,rp=!1,y}function eo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&nc(t,n,o)}i=i.next}while(i!==r)}}function ql(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Cg(e){var t=e.alternate;t!==null&&(e.alternate=null,Cg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[yo],delete t[Vu],delete t[C1],delete t[A1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ag(e){return e.tag===5||e.tag===3||e.tag===4}function ip(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ag(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ul));else if(r!==4&&(e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}function oc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oc(e,t,n),e=e.sibling;e!==null;)oc(e,t,n),e=e.sibling}var je=null,Rt=!1;function En(e,t,n){for(n=n.child;n!==null;)Og(e,t,n),n=n.sibling}function Og(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:Ve||Gr(n,t);case 6:var r=je,i=Rt;je=null,En(e,t,n),je=r,Rt=i,je!==null&&(Rt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Rt?(e=je,n=n.stateNode,e.nodeType===8?Ha(e.parentNode,n):e.nodeType===1&&Ha(e,n),po(e)):Ha(je,n.stateNode));break;case 4:r=je,i=Rt,je=n.stateNode.containerInfo,Rt=!0,En(e,t,n),je=r,Rt=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&nc(n,t,s),i=i.next}while(i!==r)}En(e,t,n);break;case 1:if(!Ve&&(Gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_e(n,t,l)}En(e,t,n);break;case 21:En(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,En(e,t,n),Ve=r):En(e,t,n);break;default:En(e,t,n)}}function op(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new U1),t.forEach(function(r){var i=J1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:je=l.stateNode,Rt=!1;break e;case 3:je=l.stateNode.containerInfo,Rt=!0;break e;case 4:je=l.stateNode.containerInfo,Rt=!0;break e}l=l.return}if(je===null)throw Error(O(160));Og(o,s,i),je=null,Rt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){_e(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kt(t,e),zt(e),r&4){try{eo(3,e,e.return),ql(3,e)}catch(m){_e(e,e.return,m)}try{eo(5,e,e.return)}catch(m){_e(e,e.return,m)}}break;case 1:kt(t,e),zt(e),r&512&&n!==null&&Gr(n,n.return);break;case 5:if(kt(t,e),zt(e),r&512&&n!==null&&Gr(n,n.return),e.flags&32){var i=e.stateNode;try{ao(i,"")}catch(m){_e(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Yh(i,o),ku(l,s);var u=ku(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?ev(i,f):c==="dangerouslySetInnerHTML"?Jh(i,f):c==="children"?ao(i,f):zc(i,c,f,u)}switch(l){case"input":Eu(i,o);break;case"textarea":Xh(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Zr(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?Zr(i,!!o.multiple,o.defaultValue,!0):Zr(i,!!o.multiple,o.multiple?[]:"",!1))}i[yo]=o}catch(m){_e(e,e.return,m)}}break;case 6:if(kt(t,e),zt(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){_e(e,e.return,m)}}break;case 3:if(kt(t,e),zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{po(t.containerInfo)}catch(m){_e(e,e.return,m)}break;case 4:kt(t,e),zt(e);break;case 13:kt(t,e),zt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(_f=be())),r&4&&op(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(u=Ve)||c,kt(t,e),Ve=u):kt(t,e),zt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(f=D=c;D!==null;){switch(d=D,p=d.child,d.tag){case 0:case 11:case 14:case 15:eo(4,d,d.return);break;case 1:Gr(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){_e(r,n,m)}}break;case 5:Gr(d,d.return);break;case 22:if(d.memoizedState!==null){lp(f);continue}}p!==null?(p.return=d,D=p):lp(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=qh("display",s))}catch(m){_e(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){_e(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:kt(t,e),zt(e),r&4&&op(e);break;case 21:break;default:kt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ag(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ao(i,""),r.flags&=-33);var o=ip(e);oc(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=ip(e);ic(e,l,s);break;default:throw Error(O(161))}}catch(a){_e(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W1(e,t,n){D=e,kg(e)}function kg(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ms;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Ve;l=ms;var u=Ve;if(ms=s,(Ve=a)&&!u)for(D=i;D!==null;)s=D,a=s.child,s.tag===22&&s.memoizedState!==null?ap(i):a!==null?(a.return=s,D=a):ap(i);for(;o!==null;)D=o,kg(o),o=o.sibling;D=i,ms=l,Ve=u}sp(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,D=o):sp(e)}}function sp(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||ql(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ve)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:$t(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Vd(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Vd(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&po(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ve||t.flags&512&&rc(t)}catch(d){_e(t,t.return,d)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function lp(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function ap(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ql(4,t)}catch(a){_e(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){_e(t,i,a)}}var o=t.return;try{rc(t)}catch(a){_e(t,o,a)}break;case 5:var s=t.return;try{rc(t)}catch(a){_e(t,s,a)}}}catch(a){_e(t,t.return,a)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var H1=Math.ceil,_l=_n.ReactCurrentDispatcher,yf=_n.ReactCurrentOwner,St=_n.ReactCurrentBatchConfig,q=0,Ie=null,Ee=null,Fe=0,lt=0,Qr=Yn(0),ke=0,Eo=null,mr=0,ea=0,wf=0,to=null,qe=null,_f=0,fi=1/0,en=null,xl=!1,sc=null,zn=null,ys=!1,Nn=null,bl=0,no=0,lc=null,Ws=-1,Hs=0;function Ke(){return q&6?be():Ws!==-1?Ws:Ws=be()}function Bn(e){return e.mode&1?q&2&&Fe!==0?Fe&-Fe:P1.transition!==null?(Hs===0&&(Hs=dv()),Hs):(e=ie,e!==0||(e=window.event,e=e===void 0?16:wv(e.type)),e):1}function It(e,t,n,r){if(50<no)throw no=0,lc=null,Error(O(185));Mo(e,n,r),(!(q&2)||e!==Ie)&&(e===Ie&&(!(q&2)&&(ea|=n),ke===4&&$n(e,Fe)),it(e,r),n===1&&q===0&&!(t.mode&1)&&(fi=be()+500,Xl&&Xn()))}function it(e,t){var n=e.callbackNode;Pw(e,t);var r=ol(e,e===Ie?Fe:0);if(r===0)n!==null&&md(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&md(n),t===1)e.tag===0?O1(up.bind(null,e)):jv(up.bind(null,e)),S1(function(){!(q&6)&&Xn()}),n=null;else{switch(pv(r)){case 1:n=Hc;break;case 4:n=cv;break;case 16:n=il;break;case 536870912:n=fv;break;default:n=il}n=Lg(n,Tg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tg(e,t){if(Ws=-1,Hs=0,q&6)throw Error(O(327));var n=e.callbackNode;if(ni()&&e.callbackNode!==n)return null;var r=ol(e,e===Ie?Fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Sl(e,r);else{t=r;var i=q;q|=2;var o=Rg();(Ie!==e||Fe!==t)&&(en=null,fi=be()+500,cr(e,t));do try{Q1();break}catch(l){$g(e,l)}while(1);of(),_l.current=o,q=i,Ee!==null?t=0:(Ie=null,Fe=0,t=ke)}if(t!==0){if(t===2&&(i=Du(e),i!==0&&(r=i,t=ac(e,i))),t===1)throw n=Eo,cr(e,0),$n(e,r),it(e,be()),n;if(t===6)$n(e,r);else{if(i=e.current.alternate,!(r&30)&&!K1(i)&&(t=Sl(e,r),t===2&&(o=Du(e),o!==0&&(r=o,t=ac(e,o))),t===1))throw n=Eo,cr(e,0),$n(e,r),it(e,be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:ir(e,qe,en);break;case 3:if($n(e,r),(r&130023424)===r&&(t=_f+500-be(),10<t)){if(ol(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ke(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Uu(ir.bind(null,e,qe,en),t);break}ir(e,qe,en);break;case 4:if($n(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Dt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*H1(r/1960))-r,10<r){e.timeoutHandle=Uu(ir.bind(null,e,qe,en),r);break}ir(e,qe,en);break;case 5:ir(e,qe,en);break;default:throw Error(O(329))}}}return it(e,be()),e.callbackNode===n?Tg.bind(null,e):null}function ac(e,t){var n=to;return e.current.memoizedState.isDehydrated&&(cr(e,t).flags|=256),e=Sl(e,t),e!==2&&(t=qe,qe=n,t!==null&&uc(t)),e}function uc(e){qe===null?qe=e:qe.push.apply(qe,e)}function K1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!jt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t){for(t&=~wf,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function up(e){if(q&6)throw Error(O(327));ni();var t=ol(e,0);if(!(t&1))return it(e,be()),null;var n=Sl(e,t);if(e.tag!==0&&n===2){var r=Du(e);r!==0&&(t=r,n=ac(e,r))}if(n===1)throw n=Eo,cr(e,0),$n(e,t),it(e,be()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ir(e,qe,en),it(e,be()),null}function xf(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(fi=be()+500,Xl&&Xn())}}function yr(e){Nn!==null&&Nn.tag===0&&!(q&6)&&ni();var t=q;q|=1;var n=St.transition,r=ie;try{if(St.transition=null,ie=1,e)return e()}finally{ie=r,St.transition=n,q=t,!(q&6)&&Xn()}}function bf(){lt=Qr.current,pe(Qr)}function cr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,b1(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(tf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&cl();break;case 3:ui(),pe(nt),pe(We),ff();break;case 5:cf(r);break;case 4:ui();break;case 13:pe(me);break;case 19:pe(me);break;case 10:sf(r.type._context);break;case 22:case 23:bf()}n=n.return}if(Ie=e,Ee=e=Un(e.current,null),Fe=lt=t,ke=0,Eo=null,wf=ea=mr=0,qe=to=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}lr=null}return e}function $g(e,t){do{var n=Ee;try{if(of(),Bs.current=wl,yl){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}yl=!1}if(gr=0,De=Pe=ye=null,qi=!1,xo=0,yf.current=null,n===null||n.return===null){ke=1,Eo=t,Ee=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Fe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Xd(s);if(p!==null){p.flags&=-257,Zd(p,s,l,o,t),p.mode&1&&Yd(o,u,t),t=p,a=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(a),t.updateQueue=m}else y.add(a);break e}else{if(!(t&1)){Yd(o,u,t),Sf();break e}a=Error(O(426))}}else if(he&&l.mode&1){var _=Xd(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Zd(_,s,l,o,t),nf(ci(a,l));break e}}o=a=ci(a,l),ke!==4&&(ke=2),to===null?to=[o]:to.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=hg(o,a,t);Ud(o,g);break e;case 1:l=a;var h=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(zn===null||!zn.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=vg(o,l,t);Ud(o,x);break e}}o=o.return}while(o!==null)}Dg(n)}catch(S){t=S,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(1)}function Rg(){var e=_l.current;return _l.current=wl,e===null?wl:e}function Sf(){(ke===0||ke===3||ke===2)&&(ke=4),Ie===null||!(mr&268435455)&&!(ea&268435455)||$n(Ie,Fe)}function Sl(e,t){var n=q;q|=2;var r=Rg();(Ie!==e||Fe!==t)&&(en=null,cr(e,t));do try{G1();break}catch(i){$g(e,i)}while(1);if(of(),q=n,_l.current=r,Ee!==null)throw Error(O(261));return Ie=null,Fe=0,ke}function G1(){for(;Ee!==null;)Ng(Ee)}function Q1(){for(;Ee!==null&&!ww();)Ng(Ee)}function Ng(e){var t=Mg(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?Dg(e):Ee=t,yf.current=null}function Dg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=B1(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,Ee=null;return}}else if(n=z1(n,t,lt),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);ke===0&&(ke=5)}function ir(e,t,n){var r=ie,i=St.transition;try{St.transition=null,ie=1,Y1(e,t,n,r)}finally{St.transition=i,ie=r}return null}function Y1(e,t,n,r){do ni();while(Nn!==null);if(q&6)throw Error(O(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(kw(e,o),e===Ie&&(Ee=Ie=null,Fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ys||(ys=!0,Lg(il,function(){return ni(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=St.transition,St.transition=null;var s=ie;ie=1;var l=q;q|=4,yf.current=null,V1(e,n),Pg(n,e),v1(zu),sl=!!Fu,zu=Fu=null,e.current=n,W1(n),_w(),q=l,ie=s,St.transition=o}else e.current=n;if(ys&&(ys=!1,Nn=e,bl=i),o=e.pendingLanes,o===0&&(zn=null),Sw(n.stateNode),it(e,be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(xl)throw xl=!1,e=sc,sc=null,e;return bl&1&&e.tag!==0&&ni(),o=e.pendingLanes,o&1?e===lc?no++:(no=0,lc=e):no=0,Xn(),null}function ni(){if(Nn!==null){var e=pv(bl),t=St.transition,n=ie;try{if(St.transition=null,ie=16>e?16:e,Nn===null)var r=!1;else{if(e=Nn,Nn=null,bl=0,q&6)throw Error(O(331));var i=q;for(q|=4,D=e.current;D!==null;){var o=D,s=o.child;if(D.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:eo(8,c,o)}var f=c.child;if(f!==null)f.return=c,D=f;else for(;D!==null;){c=D;var d=c.sibling,p=c.return;if(Cg(c),c===u){D=null;break}if(d!==null){d.return=p,D=d;break}D=p}}}var y=o.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var _=m.sibling;m.sibling=null,m=_}while(m!==null)}}D=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,D=s;else e:for(;D!==null;){if(o=D,o.flags&2048)switch(o.tag){case 0:case 11:case 15:eo(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,D=g;break e}D=o.return}}var h=e.current;for(D=h;D!==null;){s=D;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,D=w;else e:for(s=h;D!==null;){if(l=D,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ql(9,l)}}catch(S){_e(l,l.return,S)}if(l===s){D=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,D=x;break e}D=l.return}}if(q=i,Xn(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Hl,e)}catch{}r=!0}return r}finally{ie=n,St.transition=t}}return!1}function cp(e,t,n){t=ci(n,t),t=hg(e,t,1),e=Fn(e,t,1),t=Ke(),e!==null&&(Mo(e,1,t),it(e,t))}function _e(e,t,n){if(e.tag===3)cp(e,e,n);else for(;t!==null;){if(t.tag===3){cp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zn===null||!zn.has(r))){e=ci(n,e),e=vg(t,e,1),t=Fn(t,e,1),e=Ke(),t!==null&&(Mo(t,1,e),it(t,e));break}}t=t.return}}function X1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&(Fe&n)===n&&(ke===4||ke===3&&(Fe&130023424)===Fe&&500>be()-_f?cr(e,0):wf|=n),it(e,t)}function Ig(e,t){t===0&&(e.mode&1?(t=as,as<<=1,!(as&130023424)&&(as=4194304)):t=1);var n=Ke();e=pn(e,t),e!==null&&(Mo(e,t,n),it(e,n))}function Z1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ig(e,n)}function J1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Ig(e,n)}var Mg;Mg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,F1(e,t,n);tt=!!(e.flags&131072)}else tt=!1,he&&t.flags&1048576&&Fv(t,pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var i=si(t,We.current);ti(t,n),i=pf(null,t,r,e,i,n);var o=hf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(o=!0,fl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,af(t),i.updater=Zl,t.stateNode=i,i._reactInternals=t,Yu(t,r,e,n),t=Ju(null,t,r,!0,o,n)):(t.tag=0,he&&o&&ef(t),He(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=e_(r),e=$t(r,e),i){case 0:t=Zu(null,t,r,e,n);break e;case 1:t=ep(null,t,r,e,n);break e;case 11:t=Jd(null,t,r,e,n);break e;case 14:t=qd(null,t,r,$t(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),Zu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),ep(e,t,r,i,n);case 3:e:{if(wg(t),e===null)throw Error(O(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Vv(e,t),gl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ci(Error(O(423)),t),t=tp(e,t,r,n,i);break e}else if(r!==i){i=ci(Error(O(424)),t),t=tp(e,t,r,n,i);break e}else for(ut=jn(t.stateNode.containerInfo.firstChild),ct=t,he=!0,Nt=null,n=Gv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(li(),r===i){t=hn(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return Qv(t),e===null&&Ku(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Bu(r,i)?s=null:o!==null&&Bu(r,o)&&(t.flags|=32),yg(e,t),He(e,t,s,n),t.child;case 6:return e===null&&Ku(t),null;case 13:return _g(e,t,n);case 4:return uf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ai(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),Jd(e,t,r,i,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ae(hl,r._currentValue),r._currentValue=s,o!==null)if(jt(o.value,s)){if(o.children===i.children&&!nt.current){t=hn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=ln(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(O(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Gu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}He(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ti(t,n),i=Et(i),r=r(i),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,i=$t(r,t.pendingProps),i=$t(r.type,i),qd(e,t,r,i,n);case 15:return gg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),Vs(e,t),t.tag=1,rt(r)?(e=!0,fl(t)):e=!1,ti(t,n),Hv(t,r,i),Yu(t,r,i,n),Ju(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return mg(e,t,n)}throw Error(O(156,t.tag))};function Lg(e,t){return uv(e,t)}function q1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,r){return new q1(e,t,n,r)}function Ef(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e_(e){if(typeof e=="function")return Ef(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Uc)return 11;if(e===Vc)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ks(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ef(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case jr:return fr(n.children,i,o,t);case Bc:s=8,i|=8;break;case wu:return e=_t(12,n,t,i|2),e.elementType=wu,e.lanes=o,e;case _u:return e=_t(13,n,t,i),e.elementType=_u,e.lanes=o,e;case xu:return e=_t(19,n,t,i),e.elementType=xu,e.lanes=o,e;case Kh:return ta(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wh:s=10;break e;case Hh:s=9;break e;case Uc:s=11;break e;case Vc:s=14;break e;case Pn:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=_t(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function fr(e,t,n,r){return e=_t(7,e,r,t),e.lanes=n,e}function ta(e,t,n,r){return e=_t(22,e,r,t),e.elementType=Kh,e.lanes=n,e.stateNode={isHidden:!1},e}function qa(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Da(0),this.expirationTimes=Da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Da(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cf(e,t,n,r,i,o,s,l,a){return e=new t_(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=_t(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},af(o),e}function n_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jg(e){if(!e)return Wn;e=e._reactInternals;e:{if(Er(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(rt(n))return Lv(e,n,t)}return t}function Fg(e,t,n,r,i,o,s,l,a){return e=Cf(n,r,!0,e,i,o,s,l,a),e.context=jg(null),n=e.current,r=Ke(),i=Bn(n),o=ln(r,i),o.callback=t??null,Fn(n,o,i),e.current.lanes=i,Mo(e,i,r),it(e,r),e}function na(e,t,n,r){var i=t.current,o=Ke(),s=Bn(i);return n=jg(n),t.context===null?t.context=n:t.pendingContext=n,t=ln(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Fn(i,t,s),e!==null&&(It(e,i,s,o),zs(e,i,s)),s}function El(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Af(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function r_(){return null}var zg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Of(e){this._internalRoot=e}ra.prototype.render=Of.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));na(e,t,null,null)};ra.prototype.unmount=Of.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yr(function(){na(null,e,null,null)}),t[dn]=null}};function ra(e){this._internalRoot=e}ra.prototype.unstable_scheduleHydration=function(e){if(e){var t=gv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tn.length&&t!==0&&t<Tn[n].priority;n++);Tn.splice(n,0,e),n===0&&yv(e)}};function Pf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dp(){}function i_(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=El(s);o.call(u)}}var s=Fg(t,r,e,0,null,!1,!1,"",dp);return e._reactRootContainer=s,e[dn]=s.current,go(e.nodeType===8?e.parentNode:e),yr(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=El(a);l.call(u)}}var a=Cf(e,0,!1,null,null,!1,!1,"",dp);return e._reactRootContainer=a,e[dn]=a.current,go(e.nodeType===8?e.parentNode:e),yr(function(){na(t,a,n,r)}),a}function oa(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=El(s);l.call(a)}}na(t,s,e,i)}else s=i_(n,t,e,i,r);return El(s)}hv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ki(t.pendingLanes);n!==0&&(Kc(t,n|1),it(t,be()),!(q&6)&&(fi=be()+500,Xn()))}break;case 13:yr(function(){var r=pn(e,1);if(r!==null){var i=Ke();It(r,e,1,i)}}),Af(e,1)}};Gc=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=Ke();It(t,e,134217728,n)}Af(e,134217728)}};vv=function(e){if(e.tag===13){var t=Bn(e),n=pn(e,t);if(n!==null){var r=Ke();It(n,e,t,r)}Af(e,t)}};gv=function(){return ie};mv=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};$u=function(e,t,n){switch(t){case"input":if(Eu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Yl(r);if(!i)throw Error(O(90));Qh(r),Eu(r,i)}}}break;case"textarea":Xh(e,n);break;case"select":t=n.value,t!=null&&Zr(e,!!n.multiple,t,!1)}};rv=xf;iv=yr;var o_={usingClientEntryPoint:!1,Events:[jo,Ur,Yl,tv,nv,xf]},Fi={findFiberByHostInstance:sr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},s_={bundleType:Fi.bundleType,version:Fi.version,rendererPackageName:Fi.rendererPackageName,rendererConfig:Fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_n.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lv(e),e===null?null:e.stateNode},findFiberByHostInstance:Fi.findFiberByHostInstance||r_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ws.isDisabled&&ws.supportsFiber)try{Hl=ws.inject(s_),Qt=ws}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o_;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pf(t))throw Error(O(200));return n_(e,t,null,n)};ht.createRoot=function(e,t){if(!Pf(e))throw Error(O(299));var n=!1,r="",i=zg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Cf(e,1,!1,null,null,n,!1,r,i),e[dn]=t.current,go(e.nodeType===8?e.parentNode:e),new Of(t)};ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=lv(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return yr(e)};ht.hydrate=function(e,t,n){if(!ia(t))throw Error(O(200));return oa(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!Pf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=zg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Fg(t,null,e,1,n??null,i,!1,o,s),e[dn]=t.current,go(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ra(t)};ht.render=function(e,t,n){if(!ia(t))throw Error(O(200));return oa(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!ia(e))throw Error(O(40));return e._reactRootContainer?(yr(function(){oa(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1};ht.unstable_batchedUpdates=xf;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ia(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return oa(e,t,n,!1,r)};ht.version="18.2.0-next-9e3b772b8-20220608";function Bg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bg)}catch(e){console.error(e)}}Bg(),Fh.exports=ht;var Zn=Fh.exports;const l_=Nc(Zn);var pp=Zn;mu.createRoot=pp.createRoot,mu.hydrateRoot=pp.hydrateRoot;function ne(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var a_={};function kf(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:a_}var Ug=Object.assign,Cl=Object.getOwnPropertyDescriptor,Xt=Object.defineProperty,zo=Object.prototype,cc=[];Object.freeze(cc);var Vg={};Object.freeze(Vg);var u_=typeof Proxy<"u",c_=Object.toString();function Wg(){u_||ne("Proxy not available")}function Hg(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Yr=function(){};function Ft(e){return typeof e=="function"}function wr(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function sa(e){return e!==null&&typeof e=="object"}function vn(e){if(!sa(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===c_}function Kg(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Bo(e,t,n){Xt(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Gg(e,t,n){Xt(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Jn(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return sa(r)&&r[n]===!0}}function Si(e){return e instanceof Map}function Uo(e){return e instanceof Set}var Qg=typeof Object.getOwnPropertySymbols<"u";function f_(e){var t=Object.keys(e);if(!Qg)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return zo.propertyIsEnumerable.call(e,r)})):t}var di=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Qg?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Yg(e){return e===null?null:typeof e=="object"?""+e:e}function an(e,t){return zo.hasOwnProperty.call(e,t)}var d_=Object.getOwnPropertyDescriptors||function(t){var n={};return di(t).forEach(function(r){n[r]=Cl(t,r)}),n};function hp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v_(r.key),r)}}function Tf(e,t,n){return t&&hp(e.prototype,t),n&&hp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pi.apply(this,arguments)}function Xg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fc(e,t)}function fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fc(e,t)}function tu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p_(e,t){if(e){if(typeof e=="string")return vp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vp(e,t)}}function vp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=p_(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
41
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h_(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v_(e){var t=h_(e,"string");return typeof t=="symbol"?t:String(t)}var Gt=Symbol("mobx-stored-annotations");function Zt(e){function t(n,r){Vo(n,r,e)}return Object.assign(t,e)}function Vo(e,t,n){an(e,Gt)||Bo(e,Gt,pi({},e[Gt])),E_(n)||(e[Gt][t]=n)}function g_(e){return an(e,Gt)||Bo(e,Gt,pi({},e[Gt])),e[Gt]}var H=Symbol("mobx administration"),Wo=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.batchId_=void 0,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=te.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n,this.batchId_=$.inBatch?$.batchId:NaN}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return mm(this)},t.reportChanged=function(){(!$.inBatch||this.batchId_!==$.batchId)&&($.stateVersion=$.stateVersion<Number.MAX_SAFE_INTEGER?$.stateVersion+1:Number.MIN_SAFE_INTEGER,this.batchId_=NaN),xt(),ym(this),bt()},t.toString=function(){return this.name_},e}(),$f=Jn("Atom",Wo);function Zg(e,t,n){t===void 0&&(t=Yr),n===void 0&&(n=Yr);var r=new Wo(e);return t!==Yr&&bx(r,t),n!==Yr&&Am(r,n),r}function m_(e,t){return e===t}function y_(e,t){return Bf(e,t)}function w_(e,t){return Bf(e,t,1)}function __(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Al={identity:m_,structural:y_,default:__,shallow:w_};function hi(e,t,n){return Lf(e)?e:Array.isArray(e)?V.array(e,{name:n}):vn(e)?V.object(e,void 0,{name:n}):Si(e)?V.map(e,{name:n}):Uo(e)?V.set(e,{name:n}):typeof e=="function"&&!Mf(e)&&!$l(e)?Kg(e)?Po(e):Oo(n,e):e}function x_(e,t,n){if(e==null||gi(e)||Yo(e)||er(e)||Ar(e))return e;if(Array.isArray(e))return V.array(e,{name:n,deep:!1});if(vn(e))return V.object(e,void 0,{name:n,deep:!1});if(Si(e))return V.map(e,{name:n,deep:!1});if(Uo(e))return V.set(e,{name:n,deep:!1})}function la(e){return e}function b_(e,t){return Bf(e,t)?t:e}var S_="override";function E_(e){return e.annotationType_===S_}function Ho(e,t){return{annotationType_:e,options_:t,make_:C_,extend_:A_}}function C_(e,t,n,r){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(Mf(n.value))return 1;var o=Jg(e,this,t,n,!1);return Xt(r,t,o),2}function A_(e,t,n,r){var i=Jg(e,this,t,n);return e.defineProperty_(t,i,r)}function O_(e,t,n,r){t.annotationType_,r.value}function Jg(e,t,n,r,i){var o,s,l,a,u,c,f;i===void 0&&(i=$.safeDescriptors),O_(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var p;d=d.bind((p=e.proxy_)!=null?p:e.target_)}return{value:vi((s=(l=t.options_)==null?void 0:l.name)!=null?s:n.toString(),d,(a=(u=t.options_)==null?void 0:u.autoAction)!=null?a:!1,(c=t.options_)!=null&&c.bound?(f=e.proxy_)!=null?f:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function qg(e,t){return{annotationType_:e,options_:t,make_:P_,extend_:k_}}function P_(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!an(e.target_,t)||!$l(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if($l(n.value))return 1;var o=em(e,this,t,n,!1,!1);return Xt(r,t,o),2}function k_(e,t,n,r){var i,o=em(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function T_(e,t,n,r){t.annotationType_,r.value}function em(e,t,n,r,i,o){o===void 0&&(o=$.safeDescriptors),T_(e,t,n,r);var s=r.value;if($l(s)||(s=Po(s)),i){var l;s=s.bind((l=e.proxy_)!=null?l:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function Rf(e,t){return{annotationType_:e,options_:t,make_:$_,extend_:R_}}function $_(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function R_(e,t,n,r){return N_(e,this,t,n),e.defineComputedProperty_(t,pi({},this.options_,{get:n.get,set:n.set}),r)}function N_(e,t,n,r){t.annotationType_,r.get}function aa(e,t){return{annotationType_:e,options_:t,make_:D_,extend_:I_}}function D_(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function I_(e,t,n,r){var i,o;return M_(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:hi,r)}function M_(e,t,n,r){t.annotationType_}var L_="true",j_=tm();function tm(e){return{annotationType_:L_,options_:e,make_:F_,extend_:z_}}function F_(e,t,n,r){var i,o;if(n.get)return Se.make_(e,t,n,r);if(n.set){var s=vi(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:$.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(Xt(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var l;if(Kg(n.value)){var a,u=(a=this.options_)!=null&&a.autoBind?Po.bound:Po;return u.make_(e,t,n,r)}var c=(l=this.options_)!=null&&l.autoBind?Oo.bound:Oo;return c.make_(e,t,n,r)}var f=((i=this.options_)==null?void 0:i.deep)===!1?V.ref:V;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return f.make_(e,t,n,r)}function z_(e,t,n,r){var i,o;if(n.get)return Se.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:$.safeDescriptors?e.isPlainObject_:!0,set:vi(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;n.value=n.value.bind((s=e.proxy_)!=null?s:e.target_)}var l=((o=this.options_)==null?void 0:o.deep)===!1?V.ref:V;return l.extend_(e,t,n,r)}var B_="observable",U_="observable.ref",V_="observable.shallow",W_="observable.struct",nm={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(nm);function _s(e){return e||nm}var rm=aa(B_),H_=aa(U_,{enhancer:la}),K_=aa(V_,{enhancer:x_}),G_=aa(W_,{enhancer:b_}),im=Zt(rm);function xs(e){return e.deep===!0?hi:e.deep===!1?la:Y_(e.defaultDecorator)}function Q_(e){var t;return e?(t=e.defaultDecorator)!=null?t:tm(e):void 0}function Y_(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:hi}function om(e,t,n){if(wr(t)){Vo(e,t,rm);return}return Lf(e)?e:vn(e)?V.object(e,t,n):Array.isArray(e)?V.array(e,t):Si(e)?V.map(e,t):Uo(e)?V.set(e,t):typeof e=="object"&&e!==null?e:V.box(e,t)}Ug(om,im);var X_={box:function(t,n){var r=_s(n);return new dr(t,xs(r),r.name,!0,r.equals)},array:function(t,n){var r=_s(n);return($.useProxies===!1||r.proxy===!1?Kx:Mx)(t,xs(r),r.name)},map:function(t,n){var r=_s(n);return new Dm(t,xs(r),r.name)},set:function(t,n){var r=_s(n);return new Lm(t,xs(r),r.name)},object:function(t,n,r){return tr(function(){return Pm($.useProxies===!1||(r==null?void 0:r.proxy)===!1?Xo({},r):Nx({},r),t,n)})},ref:Zt(H_),shallow:Zt(K_),deep:im,struct:Zt(G_)},V=Ug(om,X_),sm="computed",Z_="computed.struct",lm=Rf(sm),J_=Rf(Z_,{equals:Al.structural}),Se=function(t,n){if(wr(n))return Vo(t,n,lm);if(vn(t))return Zt(Rf(sm,t));var r=vn(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Co(r)};Object.assign(Se,lm);Se.struct=Zt(J_);var gp,mp,Ol=0,q_=1,ex=(gp=(mp=Cl(function(){},"name"))==null?void 0:mp.configurable)!=null?gp:!1,yp={value:"action",configurable:!0,writable:!1,enumerable:!1};function vi(e,t,n,r){n===void 0&&(n=!1);function i(){return am(e,n,t,r||this,arguments)}return i.isMobxAction=!0,ex&&(yp.value=e,Xt(i,"name",yp)),i}function am(e,t,n,r,i){var o=tx(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{nx(o)}}function tx(e,t,n,r){var i=!1,o=0,s=$.trackingDerivation,l=!t||!s;xt();var a=$.allowStateChanges;l&&(Cr(),a=Nf(!0));var u=If(!0),c={runAsAction_:l,prevDerivation_:s,prevAllowStateChanges_:a,prevAllowStateReads_:u,notifySpy_:i,startTime_:o,actionId_:q_++,parentActionId_:Ol};return Ol=c.actionId_,c}function nx(e){Ol!==e.actionId_&&ne(30),Ol=e.parentActionId_,e.error_!==void 0&&($.suppressReactionErrors=!0),Df(e.prevAllowStateChanges_),ro(e.prevAllowStateReads_),bt(),e.runAsAction_&&un(e.prevDerivation_),$.suppressReactionErrors=!1}function Nf(e){var t=$.allowStateChanges;return $.allowStateChanges=e,t}function Df(e){$.allowStateChanges=e}var um;um=Symbol.toPrimitive;var dr=function(e){Xg(t,e);function t(r,i,o,s,l){var a;return o===void 0&&(o="ObservableValue"),l===void 0&&(l=Al.default),a=e.call(this,o)||this,a.enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=i,a.name_=o,a.equals=l,a.value_=i(r,void 0,o),a}var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==$.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(yt(this)){var o=wt(this,{object:this,type:Jt,newValue:i});if(!o)return $.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?$.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),Mt(this)&&Lt(this,{type:Jt,object:this,newValue:i,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return Go(this,i)},n.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:Jt,newValue:this.value_,oldValue:void 0}),Qo(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Yg(this.get())},n[um]=function(){return this.valueOf()},t}(Wo),rx=Jn("ObservableValue",dr),cm;cm=Symbol.toPrimitive;var Co=function(){function e(n){this.dependenciesState_=te.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=te.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new kl(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Pl.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||ne(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=vi("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Al.structural:Al.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){ax(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing_&&ne(32,this.name_,this.derivation),$.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)dc(this)&&(this.warnAboutUntrackedRead_(),xt(),this.value_=this.computeValue_(!1),bt());else if(mm(this),dc(this)){var r=$.trackingContext;this.keepAlive_&&!r&&($.trackingContext=this),this.trackAndCompute()&&lx(this),$.trackingContext=r}var i=this.value_;if(Gs(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter_&&ne(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter_=!1}}else ne(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===te.NOT_TRACKING_,o=this.computeValue_(!0),s=i||Gs(r)||Gs(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing_=!0;var i=Nf(!1),o;if(r)o=fm(this,this.derivation,this.scope_);else if($.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new kl(s)}return Df(i),this.isComputing_=!1,o},t.suspend_=function(){this.keepAlive_||(pc(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,l=void 0;return mx(function(){var a=o.get();if(!s||i){var u=Cr();r({observableKind:"computed",debugObjectName:o.name_,type:Jt,object:o,newValue:a,oldValue:l}),un(u)}s=!1,l=a})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Yg(this.get())},t[cm]=function(){return this.valueOf()},e}(),Ko=Jn("ComputedValue",Co),te;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(te||(te={}));var Pl;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Pl||(Pl={}));var kl=function(t){this.cause=void 0,this.cause=t};function Gs(e){return e instanceof kl}function dc(e){switch(e.dependenciesState_){case te.UP_TO_DATE_:return!1;case te.NOT_TRACKING_:case te.STALE_:return!0;case te.POSSIBLY_STALE_:{for(var t=If(!0),n=Cr(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(Ko(s)){if($.disableErrorBoundaries)s.get();else try{s.get()}catch{return un(n),ro(t),!0}if(e.dependenciesState_===te.STALE_)return un(n),ro(t),!0}}return pm(e),un(n),ro(t),!1}}}function fm(e,t,n){var r=If(!0);pm(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++$.runId;var i=$.trackingDerivation;$.trackingDerivation=e,$.inBatch++;var o;if($.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new kl(s)}return $.inBatch--,$.trackingDerivation=i,ix(e),ro(r),o}function ix(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=te.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var l=n[s];l.diffValue_===0&&(l.diffValue_=1,i!==s&&(n[i]=l),i++),l.dependenciesState_>r&&(r=l.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var a=t[o];a.diffValue_===0&&vm(a,e),a.diffValue_=0}for(;i--;){var u=n[i];u.diffValue_===1&&(u.diffValue_=0,sx(u,e))}r!==te.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function pc(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)vm(t[n],e);e.dependenciesState_=te.NOT_TRACKING_}function dm(e){var t=Cr();try{return e()}finally{un(t)}}function Cr(){var e=$.trackingDerivation;return $.trackingDerivation=null,e}function un(e){$.trackingDerivation=e}function If(e){var t=$.allowStateReads;return $.allowStateReads=e,t}function ro(e){$.allowStateReads=e}function pm(e){if(e.dependenciesState_!==te.UP_TO_DATE_){e.dependenciesState_=te.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=te.UP_TO_DATE_}}var Qs=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.batchId=Number.MIN_SAFE_INTEGER,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},Ys=!0,hm=!1,$=function(){var e=kf();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ys=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Qs().version&&(Ys=!1),Ys?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Qs):(setTimeout(function(){hm||ne(35)},1),new Qs)}();function ox(){if(($.pendingReactions.length||$.inBatch||$.isRunningReactions)&&ne(36),hm=!0,Ys){var e=kf();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),$=new Qs}}function sx(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function vm(e,t){e.observers_.delete(t),e.observers_.size===0&&gm(e)}function gm(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,$.pendingUnobservations.push(e))}function xt(){$.inBatch===0&&($.batchId=$.batchId<Number.MAX_SAFE_INTEGER?$.batchId+1:Number.MIN_SAFE_INTEGER),$.inBatch++}function bt(){if(--$.inBatch===0){wm();for(var e=$.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,n.observers_.size===0&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof Co&&n.suspend_())}$.pendingUnobservations=[]}}function mm(e){var t=$.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&$.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(e.observers_.size===0&&$.inBatch>0&&gm(e),!1)}function ym(e){e.lowestObserverState_!==te.STALE_&&(e.lowestObserverState_=te.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===te.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=te.STALE_}))}function lx(e){e.lowestObserverState_!==te.STALE_&&(e.lowestObserverState_=te.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===te.POSSIBLY_STALE_?t.dependenciesState_=te.STALE_:t.dependenciesState_===te.UP_TO_DATE_&&(e.lowestObserverState_=te.UP_TO_DATE_)}))}function ax(e){e.lowestObserverState_===te.UP_TO_DATE_&&(e.lowestObserverState_=te.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===te.UP_TO_DATE_&&(t.dependenciesState_=te.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Ao=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=te.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Pl.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,$.pendingReactions.push(this),wm())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){xt(),this.isScheduled_=!1;var r=$.trackingContext;if($.trackingContext=this,dc(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}$.trackingContext=r,bt()}},t.track=function(r){if(!this.isDisposed_){xt(),this.isRunning_=!0;var i=$.trackingContext;$.trackingContext=this;var o=fm(this,r,void 0);$.trackingContext=i,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&pc(this),Gs(o)&&this.reportExceptionInDerivation_(o.cause),bt()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if($.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";$.suppressReactionErrors||console.error(o,r),$.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(xt(),pc(this),bt()))},t.getDisposer_=function(r){var i=this,o=function s(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[H]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},e}(),ux=100,hc=function(t){return t()};function wm(){$.inBatch>0||$.isRunningReactions||hc(cx)}function cx(){$.isRunningReactions=!0;for(var e=$.pendingReactions,t=0;e.length>0;){++t===ux&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}$.isRunningReactions=!1}var Tl=Jn("Reaction",Ao);function fx(e){var t=hc;hc=function(r){return e(function(){return t(r)})}}function io(){return!1}function dx(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var _m="action",px="action.bound",xm="autoAction",hx="autoAction.bound",bm="<unnamed action>",Sm=Ho(_m),vx=Ho(px,{bound:!0}),Em=Ho(xm,{autoAction:!0}),gx=Ho(hx,{autoAction:!0,bound:!0});function Cm(e){var t=function(r,i){if(Ft(r))return vi(r.name||bm,r,e);if(Ft(i))return vi(r,i,e);if(wr(i))return Vo(r,i,e?Em:Sm);if(wr(r))return Zt(Ho(e?xm:_m,{name:r,autoAction:e}))};return t}var de=Cm(!1);Object.assign(de,Sm);var Oo=Cm(!0);Object.assign(Oo,Em);de.bound=Zt(vx);Oo.bound=Zt(gx);function ua(e){return am(e.name||bm,!1,e,this,void 0)}function Mf(e){return Ft(e)&&e.isMobxAction===!0}function mx(e,t){var n,r,i,o,s;t===void 0&&(t=Vg);var l=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new Ao(l,function(){this.track(d)},t.onError,t.requiresObservable);else{var c=wx(t),f=!1;u=new Ao(l,function(){f||(f=!0,c(function(){f=!1,u.isDisposed_||u.track(d)}))},t.onError,t.requiresObservable)}function d(){e(u)}return(i=t)!=null&&(o=i.signal)!=null&&o.aborted||u.schedule_(),u.getDisposer_((s=t)==null?void 0:s.signal)}var yx=function(t){return t()};function wx(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:yx}var _x="onBO",xx="onBUO";function bx(e,t,n){return Om(_x,e,t,n)}function Am(e,t,n){return Om(xx,e,t,n)}function Om(e,t,n,r){var i=typeof r=="function"?mi(t,n):mi(t),o=Ft(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var l=i[s];l&&(l.delete(o),l.size===0&&delete i[s])}}var Sx="never",bs="always",Ex="observed";function Cx(e){e.isolateGlobalState===!0&&ox();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&($.useProxies=t===bs?!0:t===Sx?!1:typeof Proxy<"u"),t==="ifavailable"&&($.verifyProxies=!0),n!==void 0){var r=n===bs?bs:n===Ex;$.enforceActions=r,$.allowStateChanges=!(r===!0||r===bs)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&($[i]=!!e[i])}),$.allowStateReads=!$.observableRequiresReaction,e.reactionScheduler&&fx(e.reactionScheduler)}function Pm(e,t,n,r){var i=d_(t);return tr(function(){var o=Xo(e,r)[H];di(i).forEach(function(s){o.extend_(s,i[s],n&&s in n?n[s]:!0)})}),e}function Ax(e,t){return km(mi(e,t))}function km(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Ox(e.observing_).map(km)),t}function Ox(e){return Array.from(new Set(e))}var Px=0;function Tm(){this.message="FLOW_CANCELLED"}Tm.prototype=Object.create(Error.prototype);var wp=qg("flow"),kx=qg("flow.bound",{bound:!0}),Po=Object.assign(function(t,n){if(wr(n))return Vo(t,n,wp);var r=t,i=r.name||"<unnamed flow>",o=function(){var l=this,a=arguments,u=++Px,c=de(i+" - runid: "+u+" - init",r).apply(l,a),f,d=void 0,p=new Promise(function(y,m){var _=0;f=m;function g(x){d=void 0;var S;try{S=de(i+" - runid: "+u+" - yield "+_++,c.next).call(c,x)}catch(E){return m(E)}w(S)}function h(x){d=void 0;var S;try{S=de(i+" - runid: "+u+" - yield "+_++,c.throw).call(c,x)}catch(E){return m(E)}w(S)}function w(x){if(Ft(x==null?void 0:x.then)){x.then(w,m);return}return x.done?y(x.value):(d=Promise.resolve(x.value),d.then(g,h))}g(void 0)});return p.cancel=de(i+" - runid: "+u+" - cancel",function(){try{d&&_p(d);var y=c.return(void 0),m=Promise.resolve(y.value);m.then(Yr,Yr),_p(m),f(new Tm)}catch(_){f(_)}}),p};return o.isMobXFlow=!0,o},wp);Po.bound=Zt(kx);function _p(e){Ft(e.cancel)&&e.cancel()}function $l(e){return(e==null?void 0:e.isMobXFlow)===!0}function Tx(e,t){return e?t!==void 0?gi(e)?e[H].values_.has(t):!1:gi(e)||!!e[H]||$f(e)||Tl(e)||Ko(e):!1}function Lf(e){return Tx(e)}function $x(e){if(gi(e))return e[H].ownKeys_();ne(38)}function Ss(e,t,n){return e.set(t,n),n}function Mr(e,t){if(e==null||typeof e!="object"||e instanceof Date||!Lf(e))return e;if(rx(e)||Ko(e))return Mr(e.get(),t);if(t.has(e))return t.get(e);if(Yo(e)){var n=Ss(t,e,new Array(e.length));return e.forEach(function(s,l){n[l]=Mr(s,t)}),n}if(Ar(e)){var r=Ss(t,e,new Set);return e.forEach(function(s){r.add(Mr(s,t))}),r}if(er(e)){var i=Ss(t,e,new Map);return e.forEach(function(s,l){i.set(l,Mr(s,t))}),i}else{var o=Ss(t,e,{});return $x(e).forEach(function(s){zo.propertyIsEnumerable.call(e,s)&&(o[s]=Mr(e[s],t))}),o}}function xp(e,t){return Mr(e,new Map)}function rn(e,t){t===void 0&&(t=void 0),xt();try{return e.apply(t)}finally{bt()}}function Rr(e){return e[H]}var Rx={has:function(t,n){return Rr(t).has_(n)},get:function(t,n){return Rr(t).get_(n)},set:function(t,n,r){var i;return wr(n)?(i=Rr(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return wr(n)?(r=Rr(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=Rr(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return Rr(t).ownKeys_()},preventExtensions:function(t){ne(13)}};function Nx(e,t){var n,r;return Wg(),e=Xo(e,t),(r=(n=e[H]).proxy_)!=null?r:n.proxy_=new Proxy(e,Rx)}function yt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Go(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Hg(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function wt(e,t){var n=Cr();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&(t=r[i](t),t&&!t.type&&ne(14),!!t);i++);return t}finally{un(n)}}function Mt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Qo(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Hg(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Lt(e,t){var n=Cr(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);un(n)}}function ca(e,t,n){return tr(function(){var r,i=Xo(e,n)[H];(r=t)!=null||(t=g_(e)),di(t).forEach(function(o){return i.make_(o,t[o])})}),e}var nu=Symbol("mobx-keys");function jf(e,t,n){return vn(e)?Pm(e,e,t,n):(tr(function(){var r=Xo(e,n)[H];if(!e[nu]){var i=Object.getPrototypeOf(e),o=new Set([].concat(di(e),di(i)));o.delete("constructor"),o.delete(H),Bo(i,nu,o)}e[nu].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var bp="splice",Jt="update",Dx=1e4,Ix={get:function(t,n){var r=t[H];return n===H?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):an(Rl,n)?Rl[n]:t[n]},set:function(t,n,r){var i=t[H];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){ne(15)}},Ff=function(){function e(n,r,i,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new Wo(n),this.enhancer_=function(s,l){return r(s,l,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return Go(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Qo(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&ne("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),s=0;s<r-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&ne(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&Bm(r+i+1)},t.spliceWithArray_=function(r,i,o){var s=this;this.atom_;var l=this.values_.length;if(r===void 0?r=0:r>l?r=l:r<0&&(r=Math.max(0,l+r)),arguments.length===1?i=l-r:i==null?i=0:i=Math.max(0,Math.min(i,l-r)),o===void 0&&(o=cc),yt(this)){var a=wt(this,{object:this.proxy_,type:bp,index:r,removedCount:i,added:o});if(!a)return cc;i=a.removedCount,o=a.added}if(o=o.length===0?o:o.map(function(f){return s.enhancer_(f,void 0)}),this.legacyMode_){var u=o.length-i;this.updateArrayLength_(l,u)}var c=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length<Dx){var s;return(s=this.values_).splice.apply(s,[r,i].concat(o))}else{var l=this.values_.slice(r,r+i),a=this.values_.slice(r+i);this.values_.length+=o.length-i;for(var u=0;u<o.length;u++)this.values_[r+u]=o[u];for(var c=0;c<a.length;c++)this.values_[r+o.length+c]=a[c];return l}},t.notifyArrayChildUpdate_=function(r,i,o){var s=!this.owned_&&io(),l=Mt(this),a=l||s?{observableKind:"array",object:this.proxy_,type:Jt,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),l&&Lt(this,a)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&io(),l=Mt(this),a=l||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:bp,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),l&&Lt(this,a)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&ne(17,r,o.length),r<o.length){this.atom_;var s=o[r];if(yt(this)){var l=wt(this,{type:Jt,object:this.proxy_,index:r,newValue:i});if(!l)return;i=l.newValue}i=this.enhancer_(i,s);var a=i!==s;a&&(o[r]=i,this.notifyArrayChildUpdate_(r,i,s))}else{for(var u=new Array(r+1-o.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=i,this.spliceWithArray_(o.length,0,u)}},e}();function Mx(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),Wg(),tr(function(){var i=new Ff(n,t,r,!1);Gg(i.values_,H,i);var o=new Proxy(i.values_,Ix);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var Rl={clear:function(){return this.splice(0)},replace:function(t){var n=this[H];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=this[H];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,n)}return s.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[H].spliceWithArray_(t,n,r)},push:function(){for(var t=this[H],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[H].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[H],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return $.trackingDerivation&&ne(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){$.trackingDerivation&&ne(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[H],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};Te("concat",xn);Te("flat",xn);Te("includes",xn);Te("indexOf",xn);Te("join",xn);Te("lastIndexOf",xn);Te("slice",xn);Te("toString",xn);Te("toLocaleString",xn);Te("every",qn);Te("filter",qn);Te("find",qn);Te("findIndex",qn);Te("flatMap",qn);Te("forEach",qn);Te("map",qn);Te("some",qn);Te("reduce",$m);Te("reduceRight",$m);function Te(e,t){typeof Array.prototype[e]=="function"&&(Rl[e]=t(e))}function xn(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function qn(e){return function(t,n){var r=this,i=this[H];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,l){return t.call(n,s,l,r)})}}function $m(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,s,l){return i(o,s,l,t)},r[e].apply(r,arguments)}}var Lx=Jn("ObservableArrayAdministration",Ff);function Yo(e){return sa(e)&&Lx(e[H])}var Rm,Nm,jx={},Dn="add",Nl="delete";Rm=Symbol.iterator;Nm=Symbol.toStringTag;var Dm=function(){function e(n,r,i){var o=this;r===void 0&&(r=hi),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=jx,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,Ft(Map)||ne(18),tr(function(){o.keysAtom_=Zg("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!$.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new dr(this.has_(r),la,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Am(s,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(yt(this)){var s=wt(this,{type:o?Jt:Dn,object:this,newValue:i,name:r});if(!s)return this;i=s.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,yt(this)){var o=wt(this,{type:Nl,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=io(),l=Mt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:Nl,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return rn(function(){var u;i.keysAtom_.reportChanged(),(u=i.hasMap_.get(r))==null||u.setNewValue_(!1);var c=i.data_.get(r);c.setNewValue_(void 0),i.data_.delete(r)}),l&&Lt(this,a),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==$.UNCHANGED){var s=io(),l=Mt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:Jt,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&Lt(this,a)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,rn(function(){var u,c=new dr(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,c),i=c.value_,(u=o.hasMap_.get(r))==null||u.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=io(),l=Mt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:Dn,object:this,name:r,newValue:i}:null;l&&Lt(this,a)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return ko({next:function(){var s=i.next(),l=s.done,a=s.value;return{done:l,value:l?void 0:r.get(a)}}})},t.entries=function(){var r=this,i=this.keys();return ko({next:function(){var s=i.next(),l=s.done,a=s.value;return{done:l,value:l?void 0:[a,r.get(a)]}}})},t[Rm]=function(){return this.entries()},t.forEach=function(r,i){for(var o=Xr(this),s;!(s=o()).done;){var l=s.value,a=l[0],u=l[1];r.call(i,u,a,this)}},t.merge=function(r){var i=this;return er(r)&&(r=new Map(r)),rn(function(){vn(r)?f_(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var s=o[0],l=o[1];return i.set(s,l)}):Si(r)?(r.constructor!==Map&&ne(19,r),r.forEach(function(o,s){return i.set(s,o)})):r!=null&&ne(20,r)}),this},t.clear=function(){var r=this;rn(function(){dm(function(){for(var i=Xr(r.keys()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.replace=function(r){var i=this;return rn(function(){for(var o=Fx(r),s=new Map,l=!1,a=Xr(i.data_.keys()),u;!(u=a()).done;){var c=u.value;if(!o.has(c)){var f=i.delete(c);if(f)l=!0;else{var d=i.data_.get(c);s.set(c,d)}}}for(var p=Xr(o.entries()),y;!(y=p()).done;){var m=y.value,_=m[0],g=m[1],h=i.data_.has(_);if(i.set(_,g),i.data_.has(_)){var w=i.data_.get(_);s.set(_,w),h||(l=!0)}}if(!l)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var x=i.data_.keys(),S=s.keys(),E=x.next(),C=S.next();!E.done;){if(E.value!==C.value){i.keysAtom_.reportChanged();break}E=x.next(),C=S.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return Qo(this,r)},t.intercept_=function(r){return Go(this,r)},Tf(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Nm,get:function(){return"Map"}}]),e}(),er=Jn("ObservableMap",Dm);function Fx(e){if(Si(e)||er(e))return e;if(Array.isArray(e))return new Map(e);if(vn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return ne(21,e)}var Im,Mm,zx={};Im=Symbol.iterator;Mm=Symbol.toStringTag;var Lm=function(){function e(n,r,i){var o=this;r===void 0&&(r=hi),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[H]=zx,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,Ft(Set)||ne(22),this.enhancer_=function(s,l){return r(s,l,i)},tr(function(){o.atom_=Zg(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;rn(function(){dm(function(){for(var i=Xr(r.data_.values()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.forEach=function(r,i){for(var o=Xr(this),s;!(s=o()).done;){var l=s.value;r.call(i,l,l,this)}},t.add=function(r){var i=this;if(this.atom_,yt(this)){var o=wt(this,{type:Dn,object:this,newValue:r});if(!o)return this}if(!this.has(r)){rn(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,l=Mt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:Dn,object:this,newValue:r}:null;l&&Lt(this,a)}return this},t.delete=function(r){var i=this;if(yt(this)){var o=wt(this,{type:Nl,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,l=Mt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:Nl,object:this,oldValue:r}:null;return rn(function(){i.atom_.reportChanged(),i.data_.delete(r)}),l&&Lt(this,a),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=0,i=Array.from(this.keys()),o=Array.from(this.values());return ko({next:function(){var l=r;return r+=1,l<o.length?{value:[i[l],o[l]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=0,o=Array.from(this.data_.values());return ko({next:function(){return i<o.length?{value:r.dehanceValue_(o[i++]),done:!1}:{done:!0}}})},t.replace=function(r){var i=this;return Ar(r)&&(r=new Set(r)),rn(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):Uo(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):r!=null&&ne("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return Qo(this,r)},t.intercept_=function(r){return Go(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Im]=function(){return this.values()},Tf(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Mm,get:function(){return"Set"}}]),e}(),Ar=Jn("ObservableSet",Lm),Sp=Object.create(null),Ep="remove",jm=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=j_),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new Wo("ObservableObject.keys"),this.isPlainObject_=vn(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var o=this.values_.get(r);if(o instanceof Co)return o.set(i),!0;if(yt(this)){var s=wt(this,{type:Jt,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==$.UNCHANGED){var l=Mt(this),a=!1,u=l||a?{type:Jt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&Lt(this,u)}return!0},t.get_=function(r){return $.trackingDerivation&&!an(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),an(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):o?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(r){if(!$.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new dr(r in this.target_,la,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var o;if((o=this.target_[Gt])!=null&&o[r])return;ne(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==zo;){var l=Cl(s,r);if(l){var a=i.make_(this,r,l,s);if(a===0)return;if(a===1)break}s=Object.getPrototypeOf(s)}Ap(this,i,r)}},t.extend_=function(r,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(r,i,s);var l=o.extend_(this,r,i,s);return l&&Ap(this,o,r),l},t.defineProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{xt();var s=this.delete_(r);if(!s)return s;if(yt(this)){var l=wt(this,{object:this.proxy_||this.target_,name:r,type:Dn,newValue:i.value});if(!l)return null;var a=l.newValue;i.value!==a&&(i=pi({},i,{value:a}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else Xt(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{bt()}return!0},t.defineObservableProperty_=function(r,i,o,s){s===void 0&&(s=!1),this.keysAtom_;try{xt();var l=this.delete_(r);if(!l)return l;if(yt(this)){var a=wt(this,{object:this.proxy_||this.target_,name:r,type:Dn,newValue:i});if(!a)return null;i=a.newValue}var u=Cp(r),c={configurable:$.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,r,c))return!1}else Xt(this.target_,r,c);var f=new dr(i,o,"ObservableObject.key",!1);this.values_.set(r,f),this.notifyPropertyAddition_(r,f.value_)}finally{bt()}return!0},t.defineComputedProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{xt();var s=this.delete_(r);if(!s)return s;if(yt(this)){var l=wt(this,{object:this.proxy_||this.target_,name:r,type:Dn,newValue:void 0});if(!l)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var a=Cp(r),u={configurable:$.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:a.get,set:a.set};if(o){if(!Reflect.defineProperty(this.target_,r,u))return!1}else Xt(this.target_,r,u);this.values_.set(r,new Co(i)),this.notifyPropertyAddition_(r,void 0)}finally{bt()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!an(this.target_,r))return!0;if(yt(this)){var o=wt(this,{object:this.proxy_||this.target_,name:r,type:Ep});if(!o)return null}try{var s,l;xt();var a=Mt(this),u=!1,c=this.values_.get(r),f=void 0;if(!c&&(a||u)){var d;f=(d=Cl(this.target_,r))==null?void 0:d.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(c&&(this.values_.delete(r),c instanceof dr&&(f=c.value_),ym(c)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(l=s.get(r))==null||l.set(r in this.target_),a||u){var p={type:Ep,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:r};a&&Lt(this,p)}}finally{bt()}return!0},t.observe_=function(r,i){return Qo(this,r)},t.intercept_=function(r){return Go(this,r)},t.notifyPropertyAddition_=function(r,i){var o,s,l=Mt(this),a=!1;if(l||a){var u=l||a?{type:Dn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;l&&Lt(this,u)}(o=this.pendingKeys_)==null||(s=o.get(r))==null||s.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),di(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Xo(e,t){var n;if(an(e,H))return e;var r=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",i=new jm(e,new Map,String(r),Q_(t));return Bo(e,H,i),e}var Bx=Jn("ObservableObjectAdministration",jm);function Cp(e){return Sp[e]||(Sp[e]={get:function(){return this[H].getObservablePropValue_(e)},set:function(n){return this[H].setObservablePropValue_(e,n)}})}function gi(e){return sa(e)?Bx(e[H]):!1}function Ap(e,t,n){var r;(r=e.target_[Gt])==null||delete r[n]}var Ux=zm(0),Vx=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),ru=0,Fm=function(){};function Wx(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Wx(Fm,Array.prototype);var zf=function(e,t,n){Xg(r,e);function r(o,s,l,a){var u;return l===void 0&&(l="ObservableArray"),a===void 0&&(a=!1),u=e.call(this)||this,tr(function(){var c=new Ff(l,s,a,!0);c.proxy_=tu(u),Gg(tu(u),H,c),o&&o.length&&u.spliceWithArray(0,0,o),Vx&&Object.defineProperty(tu(u),"0",Ux)}),u}var i=r.prototype;return i.concat=function(){this[H].atom_.reportObserved();for(var s=arguments.length,l=new Array(s),a=0;a<s;a++)l[a]=arguments[a];return Array.prototype.concat.apply(this.slice(),l.map(function(u){return Yo(u)?u.slice():u}))},i[n]=function(){var o=this,s=0;return ko({next:function(){return s<o.length?{value:o[s++],done:!1}:{done:!0,value:void 0}}})},Tf(r,[{key:"length",get:function(){return this[H].getArrayLength_()},set:function(s){this[H].setArrayLength_(s)}},{key:t,get:function(){return"Array"}}]),r}(Fm,Symbol.toStringTag,Symbol.iterator);Object.entries(Rl).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Bo(zf.prototype,t,n)});function zm(e){return{enumerable:!1,configurable:!0,get:function(){return this[H].get_(e)},set:function(n){this[H].set_(e,n)}}}function Hx(e){Xt(zf.prototype,""+e,zm(e))}function Bm(e){if(e>ru){for(var t=ru;t<e+100;t++)Hx(t);ru=e}}Bm(1e3);function Kx(e,t,n){return new zf(e,t,n)}function mi(e,t){if(typeof e=="object"&&e!==null){if(Yo(e))return t!==void 0&&ne(23),e[H].atom_;if(Ar(e))return e.atom_;if(er(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||ne(25,t,vc(e)),n}if(gi(e)){if(!t)return ne(26);var r=e[H].values_.get(t);return r||ne(27,t,vc(e)),r}if($f(e)||Ko(e)||Tl(e))return e}else if(Ft(e)&&Tl(e[H]))return e[H];ne(28)}function Um(e,t){if(e||ne(29),t!==void 0)return Um(mi(e,t));if($f(e)||Ko(e)||Tl(e)||er(e)||Ar(e))return e;if(e[H])return e[H];ne(24,e)}function vc(e,t){var n;if(t!==void 0)n=mi(e,t);else{if(Mf(e))return e.name;gi(e)||er(e)||Ar(e)?n=Um(e):n=mi(e)}return n.name_}function tr(e){var t=Cr(),n=Nf(!0);xt();try{return e()}finally{bt(),Df(n),un(t)}}var Op=zo.toString;function Bf(e,t,n){return n===void 0&&(n=-1),gc(e,t,n)}function gc(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=Op.call(e);if(s!==Op.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=Pp(e),t=Pp(t);var l=s==="[object Array]";if(!l){if(typeof e!="object"||typeof t!="object")return!1;var a=e.constructor,u=t.constructor;if(a!==u&&!(Ft(a)&&a instanceof a&&Ft(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var c=r.length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),l){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!gc(e[c],t[c],n-1,r,i))return!1}else{var f=Object.keys(e),d;if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(d=f[c],!(an(t,d)&&gc(e[d],t[d],n-1,r,i)))return!1}return r.pop(),i.pop(),!0}function Pp(e){return Yo(e)?e.slice():Si(e)||er(e)||Uo(e)||Ar(e)?Array.from(e.entries()):e}function ko(e){return e[Symbol.iterator]=Gx,e}function Gx(){return this}["Symbol","Map","Set"].forEach(function(e){var t=kf();typeof t[e]>"u"&&ne("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:dx,extras:{getDebugName:vc},$mobx:H});if(!v.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!ca)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Qx(e){e()}function Yx(e){e||(e=Qx),Cx({reactionScheduler:e})}function Xx(e){return Ax(e)}var Zx=1e4,Jx=1e4,qx=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=Zx),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,s){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Jx))}}),e}(),eb=typeof FinalizationRegistry<"u"?FinalizationRegistry:qx,mc=new eb(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),kp=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};function Tp(e){return"observer".concat(e)}var tb=function(){function e(){}return e}();function nb(){return new tb}function rb(e,t){t===void 0&&(t="observed");var n=kp(Ne.useState(nb),1),r=n[0],i=kp(Ne.useState(),2),o=i[1],s=function(){return o([])},l=Ne.useRef(null);l.current||(l.current={reaction:null,mounted:!1,changedBeforeMount:!1});var a=l.current;a.reaction||(a.reaction=new Ao(Tp(t),function(){a.mounted?s():a.changedBeforeMount=!0}),mc.register(r,a,a)),Ne.useDebugValue(a.reaction,Xx),Ne.useEffect(function(){return mc.unregister(a),a.mounted=!0,a.reaction?a.changedBeforeMount&&(a.changedBeforeMount=!1,s()):(a.reaction=new Ao(Tp(t),function(){s()}),s()),function(){a.reaction.dispose(),a.reaction=null,a.mounted=!1,a.changedBeforeMount=!1}},[]);var u,c;if(a.reaction.track(function(){try{u=e()}catch(f){c=f}}),c)throw c;return u}var Vm=typeof Symbol=="function"&&Symbol.for,$p=Vm?Symbol.for("react.forward_ref"):typeof v.forwardRef=="function"&&v.forwardRef(function(e){return null}).$$typeof,Rp=Vm?Symbol.for("react.memo"):typeof v.memo=="function"&&v.memo(function(e){return null}).$$typeof;function st(e,t){var n;if(Rp&&e.$$typeof===Rp)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(n=t==null?void 0:t.forwardRef)!==null&&n!==void 0?n:!1,i=e,o=e.displayName||e.name;if($p&&e.$$typeof===$p&&(r=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(l,a){return rb(function(){return i(l,a)},o)};return o!==""&&(s.displayName=o),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=v.forwardRef(s)),s=v.memo(s),ob(e,s),s}var ib={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function ob(e,t){Object.keys(e).forEach(function(n){ib[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}globalThis&&globalThis.__read;var iu;Yx(Zn.unstable_batchedUpdates);iu=mc.finalizeAllImmediately;const sb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw1AUhU9TpSoVB4uIiGSoTnZREcdahSJUCLVCqw4mL/0RmjQkKS6OgmvBwZ/FqoOLs64OroIg+APi6uKk6CIl3pcUWsT44PI+znvncN99gFAvM83qiAOabpvpZELM5lbE0Cu6MUI1gJDMLGNWklLwXV/3CPD9Lsaz/O/9uXrVvMWAgEgcZ4ZpE68TT2/aBud94ggrySrxOfG4SQ0SP3Jd8fiNc9FlgWdGzEx6jjhCLBbbWGljVjI14iniqKrplC9kPVY5b3HWylXW7JO/MJzXl5e4TjWMJBawCAkiFFSxgTJsxGjXSbGQpvOEj3/I9UvkUsi1AUaOeVSgQXb94H/we7ZWYXLCSwongM4Xx/kYBUK7QKPmON/HjtM4AYLPwJXe8lfqwMwn6bWWFj0C+raBi+uWpuwBlzvA4JMhm7IrBamEQgF4P6NvygH9t0DPqje35jlOH4AMzSp1AxwcAmNFyl7zeXdX+9z+vdOc3w9cCXKdY3hzngAAAAZiS0dEADsAggD2md2qLwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+cJHgkjNZ2IS4oAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAFjklEQVR42u3cT2wUVQDH8d+8ndl2tyt2gQoUliLQtIAKAkEMLSHCyYgSDAk9mNiTUTyo4abGiIkXEhPxTyKayL9IjEYlmpAGDWJBDKRx0dLQlAKtWAultGxpu92Z954HTmhLZ7YlzM78vtfuNtt9n33zZjpvjTU7hjRYaBN8CwiAEQAjAEYAjAAYATACYATACIARACMARgCMABgBMAJggcucyJPf3Whi7TJrQi9AKg0pAcfRGMwCg8MaPf0aXb0KZzo0jnYo2IoD5UsAk1FEGIgIIGoZiMeAsiQwr/zWz56pBbZnFc5dUjiSlvi+jRICB2C84sUCy6sFllebqOuW2PuTg4YLhBDKNcDcmRG8XhfFjidNRAwOXigXgUIYeGKFhY/qLFhcwob3LOChBSZ2brY4gmE+DVy5yMRLqyMcxTBfB9hUY2JeggsC358F/H1Vom/g9j0owgCKowZKYsC0UgEzj5VdPCZQXxvBW4cdjqafATT+KfHhr3LMnydMYNMSgQ2PmliY8jatP7Y4AqvB4QWjQj4E3HSAA2cUnt+Tw/6GHBzpfsdaIi7wdBVPCQKzBvjklMQ3x2xPz1n6IAH4+hDgtV0nJGofkZg13d3hIFU2PoBdWywsr3b3J7+2O4tTV7zvm50VA77aHnP12LZOifq9Oc4AY9XUKl0/NnkfzwQCByB9yf0nMF7MwQwcgK4b7gGYJmeAwAHIeji1V4rfcxE4AOX3u39szuZgBg5A9Sz3Ly8zyBkgcABWVLp/eVf7CCBQAJ5aKFBV4f6ScPs/vA4cGAA1sw28uNGCEO5W9lpr/NhCAPnkqyuBCRN4eW0EG1aaKC5yb/PyVYWz13kIKCgAUyxgZtzA3FKgqlygOiVQVSEQL/Y+Kf2clhxJvwPYuj6Kresn//f29ivsbyKAQJ4FuOmLozaGOP7hBNCYtvFlMxd/oQTQ3O7gjR94G1goATSmbWw7aENy4R+s08DxujGgcPCojQNnOO2HCkDmpsLJsxIfH3PQO+Lv12oV2J413wLoyyhc6FL4vV3iYFphpEA+9KVFnAFGbbR9AUoBOQfIORrZEaAno3G5V6OlW6O1vzAP8AkCGGPhNs6+gKA0vcB2KfFe6rHKcxxT0wggECWi+T1vZpIAAlGyJL+BnF8uCMCvaQ/ryooy7wCmRoHyMgLwbbaHS4eVs71/78BzqyKwTB4CfNuQh4tIlSkDZR42m8QjwLplZsG9J6ECcH3A/QxQXCTwygb3A/r2RhNlSUEAfq6929vFpdqlJl6tvfOhYEYMeH+LhccfLszvKzLDBOBEh4LjaNfbyIQw8Oy6KFYtUjh9zsH5bo0bwxpTSww8MMXAknkC1XnexkYA9+IQkAM6uhUWzPG2wEvNEEjNiAbyPQnddYDjzbx/LNQA9jVJXOu7u/9azNxUBbNZNXQARhSw54gNeZcGKDOosO2zHLp6FAH4te9aFQ412tB6chFkRxQ+OGTj4oBG618E4Ove+0ViX4ON7CTdadI/oLDzaxuH22/9vtNtBOD7Pj0tsf3zHNo6Zd6zge1o/NZs44XdI7d9jX3DBYXhrP8RmAh56R6N+r051Mw2sHm1ico5Askpd/5cSKXR3avwx3mFb5skWkbZmm4r4GKXwuL5/v6MGWt2DPHm6v+0OGlgZYWB0hIDiZiBIguwHSAzpNF5TeNkp8KV4WD8rSaH+/+19OlRP9W8DsAIgBEAIwBGAIwAGAEwAmAEwAiAEQAjAEYAjAAYATACYATACIARACMARgCMABgBMAJgBMAIgBEAIwBGAIwAGAGwexS/H2ACHX8zxhmAEQAjAEYAjAAYATACYATACIARACuAeCl4AtW8M8wZgBEAIwBGAIwAGAEwAmAEwAiAEQAjAEYAjAAYATACYH7sX+VXpk3NRQ0eAAAAAElFTkSuQmCC",Ge=({name:e,size:t,className:n,onClick:r,...i})=>b.jsx("span",{className:"material-symbols-rounded "+(n??""),style:{fontSize:t??void 0},onClick:r,...i,children:e});function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}function lb(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Wm(...e){return t=>e.forEach(n=>lb(n,t))}function Ce(...e){return v.useCallback(Wm(...e),e)}const _r=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),o=i.find(ub);if(o){const s=o.props.children,l=i.map(a=>a===o?v.Children.count(s)>1?v.Children.only(null):v.isValidElement(s)?s.props.children:null:a);return v.createElement(yc,Y({},r,{ref:t}),v.isValidElement(s)?v.cloneElement(s,void 0,l):null)}return v.createElement(yc,Y({},r,{ref:t}),n)});_r.displayName="Slot";const yc=v.forwardRef((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...cb(r,n.props),ref:t?Wm(t,n.ref):n.ref}):v.Children.count(n)>1?v.Children.only(null):null});yc.displayName="SlotClone";const ab=({children:e})=>v.createElement(v.Fragment,null,e);function ub(e){return v.isValidElement(e)&&e.type===ab}function cb(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{o(...l),i(...l)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Hm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Hm(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Km(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Hm(e))&&(r&&(r+=" "),r+=t);return r}const Np=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Dp=Km,fb=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Dp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const d=Np(c)||Np(f);return i[u][d]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...p}=c;return Object.entries(p).every(y=>{let[m,_]=y;return Array.isArray(_)?_.includes({...o,...l}[m]):{...o,...l}[m]===_})?[...u,f,d]:u},[]);return Dp(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)},Uf="-";function db(e){const t=hb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(s){const l=s.split(Uf);return l[0]===""&&l.length!==1&&l.shift(),Gm(l,t)||pb(s)}function o(s,l){const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}return{getClassGroupId:i,getConflictingClassGroupIds:o}}function Gm(e,t){var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Gm(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Uf);return(s=t.validators.find(({validator:l})=>l(o)))==null?void 0:s.classGroupId}const Ip=/^\[(.+)\]$/;function pb(e){if(Ip.test(e)){const t=Ip.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function hb(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return gb(Object.entries(e.classGroups),n).forEach(([o,s])=>{wc(s,r,o,t)}),r}function wc(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Mp(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(vb(i)){wc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{wc(s,Mp(t,o),n,r)})})}function Mp(e,t){let n=e;return t.split(Uf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function vb(e){return e.isThemeGetter}function gb(e,t){return t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,l])=>[t+s,l])):o);return[n,i]}):e}function mb(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(o,s){n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}}const Qm="!";function yb(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(s){const l=[];let a=0,u=0,c;for(let m=0;m<s.length;m++){let _=s[m];if(a===0){if(_===r&&(n||s.slice(m,m+i)===t)){l.push(s.slice(u,m)),u=m+i;continue}if(_==="/"){c=m;continue}}_==="["?a++:_==="]"&&a--}const f=l.length===0?s:s.substring(u),d=f.startsWith(Qm),p=d?f.substring(1):f,y=c&&c>u?c-u:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:y}}}function wb(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function _b(e){return{cache:mb(e.cacheSize),splitModifiers:yb(e),...db(e)}}const xb=/\s+/;function bb(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(xb).map(s=>{const{modifiers:l,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:c}=n(s);let f=r(c?u.substring(0,c):u),d=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:s};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:s};d=!1}const p=wb(l).join(":");return{isTailwindClass:!0,modifierId:a?p+Qm:p,classGroupId:f,originalClassName:s,hasPostfixModifier:d}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:l,classGroupId:a,hasPostfixModifier:u}=s,c=l+a;return o.has(c)?!1:(o.add(c),i(a,u).forEach(f=>o.add(l+f)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function Sb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ym(t))&&(r&&(r+=" "),r+=n);return r}function Ym(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ym(e[r]))&&(n&&(n+=" "),n+=t);return n}function Eb(e,...t){let n,r,i,o=s;function s(a){const u=t.reduce((c,f)=>f(c),e());return n=_b(u),r=n.cache.get,i=n.cache.set,o=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=bb(a,n);return i(a,c),c}return function(){return o(Sb.apply(null,arguments))}}function ce(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Xm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cb=/^\d+\/\d+$/,Ab=new Set(["px","full","screen"]),Ob=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kb=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Tt(e){return ur(e)||Ab.has(e)||Cb.test(e)}function Cn(e){return Ei(e,"length",jb)}function ur(e){return!!e&&!Number.isNaN(Number(e))}function Es(e){return Ei(e,"number",ur)}function zi(e){return!!e&&Number.isInteger(Number(e))}function $b(e){return e.endsWith("%")&&ur(e.slice(0,-1))}function Q(e){return Xm.test(e)}function An(e){return Ob.test(e)}const Rb=new Set(["length","size","percentage"]);function Nb(e){return Ei(e,Rb,Zm)}function Db(e){return Ei(e,"position",Zm)}const Ib=new Set(["image","url"]);function Mb(e){return Ei(e,Ib,zb)}function Lb(e){return Ei(e,"",Fb)}function Bi(){return!0}function Ei(e,t,n){const r=Xm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function jb(e){return Pb.test(e)}function Zm(){return!1}function Fb(e){return kb.test(e)}function zb(e){return Tb.test(e)}function Bb(){const e=ce("colors"),t=ce("spacing"),n=ce("blur"),r=ce("brightness"),i=ce("borderColor"),o=ce("borderRadius"),s=ce("borderSpacing"),l=ce("borderWidth"),a=ce("contrast"),u=ce("grayscale"),c=ce("hueRotate"),f=ce("invert"),d=ce("gap"),p=ce("gradientColorStops"),y=ce("gradientColorStopPositions"),m=ce("inset"),_=ce("margin"),g=ce("opacity"),h=ce("padding"),w=ce("saturate"),x=ce("scale"),S=ce("sepia"),E=ce("skew"),C=ce("space"),A=ce("translate"),k=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",Q,t],R=()=>[Q,t],W=()=>["",Tt,Cn],L=()=>["auto",ur,Q],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],T=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",Q],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[ur,Es],ee=()=>[ur,Q];return{cacheSize:500,separator:":",theme:{colors:[Bi],spacing:[Tt,Cn],blur:["none","",An,Q],brightness:K(),borderColor:[e],borderRadius:["none","","full",An,Q],borderSpacing:R(),borderWidth:W(),contrast:K(),grayscale:M(),hueRotate:ee(),invert:M(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[$b,Cn],inset:N(),margin:N(),opacity:K(),padding:R(),saturate:K(),scale:K(),sepia:M(),skew:ee(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[An]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),Q]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zi,Q]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",zi,Q]}],"grid-cols":[{"grid-cols":[Bi]}],"col-start-end":[{col:["auto",{span:["full",zi,Q]},Q]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Bi]}],"row-start-end":[{row:["auto",{span:[zi,Q]},Q]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Q,t]}],"min-w":[{"min-w":["min","max","fit",Q,Tt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[An]},An,Q]}],h:[{h:[Q,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Tt,Q]}],"max-h":[{"max-h":[Q,t,"min","max","fit"]}],"font-size":[{text:["base",An,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Es]}],"font-family":[{font:[Bi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",ur,Es]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tt,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tt,Cn]}],"underline-offset":[{"underline-offset":["auto",Tt,Q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),Db]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[Tt,Q]}],"outline-w":[{outline:[Tt,Cn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Tt,Cn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",An,Lb]}],"shadow-color":[{shadow:[Bi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":X()}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",An,Q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Q]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[zi,Q]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tt,Cn,Es]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Ub=Eb(Bb);function pt(...e){return Ub(Km(e))}const Vb=fb("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-black hover:bg-primary-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-lighter hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"rounded px-4 py-2",xs:"h-8 rounded px-2",sm:"h-9 rounded px-3",lg:"h-11 rounded px-8",toggle:"h-6 px-2",icon:"h-10 rounded-md w-10","icon-xs":"h-8 rounded-md w-8 px-2"}},defaultVariants:{variant:"default",size:"default"}}),xr=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,active:i=!1,...o},s)=>{const l=r?_r:"button";return t==="outline"&&i&&(t="default"),b.jsx(l,{className:pt(Vb({variant:t,size:n,className:e})),ref:s,...o})});xr.displayName="Button";const Ot=v.createContext(void 0);function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Zo(e,t=[]){let n=[];function r(o,s){const l=v.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:d,children:p,...y}=f,m=(d==null?void 0:d[e][a])||l,_=v.useMemo(()=>y,Object.values(y));return v.createElement(m.Provider,{value:_},p)}function c(f,d){const p=(d==null?void 0:d[e][a])||l,y=v.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=n.map(s=>v.createContext(s));return function(l){const a=(l==null?void 0:l[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return i.scopeName=e,[r,Wb(i,...t)]}function Wb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(o)[`__scope${u}`];return{...l,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const Hb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=Hb.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:o,...s}=r,l=o?_r:t;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(l,Y({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Kb(e,t){e&&Zn.flushSync(()=>e.dispatchEvent(t))}function gn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Gb(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const _c="dismissableLayer.update",Qb="dismissableLayer.pointerDownOutside",Yb="dismissableLayer.focusOutside";let Lp;const Xb=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jm=v.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:a,...u}=e,c=v.useContext(Xb),[f,d]=v.useState(null),p=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=v.useState({}),m=Ce(t,A=>d(A)),_=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),h=_.indexOf(g),w=f?_.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=h,E=Zb(A=>{const k=A.target,P=[...c.branches].some(N=>N.contains(k));!S||P||(o==null||o(A),l==null||l(A),A.defaultPrevented||a==null||a())},p),C=Jb(A=>{const k=A.target;[...c.branches].some(N=>N.contains(k))||(s==null||s(A),l==null||l(A),A.defaultPrevented||a==null||a())},p);return Gb(A=>{w===c.layers.size-1&&(i==null||i(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},p),v.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Lp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),jp(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Lp)}},[f,p,r,c]),v.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),jp())},[f,c]),v.useEffect(()=>{const A=()=>y({});return document.addEventListener(_c,A),()=>document.removeEventListener(_c,A)},[]),v.createElement(Ae.div,Y({},u,{ref:m,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,E.onPointerDownCapture)}))});function Zb(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let c=function(){qm(Qb,n,u,{discrete:!0})};var a=c;const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Jb(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&qm(Yb,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jp(){const e=new CustomEvent(_c);document.dispatchEvent(e)}function qm(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Kb(i,o):i.dispatchEvent(o)}let ou=0;function e0(){v.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Fp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Fp()),ou++,()=>{ou===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ou--}},[])}function Fp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const su="focusScope.autoFocusOnMount",lu="focusScope.autoFocusOnUnmount",zp={bubbles:!1,cancelable:!0},t0=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,a]=v.useState(null),u=gn(i),c=gn(o),f=v.useRef(null),d=Ce(t,m=>a(m)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let h=function(E){if(p.paused||!l)return;const C=E.target;l.contains(C)?f.current=C:On(f.current,{select:!0})},w=function(E){if(p.paused||!l)return;const C=E.relatedTarget;C!==null&&(l.contains(C)||On(f.current,{select:!0}))},x=function(E){if(document.activeElement===document.body)for(const A of E)A.removedNodes.length>0&&On(l)};var m=h,_=w,g=x;document.addEventListener("focusin",h),document.addEventListener("focusout",w);const S=new MutationObserver(x);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),S.disconnect()}}},[r,l,p.paused]),v.useEffect(()=>{if(l){Up.add(p);const m=document.activeElement;if(!l.contains(m)){const g=new CustomEvent(su,zp);l.addEventListener(su,u),l.dispatchEvent(g),g.defaultPrevented||(qb(iS(n0(l)),{select:!0}),document.activeElement===m&&On(l))}return()=>{l.removeEventListener(su,u),setTimeout(()=>{const g=new CustomEvent(lu,zp);l.addEventListener(lu,c),l.dispatchEvent(g),g.defaultPrevented||On(m??document.body,{select:!0}),l.removeEventListener(lu,c),Up.remove(p)},0)}}},[l,u,c,p]);const y=v.useCallback(m=>{if(!n&&!r||p.paused)return;const _=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(_&&g){const h=m.currentTarget,[w,x]=eS(h);w&&x?!m.shiftKey&&g===x?(m.preventDefault(),n&&On(w,{select:!0})):m.shiftKey&&g===w&&(m.preventDefault(),n&&On(x,{select:!0})):g===h&&m.preventDefault()}},[n,r,p.paused]);return v.createElement(Ae.div,Y({tabIndex:-1},s,{ref:d,onKeyDown:y}))});function qb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(On(r,{select:t}),document.activeElement!==n)return}function eS(e){const t=n0(e),n=Bp(t,e),r=Bp(t.reverse(),e);return[n,r]}function n0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bp(e,t){for(const n of e)if(!tS(n,{upTo:t}))return n}function tS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function nS(e){return e instanceof HTMLInputElement&&"select"in e}function On(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&nS(e)&&t&&e.select()}}const Up=rS();function rS(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vp(e,t),e.unshift(t)},remove(t){var n;e=Vp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Vp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function iS(e){return e.filter(t=>t.tagName!=="A")}const ot=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},oS=Zy["useId".toString()]||(()=>{});let sS=0;function Vf(e){const[t,n]=v.useState(oS());return ot(()=>{e||n(r=>r??String(sS++))},[e]),e||(t?`radix-${t}`:"")}const lS=["top","right","bottom","left"],Hn=Math.min,at=Math.max,Dl=Math.round,Cs=Math.floor,Kn=e=>({x:e,y:e}),aS={left:"right",right:"left",bottom:"top",top:"bottom"},uS={start:"end",end:"start"};function xc(e,t,n){return at(e,Hn(t,n))}function mn(e,t){return typeof e=="function"?e(t):e}function yn(e){return e.split("-")[0]}function Ci(e){return e.split("-")[1]}function Wf(e){return e==="x"?"y":"x"}function Hf(e){return e==="y"?"height":"width"}function Ai(e){return["top","bottom"].includes(yn(e))?"y":"x"}function Kf(e){return Wf(Ai(e))}function cS(e,t,n){n===void 0&&(n=!1);const r=Ci(e),i=Kf(e),o=Hf(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Il(s)),[s,Il(s)]}function fS(e){const t=Il(e);return[bc(e),t,bc(t)]}function bc(e){return e.replace(/start|end/g,t=>uS[t])}function dS(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function pS(e,t,n,r){const i=Ci(e);let o=dS(yn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(bc)))),o}function Il(e){return e.replace(/left|right|bottom|top/g,t=>aS[t])}function hS(e){return{top:0,right:0,bottom:0,left:0,...e}}function r0(e){return typeof e!="number"?hS(e):{top:e,right:e,bottom:e,left:e}}function Ml(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Wp(e,t,n){let{reference:r,floating:i}=e;const o=Ai(t),s=Kf(t),l=Hf(s),a=yn(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let p;switch(a){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ci(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const vS=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=Wp(u,r,a),d=r,p={},y=0;for(let m=0;m<l.length;m++){const{name:_,fn:g}=l[m],{x:h,y:w,data:x,reset:S}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});if(c=h??c,f=w??f,p={...p,[_]:{...p[_],...x}},S&&y<=50){y++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:c,y:f}=Wp(u,d,a)),m=-1;continue}}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function To(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=mn(t,e),y=r0(p),_=l[d?f==="floating"?"reference":"floating":f],g=Ml(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),h=f==="floating"?{...s.floating,x:r,y:i}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),x=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Ml(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:h,offsetParent:w,strategy:a}):h);return{top:(g.top-S.top+y.top)/x.y,bottom:(S.bottom-g.bottom+y.bottom)/x.y,left:(g.left-S.left+y.left)/x.x,right:(S.right-g.right+y.right)/x.x}}const Hp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=mn(e,t)||{};if(u==null)return{};const f=r0(c),d={x:n,y:r},p=Kf(i),y=Hf(p),m=await s.getDimensions(u),_=p==="y",g=_?"top":"left",h=_?"bottom":"right",w=_?"clientHeight":"clientWidth",x=o.reference[y]+o.reference[p]-d[p]-o.floating[y],S=d[p]-o.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=E?E[w]:0;(!C||!await(s.isElement==null?void 0:s.isElement(E)))&&(C=l.floating[w]||o.floating[y]);const A=x/2-S/2,k=C/2-m[y]/2-1,P=Hn(f[g],k),N=Hn(f[h],k),R=P,W=C-m[y]-N,L=C/2-m[y]/2+A,B=xc(R,L,W),z=!a.arrow&&Ci(i)!=null&&L!=B&&o.reference[y]/2-(L<R?P:N)-m[y]/2<0,X=z?L<R?L-R:L-W:0;return{[p]:d[p]+X,data:{[p]:B,centerOffset:L-B-X,...z&&{alignmentOffset:X}},reset:z}}}),gS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,..._}=mn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=yn(i),h=yn(l)===l,w=await(a.isRTL==null?void 0:a.isRTL(u.floating)),x=d||(h||!m?[Il(l)]:fS(l));!d&&y!=="none"&&x.push(...pS(l,m,y,w));const S=[l,...x],E=await To(t,_),C=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&C.push(E[g]),f){const R=cS(i,s,w);C.push(E[R[0]],E[R[1]])}if(A=[...A,{placement:i,overflows:C}],!C.every(R=>R<=0)){var k,P;const R=(((k=o.flip)==null?void 0:k.index)||0)+1,W=S[R];if(W)return{data:{index:R,overflows:A},reset:{placement:W}};let L=(P=A.filter(B=>B.overflows[0]<=0).sort((B,z)=>B.overflows[1]-z.overflows[1])[0])==null?void 0:P.placement;if(!L)switch(p){case"bestFit":{var N;const B=(N=A.map(z=>[z.placement,z.overflows.filter(X=>X>0).reduce((X,T)=>X+T,0)]).sort((z,X)=>z[1]-X[1])[0])==null?void 0:N[0];B&&(L=B);break}case"initialPlacement":L=l;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function Kp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gp(e){return lS.some(t=>e[t]>=0)}const mS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=mn(e,t);switch(r){case"referenceHidden":{const o=await To(t,{...i,elementContext:"reference"}),s=Kp(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Gp(s)}}}case"escaped":{const o=await To(t,{...i,altBoundary:!0}),s=Kp(o,n.floating);return{data:{escapedOffsets:s,escaped:Gp(s)}}}default:return{}}}}};async function yS(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=yn(n),l=Ci(n),a=Ai(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&a?-1:1,f=mn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),a?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const wS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await yS(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},_S=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:_=>{let{x:g,y:h}=_;return{x:g,y:h}}},...a}=mn(e,t),u={x:n,y:r},c=await To(t,a),f=Ai(yn(i)),d=Wf(f);let p=u[d],y=u[f];if(o){const _=d==="y"?"top":"left",g=d==="y"?"bottom":"right",h=p+c[_],w=p-c[g];p=xc(h,p,w)}if(s){const _=f==="y"?"top":"left",g=f==="y"?"bottom":"right",h=y+c[_],w=y-c[g];y=xc(h,y,w)}const m=l.fn({...t,[d]:p,[f]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}},xS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=mn(e,t),c={x:n,y:r},f=Ai(i),d=Wf(f);let p=c[d],y=c[f];const m=mn(l,t),_=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const w=d==="y"?"height":"width",x=o.reference[d]-o.floating[w]+_.mainAxis,S=o.reference[d]+o.reference[w]-_.mainAxis;p<x?p=x:p>S&&(p=S)}if(u){var g,h;const w=d==="y"?"width":"height",x=["top","left"].includes(yn(i)),S=o.reference[f]-o.floating[w]+(x&&((g=s.offset)==null?void 0:g[f])||0)+(x?0:_.crossAxis),E=o.reference[f]+o.reference[w]+(x?0:((h=s.offset)==null?void 0:h[f])||0)-(x?_.crossAxis:0);y<S?y=S:y>E&&(y=E)}return{[d]:p,[f]:y}}}},bS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...l}=mn(e,t),a=await To(t,l),u=yn(n),c=Ci(n),f=Ai(n)==="y",{width:d,height:p}=r.floating;let y,m;u==="top"||u==="bottom"?(y=u,m=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=u,y=c==="end"?"top":"bottom");const _=p-a[y],g=d-a[m],h=!t.middlewareData.shift;let w=_,x=g;if(f){const E=d-a.left-a.right;x=c||h?Hn(g,E):E}else{const E=p-a.top-a.bottom;w=c||h?Hn(_,E):E}if(h&&!c){const E=at(a.left,0),C=at(a.right,0),A=at(a.top,0),k=at(a.bottom,0);f?x=d-2*(E!==0||C!==0?E+C:at(a.left,a.right)):w=p-2*(A!==0||k!==0?A+k:at(a.top,a.bottom))}await s({...t,availableWidth:x,availableHeight:w});const S=await i.getDimensions(o.floating);return d!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Gn(e){return i0(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(i0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function i0(e){return e instanceof Node||e instanceof ft(e).Node}function wn(e){return e instanceof Element||e instanceof ft(e).Element}function qt(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function Qp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Jo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function SS(e){return["table","td","th"].includes(Gn(e))}function Gf(e){const t=Qf(),n=At(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ES(e){let t=yi(e);for(;qt(t)&&!fa(t);){if(Gf(t))return t;t=yi(t)}return null}function Qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fa(e){return["html","body","#document"].includes(Gn(e))}function At(e){return ft(e).getComputedStyle(e)}function da(e){return wn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function yi(e){if(Gn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qp(e)&&e.host||bn(e);return Qp(t)?t.host:t}function o0(e){const t=yi(e);return fa(t)?e.ownerDocument?e.ownerDocument.body:e.body:qt(t)&&Jo(t)?t:o0(t)}function $o(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=o0(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=ft(i);return o?t.concat(s,s.visualViewport||[],Jo(i)?i:[],s.frameElement&&n?$o(s.frameElement):[]):t.concat(i,$o(i,[],n))}function s0(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=qt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=Dl(n)!==o||Dl(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function Yf(e){return wn(e)?e:e.contextElement}function ri(e){const t=Yf(e);if(!qt(t))return Kn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=s0(t);let s=(o?Dl(n.width):n.width)/r,l=(o?Dl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const CS=Kn(0);function l0(e){const t=ft(e);return!Qf()||!t.visualViewport?CS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ft(e)?!1:t}function br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Yf(e);let s=Kn(1);t&&(r?wn(r)&&(s=ri(r)):s=ri(e));const l=AS(o,n,r)?l0(o):Kn(0);let a=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=ft(o),p=r&&wn(r)?ft(r):r;let y=d.frameElement;for(;y&&r&&p!==d;){const m=ri(y),_=y.getBoundingClientRect(),g=At(y),h=_.left+(y.clientLeft+parseFloat(g.paddingLeft))*m.x,w=_.top+(y.clientTop+parseFloat(g.paddingTop))*m.y;a*=m.x,u*=m.y,c*=m.x,f*=m.y,a+=h,u+=w,y=ft(y).frameElement}}return Ml({width:c,height:f,x:a,y:u})}function OS(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=qt(n),o=bn(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},l=Kn(1);const a=Kn(0);if((i||!i&&r!=="fixed")&&((Gn(n)!=="body"||Jo(o))&&(s=da(n)),qt(n))){const u=br(n);l=ri(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+a.x,y:t.y*l.y-s.scrollTop*l.y+a.y}}function PS(e){return Array.from(e.getClientRects())}function a0(e){return br(bn(e)).left+da(e).scrollLeft}function kS(e){const t=bn(e),n=da(e),r=e.ownerDocument.body,i=at(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=at(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+a0(e);const l=-n.scrollTop;return At(r).direction==="rtl"&&(s+=at(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function TS(e,t){const n=ft(e),r=bn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=Qf();(!u||u&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function $S(e,t){const n=br(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=qt(e)?ri(e):Kn(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,u=r*o.y;return{width:s,height:l,x:a,y:u}}function Yp(e,t,n){let r;if(t==="viewport")r=TS(e,n);else if(t==="document")r=kS(bn(e));else if(wn(t))r=$S(t,n);else{const i=l0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ml(r)}function u0(e,t){const n=yi(e);return n===t||!wn(n)||fa(n)?!1:At(n).position==="fixed"||u0(n,t)}function RS(e,t){const n=t.get(e);if(n)return n;let r=$o(e,[],!1).filter(l=>wn(l)&&Gn(l)!=="body"),i=null;const o=At(e).position==="fixed";let s=o?yi(e):e;for(;wn(s)&&!fa(s);){const l=At(s),a=Gf(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Jo(s)&&!a&&u0(e,s))?r=r.filter(c=>c!==s):i=l,s=yi(s)}return t.set(e,r),r}function NS(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?RS(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=Yp(t,c,i);return u.top=at(f.top,u.top),u.right=Hn(f.right,u.right),u.bottom=Hn(f.bottom,u.bottom),u.left=at(f.left,u.left),u},Yp(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function DS(e){return s0(e)}function IS(e,t,n){const r=qt(t),i=bn(t),o=n==="fixed",s=br(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=Kn(0);if(r||!r&&!o)if((Gn(t)!=="body"||Jo(i))&&(l=da(t)),r){const u=br(t,!0,o,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else i&&(a.x=a0(i));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Xp(e,t){return!qt(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function c0(e,t){const n=ft(e);if(!qt(e))return n;let r=Xp(e,t);for(;r&&SS(r)&&At(r).position==="static";)r=Xp(r,t);return r&&(Gn(r)==="html"||Gn(r)==="body"&&At(r).position==="static"&&!Gf(r))?n:r||ES(e)||n}const MS=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||c0,o=this.getDimensions;return{reference:IS(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}};function LS(e){return At(e).direction==="rtl"}const jS={convertOffsetParentRelativeRectToViewportRelativeRect:OS,getDocumentElement:bn,getClippingRect:NS,getOffsetParent:c0,getElementRects:MS,getClientRects:PS,getDimensions:DS,getScale:ri,isElement:wn,isRTL:LS};function FS(e,t){let n=null,r;const i=bn(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;const p=Cs(c),y=Cs(i.clientWidth-(u+f)),m=Cs(i.clientHeight-(c+d)),_=Cs(u),h={rootMargin:-p+"px "+-y+"px "+-m+"px "+-_+"px",threshold:at(0,Hn(1,a))||1};let w=!0;function x(S){const E=S[0].intersectionRatio;if(E!==a){if(!w)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(x,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,h)}n.observe(e)}return s(!0),o}function zS(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Yf(e),c=i||o?[...u?$o(u):[],...$o(t)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const f=u&&l?FS(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(g=>{let[h]=g;h&&h.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let y,m=a?br(e):null;a&&_();function _(){const g=br(e);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,y=requestAnimationFrame(_)}return n(),()=>{c.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f&&f(),p&&p.disconnect(),p=null,a&&cancelAnimationFrame(y)}}const BS=(e,t,n)=>{const r=new Map,i={platform:jS,...n},o={...i.platform,_c:r};return vS(e,t,{...i,platform:o})},US=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hp({element:r.current,padding:i}).fn(n):{}:r?Hp({element:r,padding:i}).fn(n):{}}}};var Xs=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Ll(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ll(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Ll(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function f0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zp(e,t){const n=f0(e);return Math.round(t*n)/n}function Jp(e){const t=v.useRef(e);return Xs(()=>{t.current=e}),t}function VS(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=v.useState(r);Ll(d,r)||p(r);const[y,m]=v.useState(null),[_,g]=v.useState(null),h=v.useCallback(z=>{z!=E.current&&(E.current=z,m(z))},[m]),w=v.useCallback(z=>{z!==C.current&&(C.current=z,g(z))},[g]),x=o||y,S=s||_,E=v.useRef(null),C=v.useRef(null),A=v.useRef(c),k=Jp(a),P=Jp(i),N=v.useCallback(()=>{if(!E.current||!C.current)return;const z={placement:t,strategy:n,middleware:d};P.current&&(z.platform=P.current),BS(E.current,C.current,z).then(X=>{const T={...X,isPositioned:!0};R.current&&!Ll(A.current,T)&&(A.current=T,Zn.flushSync(()=>{f(T)}))})},[d,t,n,P]);Xs(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(z=>({...z,isPositioned:!1})))},[u]);const R=v.useRef(!1);Xs(()=>(R.current=!0,()=>{R.current=!1}),[]),Xs(()=>{if(x&&(E.current=x),S&&(C.current=S),x&&S){if(k.current)return k.current(x,S,N);N()}},[x,S,N,k]);const W=v.useMemo(()=>({reference:E,floating:C,setReference:h,setFloating:w}),[h,w]),L=v.useMemo(()=>({reference:x,floating:S}),[x,S]),B=v.useMemo(()=>{const z={position:n,left:0,top:0};if(!L.floating)return z;const X=Zp(L.floating,c.x),T=Zp(L.floating,c.y);return l?{...z,transform:"translate("+X+"px, "+T+"px)",...f0(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:T}},[n,l,L.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:N,refs:W,elements:L,floatingStyles:B}),[c,N,W,L,B])}function d0(e){const[t,n]=v.useState(void 0);return ot(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,l;if("borderBoxSize"in o){const a=o.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const p0="Popper",[h0,pa]=Zo(p0),[WS,v0]=h0(p0),HS=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.useState(null);return v.createElement(WS,{scope:t,anchor:r,onAnchorChange:i},n)},KS="PopperAnchor",GS=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=v0(KS,n),s=v.useRef(null),l=Ce(t,s);return v.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:v.createElement(Ae.div,Y({},i,{ref:l}))}),g0="PopperContent",[QS,sO]=h0(g0),YS=v.forwardRef((e,t)=>{var n,r,i,o,s,l,a,u;const{__scopePopper:c,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:y=0,arrowPadding:m=0,avoidCollisions:_=!0,collisionBoundary:g=[],collisionPadding:h=0,sticky:w="partial",hideWhenDetached:x=!1,updatePositionStrategy:S="optimized",onPlaced:E,...C}=e,A=v0(g0,c),[k,P]=v.useState(null),N=Ce(t,Ze=>P(Ze)),[R,W]=v.useState(null),L=d0(R),B=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,z=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,X=f+(p!=="center"?"-"+p:""),T=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},M=Array.isArray(g)?g:[g],F=M.length>0,K={padding:T,boundary:M.filter(XS),altBoundary:F},{refs:ee,floatingStyles:Xe,placement:Oe,isPositioned:$e,middlewareData:ue}=VS({strategy:"fixed",placement:X,whileElementsMounted:(...Ze)=>zS(...Ze,{animationFrame:S==="always"}),elements:{reference:A.anchor},middleware:[wS({mainAxis:d+z,alignmentAxis:y}),_&&_S({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?xS():void 0,...K}),_&&gS({...K}),bS({...K,apply:({elements:Ze,rects:Sn,availableWidth:nr,availableHeight:xa})=>{const{width:es,height:ts}=Sn.reference,kr=Ze.floating.style;kr.setProperty("--radix-popper-available-width",`${nr}px`),kr.setProperty("--radix-popper-available-height",`${xa}px`),kr.setProperty("--radix-popper-anchor-width",`${es}px`),kr.setProperty("--radix-popper-anchor-height",`${ts}px`)}}),R&&US({element:R,padding:m}),ZS({arrowWidth:B,arrowHeight:z}),x&&mS({strategy:"referenceHidden",...K})]}),[j,oe]=m0(Oe),xe=gn(E);ot(()=>{$e&&(xe==null||xe())},[$e,xe]);const se=(i=ue.arrow)===null||i===void 0?void 0:i.x,re=(o=ue.arrow)===null||o===void 0?void 0:o.y,J=((s=ue.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Me,Re]=v.useState();return ot(()=>{k&&Re(window.getComputedStyle(k).zIndex)},[k]),v.createElement("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Xe,transform:$e?Xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[(l=ue.transformOrigin)===null||l===void 0?void 0:l.x,(a=ue.transformOrigin)===null||a===void 0?void 0:a.y].join(" ")},dir:e.dir},v.createElement(QS,{scope:c,placedSide:j,onArrowChange:W,arrowX:se,arrowY:re,shouldHideArrow:J},v.createElement(Ae.div,Y({"data-side":j,"data-align":oe},C,{ref:N,style:{...C.style,animation:$e?void 0:"none",opacity:(u=ue.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function XS(e){return e!==null}const ZS=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;const{placement:l,rects:a,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=f?0:e.arrowWidth,p=f?0:e.arrowHeight,[y,m]=m0(l),_={start:"0%",center:"50%",end:"100%"}[m],g=((r=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+d/2,h=((o=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+p/2;let w="",x="";return y==="bottom"?(w=f?_:`${g}px`,x=`${-p}px`):y==="top"?(w=f?_:`${g}px`,x=`${a.floating.height+p}px`):y==="right"?(w=`${-p}px`,x=f?_:`${h}px`):y==="left"&&(w=`${a.floating.width+p}px`,x=f?_:`${h}px`),{data:{x:w,y:x}}}});function m0(e){const[t,n="center"]=e.split("-");return[t,n]}const y0=HS,w0=GS,_0=YS,x0=v.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?l_.createPortal(v.createElement(Ae.div,Y({},i,{ref:t})),r):null});function JS(e,t){return v.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const ha=e=>{const{present:t,children:n}=e,r=qS(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=Ce(r.ref,i.ref);return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};ha.displayName="Presence";function qS(e){const[t,n]=v.useState(),r=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),s=e?"mounted":"unmounted",[l,a]=JS(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=As(r.current);o.current=l==="mounted"?u:"none"},[l]),ot(()=>{const u=r.current,c=i.current;if(c!==e){const d=o.current,p=As(u);e?a("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,a]),ot(()=>{if(t){const u=f=>{const p=As(r.current).includes(f.animationName);f.target===t&&p&&Zn.flushSync(()=>a("ANIMATION_END"))},c=f=>{f.target===t&&(o.current=As(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function As(e){return(e==null?void 0:e.animationName)||"none"}function jl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=eE({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,l=gn(n),a=v.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else i(u)},[o,e,i,l]);return[s,a]}function eE({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,i=v.useRef(r),o=gn(t);return v.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var tE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nr=new WeakMap,Os=new WeakMap,Ps={},au=0,b0=function(e){return e&&(e.host||b0(e.parentNode))},nE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=b0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rE=function(e,t,n,r){var i=nE(t,Array.isArray(e)?e:[e]);Ps[n]||(Ps[n]=new WeakMap);var o=Ps[n],s=[],l=new Set,a=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||a.has(f)||Array.prototype.forEach.call(f.children,function(d){if(l.has(d))c(d);else{var p=d.getAttribute(r),y=p!==null&&p!=="false",m=(Nr.get(d)||0)+1,_=(o.get(d)||0)+1;Nr.set(d,m),o.set(d,_),s.push(d),m===1&&y&&Os.set(d,!0),_===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}})};return c(t),l.clear(),au++,function(){s.forEach(function(f){var d=Nr.get(f)-1,p=o.get(f)-1;Nr.set(f,d),o.set(f,p),d||(Os.has(f)||f.removeAttribute(r),Os.delete(f)),p||f.removeAttribute(n)}),au--,au||(Nr=new WeakMap,Nr=new WeakMap,Os=new WeakMap,Ps={})}},S0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||tE(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),rE(r,i,n,"aria-hidden")):function(){return null}},Kt=function(){return Kt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Kt.apply(this,arguments)};function E0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Oi(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Pi(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function iE(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function oE(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(iE(arguments[t]));return e}function sE(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Zs="right-scroll-bar-position",Js="width-before-scroll-bar",lE="with-scroll-bars-hidden",aE="--removed-body-scroll-bar-size";function uE(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cE(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function fE(e,t){return cE(t||null,function(n){return e.forEach(function(r){return uE(r,n)})})}function dE(e){return e}function pE(e,t){t===void 0&&(t=dE);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(o),s=n}var a=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function hE(e){e===void 0&&(e={});var t=pE(null);return t.options=Kt({async:!0,ssr:!1},e),t}var C0=function(e){var t=e.sideCar,n=E0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Kt({},n))};C0.isSideCarExport=!0;function vE(e,t){return e.useMedium(t),C0}var A0=hE(),uu=function(){},va=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:uu,onWheelCapture:uu,onTouchMoveCapture:uu}),i=r[0],o=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,_=e.as,g=_===void 0?"div":_,h=E0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=d,x=fE([n,t]),S=Kt(Kt({},h),i);return v.createElement(v.Fragment,null,c&&v.createElement(w,{sideCar:A0,removeScrollBar:u,shards:f,noIsolation:p,inert:y,setCallbacks:o,allowPinchZoom:!!m,lockRef:n}),s?v.cloneElement(v.Children.only(l),Kt(Kt({},S),{ref:x})):v.createElement(g,Kt({},S,{className:a,ref:x}),l))});va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};va.classNames={fullWidth:Js,zeroRight:Zs};var qp,gE=function(){if(qp)return qp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gE();return t&&e.setAttribute("nonce",t),e}function yE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _E=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mE())&&(yE(t,n),wE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xE=function(){var e=_E();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},O0=function(){var e=xE(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},bE={left:0,top:0,right:0,gap:0},cu=function(e){return parseInt(e||"",10)||0},SE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[cu(n),cu(r),cu(i)]},EE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bE;var t=SE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},CE=O0(),AE=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
42
|
-
.`.concat(lE,` {
|
|
43
|
-
overflow: hidden `).concat(r,`;
|
|
44
|
-
padding-right: `).concat(l,"px ").concat(r,`;
|
|
45
|
-
}
|
|
46
|
-
body {
|
|
47
|
-
overflow: hidden `).concat(r,`;
|
|
48
|
-
overscroll-behavior: contain;
|
|
49
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
50
|
-
padding-left: `.concat(i,`px;
|
|
51
|
-
padding-top: `).concat(o,`px;
|
|
52
|
-
padding-right: `).concat(s,`px;
|
|
53
|
-
margin-left:0;
|
|
54
|
-
margin-top:0;
|
|
55
|
-
margin-right: `).concat(l,"px ").concat(r,`;
|
|
56
|
-
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.`).concat(Zs,` {
|
|
60
|
-
right: `).concat(l,"px ").concat(r,`;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.`).concat(Js,` {
|
|
64
|
-
margin-right: `).concat(l,"px ").concat(r,`;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.`).concat(Zs," .").concat(Zs,` {
|
|
68
|
-
right: 0 `).concat(r,`;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.`).concat(Js," .").concat(Js,` {
|
|
72
|
-
margin-right: 0 `).concat(r,`;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
body {
|
|
76
|
-
`).concat(aE,": ").concat(l,`px;
|
|
77
|
-
}
|
|
78
|
-
`)},OE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=v.useMemo(function(){return EE(i)},[i]);return v.createElement(CE,{styles:AE(o,!t,i,n?"":"!important")})},Sc=!1;if(typeof window<"u")try{var ks=Object.defineProperty({},"passive",{get:function(){return Sc=!0,!0}});window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{Sc=!1}var Dr=Sc?{passive:!1}:!1,PE=function(e){return e.tagName==="TEXTAREA"},P0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!PE(e)&&n[t]==="visible")},kE=function(e){return P0(e,"overflowY")},TE=function(e){return P0(e,"overflowX")},eh=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=k0(e,n);if(r){var i=T0(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$E=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},RE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},k0=function(e,t){return e==="v"?kE(t):TE(t)},T0=function(e,t){return e==="v"?$E(t):RE(t)},NE=function(e,t){return e==="h"&&t==="rtl"?-1:1},DE=function(e,t,n,r,i){var o=NE(e,window.getComputedStyle(t).direction),s=o*r,l=n.target,a=t.contains(l),u=!1,c=s>0,f=0,d=0;do{var p=T0(e,l),y=p[0],m=p[1],_=p[2],g=m-_-o*y;(y||g)&&k0(e,l)&&(f+=g,d+=y),l=l.parentNode}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(c&&(i&&f===0||!i&&s>f)||!c&&(i&&d===0||!i&&-s>d))&&(u=!0),u},Ts=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},th=function(e){return[e.deltaX,e.deltaY]},nh=function(e){return e&&"current"in e?e.current:e},IE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ME=function(e){return`
|
|
79
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
80
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
81
|
-
`)},LE=0,Ir=[];function jE(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(LE++)[0],o=v.useState(function(){return O0()})[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=sE([e.lockRef.current],(e.shards||[]).map(nh),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=v.useCallback(function(m,_){if("touches"in m&&m.touches.length===2)return!s.current.allowPinchZoom;var g=Ts(m),h=n.current,w="deltaX"in m?m.deltaX:h[0]-g[0],x="deltaY"in m?m.deltaY:h[1]-g[1],S,E=m.target,C=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&C==="h"&&E.type==="range")return!1;var A=eh(C,E);if(!A)return!0;if(A?S=C:(S=C==="v"?"h":"v",A=eh(C,E)),!A)return!1;if(!r.current&&"changedTouches"in m&&(w||x)&&(r.current=S),!S)return!0;var k=r.current||S;return DE(k,_,m,k==="h"?w:x,!0)},[]),a=v.useCallback(function(m){var _=m;if(!(!Ir.length||Ir[Ir.length-1]!==o)){var g="deltaY"in _?th(_):Ts(_),h=t.current.filter(function(S){return S.name===_.type&&S.target===_.target&&IE(S.delta,g)})[0];if(h&&h.should){_.cancelable&&_.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(nh).filter(Boolean).filter(function(S){return S.contains(_.target)}),x=w.length>0?l(_,w[0]):!s.current.noIsolation;x&&_.cancelable&&_.preventDefault()}}},[]),u=v.useCallback(function(m,_,g,h){var w={name:m,delta:_,target:g,should:h};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),c=v.useCallback(function(m){n.current=Ts(m),r.current=void 0},[]),f=v.useCallback(function(m){u(m.type,th(m),m.target,l(m,e.lockRef.current))},[]),d=v.useCallback(function(m){u(m.type,Ts(m),m.target,l(m,e.lockRef.current))},[]);v.useEffect(function(){return Ir.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",a,Dr),document.addEventListener("touchmove",a,Dr),document.addEventListener("touchstart",c,Dr),function(){Ir=Ir.filter(function(m){return m!==o}),document.removeEventListener("wheel",a,Dr),document.removeEventListener("touchmove",a,Dr),document.removeEventListener("touchstart",c,Dr)}},[]);var p=e.removeScrollBar,y=e.inert;return v.createElement(v.Fragment,null,y?v.createElement(o,{styles:ME(i)}):null,p?v.createElement(OE,{gapMode:"margin"}):null)}const FE=vE(A0,jE);var $0=v.forwardRef(function(e,t){return v.createElement(va,Kt({},e,{ref:t,sideCar:FE}))});$0.classNames=va.classNames;const R0=$0,N0="Popover",[D0,lO]=Zo(N0,[pa]),Xf=pa(),[zE,ki]=D0(N0),BE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,l=Xf(t),a=v.useRef(null),[u,c]=v.useState(!1),[f=!1,d]=jl({prop:r,defaultProp:i,onChange:o});return v.createElement(y0,l,v.createElement(zE,{scope:t,contentId:Vf(),triggerRef:a,open:f,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:v.useCallback(()=>c(!0),[]),onCustomAnchorRemove:v.useCallback(()=>c(!1),[]),modal:s},n))},UE="PopoverTrigger",VE=v.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ki(UE,n),o=Xf(n),s=Ce(t,i.triggerRef),l=v.createElement(Ae.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":L0(i.open)},r,{ref:s,onClick:ve(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?l:v.createElement(w0,Y({asChild:!0},o),l)}),I0="PopoverPortal",[WE,HE]=D0(I0,{forceMount:void 0}),KE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=ki(I0,t);return v.createElement(WE,{scope:t,forceMount:n},v.createElement(ha,{present:n||o.open},v.createElement(x0,{asChild:!0,container:i},r)))},Ro="PopoverContent",GE=v.forwardRef((e,t)=>{const n=HE(Ro,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=ki(Ro,e.__scopePopover);return v.createElement(ha,{present:r||o.open},o.modal?v.createElement(QE,Y({},i,{ref:t})):v.createElement(YE,Y({},i,{ref:t})))}),QE=v.forwardRef((e,t)=>{const n=ki(Ro,e.__scopePopover),r=v.useRef(null),i=Ce(t,r),o=v.useRef(!1);return v.useEffect(()=>{const s=r.current;if(s)return S0(s)},[]),v.createElement(R0,{as:_r,allowPinchZoom:!0},v.createElement(M0,Y({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),o.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0,u=l.button===2||a;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:ve(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),YE=v.forwardRef((e,t)=>{const n=ki(Ro,e.__scopePopover),r=v.useRef(!1),i=v.useRef(!1);return v.createElement(M0,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,o),!o.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:o=>{var s,l;(s=e.onInteractOutside)===null||s===void 0||s.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}}))}),M0=v.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,...f}=e,d=ki(Ro,n),p=Xf(n);return e0(),v.createElement(t0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},v.createElement(Jm,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1)},v.createElement(_0,Y({"data-state":L0(d.open),role:"dialog",id:d.contentId},p,f,{ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function L0(e){return e?"open":"closed"}const XE=BE,ZE=VE,JE=KE,j0=GE,F0=XE,z0=ZE,Zf=v.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>b.jsx(JE,{children:b.jsx(j0,{ref:i,align:t,sideOffset:n,className:pt("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Zf.displayName=j0.displayName;function B0(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const U0="Checkbox",[qE,aO]=Zo(U0),[eC,tC]=qE(U0),nC=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:l,value:a="on",onCheckedChange:u,...c}=e,[f,d]=v.useState(null),p=Ce(t,w=>d(w)),y=v.useRef(!1),m=f?!!f.closest("form"):!0,[_=!1,g]=jl({prop:i,defaultProp:o,onChange:u}),h=v.useRef(_);return v.useEffect(()=>{const w=f==null?void 0:f.form;if(w){const x=()=>g(h.current);return w.addEventListener("reset",x),()=>w.removeEventListener("reset",x)}},[f,g]),v.createElement(eC,{scope:n,state:_,disabled:l},v.createElement(Ae.button,Y({type:"button",role:"checkbox","aria-checked":pr(_)?"mixed":_,"aria-required":s,"data-state":V0(_),"data-disabled":l?"":void 0,disabled:l,value:a},c,{ref:p,onKeyDown:ve(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:ve(e.onClick,w=>{g(x=>pr(x)?!0:!x),m&&(y.current=w.isPropagationStopped(),y.current||w.stopPropagation())})})),m&&v.createElement(oC,{control:f,bubbles:!y.current,name:r,value:a,checked:_,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),rC="CheckboxIndicator",iC=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=tC(rC,n);return v.createElement(ha,{present:r||pr(o.state)||o.state===!0},v.createElement(Ae.span,Y({"data-state":V0(o.state),"data-disabled":o.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),oC=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=v.useRef(null),s=B0(n),l=d0(t);return v.useEffect(()=>{const a=o.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(s!==n&&f){const d=new Event("click",{bubbles:r});a.indeterminate=pr(n),f.call(a,pr(n)?!1:n),a.dispatchEvent(d)}},[s,n,r]),v.createElement("input",Y({type:"checkbox","aria-hidden":!0,defaultChecked:pr(n)?!1:n},i,{tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function pr(e){return e==="indeterminate"}function V0(e){return pr(e)?"indeterminate":e?"checked":"unchecked"}const W0=nC,sC=iC;var lC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const aC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jf=(e,t)=>{const n=v.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,children:l,...a},u)=>v.createElement("svg",{ref:u,...lC,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:`lucide lucide-${aC(e)}`,...a},[...t.map(([c,f])=>v.createElement(c,f)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},H0=Jf("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),K0=Jf("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),uC=Jf("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Ec=v.forwardRef(({className:e,...t},n)=>b.jsx(W0,{ref:n,className:pt("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:b.jsx(sC,{className:pt("flex items-center justify-center text-current"),children:b.jsx(H0,{className:"h-4 w-4"})})}));Ec.displayName=W0.displayName;function G0(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const et=G0();let Cc=()=>{};class Fl{constructor(){U(this,"_debug",!1);U(this,"_connectAutomatically",!1);U(this,"_originalDebugFunc");jf(this),this._originalDebugFunc=console.debug,this.debug=localStorage.getItem("debug.enabled")==="true",this.connectAutomatically=localStorage.getItem("connectAutomatically.enabled")==="true"}get debug(){return this._debug}set debug(t){this._debug=t,localStorage.setItem("debug.enabled",t?"true":"false"),t?this.enable():this.disable()}get connectAutomatically(){return this._connectAutomatically}set connectAutomatically(t){this._connectAutomatically=t,localStorage.setItem("connectAutomatically.enabled",t?"true":"false")}enable(){console.debug=this._originalDebugFunc,Cc=t=>t(),et.on("*",Fl.eventLogger),this.printPerformanceWarning()}disable(){this._originalDebugFunc=console.debug,console.debug=()=>{},Cc=()=>{},et.off("*",Fl.eventLogger)}static eventLogger(t,n){console.log("[EventLogger]",t,n)}printPerformanceWarning(){console.warn("[Puth] Performance is affected by debug")}}const rh=new Fl,ga=v.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:pt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-xs file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed",e),ref:r,...n}));ga.displayName="Input";function ih({onClick:e,className:t="",active:n,children:r}){return b.jsx("div",{className:"flex items-center rounded-full border uppercase text-xs mr-4 "+t,style:{fontSize:"0.625rem",letterSpacing:"1.25px",borderColor:"rgba(255,255,255,0.16)",fontWeight:500},children:b.jsx("div",{className:"flex items-center rounded-full cursor-pointer select-none",style:{padding:"0.125rem 0.5rem",margin:"0.125rem 0.125rem 0.125rem 0.125rem",backgroundColor:n?"rgba(60, 130, 246, 0.84)":"rgba(255,255,255,0.08)",color:n?"black":"rgba(247,248,255,0.84)"},onClick:e,children:r})})}const cC=st(function(){const{app:t}=v.useContext(Ot),[n,r]=v.useState(!0),i=t.connections.length!==0;return t.view==="local"?b.jsx(ih,{active:!0,onClick:()=>t.setView("instance"),children:"Switch to instance"}):b.jsxs(b.Fragment,{children:[t.hasLocalContexts&&b.jsx(ih,{active:!1,onClick:()=>t.setView("local"),children:"View local contexts"}),b.jsxs("div",{className:"flex items-center rounded-full border uppercase text-xs mr-2",style:{fontSize:"0.625rem",letterSpacing:"1.25px",borderColor:"rgba(255,255,255,0.16)",fontWeight:500},children:[b.jsx("div",{className:"px-2 flex",style:{color:i?"#0db87c":"rgba(255,255,255,0.54)"},children:i?b.jsxs(b.Fragment,{children:[b.jsx(Ge,{name:"check"})," Connected"]}):b.jsx(b.Fragment,{children:"- No connection"})}),b.jsxs(F0,{open:n,onOpenChange:o=>r(o),children:[b.jsx(z0,{asChild:!0,children:b.jsx("div",{className:"flex items-center rounded-full cursor-pointer select-none",style:{padding:"0.125rem 0.5rem",margin:"0.125rem 0.125rem 0.125rem 0px",backgroundColor:n?"rgba(60, 130, 246, 0.84)":"rgba(255,255,255,0.08)",color:n?"black":"rgba(247,248,255,0.84)"},children:i?"Switch instance":"Connect to instance"})}),b.jsxs(Zf,{sideOffset:6,className:"w-[400px] p-0",align:"end",style:{backgroundColor:"#2a2d36",boxShadow:"0 2px 6px 0 rgba(0,0,0,0.16)",borderColor:"#22252b",borderWidth:"0 0 3px 0"},children:[b.jsx("div",{className:"p-4 text-sm",children:"Connect to instance"}),b.jsxs("div",{className:"px-4 pb-2 text-xs font-light flex flex-col",children:["Please connect to a Puth instance",b.jsx(ga,{className:"mt-4",placeholder:"Enter an IP or hostname or select one of the suggestions"}),t.connectionSuggestions.map((o,s)=>b.jsx(xr,{variant:"outline",className:"w-full mt-1",onClick:()=>t.tryConnectingTo(o),children:o},s)),b.jsx(xr,{className:"mt-6 ml-auto",children:"CONNECT"})]})]})]})]})]})}),fC=st(()=>{const{app:e}=v.useContext(Ot),[t,n]=v.useState(!1);return b.jsxs(F0,{open:t,onOpenChange:r=>n(r),children:[b.jsx(z0,{asChild:!0,children:b.jsx(xr,{size:"icon-xs",variant:"ghost",children:b.jsx(Ge,{name:"settings"})})}),b.jsxs(Zf,{sideOffset:6,className:"w-[250px]",align:"end",style:{backgroundColor:"#2a2d36",boxShadow:"0 2px 6px 0 rgba(0,0,0,0.16)",borderColor:"#22252b",borderWidth:"0 0 3px 0"},children:[b.jsx("div",{className:" text-sm text-uppercase tracking-widest",children:"SETTINGS"}),b.jsxs("div",{className:"flex items-center space-x-2 mt-6",children:[b.jsx(Ec,{id:"darken-preview",checked:e.settings.preview.darken,onCheckedChange:r=>e.setDarkenPreview(r===!0)}),b.jsx("label",{htmlFor:"darken-preview",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Darken preview"})]}),b.jsxs("div",{className:"flex items-center space-x-2 mt-4",children:[b.jsx(Ec,{id:"debug-mode",checked:rh.debug,onCheckedChange:r=>rh.debug=r===!0}),b.jsx("label",{htmlFor:"debug-mode",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Debug mode"})]})]})]})}),dC=st(function({sidebar:t,preview:n,mainTop:r,mainBottom:i}){const{app:o}=v.useContext(Ot);return b.jsx(b.Fragment,{children:b.jsxs("div",{className:"grid grid-rows-[2.5rem_1fr] h-screen w-screen",children:[b.jsxs("div",{className:"flex items-center px-2 shrink-0",style:{backgroundColor:"#22252b",boxShadow:"0 1px 4px 0px #1a1c1f",borderBottom:"1px solid rgba(25,27,31,0.74)",zIndex:10},children:[b.jsxs("div",{className:"flex items-center mr-auto text-base",children:[b.jsx("img",{src:sb,className:"h-6 mr-2"}),"Puth ",o.name.suffix&&b.jsxs("span",{className:"text-blue-500 font-bold ml-1",children:[" ",o.name.suffix]})]}),b.jsx(cC,{}),b.jsx(fC,{})]}),b.jsxs("div",{className:"grid grid-cols-[450px_1fr] min-h-0",children:[b.jsx("div",{className:"flex flex-col min-h-0 grow",style:{background:"rgba(44, 47, 56, 54%)",borderRight:"1px solid #1a1d21"},children:t}),b.jsx("div",{className:"flex flex-col grow overflow-auto",children:o.activeContext?b.jsxs(b.Fragment,{children:[r&&b.jsx("div",{className:"shrink flex items-center h-7 px-4 mt-3",children:r}),b.jsx("div",{className:"flex flex-1 grow m-4 overflow-auto",style:{border:"1px solid #2f333d"},children:n}),i&&b.jsx(b.Fragment,{children:i})]}):b.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-light text-2xl italic text-center px-8",children:[b.jsx(Ge,{className:"mb-4",name:"cloud_off",size:"6rem"}),"No instance connected. Please connect to a Puth instance."]})})]})]})})}),pC=function({children:t,className:n="",...r}){return b.jsx("div",{className:"flex rounded-full leading-none tracking-widest select-none text-xxs "+n,style:{backgroundColor:"#2b303b"},...r,children:t})},oh=function({active:t,children:n,className:r="",...i}){return b.jsx("div",{className:`p-2 rounded-full cursor-pointer ${r} `+(t?"bg-primary text-black":"text-unselected hover:bg-primary-hover-hover"),style:{padding:"calc(0.5rem + 1px) 0.75rem calc(0.5rem + 1px) 0.75rem"},...i,children:n})},hC=st(function(){var r,i;const{app:t}=v.useContext(Ot);let n=o=>{t.previewStore&&(t.previewStore.state=o)};return b.jsx(b.Fragment,{children:b.jsxs(pC,{className:"mr-4",children:[b.jsx(oh,{active:((r=t.previewStore)==null?void 0:r.state)==="before",onClick:()=>n("before"),children:"BEFORE"}),b.jsx(oh,{active:((i=t.previewStore)==null?void 0:i.state)==="after",onClick:()=>n("after"),children:"AFTER"})]})})}),vC=st(function(){return b.jsx(b.Fragment,{})}),gC=st(function({left:t,right:n}){var i,o,s;const{app:r}=v.useContext(Ot);return b.jsxs(b.Fragment,{children:[t||b.jsx(hC,{}),b.jsx(ga,{className:"h-7 grow bg-lighter border-none",value:((s=(o=(i=r.previewStore)==null?void 0:i.visibleScreencast)==null?void 0:o.page)==null?void 0:s.url)??"",disabled:!0}),n||b.jsx(vC,{})]})});st(function(){return b.jsxs(b.Fragment,{children:[b.jsxs(xr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[b.jsx(Ge,{name:"error",className:"mr-1"})," Exceptions"]}),b.jsxs(xr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[b.jsx(Ge,{name:"folder",className:"mr-1"})," Files"]})]})});const oo={Page:"CdpPage",Frame:"CdpFrame",Browser:"CdpBrowser",BrowserContext:"CdpBrowserContext",JSHandle:"CdpJSHandle",ElementHandle:"CdpElementHandle",Session:"CdpSession",ConnectionAdapter:"CdpConnectionAdapter",ClientAdapter:"CdpClientAdapter",Mouse:"CdpMouse",Keyboard:"CdpKeyboard",Touchscreen:"CdpTouchscreen",Target:"CdpTarget",Context:"Context"},mC=st(({index:e,command:t,showTimings:n=!1})=>{var h,w,x,S;const{app:r}=v.useContext(Ot);let{on:i,func:o,args:s}=t,l=v.useCallback(E=>{E.stopPropagation(),et.emit("preview:toggle",t)},[t]),a=v.useCallback(()=>et.emit("preview:highlight:show",t),[t]),u=v.useCallback(()=>et.emit("preview:highlight:hide",t),[t]),c=i.type;i.type===oo.ElementHandle?c="Element":i.type===oo.Page?c="Page":i.type===oo.Browser&&(c="Browser");let f=s.map(E=>typeof E=="object"?JSON.stringify(E):E),d="";if(o.length>10){let E=[0];for(let C=1;C<o.length;C++){let A=o[C];A===A.toUpperCase()&&E.push(C)}if(E.length<=10){let C=Math.floor(10/E.length);E.forEach(A=>{d+=o.slice(A,A+(C>1?C:1))})}}else d=o;let p=((w=(h=r.previewStore)==null?void 0:h.activeCommand)==null?void 0:w.id)===(t==null?void 0:t.id),y=t.errors.length>0,m=y?b.jsx(qf,{status:"failed"}):null,_=y?"bg-task-error":"bg-task",g=b.jsx("div",{className:`absolute left-0 ${_}`,style:{top:"2px",bottom:"2px",width:"3px"}});return b.jsxs(b.Fragment,{children:[b.jsxs("tr",{className:`command step relative ${p?"active":""}`,onClick:l,onMouseEnter:a,onMouseLeave:u,children:[b.jsxs("td",{className:"py-2 pl-4",style:{paddingLeft:"0.75rem"},children:[e!==void 0?e+1:"",g]}),b.jsx("td",{children:n&&b.jsxs(b.Fragment,{children:[(t.time.elapsed/1e3).toFixed(1),"s",((x=t==null?void 0:t.time)==null?void 0:x.took)!==0&&((S=t==null?void 0:t.time)==null?void 0:S.took)&&t.time.took>250&&b.jsx("div",{children:b.jsxs("span",{className:"text-warning-dark",children:[(t.time.took/1e3).toFixed(1),"s"]})})]})}),b.jsx("td",{children:c}),b.jsx("td",{children:d}),b.jsx("td",{className:"",colSpan:m?1:2,children:f.join(", ")}),m&&b.jsx("td",{className:"leading-none pr-4",children:m})]}),t.errors.map((E,C)=>{let A=E.type==="error"?E.error.name:"Expectation missed",k=E.type==="error"?E.error.message:E.expectation.message;return b.jsx("tr",{children:b.jsxs("td",{colSpan:6,className:"relative p-0",children:[b.jsx("div",{style:{width:"1px",height:"1.75rem",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:0}}),b.jsx("div",{style:{width:"0.75rem",height:"1px",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:"1.75rem"}}),b.jsxs("div",{className:"p-3 ml-6 rounded-md","data-messagetype":"error",style:{backgroundColor:"rgba(212, 49, 49, 0.12)"},children:[b.jsxs("div",{className:"text-xs text-red flex items-center",children:[b.jsx(Ge,{name:"bolt",className:"mr-1"})," ",A]}),b.jsx("div",{className:"text-xxs text-unselected mt-3",children:k})]})]})},C)})]})});const yC=({log:e})=>{let t=e.messageType==="error",n=t&&e.args.length===0?e.text:e.args.map(r=>typeof r=="object"?JSON.stringify(r):r).join(" ");return b.jsxs("tr",{className:"log","data-messagetype":e.messageType,children:[b.jsx("td",{}),b.jsx("td",{colSpan:5,children:b.jsxs("div",{children:[b.jsxs("div",{className:"fst-italic small",children:["console message (type: ",e.messageType,")"]}),b.jsx("div",{className:"small fw-bold",children:n}),t&&b.jsx(b.Fragment,{children:b.jsx("table",{className:"small",children:b.jsx("tbody",{children:e.stackTrace.map((r,i)=>b.jsxs("tr",{children:[b.jsxs("td",{children:[r.lineNumber,r.columnNumber&&":",r.columnNumber]}),b.jsx("td",{className:"text-danger",children:r.url})]},i))})})})]})})]})};const wC=({request:e})=>{var n,r;let t=e!=null&&e.response?((r=(n=e==null?void 0:e.response)==null?void 0:n.time)==null?void 0:r.finished)-e.time:0;return b.jsxs("tr",{className:"request","data-status":e.status,children:[b.jsx("td",{}),b.jsxs("td",{className:"",children:[e.status==="finished"?(e.response.time.elapsed/1e3).toFixed(1)+"s":"-",t>250&&b.jsx("div",{children:b.jsxs("span",{className:"text-warning-dark",children:[(t/1e3).toFixed(1),"s"]})})]}),b.jsx("td",{children:e.resourceType}),b.jsx("td",{colSpan:3,className:"ellipsis",children:b.jsx("span",{children:e.url})})]})};function qf({status:e,className:t,...n}){let r="pending";return e==="failed"?(r="error",t="text-red-500 "+t):e==="successful"&&(r="check_circle",t="text-green-500 "+t),b.jsx(Ge,{name:r,className:t,...n})}function _C({resolver:e}){const t=v.useRef(null),n=async()=>{if(!t.current)return;let r=await e();t.current.href=URL.createObjectURL(r),t.current.download="snapshot.puth",t.current.click(),URL.revokeObjectURL(t.current.href)};return b.jsxs(b.Fragment,{children:[b.jsx(xr,{variant:"ghost",size:"icon-xs",onClick:n,children:b.jsx(Ge,{name:"download"})}),b.jsx("a",{href:"",style:{display:"none"},ref:t})]})}const xC=st(function(){var o,s,l;const{app:t}=v.useContext(Ot);if(!t.activeContext)return b.jsx(b.Fragment,{});if(!t.activeContext)return b.jsxs("div",{className:"p-8 flex-1 flex flex-col items-center justify-center text-lg text-light text-center",children:[b.jsx(Ge,{name:"explore",size:"3rem",className:"mb-4"}),"Select a test in the history list. Head over to puth.io/getting-started if you need help running your first test."]});let n=t.activeContext.took.minutes<10?"0"+t.activeContext.took.minutes:t.activeContext.took.minutes,r=t.activeContext.took.seconds<10?"0"+t.activeContext.took.seconds:t.activeContext.took.seconds,i=0;return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-center px-5 py-5",children:[b.jsxs("div",{className:"grow flex items-center text-lg",children:[b.jsx(qf,{status:(o=t.activeContext)==null?void 0:o.test.status,className:"mr-2"})," ",(s=t.activeContext)==null?void 0:s.test.name]}),b.jsxs("div",{className:"flex items-center text-gray-300 ml-auto",children:[b.jsx(Ge,{name:"timer",className:"mr-1"})," ",n,":",r,"s"]}),b.jsxs("div",{className:"flex items-center text-gray-300 mx-2",children:[b.jsx(Ge,{name:"history",className:"mr-1"})," 1min"]}),b.jsx(_C,{resolver:()=>{var a;return(a=t.activeContext)==null?void 0:a.blob()}})]}),b.jsx("div",{className:"grow overflow-y-auto px-5",children:b.jsx("table",{className:"table-auto w-full context-event-table",style:{margin:"-4px 0"},children:b.jsx("tbody",{className:"",children:(l=t.activeContext)==null?void 0:l.renderedEvents.map(a=>{if(a.type==="command")return b.jsx(mC,{index:i++,command:a,showTimings:!1},a.id);if(a.type==="log")return b.jsx(yC,{log:a},a.id);if(a.type==="request")return b.jsx(wC,{request:a},a.id)})})})})]})});function sh(e,[t,n]){return Math.min(n,Math.max(t,e))}function bC(e){const t=e+"CollectionProvider",[n,r]=Zo(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:y,children:m}=p,_=Ne.useRef(null),g=Ne.useRef(new Map).current;return Ne.createElement(i,{scope:y,itemMap:g,collectionRef:_},m)},l=e+"CollectionSlot",a=Ne.forwardRef((p,y)=>{const{scope:m,children:_}=p,g=o(l,m),h=Ce(y,g.collectionRef);return Ne.createElement(_r,{ref:h},_)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=Ne.forwardRef((p,y)=>{const{scope:m,children:_,...g}=p,h=Ne.useRef(null),w=Ce(y,h),x=o(u,m);return Ne.useEffect(()=>(x.itemMap.set(h,{ref:h,...g}),()=>void x.itemMap.delete(h))),Ne.createElement(_r,{[c]:"",ref:w},_)});function d(p){const y=o(e+"CollectionConsumer",p);return Ne.useCallback(()=>{const _=y.collectionRef.current;if(!_)return[];const g=Array.from(_.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((x,S)=>g.indexOf(x.ref.current)-g.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:a,ItemSlot:f},d,r]}const SC=v.createContext(void 0);function EC(e){const t=v.useContext(SC);return e||t||"ltr"}const CC=v.forwardRef((e,t)=>v.createElement(Ae.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),AC=[" ","Enter","ArrowUp","ArrowDown"],OC=[" ","Enter"],ma="Select",[ya,wa,PC]=bC(ma),[Ti,uO]=Zo(ma,[PC,pa]),ed=pa(),[kC,Or]=Ti(ma),[TC,$C]=Ti(ma),RC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:l,onValueChange:a,dir:u,name:c,autoComplete:f,disabled:d,required:p}=e,y=ed(t),[m,_]=v.useState(null),[g,h]=v.useState(null),[w,x]=v.useState(!1),S=EC(u),[E=!1,C]=jl({prop:r,defaultProp:i,onChange:o}),[A,k]=jl({prop:s,defaultProp:l,onChange:a}),P=v.useRef(null),N=m?!!m.closest("form"):!0,[R,W]=v.useState(new Set),L=Array.from(R).map(B=>B.props.value).join(";");return v.createElement(y0,y,v.createElement(kC,{required:p,scope:t,trigger:m,onTriggerChange:_,valueNode:g,onValueNodeChange:h,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:Vf(),value:A,onValueChange:k,open:E,onOpenChange:C,dir:S,triggerPointerDownPosRef:P,disabled:d},v.createElement(ya.Provider,{scope:t},v.createElement(TC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(B=>{W(z=>new Set(z).add(B))},[]),onNativeOptionRemove:v.useCallback(B=>{W(z=>{const X=new Set(z);return X.delete(B),X})},[])},n)),N?v.createElement(J0,{key:L,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:f,value:A,onChange:B=>k(B.target.value),disabled:d},A===void 0?v.createElement("option",{value:""}):null,Array.from(R)):null))},NC="SelectTrigger",DC=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=ed(n),s=Or(NC,n),l=s.disabled||r,a=Ce(t,s.onTriggerChange),u=wa(n),[c,f,d]=q0(y=>{const m=u().filter(h=>!h.disabled),_=m.find(h=>h.value===s.value),g=ey(m,y,_);g!==void 0&&s.onValueChange(g.value)}),p=()=>{l||(s.onOpenChange(!0),d())};return v.createElement(w0,Y({asChild:!0},o),v.createElement(Ae.button,Y({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Z0(s.value)?"":void 0},i,{ref:a,onClick:ve(i.onClick,y=>{y.currentTarget.focus()}),onPointerDown:ve(i.onPointerDown,y=>{const m=y.target;m.hasPointerCapture(y.pointerId)&&m.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(p(),s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:ve(i.onKeyDown,y=>{const m=c.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&f(y.key),!(m&&y.key===" ")&&AC.includes(y.key)&&(p(),y.preventDefault())})})))}),IC="SelectValue",MC=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...l}=e,a=Or(IC,n),{onValueNodeHasChildrenChange:u}=a,c=o!==void 0,f=Ce(t,a.onValueNodeChange);return ot(()=>{u(c)},[u,c]),v.createElement(Ae.span,Y({},l,{ref:f,style:{pointerEvents:"none"}}),Z0(a.value)?v.createElement(v.Fragment,null,s):o)}),LC=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.createElement(Ae.span,Y({"aria-hidden":!0},i,{ref:t}),r||"▼")}),jC=e=>v.createElement(x0,Y({asChild:!0},e)),wi="SelectContent",FC=v.forwardRef((e,t)=>{const n=Or(wi,e.__scopeSelect),[r,i]=v.useState();if(ot(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Zn.createPortal(v.createElement(Q0,{scope:e.__scopeSelect},v.createElement(ya.Slot,{scope:e.__scopeSelect},v.createElement("div",null,e.children))),o):null}return v.createElement(zC,Y({},e,{ref:t}))}),tn=10,[Q0,Pr]=Ti(wi),zC=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:_,...g}=e,h=Or(wi,n),[w,x]=v.useState(null),[S,E]=v.useState(null),C=Ce(t,j=>x(j)),[A,k]=v.useState(null),[P,N]=v.useState(null),R=wa(n),[W,L]=v.useState(!1),B=v.useRef(!1);v.useEffect(()=>{if(w)return S0(w)},[w]),e0();const z=v.useCallback(j=>{const[oe,...xe]=R().map(J=>J.ref.current),[se]=xe.slice(-1),re=document.activeElement;for(const J of j)if(J===re||(J==null||J.scrollIntoView({block:"nearest"}),J===oe&&S&&(S.scrollTop=0),J===se&&S&&(S.scrollTop=S.scrollHeight),J==null||J.focus(),document.activeElement!==re))return},[R,S]),X=v.useCallback(()=>z([A,w]),[z,A,w]);v.useEffect(()=>{W&&X()},[W,X]);const{onOpenChange:T,triggerPointerDownPosRef:M}=h;v.useEffect(()=>{if(w){let j={x:0,y:0};const oe=se=>{var re,J,Me,Re;j={x:Math.abs(Math.round(se.pageX)-((re=(J=M.current)===null||J===void 0?void 0:J.x)!==null&&re!==void 0?re:0)),y:Math.abs(Math.round(se.pageY)-((Me=(Re=M.current)===null||Re===void 0?void 0:Re.y)!==null&&Me!==void 0?Me:0))}},xe=se=>{j.x<=10&&j.y<=10?se.preventDefault():w.contains(se.target)||T(!1),document.removeEventListener("pointermove",oe),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",xe,{capture:!0})}}},[w,T,M]),v.useEffect(()=>{const j=()=>T(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[T]);const[F,K]=q0(j=>{const oe=R().filter(re=>!re.disabled),xe=oe.find(re=>re.ref.current===document.activeElement),se=ey(oe,j,xe);se&&setTimeout(()=>se.ref.current.focus())}),ee=v.useCallback((j,oe,xe)=>{const se=!B.current&&!xe;(h.value!==void 0&&h.value===oe||se)&&(k(j),se&&(B.current=!0))},[h.value]),Xe=v.useCallback(()=>w==null?void 0:w.focus(),[w]),Oe=v.useCallback((j,oe,xe)=>{const se=!B.current&&!xe;(h.value!==void 0&&h.value===oe||se)&&N(j)},[h.value]),$e=r==="popper"?lh:BC,ue=$e===lh?{side:l,sideOffset:a,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:_}:{};return v.createElement(Q0,{scope:n,content:w,viewport:S,onViewportChange:E,itemRefCallback:ee,selectedItem:A,onItemLeave:Xe,itemTextRefCallback:Oe,focusSelectedItem:X,selectedItemText:P,position:r,isPositioned:W,searchRef:F},v.createElement(R0,{as:_r,allowPinchZoom:!0},v.createElement(t0,{asChild:!0,trapped:h.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:ve(i,j=>{var oe;(oe=h.trigger)===null||oe===void 0||oe.focus({preventScroll:!0}),j.preventDefault()})},v.createElement(Jm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>h.onOpenChange(!1)},v.createElement($e,Y({role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:j=>j.preventDefault()},g,ue,{onPlaced:()=>L(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ve(g.onKeyDown,j=>{const oe=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!oe&&j.key.length===1&&K(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let se=R().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(j.key)&&(se=se.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const re=j.target,J=se.indexOf(re);se=se.slice(J+1)}setTimeout(()=>z(se)),j.preventDefault()}})}))))))}),BC=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=Or(wi,n),s=Pr(wi,n),[l,a]=v.useState(null),[u,c]=v.useState(null),f=Ce(t,C=>c(C)),d=wa(n),p=v.useRef(!1),y=v.useRef(!0),{viewport:m,selectedItem:_,selectedItemText:g,focusSelectedItem:h}=s,w=v.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&u&&m&&_&&g){const C=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),k=o.valueNode.getBoundingClientRect(),P=g.getBoundingClientRect();if(o.dir!=="rtl"){const re=P.left-A.left,J=k.left-re,Me=C.left-J,Re=C.width+Me,Ze=Math.max(Re,A.width),Sn=window.innerWidth-tn,nr=sh(J,[tn,Sn-Ze]);l.style.minWidth=Re+"px",l.style.left=nr+"px"}else{const re=A.right-P.right,J=window.innerWidth-k.right-re,Me=window.innerWidth-C.right-J,Re=C.width+Me,Ze=Math.max(Re,A.width),Sn=window.innerWidth-tn,nr=sh(J,[tn,Sn-Ze]);l.style.minWidth=Re+"px",l.style.right=nr+"px"}const N=d(),R=window.innerHeight-tn*2,W=m.scrollHeight,L=window.getComputedStyle(u),B=parseInt(L.borderTopWidth,10),z=parseInt(L.paddingTop,10),X=parseInt(L.borderBottomWidth,10),T=parseInt(L.paddingBottom,10),M=B+z+W+T+X,F=Math.min(_.offsetHeight*5,M),K=window.getComputedStyle(m),ee=parseInt(K.paddingTop,10),Xe=parseInt(K.paddingBottom,10),Oe=C.top+C.height/2-tn,$e=R-Oe,ue=_.offsetHeight/2,j=_.offsetTop+ue,oe=B+z+j,xe=M-oe;if(oe<=Oe){const re=_===N[N.length-1].ref.current;l.style.bottom="0px";const J=u.clientHeight-m.offsetTop-m.offsetHeight,Me=Math.max($e,ue+(re?Xe:0)+J+X),Re=oe+Me;l.style.height=Re+"px"}else{const re=_===N[0].ref.current;l.style.top="0px";const Me=Math.max(Oe,B+m.offsetTop+(re?ee:0)+ue)+xe;l.style.height=Me+"px",m.scrollTop=oe-Oe+m.offsetTop}l.style.margin=`${tn}px 0`,l.style.minHeight=F+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[d,o.trigger,o.valueNode,l,u,m,_,g,o.dir,r]);ot(()=>w(),[w]);const[x,S]=v.useState();ot(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const E=v.useCallback(C=>{C&&y.current===!0&&(w(),h==null||h(),y.current=!1)},[w,h]);return v.createElement(UC,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:E},v.createElement("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},v.createElement(Ae.div,Y({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),lh=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=tn,...o}=e,s=ed(n);return v.createElement(_0,Y({},s,o,{ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[UC,td]=Ti(wi,{}),ah="SelectViewport",VC=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Pr(ah,n),o=td(ah,n),s=Ce(t,i.onViewportChange),l=v.useRef(0);return v.createElement(v.Fragment,null,v.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.createElement(ya.Slot,{scope:n},v.createElement(Ae.div,Y({"data-radix-select-viewport":"",role:"presentation"},r,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:ve(r.onScroll,a=>{const u=a.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&c){const d=Math.abs(l.current-u.scrollTop);if(d>0){const p=window.innerHeight-tn*2,y=parseFloat(c.style.minHeight),m=parseFloat(c.style.height),_=Math.max(y,m);if(_<p){const g=_+d,h=Math.min(p,g),w=g-h;c.style.height=h+"px",c.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,c.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),WC="SelectGroup",[cO,HC]=Ti(WC),KC="SelectLabel",GC=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=HC(KC,n);return v.createElement(Ae.div,Y({id:i.id},r,{ref:t}))}),Ac="SelectItem",[QC,Y0]=Ti(Ac),YC=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,l=Or(Ac,n),a=Pr(Ac,n),u=l.value===r,[c,f]=v.useState(o??""),[d,p]=v.useState(!1),y=Ce(t,g=>{var h;return(h=a.itemRefCallback)===null||h===void 0?void 0:h.call(a,g,r,i)}),m=Vf(),_=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.createElement(QC,{scope:n,value:r,disabled:i,textId:m,isSelected:u,onItemTextChange:v.useCallback(g=>{f(h=>{var w;return h||((w=g==null?void 0:g.textContent)!==null&&w!==void 0?w:"").trim()})},[])},v.createElement(ya.ItemSlot,{scope:n,value:r,disabled:i,textValue:c},v.createElement(Ae.div,Y({role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},s,{ref:y,onFocus:ve(s.onFocus,()=>p(!0)),onBlur:ve(s.onBlur,()=>p(!1)),onPointerUp:ve(s.onPointerUp,_),onPointerMove:ve(s.onPointerMove,g=>{if(i){var h;(h=a.onItemLeave)===null||h===void 0||h.call(a)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(s.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var h;(h=a.onItemLeave)===null||h===void 0||h.call(a)}}),onKeyDown:ve(s.onKeyDown,g=>{var h;((h=a.searchRef)===null||h===void 0?void 0:h.current)!==""&&g.key===" "||(OC.includes(g.key)&&_(),g.key===" "&&g.preventDefault())})}))))}),$s="SelectItemText",XC=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=Or($s,n),l=Pr($s,n),a=Y0($s,n),u=$C($s,n),[c,f]=v.useState(null),d=Ce(t,g=>f(g),a.onItemTextChange,g=>{var h;return(h=l.itemTextRefCallback)===null||h===void 0?void 0:h.call(l,g,a.value,a.disabled)}),p=c==null?void 0:c.textContent,y=v.useMemo(()=>v.createElement("option",{key:a.value,value:a.value,disabled:a.disabled},p),[a.disabled,a.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:_}=u;return ot(()=>(m(y),()=>_(y)),[m,_,y]),v.createElement(v.Fragment,null,v.createElement(Ae.span,Y({id:a.textId},o,{ref:d})),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Zn.createPortal(o.children,s.valueNode):null)}),ZC="SelectItemIndicator",JC=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Y0(ZC,n).isSelected?v.createElement(Ae.span,Y({"aria-hidden":!0},r,{ref:t})):null}),uh="SelectScrollUpButton",qC=v.forwardRef((e,t)=>{const n=Pr(uh,e.__scopeSelect),r=td(uh,e.__scopeSelect),[i,o]=v.useState(!1),s=Ce(t,r.onScrollButtonChange);return ot(()=>{if(n.viewport&&n.isPositioned){let u=function(){const c=a.scrollTop>0;o(c)};var l=u;const a=n.viewport;return u(),a.addEventListener("scroll",u),()=>a.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?v.createElement(X0,Y({},e,{ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}})):null}),ch="SelectScrollDownButton",eA=v.forwardRef((e,t)=>{const n=Pr(ch,e.__scopeSelect),r=td(ch,e.__scopeSelect),[i,o]=v.useState(!1),s=Ce(t,r.onScrollButtonChange);return ot(()=>{if(n.viewport&&n.isPositioned){let u=function(){const c=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<c;o(f)};var l=u;const a=n.viewport;return u(),a.addEventListener("scroll",u),()=>a.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?v.createElement(X0,Y({},e,{ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}})):null}),X0=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=Pr("SelectScrollButton",n),s=v.useRef(null),l=wa(n),a=v.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.useEffect(()=>()=>a(),[a]),ot(()=>{var u;const c=l().find(f=>f.ref.current===document.activeElement);c==null||(u=c.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[l]),v.createElement(Ae.div,Y({"aria-hidden":!0},i,{ref:t,style:{flexShrink:0,...i.style},onPointerDown:ve(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:ve(i.onPointerMove,()=>{var u;(u=o.onItemLeave)===null||u===void 0||u.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:ve(i.onPointerLeave,()=>{a()})}))}),tA=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.createElement(Ae.div,Y({"aria-hidden":!0},r,{ref:t}))});function Z0(e){return e===""||e===void 0}const J0=v.forwardRef((e,t)=>{const{value:n,...r}=e,i=v.useRef(null),o=Ce(t,i),s=B0(n);return v.useEffect(()=>{const l=i.current,a=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==n&&c){const f=new Event("change",{bubbles:!0});c.call(l,n),l.dispatchEvent(f)}},[s,n]),v.createElement(CC,{asChild:!0},v.createElement("select",Y({},r,{ref:o,defaultValue:n})))});J0.displayName="BubbleSelect";function q0(e){const t=gn(e),n=v.useRef(""),r=v.useRef(0),i=v.useCallback(s=>{const l=n.current+s;t(l),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),o=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function ey(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=nA(e,Math.max(o,0));i.length===1&&(s=s.filter(u=>u!==n));const a=s.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}function nA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const rA=RC,ty=DC,iA=MC,oA=LC,sA=jC,ny=FC,lA=VC,ry=GC,iy=YC,aA=XC,uA=JC,oy=qC,sy=eA,ly=tA,cA=rA,fA=iA,ay=v.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(ty,{ref:r,className:pt("flex h-8 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,b.jsx(oA,{asChild:!0,children:b.jsx(K0,{className:"h-4 w-4 opacity-50"})})]}));ay.displayName=ty.displayName;const uy=v.forwardRef(({className:e,...t},n)=>b.jsx(oy,{ref:n,className:pt("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(uC,{className:"h-4 w-4"})}));uy.displayName=oy.displayName;const cy=v.forwardRef(({className:e,...t},n)=>b.jsx(sy,{ref:n,className:pt("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(K0,{className:"h-4 w-4"})}));cy.displayName=sy.displayName;const fy=v.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>b.jsx(sA,{children:b.jsxs(ny,{ref:i,className:pt("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[b.jsx(uy,{}),b.jsx(lA,{className:pt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),b.jsx(cy,{})]})}));fy.displayName=ny.displayName;const dA=v.forwardRef(({className:e,...t},n)=>b.jsx(ry,{ref:n,className:pt("py-1.5 pl-8 pr-2 text-xs font-semibold",e),...t}));dA.displayName=ry.displayName;const qs=v.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(iy,{ref:r,className:pt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-xs outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(uA,{children:b.jsx(H0,{className:"h-4 w-4"})})}),b.jsx(aA,{children:t})]}));qs.displayName=iy.displayName;const pA=v.forwardRef(({className:e,...t},n)=>b.jsx(ly,{ref:n,className:pt("-mx-1 my-1 h-px bg-muted",e),...t}));pA.displayName=ly.displayName;var el=(e=>(e.SUCCESSFUL="successful",e.FAILED="failed",e.PENDING="pending",e))(el||{}),dy=(e=>(e.FRAME="frame",e.DOM="dom",e))(dy||{}),Ut=(e=>(e.BEFORE="before",e.AFTER="after",e.REPLAY="replay",e))(Ut||{});const hA=st(function({context:t}){const{app:n}=v.useContext(Ot);let r=()=>n.setActive(t),i=n.activeContext===t;return b.jsxs("div",{className:"flex flex-col px-4 py-2 mt-1 bg-context-step hover:bg-context-step-selected cursor-pointer "+(i?"bg-context-step-selected":""),style:{paddingRight:"0.375rem"},onClick:r,children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(qf,{status:t.test.status,className:"mr-1"})," ",t.test.name]}),b.jsx("div",{className:"mt-1",children:b.jsxs("div",{className:"flex items-center text-gray-400 italic ml-auto",children:[b.jsx(Ge,{name:"history"})," just now"]})})]},t.id)}),vA=st(function(){const{app:t}=v.useContext(Ot),[n,r]=v.useState(!0),[i,o]=v.useState(""),[s,l]=v.useState("");if(t.empty)return b.jsx(b.Fragment,{});let a=t.history;if(i!==""){let u=i.toLowerCase();a=a.filter(c=>c.test.name.toLowerCase().includes(u)||c.group.toLowerCase().includes(u))}return s!==""&&(a=a.filter(u=>u.test.status===s)),b.jsxs("div",{className:`flex flex-col border-t-4 border-solid rounded-t-xl ${n?"grow":""}`,style:{borderColor:"#22252b",maxHeight:"40vh"},children:[b.jsx("div",{className:"px-5 flex items-center text-lg",children:b.jsxs("div",{className:"flex-1 py-3 flex items-center cursor-pointer",onClick:u=>r(!n),children:[b.jsx(Ge,{name:n?"expand_more":"expand_less",size:"1.5rem",className:"mr-2"})," History"]})}),n&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"px-5 mb-3 flex items-center text-lg",children:[b.jsx(ga,{className:"h-8",placeholder:"Filter history",value:i,onChange:u=>o(u.target.value)}),b.jsxs(cA,{value:s,onValueChange:u=>l(u),children:[b.jsx(ay,{className:"w-[180px] ml-2",defaultValue:-1,children:b.jsx(fA,{placeholder:"Filter status"})}),b.jsxs(fy,{children:[b.jsx(qs,{value:el.SUCCESSFUL,children:"Succeeded"}),b.jsx(qs,{value:el.FAILED,children:"Failed"}),b.jsx(qs,{value:el.PENDING,children:"Pending"})]})]}),(i!==""||s!=="")&&b.jsx(Ge,{name:"cancel",size:"1.25rem",className:"ml-2 cursor-pointer",onClick:()=>{o(""),l("")}})]}),b.jsxs("div",{className:"px-5 pb-3 grow overflow-y-auto",children:[a.length===0&&b.jsxs("div",{className:"p-5 flex items-center border-light border-2 border-solid italic",children:[b.jsx(Ge,{name:"error",className:"mr-1"})," No test ran on this instance."]}),a.map(u=>b.jsx(hA,{context:u},u.id))]})]})]})}),gA=st(function({content:t}){return b.jsx(b.Fragment,{children:t||b.jsxs(b.Fragment,{children:[b.jsx(xC,{}),b.jsx(vA,{})]})})}),mA=st(function(){var n,r,i;const{app:t}=v.useContext(Ot);return(n=t.previewStore)!=null&&n.activeScreencastUrl?b.jsxs("div",{className:"relative inline-block",children:[b.jsx("img",{src:(r=t.previewStore)==null?void 0:r.activeScreencastUrl,style:{maxWidth:`${(i=t.previewStore)==null?void 0:i.visibleScreencast.page.viewport.width}px`},className:"w-full"}),t.settings.preview.darken&&b.jsx("div",{className:"absolute top-0 left-0 bottom-0 right-0 pointer-events-none",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}})]}):b.jsx(b.Fragment,{})});var py={exports:{}},yA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wA=yA,_A=wA;function hy(){}function vy(){}vy.resetWarningCache=hy;var xA=function(){function e(r,i,o,s,l,a){if(a!==_A){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vy,resetWarningCache:hy};return n.PropTypes=n,n};py.exports=xA();var bA=py.exports;const le=Nc(bA);var SA=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function qo(e,t){var n=EA(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function EA(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=SA.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var CA=[".DS_Store","Thumbs.db"];function AA(e){return Oi(this,void 0,void 0,function(){return Pi(this,function(t){return zl(e)&&OA(e)?[2,$A(e.dataTransfer,e.type)]:PA(e)?[2,kA(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,TA(e)]:[2,[]]})})}function OA(e){return zl(e.dataTransfer)}function PA(e){return zl(e)&&zl(e.target)}function zl(e){return typeof e=="object"&&e!==null}function kA(e){return Oc(e.target.files).map(function(t){return qo(t)})}function TA(e){return Oi(this,void 0,void 0,function(){var t;return Pi(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return qo(r)})]}})})}function $A(e,t){return Oi(this,void 0,void 0,function(){var n,r;return Pi(this,function(i){switch(i.label){case 0:return e===null?[2,[]]:e.items?(n=Oc(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(RA))]):[3,2];case 1:return r=i.sent(),[2,fh(gy(r))];case 2:return[2,fh(Oc(e.files).map(function(o){return qo(o)}))]}})})}function fh(e){return e.filter(function(t){return CA.indexOf(t.name)===-1})}function Oc(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function RA(e){if(typeof e.webkitGetAsEntry!="function")return dh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?my(t):dh(e)}function gy(e){return e.reduce(function(t,n){return oE(t,Array.isArray(n)?gy(n):[n])},[])}function dh(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=qo(t);return Promise.resolve(n)}function NA(e){return Oi(this,void 0,void 0,function(){return Pi(this,function(t){return[2,e.isDirectory?my(e):DA(e)]})})}function my(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var s=this;t.readEntries(function(l){return Oi(s,void 0,void 0,function(){var a,u,c;return Pi(this,function(f){switch(f.label){case 0:if(l.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return a=f.sent(),n(a),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(NA)),i.push(c),o(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}o()})}function DA(e){return Oi(this,void 0,void 0,function(){return Pi(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=qo(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var IA=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?o===l.replace(/\/.*$/,""):i===l})}return!0};function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(n),!0).forEach(function(r){yy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e,t){return FA(e)||jA(e,t)||LA(e,t)||MA()}function MA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LA(e,t){if(e){if(typeof e=="string")return gh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gh(e,t)}}function gh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(a){o=!0,l=a}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function FA(e){if(Array.isArray(e))return e}var zA="file-invalid-type",BA="file-too-large",UA="file-too-small",VA="too-many-files",WA=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:zA,message:"File type must be ".concat(n)}},mh=function(t){return{code:BA,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},yh=function(t){return{code:UA,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},HA={code:VA,message:"Too many files"};function wy(e,t){var n=e.type==="application/x-moz-file"||IA(e,t);return[n,n?null:WA(t)]}function _y(e,t,n){if(Ui(e.size))if(Ui(t)&&Ui(n)){if(e.size>n)return[!1,mh(n)];if(e.size<t)return[!1,yh(t)]}else{if(Ui(t)&&e.size<t)return[!1,yh(t)];if(Ui(n)&&e.size>n)return[!1,mh(n)]}return[!0,null]}function Ui(e){return e!=null}function KA(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,s=e.maxFiles;return!o&&t.length>1||o&&s>=1&&t.length>s?!1:t.every(function(l){var a=wy(l,n),u=vh(a,1),c=u[0],f=_y(l,r,i),d=vh(f,1),p=d[0];return c&&p})}function Bl(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Rs(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function wh(e){e.preventDefault()}function GA(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function QA(e){return e.indexOf("Edge/")!==-1}function YA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return GA(e)||QA(e)}function Bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return t.some(function(l){return!Bl(r)&&l&&l.apply(void 0,[r].concat(o)),Bl(r)})}}function _h(){return"showOpenFilePicker"in window}function XA(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}).reduce(function(t,n){return hh(hh({},t),{},yy({},n,[]))},{}):{}}]}var ZA=["children"],JA=["open"],qA=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],e2=["refKey","onChange","onClick"];function t2(e){return i2(e)||r2(e)||xy(e)||n2()}function n2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i2(e){if(Array.isArray(e))return Pc(e)}function fu(e,t){return l2(e)||s2(e,t)||xy(e,t)||o2()}function o2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
84
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xy(e,t){if(e){if(typeof e=="string")return Pc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pc(e,t)}}function Pc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(a){o=!0,l=a}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function l2(e){if(Array.isArray(e))return e}function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xh(Object(n),!0).forEach(function(r){kc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e,t){if(e==null)return{};var n=a2(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function a2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nd=v.forwardRef(function(e,t){var n=e.children,r=Ul(e,ZA),i=Sy(r),o=i.open,s=Ul(i,JA);return v.useImperativeHandle(t,function(){return{open:o}},[o]),Ne.createElement(v.Fragment,null,n(ge(ge({},s),{},{open:o})))});nd.displayName="Dropzone";var by={disabled:!1,getFilesFromEvent:AA,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};nd.defaultProps=by;nd.propTypes={children:le.func,accept:le.oneOfType([le.string,le.arrayOf(le.string)]),multiple:le.bool,preventDropOnDocument:le.bool,noClick:le.bool,noKeyboard:le.bool,noDrag:le.bool,noDragEventsBubbling:le.bool,minSize:le.number,maxSize:le.number,maxFiles:le.number,disabled:le.bool,getFilesFromEvent:le.func,onFileDialogCancel:le.func,onFileDialogOpen:le.func,useFsAccessApi:le.bool,onDragEnter:le.func,onDragLeave:le.func,onDragOver:le.func,onDrop:le.func,onDropAccepted:le.func,onDropRejected:le.func,validator:le.func};var Tc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Sy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},by),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,a=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,p=t.onDropAccepted,y=t.onDropRejected,m=t.onFileDialogCancel,_=t.onFileDialogOpen,g=t.useFsAccessApi,h=t.preventDropOnDocument,w=t.noClick,x=t.noKeyboard,S=t.noDrag,E=t.noDragEventsBubbling,C=t.validator,A=v.useMemo(function(){return typeof _=="function"?_:bh},[_]),k=v.useMemo(function(){return typeof m=="function"?m:bh},[m]),P=v.useRef(null),N=v.useRef(null),R=v.useReducer(u2,Tc),W=fu(R,2),L=W[0],B=W[1],z=L.isFocused,X=L.isFileDialogActive,T=L.draggedFiles,M=function(){X&&setTimeout(function(){if(N.current){var G=N.current.files;G.length||(B({type:"closeDialog"}),k())}},300)};v.useEffect(function(){return g&&_h()?function(){}:(window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)})},[N,X,k,g]);var F=v.useRef([]),K=function(G){P.current&&P.current.contains(G.target)||(G.preventDefault(),F.current=[])};v.useEffect(function(){return h&&(document.addEventListener("dragover",wh,!1),document.addEventListener("drop",K,!1)),function(){h&&(document.removeEventListener("dragover",wh),document.removeEventListener("drop",K))}},[P,h]);var ee=v.useCallback(function(I){I.preventDefault(),I.persist(),Ze(I),F.current=[].concat(t2(F.current),[I.target]),Rs(I)&&Promise.resolve(i(I)).then(function(G){Bl(I)&&!E||(B({draggedFiles:G,isDragActive:!0,type:"setDraggedFiles"}),u&&u(I))})},[i,u,E]),Xe=v.useCallback(function(I){I.preventDefault(),I.persist(),Ze(I);var G=Rs(I);if(G&&I.dataTransfer)try{I.dataTransfer.dropEffect="copy"}catch{}return G&&f&&f(I),!1},[f,E]),Oe=v.useCallback(function(I){I.preventDefault(),I.persist(),Ze(I);var G=F.current.filter(function(Je){return P.current&&P.current.contains(Je)}),Le=G.indexOf(I.target);Le!==-1&&G.splice(Le,1),F.current=G,!(G.length>0)&&(B({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Rs(I)&&c&&c(I))},[P,c,E]),$e=v.useCallback(function(I,G){var Le=[],Je=[];I.forEach(function(Pt){var $i=wy(Pt,n),Tr=fu($i,2),ba=Tr[0],Sa=Tr[1],Ea=_y(Pt,s,o),ns=fu(Ea,2),Ca=ns[0],Aa=ns[1],Oa=C?C(Pt):null;if(ba&&Ca&&!Oa)Le.push(Pt);else{var Pa=[Sa,Aa];Oa&&(Pa=Pa.concat(Oa)),Je.push({file:Pt,errors:Pa.filter(function(Ry){return Ry})})}}),(!l&&Le.length>1||l&&a>=1&&Le.length>a)&&(Le.forEach(function(Pt){Je.push({file:Pt,errors:[HA]})}),Le.splice(0)),B({acceptedFiles:Le,fileRejections:Je,type:"setFiles"}),d&&d(Le,Je,G),Je.length>0&&y&&y(Je,G),Le.length>0&&p&&p(Le,G)},[B,l,n,s,o,a,d,p,y,C]),ue=v.useCallback(function(I){I.preventDefault(),I.persist(),Ze(I),F.current=[],Rs(I)&&Promise.resolve(i(I)).then(function(G){Bl(I)&&!E||$e(G,I)}),B({type:"reset"})},[i,$e,E]),j=v.useCallback(function(){if(g&&_h()){B({type:"openDialog"}),A();var I={multiple:l,types:XA(n)};window.showOpenFilePicker(I).then(function(G){return i(G)}).then(function(G){return $e(G,null)}).catch(function(G){return k(G)}).finally(function(){return B({type:"closeDialog"})});return}N.current&&(B({type:"openDialog"}),A(),N.current.value=null,N.current.click())},[B,A,k,g,$e,n,l]),oe=v.useCallback(function(I){!P.current||!P.current.isEqualNode(I.target)||(I.keyCode===32||I.keyCode===13)&&(I.preventDefault(),j())},[P,N,j]),xe=v.useCallback(function(){B({type:"focus"})},[]),se=v.useCallback(function(){B({type:"blur"})},[]),re=v.useCallback(function(){w||(YA()?setTimeout(j,0):j())},[N,w,j]),J=function(G){return r?null:G},Me=function(G){return x?null:J(G)},Re=function(G){return S?null:J(G)},Ze=function(G){E&&G.stopPropagation()},Sn=v.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=I.refKey,Le=G===void 0?"ref":G,Je=I.role,Pt=I.onKeyDown,$i=I.onFocus,Tr=I.onBlur,ba=I.onClick,Sa=I.onDragEnter,Ea=I.onDragOver,ns=I.onDragLeave,Ca=I.onDrop,Aa=Ul(I,qA);return ge(ge(kc({onKeyDown:Me(Bt(Pt,oe)),onFocus:Me(Bt($i,xe)),onBlur:Me(Bt(Tr,se)),onClick:J(Bt(ba,re)),onDragEnter:Re(Bt(Sa,ee)),onDragOver:Re(Bt(Ea,Xe)),onDragLeave:Re(Bt(ns,Oe)),onDrop:Re(Bt(Ca,ue)),role:typeof Je=="string"&&Je!==""?Je:"button"},Le,P),!r&&!x?{tabIndex:0}:{}),Aa)}},[P,oe,xe,se,re,ee,Xe,Oe,ue,x,S,r]),nr=v.useCallback(function(I){I.stopPropagation()},[]),xa=v.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=I.refKey,Le=G===void 0?"ref":G,Je=I.onChange,Pt=I.onClick,$i=Ul(I,e2),Tr=kc({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:J(Bt(Je,ue)),onClick:J(Bt(Pt,nr)),autoComplete:"off",tabIndex:-1},Le,N);return ge(ge({},Tr),$i)}},[N,n,l,ue,r]),es=T.length,ts=es>0&&KA({files:T,accept:n,minSize:s,maxSize:o,multiple:l,maxFiles:a}),kr=es>0&&!ts;return ge(ge({},L),{},{isDragAccept:ts,isDragReject:kr,isFocused:z&&!r,getRootProps:Sn,getInputProps:xa,rootRef:P,inputRef:N,open:J(j)})}function u2(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},Tc),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return ge(ge({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ge({},Tc);default:return e}}function bh(){}const No=V({active:0});var or=4294967295;function c2(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function Ey(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function Cy(e,t){var n=e.getInt32(t),r=e.getUint32(t+4);return n*4294967296+r}function f2(e,t){var n=e.getUint32(t),r=e.getUint32(t+4);return n*4294967296+r}var du,pu,hu,_a=(typeof process>"u"||((du=process==null?void 0:process.env)===null||du===void 0?void 0:du.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function Sh(e){for(var t=e.length,n=0,r=0;r<t;){var i=e.charCodeAt(r++);if(i&4294967168)if(!(i&4294965248))n+=2;else{if(i>=55296&&i<=56319&&r<t){var o=e.charCodeAt(r);(o&64512)===56320&&(++r,i=((i&1023)<<10)+(o&1023)+65536)}i&4294901760?n+=4:n+=3}else{n++;continue}}return n}function d2(e,t,n){for(var r=e.length,i=n,o=0;o<r;){var s=e.charCodeAt(o++);if(s&4294967168)if(!(s&4294965248))t[i++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&o<r){var l=e.charCodeAt(o);(l&64512)===56320&&(++o,s=((s&1023)<<10)+(l&1023)+65536)}s&4294901760?(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128,t[i++]=s>>6&63|128):(t[i++]=s>>12&15|224,t[i++]=s>>6&63|128)}else{t[i++]=s;continue}t[i++]=s&63|128}}var so=_a?new TextEncoder:void 0,p2=_a?typeof process<"u"&&((pu=process==null?void 0:process.env)===null||pu===void 0?void 0:pu.TEXT_ENCODING)!=="force"?200:0:or;function h2(e,t,n){t.set(so.encode(e),n)}function v2(e,t,n){so.encodeInto(e,t.subarray(n))}var g2=so!=null&&so.encodeInto?v2:h2,m2=4096;function Ay(e,t,n){for(var r=t,i=r+n,o=[],s="";r<i;){var l=e[r++];if(!(l&128))o.push(l);else if((l&224)===192){var a=e[r++]&63;o.push((l&31)<<6|a)}else if((l&240)===224){var a=e[r++]&63,u=e[r++]&63;o.push((l&31)<<12|a<<6|u)}else if((l&248)===240){var a=e[r++]&63,u=e[r++]&63,c=e[r++]&63,f=(l&7)<<18|a<<12|u<<6|c;f>65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|f&1023),o.push(f)}else o.push(l);o.length>=m2&&(s+=String.fromCharCode.apply(String,o),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,o)),s}var y2=_a?new TextDecoder:null,w2=_a?typeof process<"u"&&((hu=process==null?void 0:process.env)===null||hu===void 0?void 0:hu.TEXT_DECODER)!=="force"?200:0:or;function _2(e,t,n){var r=e.subarray(t,t+n);return y2.decode(r)}var Ns=function(){function e(t,n){this.type=t,this.data=n}return e}(),x2=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(e){x2(t,e);function t(n){var r=e.call(this,n)||this,i=Object.create(t.prototype);return Object.setPrototypeOf(r,i),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:t.name}),r}return t}(Error),b2=-1,S2=4294967296-1,E2=17179869184-1;function C2(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=E2)if(n===0&&t<=S2){var r=new Uint8Array(4),i=new DataView(r.buffer);return i.setUint32(0,t),r}else{var o=t/4294967296,s=t&4294967295,r=new Uint8Array(8),i=new DataView(r.buffer);return i.setUint32(0,n<<2|o&3),i.setUint32(4,s),r}else{var r=new Uint8Array(12),i=new DataView(r.buffer);return i.setUint32(0,n),Ey(i,4,t),r}}function A2(e){var t=e.getTime(),n=Math.floor(t/1e3),r=(t-n*1e3)*1e6,i=Math.floor(r/1e9);return{sec:n+i,nsec:r-i*1e9}}function O2(e){if(e instanceof Date){var t=A2(e);return C2(t)}else return null}function P2(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:{var n=t.getUint32(0),r=0;return{sec:n,nsec:r}}case 8:{var i=t.getUint32(0),o=t.getUint32(4),n=(i&3)*4294967296+o,r=i>>>2;return{sec:n,nsec:r}}case 12:{var n=Cy(t,4),r=t.getUint32(0);return{sec:n,nsec:r}}default:throw new Vt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}function k2(e){var t=P2(e);return new Date(t.sec*1e3+t.nsec/1e6)}var T2={type:b2,encode:O2,decode:k2},rd=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(T2)}return e.prototype.register=function(t){var n=t.type,r=t.encode,i=t.decode;if(n>=0)this.encoders[n]=r,this.decoders[n]=i;else{var o=1+n;this.builtInEncoders[o]=r,this.builtInDecoders[o]=i}},e.prototype.tryToEncode=function(t,n){for(var r=0;r<this.builtInEncoders.length;r++){var i=this.builtInEncoders[r];if(i!=null){var o=i(t,n);if(o!=null){var s=-1-r;return new Ns(s,o)}}}for(var r=0;r<this.encoders.length;r++){var i=this.encoders[r];if(i!=null){var o=i(t,n);if(o!=null){var s=r;return new Ns(s,o)}}}return t instanceof Ns?t:null},e.prototype.decode=function(t,n,r){var i=n<0?this.builtInDecoders[-1-n]:this.decoders[n];return i?i(t,n,r):new Ns(n,t)},e.defaultCodec=new e,e}();function Vl(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}function $2(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=Vl(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}var R2=100,N2=2048,D2=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=rd.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=R2),i===void 0&&(i=N2),o===void 0&&(o=!1),s===void 0&&(s=!1),l===void 0&&(l=!1),a===void 0&&(a=!1),this.extensionCodec=t,this.context=n,this.maxDepth=r,this.initialBufferSize=i,this.sortKeys=o,this.forceFloat32=s,this.ignoreUndefined=l,this.forceIntegerToFloat=a,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(t){return this.reinitializeState(),this.doEncode(t,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(t){return this.reinitializeState(),this.doEncode(t,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(t,n){if(n>this.maxDepth)throw new Error("Too deep objects in depth ".concat(n));t==null?this.encodeNil():typeof t=="boolean"?this.encodeBoolean(t):typeof t=="number"?this.encodeNumber(t):typeof t=="string"?this.encodeString(t):this.encodeObject(t,n)},e.prototype.ensureBufferSizeToWrite=function(t){var n=this.pos+t;this.view.byteLength<n&&this.resizeBuffer(n*2)},e.prototype.resizeBuffer=function(t){var n=new ArrayBuffer(t),r=new Uint8Array(n),i=new DataView(n);r.set(this.bytes),this.view=i,this.bytes=r},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(t){t===!1?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(t){Number.isSafeInteger(t)&&!this.forceIntegerToFloat?t>=0?t<128?this.writeU8(t):t<256?(this.writeU8(204),this.writeU8(t)):t<65536?(this.writeU8(205),this.writeU16(t)):t<4294967296?(this.writeU8(206),this.writeU32(t)):(this.writeU8(207),this.writeU64(t)):t>=-32?this.writeU8(224|t+32):t>=-128?(this.writeU8(208),this.writeI8(t)):t>=-32768?(this.writeU8(209),this.writeI16(t)):t>=-2147483648?(this.writeU8(210),this.writeI32(t)):(this.writeU8(211),this.writeI64(t)):this.forceFloat32?(this.writeU8(202),this.writeF32(t)):(this.writeU8(203),this.writeF64(t))},e.prototype.writeStringHeader=function(t){if(t<32)this.writeU8(160+t);else if(t<256)this.writeU8(217),this.writeU8(t);else if(t<65536)this.writeU8(218),this.writeU16(t);else if(t<4294967296)this.writeU8(219),this.writeU32(t);else throw new Error("Too long string: ".concat(t," bytes in UTF-8"))},e.prototype.encodeString=function(t){var n=5,r=t.length;if(r>p2){var i=Sh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),g2(t,this.bytes,this.pos),this.pos+=i}else{var i=Sh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),d2(t,this.bytes,this.pos),this.pos+=i}},e.prototype.encodeObject=function(t,n){var r=this.extensionCodec.tryToEncode(t,this.context);if(r!=null)this.encodeExtension(r);else if(Array.isArray(t))this.encodeArray(t,n);else if(ArrayBuffer.isView(t))this.encodeBinary(t);else if(typeof t=="object")this.encodeMap(t,n);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(t)))},e.prototype.encodeBinary=function(t){var n=t.byteLength;if(n<256)this.writeU8(196),this.writeU8(n);else if(n<65536)this.writeU8(197),this.writeU16(n);else if(n<4294967296)this.writeU8(198),this.writeU32(n);else throw new Error("Too large binary: ".concat(n));var r=Vl(t);this.writeU8a(r)},e.prototype.encodeArray=function(t,n){var r=t.length;if(r<16)this.writeU8(144+r);else if(r<65536)this.writeU8(220),this.writeU16(r);else if(r<4294967296)this.writeU8(221),this.writeU32(r);else throw new Error("Too large array: ".concat(r));for(var i=0,o=t;i<o.length;i++){var s=o[i];this.doEncode(s,n+1)}},e.prototype.countWithoutUndefined=function(t,n){for(var r=0,i=0,o=n;i<o.length;i++){var s=o[i];t[s]!==void 0&&r++}return r},e.prototype.encodeMap=function(t,n){var r=Object.keys(t);this.sortKeys&&r.sort();var i=this.ignoreUndefined?this.countWithoutUndefined(t,r):r.length;if(i<16)this.writeU8(128+i);else if(i<65536)this.writeU8(222),this.writeU16(i);else if(i<4294967296)this.writeU8(223),this.writeU32(i);else throw new Error("Too large map object: ".concat(i));for(var o=0,s=r;o<s.length;o++){var l=s[o],a=t[l];this.ignoreUndefined&&a===void 0||(this.encodeString(l),this.doEncode(a,n+1))}},e.prototype.encodeExtension=function(t){var n=t.data.length;if(n===1)this.writeU8(212);else if(n===2)this.writeU8(213);else if(n===4)this.writeU8(214);else if(n===8)this.writeU8(215);else if(n===16)this.writeU8(216);else if(n<256)this.writeU8(199),this.writeU8(n);else if(n<65536)this.writeU8(200),this.writeU16(n);else if(n<4294967296)this.writeU8(201),this.writeU32(n);else throw new Error("Too large extension object: ".concat(n));this.writeI8(t.type),this.writeU8a(t.data)},e.prototype.writeU8=function(t){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,t),this.pos++},e.prototype.writeU8a=function(t){var n=t.length;this.ensureBufferSizeToWrite(n),this.bytes.set(t,this.pos),this.pos+=n},e.prototype.writeI8=function(t){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,t),this.pos++},e.prototype.writeU16=function(t){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,t),this.pos+=2},e.prototype.writeI16=function(t){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,t),this.pos+=2},e.prototype.writeU32=function(t){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,t),this.pos+=4},e.prototype.writeI32=function(t){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,t),this.pos+=4},e.prototype.writeF32=function(t){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,t),this.pos+=4},e.prototype.writeF64=function(t){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,t),this.pos+=8},e.prototype.writeU64=function(t){this.ensureBufferSizeToWrite(8),c2(this.view,this.pos,t),this.pos+=8},e.prototype.writeI64=function(t){this.ensureBufferSizeToWrite(8),Ey(this.view,this.pos,t),this.pos+=8},e}(),I2={};function Oy(e,t){t===void 0&&(t=I2);var n=new D2(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat);return n.encodeSharedRef(e)}function vu(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var M2=16,L2=16,j2=function(){function e(t,n){t===void 0&&(t=M2),n===void 0&&(n=L2),this.maxKeyLength=t,this.maxLengthPerKey=n,this.hit=0,this.miss=0,this.caches=[];for(var r=0;r<this.maxKeyLength;r++)this.caches.push([])}return e.prototype.canBeCached=function(t){return t>0&&t<=this.maxKeyLength},e.prototype.find=function(t,n,r){var i=this.caches[r-1];e:for(var o=0,s=i;o<s.length;o++){for(var l=s[o],a=l.bytes,u=0;u<r;u++)if(a[u]!==t[n+u])continue e;return l.str}return null},e.prototype.store=function(t,n){var r=this.caches[t.length-1],i={bytes:t,str:n};r.length>=this.maxLengthPerKey?r[Math.random()*r.length|0]=i:r.push(i)},e.prototype.decode=function(t,n,r){var i=this.find(t,n,r);if(i!=null)return this.hit++,i;this.miss++;var o=Ay(t,n,r),s=Uint8Array.prototype.slice.call(t,n,n+r);return this.store(s,o),o},e}(),F2=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})},gu=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Eh=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(u){o({value:u,done:l})},s)}},ii=globalThis&&globalThis.__await||function(e){return this instanceof ii?(this.v=e,this):new ii(e)},z2=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(p){return new Promise(function(y,m){o.push([d,p,y,m])>1||l(d,p)})})}function l(d,p){try{a(r[d](p))}catch(y){f(o[0][3],y)}}function a(d){d.value instanceof ii?Promise.resolve(d.value.v).then(u,c):f(o[0][2],d)}function u(d){l("next",d)}function c(d){l("throw",d)}function f(d,p){d(p),o.shift(),o.length&&l(o[0][0],o[0][1])}},B2=function(e){var t=typeof e;return t==="string"||t==="number"},Vi=-1,id=new DataView(new ArrayBuffer(0)),U2=new Uint8Array(id.buffer),$c=function(){try{id.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),Ch=new $c("Insufficient data"),V2=new j2,W2=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=rd.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=or),i===void 0&&(i=or),o===void 0&&(o=or),s===void 0&&(s=or),l===void 0&&(l=or),a===void 0&&(a=V2),this.extensionCodec=t,this.context=n,this.maxStrLength=r,this.maxBinLength=i,this.maxArrayLength=o,this.maxMapLength=s,this.maxExtLength=l,this.keyDecoder=a,this.totalPos=0,this.pos=0,this.view=id,this.bytes=U2,this.headByte=Vi,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=Vi,this.stack.length=0},e.prototype.setBuffer=function(t){this.bytes=Vl(t),this.view=$2(this.bytes),this.pos=0},e.prototype.appendBuffer=function(t){if(this.headByte===Vi&&!this.hasRemaining(1))this.setBuffer(t);else{var n=this.bytes.subarray(this.pos),r=Vl(t),i=new Uint8Array(n.length+r.length);i.set(n),i.set(r,n.length),this.setBuffer(i)}},e.prototype.hasRemaining=function(t){return this.view.byteLength-this.pos>=t},e.prototype.createExtraByteError=function(t){var n=this,r=n.view,i=n.pos;return new RangeError("Extra ".concat(r.byteLength-i," of ").concat(r.byteLength," byte(s) found at buffer[").concat(t,"]"))},e.prototype.decode=function(t){this.reinitializeState(),this.setBuffer(t);var n=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return n},e.prototype.decodeMulti=function(t){return gu(this,function(n){switch(n.label){case 0:this.reinitializeState(),this.setBuffer(t),n.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return n.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(t){var n,r,i,o;return F2(this,void 0,void 0,function(){var s,l,a,u,c,f,d,p;return gu(this,function(y){switch(y.label){case 0:s=!1,y.label=1;case 1:y.trys.push([1,6,7,12]),n=Eh(t),y.label=2;case 2:return[4,n.next()];case 3:if(r=y.sent(),!!r.done)return[3,5];if(a=r.value,s)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a);try{l=this.doDecodeSync(),s=!0}catch(m){if(!(m instanceof $c))throw m}this.totalPos+=this.pos,y.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return u=y.sent(),i={error:u},[3,12];case 7:return y.trys.push([7,,10,11]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,9];case 8:y.sent(),y.label=9;case 9:return[3,11];case 10:if(i)throw i.error;return[7];case 11:return[7];case 12:if(s){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,l]}throw c=this,f=c.headByte,d=c.pos,p=c.totalPos,new RangeError("Insufficient data in parsing ".concat(vu(f)," at ").concat(p," (").concat(d," in the current buffer)"))}})})},e.prototype.decodeArrayStream=function(t){return this.decodeMultiAsync(t,!0)},e.prototype.decodeStream=function(t){return this.decodeMultiAsync(t,!1)},e.prototype.decodeMultiAsync=function(t,n){return z2(this,arguments,function(){var i,o,s,l,a,u,c,f,d;return gu(this,function(p){switch(p.label){case 0:i=n,o=-1,p.label=1;case 1:p.trys.push([1,13,14,19]),s=Eh(t),p.label=2;case 2:return[4,ii(s.next())];case 3:if(l=p.sent(),!!l.done)return[3,12];if(a=l.value,n&&o===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a),i&&(o=this.readArraySize(),i=!1,this.complete()),p.label=4;case 4:p.trys.push([4,9,,10]),p.label=5;case 5:return[4,ii(this.doDecodeSync())];case 6:return[4,p.sent()];case 7:return p.sent(),--o===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(u=p.sent(),!(u instanceof $c))throw u;return[3,10];case 10:this.totalPos+=this.pos,p.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=p.sent(),f={error:c},[3,19];case 14:return p.trys.push([14,,17,18]),l&&!l.done&&(d=s.return)?[4,ii(d.call(s))]:[3,16];case 15:p.sent(),p.label=16;case 16:return[3,18];case 17:if(f)throw f.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){e:for(;;){var t=this.readHeadByte(),n=void 0;if(t>=224)n=t-256;else if(t<192)if(t<128)n=t;else if(t<144){var r=t-128;if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t<160){var r=t-144;if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else{var i=t-160;n=this.decodeUtf8String(i,0)}else if(t===192)n=null;else if(t===194)n=!1;else if(t===195)n=!0;else if(t===202)n=this.readF32();else if(t===203)n=this.readF64();else if(t===204)n=this.readU8();else if(t===205)n=this.readU16();else if(t===206)n=this.readU32();else if(t===207)n=this.readU64();else if(t===208)n=this.readI8();else if(t===209)n=this.readI16();else if(t===210)n=this.readI32();else if(t===211)n=this.readI64();else if(t===217){var i=this.lookU8();n=this.decodeUtf8String(i,1)}else if(t===218){var i=this.lookU16();n=this.decodeUtf8String(i,2)}else if(t===219){var i=this.lookU32();n=this.decodeUtf8String(i,4)}else if(t===220){var r=this.readU16();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(t===221){var r=this.readU32();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(t===222){var r=this.readU16();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t===223){var r=this.readU32();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t===196){var r=this.lookU8();n=this.decodeBinary(r,1)}else if(t===197){var r=this.lookU16();n=this.decodeBinary(r,2)}else if(t===198){var r=this.lookU32();n=this.decodeBinary(r,4)}else if(t===212)n=this.decodeExtension(1,0);else if(t===213)n=this.decodeExtension(2,0);else if(t===214)n=this.decodeExtension(4,0);else if(t===215)n=this.decodeExtension(8,0);else if(t===216)n=this.decodeExtension(16,0);else if(t===199){var r=this.lookU8();n=this.decodeExtension(r,1)}else if(t===200){var r=this.lookU16();n=this.decodeExtension(r,2)}else if(t===201){var r=this.lookU32();n=this.decodeExtension(r,4)}else throw new Vt("Unrecognized type byte: ".concat(vu(t)));this.complete();for(var o=this.stack;o.length>0;){var s=o[o.length-1];if(s.type===0)if(s.array[s.position]=n,s.position++,s.position===s.size)o.pop(),n=s.array;else continue e;else if(s.type===1){if(!B2(n))throw new Vt("The type of key must be string or number but "+typeof n);if(n==="__proto__")throw new Vt("The key __proto__ is not allowed");s.key=n,s.type=2;continue e}else if(s.map[s.key]=n,s.readCount++,s.readCount===s.size)o.pop(),n=s.map;else{s.key=null,s.type=1;continue e}}return n}},e.prototype.readHeadByte=function(){return this.headByte===Vi&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=Vi},e.prototype.readArraySize=function(){var t=this.readHeadByte();switch(t){case 220:return this.readU16();case 221:return this.readU32();default:{if(t<160)return t-144;throw new Vt("Unrecognized array type byte: ".concat(vu(t)))}}},e.prototype.pushMapState=function(t){if(t>this.maxMapLength)throw new Vt("Max length exceeded: map length (".concat(t,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:t,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(t){if(t>this.maxArrayLength)throw new Vt("Max length exceeded: array length (".concat(t,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:t,array:new Array(t),position:0})},e.prototype.decodeUtf8String=function(t,n){var r;if(t>this.maxStrLength)throw new Vt("Max length exceeded: UTF-8 byte length (".concat(t,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+n+t)throw Ch;var i=this.pos+n,o;return this.stateIsMapKey()&&(!((r=this.keyDecoder)===null||r===void 0)&&r.canBeCached(t))?o=this.keyDecoder.decode(this.bytes,i,t):t>w2?o=_2(this.bytes,i,t):o=Ay(this.bytes,i,t),this.pos+=n+t,o},e.prototype.stateIsMapKey=function(){if(this.stack.length>0){var t=this.stack[this.stack.length-1];return t.type===1}return!1},e.prototype.decodeBinary=function(t,n){if(t>this.maxBinLength)throw new Vt("Max length exceeded: bin length (".concat(t,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(t+n))throw Ch;var r=this.pos+n,i=this.bytes.subarray(r,r+t);return this.pos+=n+t,i},e.prototype.decodeExtension=function(t,n){if(t>this.maxExtLength)throw new Vt("Max length exceeded: ext length (".concat(t,") > maxExtLength (").concat(this.maxExtLength,")"));var r=this.view.getInt8(this.pos+n),i=this.decodeBinary(t,n+1);return this.extensionCodec.decode(i,r,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var t=this.view.getUint8(this.pos);return this.pos++,t},e.prototype.readI8=function(){var t=this.view.getInt8(this.pos);return this.pos++,t},e.prototype.readU16=function(){var t=this.view.getUint16(this.pos);return this.pos+=2,t},e.prototype.readI16=function(){var t=this.view.getInt16(this.pos);return this.pos+=2,t},e.prototype.readU32=function(){var t=this.view.getUint32(this.pos);return this.pos+=4,t},e.prototype.readI32=function(){var t=this.view.getInt32(this.pos);return this.pos+=4,t},e.prototype.readU64=function(){var t=f2(this.view,this.pos);return this.pos+=8,t},e.prototype.readI64=function(){var t=Cy(this.view,this.pos);return this.pos+=8,t},e.prototype.readF32=function(){var t=this.view.getFloat32(this.pos);return this.pos+=4,t},e.prototype.readF64=function(){var t=this.view.getFloat64(this.pos);return this.pos+=8,t},e}(),H2={};function Py(e,t){t===void 0&&(t=H2);var n=new W2(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength);return n.decode(e)}class ky{constructor(t,n){U(this,"id");U(this,"commands",[]);U(this,"logs",[]);U(this,"screencasts",[]);U(this,"unspecific",[]);U(this,"group","");U(this,"test",{name:"",status:void 0});U(this,"options");U(this,"capabilities");U(this,"createdAt");U(this,"created",Date.now());U(this,"lastActivity");U(this,"original");U(this,"connectionStore");this.original=t,this.connectionStore=n;let{id:r,options:i,test:o,group:s,capabilities:l,timestamp:a}=t;this.id=r,this.options=i,this.test=o,this.group=s,this.capabilities=l,this.createdAt=a,this.lastActivity=a,ca(this,{commands:V,logs:V,screencasts:V,unspecific:V,group:V,test:V,options:V,capabilities:V,lastActivity:V,connectionStore:V,received:de,getRenderedTypesFilter:de,getEventTime:de,packets:de,blob:de,renderedEvents:Se,took:Se})}received(t){var r;t.context=this;let n=((r=t==null?void 0:t.time)==null?void 0:r.finished)>t.timestamp?t.time.finished:t.timestamp;n>this.lastActivity&&(this.lastActivity=n),t.type==="command"?this.commands.push(t):t.type==="log"?this.logs.push(t):t.type==="test"?(t.specific==="status"&&(this.test.status=t.status),this.unspecific.push(t)):t.type==="screencasts"?(this.screencasts.push(t),et.emit("context:event:screencast",{context:this,packet:t})):(console.log("unhandled event packet",t),this.unspecific.push(t))}getRenderedTypesFilter(){return t=>[oo.Page,oo.ElementHandle].includes(t.on.type)}get renderedEvents(){return[...this.commands.filter(this.getRenderedTypesFilter()),...this.logs,...this.screencasts].sort((t,n)=>this.getEventTime(t)-this.getEventTime(n))}getEventTime(t){var n,r;return((n=t==null?void 0:t.time)==null?void 0:n.started)??((r=t==null?void 0:t.time)==null?void 0:r.created)??(t==null?void 0:t.timestamp)??(t==null?void 0:t.time)}packets(){let t=[structuredClone(xp(this.original)),...this.commands,...this.logs,...this.screencasts,...this.unspecific];for(let n=1;n<t.length;n++){let r=t[n];r.context=t[0].context,t[n]=structuredClone(xp(r)),r.context=this}return t}blob(){return new Blob([Oy(this.packets(),{extensionCodec:Do})])}get took(){const t=this.lastActivity-this.createdAt,n=Math.floor(t/1e3/60),r=Math.ceil(t/1e3%60);return{ms:t,minutes:n,seconds:r}}}var Ty={exports:{}};(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,i=0;t.Diff=function(o,s){return[o,s]},t.prototype.diff_main=function(o,s,l,a){typeof a>"u"&&(this.Diff_Timeout<=0?a=Number.MAX_VALUE:a=new Date().getTime()+this.Diff_Timeout*1e3);var u=a;if(o==null||s==null)throw new Error("Null input. (diff_main)");if(o==s)return o?[new t.Diff(i,o)]:[];typeof l>"u"&&(l=!0);var c=l,f=this.diff_commonPrefix(o,s),d=o.substring(0,f);o=o.substring(f),s=s.substring(f),f=this.diff_commonSuffix(o,s);var p=o.substring(o.length-f);o=o.substring(0,o.length-f),s=s.substring(0,s.length-f);var y=this.diff_compute_(o,s,c,u);return d&&y.unshift(new t.Diff(i,d)),p&&y.push(new t.Diff(i,p)),this.diff_cleanupMerge(y),y},t.prototype.diff_compute_=function(o,s,l,a){var u;if(!o)return[new t.Diff(r,s)];if(!s)return[new t.Diff(n,o)];var c=o.length>s.length?o:s,f=o.length>s.length?s:o,d=c.indexOf(f);if(d!=-1)return u=[new t.Diff(r,c.substring(0,d)),new t.Diff(i,f),new t.Diff(r,c.substring(d+f.length))],o.length>s.length&&(u[0][0]=u[2][0]=n),u;if(f.length==1)return[new t.Diff(n,o),new t.Diff(r,s)];var p=this.diff_halfMatch_(o,s);if(p){var y=p[0],m=p[1],_=p[2],g=p[3],h=p[4],w=this.diff_main(y,_,l,a),x=this.diff_main(m,g,l,a);return w.concat([new t.Diff(i,h)],x)}return l&&o.length>100&&s.length>100?this.diff_lineMode_(o,s,a):this.diff_bisect_(o,s,a)},t.prototype.diff_lineMode_=function(o,s,l){var a=this.diff_linesToChars_(o,s);o=a.chars1,s=a.chars2;var u=a.lineArray,c=this.diff_main(o,s,!1,l);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new t.Diff(i,""));for(var f=0,d=0,p=0,y="",m="";f<c.length;){switch(c[f][0]){case r:p++,m+=c[f][1];break;case n:d++,y+=c[f][1];break;case i:if(d>=1&&p>=1){c.splice(f-d-p,d+p),f=f-d-p;for(var _=this.diff_main(y,m,!1,l),g=_.length-1;g>=0;g--)c.splice(f,0,_[g]);f=f+_.length}p=0,d=0,y="",m="";break}f++}return c.pop(),c},t.prototype.diff_bisect_=function(o,s,l){for(var a=o.length,u=s.length,c=Math.ceil((a+u)/2),f=c,d=2*c,p=new Array(d),y=new Array(d),m=0;m<d;m++)p[m]=-1,y[m]=-1;p[f+1]=0,y[f+1]=0;for(var _=a-u,g=_%2!=0,h=0,w=0,x=0,S=0,E=0;E<c&&!(new Date().getTime()>l);E++){for(var C=-E+h;C<=E-w;C+=2){var A=f+C,k;C==-E||C!=E&&p[A-1]<p[A+1]?k=p[A+1]:k=p[A-1]+1;for(var P=k-C;k<a&&P<u&&o.charAt(k)==s.charAt(P);)k++,P++;if(p[A]=k,k>a)w+=2;else if(P>u)h+=2;else if(g){var N=f+_-C;if(N>=0&&N<d&&y[N]!=-1){var R=a-y[N];if(k>=R)return this.diff_bisectSplit_(o,s,k,P,l)}}}for(var W=-E+x;W<=E-S;W+=2){var N=f+W,R;W==-E||W!=E&&y[N-1]<y[N+1]?R=y[N+1]:R=y[N-1]+1;for(var L=R-W;R<a&&L<u&&o.charAt(a-R-1)==s.charAt(u-L-1);)R++,L++;if(y[N]=R,R>a)S+=2;else if(L>u)x+=2;else if(!g){var A=f+_-W;if(A>=0&&A<d&&p[A]!=-1){var k=p[A],P=f+k-A;if(R=a-R,k>=R)return this.diff_bisectSplit_(o,s,k,P,l)}}}}return[new t.Diff(n,o),new t.Diff(r,s)]},t.prototype.diff_bisectSplit_=function(o,s,l,a,u){var c=o.substring(0,l),f=s.substring(0,a),d=o.substring(l),p=s.substring(a),y=this.diff_main(c,f,!1,u),m=this.diff_main(d,p,!1,u);return y.concat(m)},t.prototype.diff_linesToChars_=function(o,s){var l=[],a={};l[0]="";function u(p){for(var y="",m=0,_=-1,g=l.length;_<p.length-1;){_=p.indexOf(`
|
|
85
|
-
`,m),_==-1&&(_=p.length-1);var h=p.substring(m,_+1);(a.hasOwnProperty?a.hasOwnProperty(h):a[h]!==void 0)?y+=String.fromCharCode(a[h]):(g==c&&(h=p.substring(m),_=p.length),y+=String.fromCharCode(g),a[h]=g,l[g++]=h),m=_+1}return y}var c=4e4,f=u(o);c=65535;var d=u(s);return{chars1:f,chars2:d,lineArray:l}},t.prototype.diff_charsToLines_=function(o,s){for(var l=0;l<o.length;l++){for(var a=o[l][1],u=[],c=0;c<a.length;c++)u[c]=s[a.charCodeAt(c)];o[l][1]=u.join("")}},t.prototype.diff_commonPrefix=function(o,s){if(!o||!s||o.charAt(0)!=s.charAt(0))return 0;for(var l=0,a=Math.min(o.length,s.length),u=a,c=0;l<u;)o.substring(c,u)==s.substring(c,u)?(l=u,c=l):a=u,u=Math.floor((a-l)/2+l);return u},t.prototype.diff_commonSuffix=function(o,s){if(!o||!s||o.charAt(o.length-1)!=s.charAt(s.length-1))return 0;for(var l=0,a=Math.min(o.length,s.length),u=a,c=0;l<u;)o.substring(o.length-u,o.length-c)==s.substring(s.length-u,s.length-c)?(l=u,c=l):a=u,u=Math.floor((a-l)/2+l);return u},t.prototype.diff_commonOverlap_=function(o,s){var l=o.length,a=s.length;if(l==0||a==0)return 0;l>a?o=o.substring(l-a):l<a&&(s=s.substring(0,l));var u=Math.min(l,a);if(o==s)return u;for(var c=0,f=1;;){var d=o.substring(u-f),p=s.indexOf(d);if(p==-1)return c;f+=p,(p==0||o.substring(u-f)==s.substring(0,f))&&(c=f,f++)}},t.prototype.diff_halfMatch_=function(o,s){if(this.Diff_Timeout<=0)return null;var l=o.length>s.length?o:s,a=o.length>s.length?s:o;if(l.length<4||a.length*2<l.length)return null;var u=this;function c(w,x,S){for(var E=w.substring(S,S+Math.floor(w.length/4)),C=-1,A="",k,P,N,R;(C=x.indexOf(E,C+1))!=-1;){var W=u.diff_commonPrefix(w.substring(S),x.substring(C)),L=u.diff_commonSuffix(w.substring(0,S),x.substring(0,C));A.length<L+W&&(A=x.substring(C-L,C)+x.substring(C,C+W),k=w.substring(0,S-L),P=w.substring(S+W),N=x.substring(0,C-L),R=x.substring(C+W))}return A.length*2>=w.length?[k,P,N,R,A]:null}var f=c(l,a,Math.ceil(l.length/4)),d=c(l,a,Math.ceil(l.length/2)),p;if(!f&&!d)return null;d?f?p=f[4].length>d[4].length?f:d:p=d:p=f;var y,m,_,g;o.length>s.length?(y=p[0],m=p[1],_=p[2],g=p[3]):(_=p[0],g=p[1],y=p[2],m=p[3]);var h=p[4];return[y,m,_,g,h]},t.prototype.diff_cleanupSemantic=function(o){for(var s=!1,l=[],a=0,u=null,c=0,f=0,d=0,p=0,y=0;c<o.length;)o[c][0]==i?(l[a++]=c,f=p,d=y,p=0,y=0,u=o[c][1]):(o[c][0]==r?p+=o[c][1].length:y+=o[c][1].length,u&&u.length<=Math.max(f,d)&&u.length<=Math.max(p,y)&&(o.splice(l[a-1],0,new t.Diff(n,u)),o[l[a-1]+1][0]=r,a--,a--,c=a>0?l[a-1]:-1,f=0,d=0,p=0,y=0,u=null,s=!0)),c++;for(s&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),c=1;c<o.length;){if(o[c-1][0]==n&&o[c][0]==r){var m=o[c-1][1],_=o[c][1],g=this.diff_commonOverlap_(m,_),h=this.diff_commonOverlap_(_,m);g>=h?(g>=m.length/2||g>=_.length/2)&&(o.splice(c,0,new t.Diff(i,_.substring(0,g))),o[c-1][1]=m.substring(0,m.length-g),o[c+1][1]=_.substring(g),c++):(h>=m.length/2||h>=_.length/2)&&(o.splice(c,0,new t.Diff(i,m.substring(0,h))),o[c-1][0]=r,o[c-1][1]=_.substring(0,_.length-h),o[c+1][0]=n,o[c+1][1]=m.substring(h),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(o){function s(h,w){if(!h||!w)return 6;var x=h.charAt(h.length-1),S=w.charAt(0),E=x.match(t.nonAlphaNumericRegex_),C=S.match(t.nonAlphaNumericRegex_),A=E&&x.match(t.whitespaceRegex_),k=C&&S.match(t.whitespaceRegex_),P=A&&x.match(t.linebreakRegex_),N=k&&S.match(t.linebreakRegex_),R=P&&h.match(t.blanklineEndRegex_),W=N&&w.match(t.blanklineStartRegex_);return R||W?5:P||N?4:E&&!A&&k?3:A||k?2:E||C?1:0}for(var l=1;l<o.length-1;){if(o[l-1][0]==i&&o[l+1][0]==i){var a=o[l-1][1],u=o[l][1],c=o[l+1][1],f=this.diff_commonSuffix(a,u);if(f){var d=u.substring(u.length-f);a=a.substring(0,a.length-f),u=d+u.substring(0,u.length-f),c=d+c}for(var p=a,y=u,m=c,_=s(a,u)+s(u,c);u.charAt(0)===c.charAt(0);){a+=u.charAt(0),u=u.substring(1)+c.charAt(0),c=c.substring(1);var g=s(a,u)+s(u,c);g>=_&&(_=g,p=a,y=u,m=c)}o[l-1][1]!=p&&(p?o[l-1][1]=p:(o.splice(l-1,1),l--),o[l][1]=y,m?o[l+1][1]=m:(o.splice(l+1,1),l--))}l++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(o){for(var s=!1,l=[],a=0,u=null,c=0,f=!1,d=!1,p=!1,y=!1;c<o.length;)o[c][0]==i?(o[c][1].length<this.Diff_EditCost&&(p||y)?(l[a++]=c,f=p,d=y,u=o[c][1]):(a=0,u=null),p=y=!1):(o[c][0]==n?y=!0:p=!0,u&&(f&&d&&p&&y||u.length<this.Diff_EditCost/2&&f+d+p+y==3)&&(o.splice(l[a-1],0,new t.Diff(n,u)),o[l[a-1]+1][0]=r,a--,u=null,f&&d?(p=y=!0,a=0):(a--,c=a>0?l[a-1]:-1,p=y=!1),s=!0)),c++;s&&this.diff_cleanupMerge(o)},t.prototype.diff_cleanupMerge=function(o){o.push(new t.Diff(i,""));for(var s=0,l=0,a=0,u="",c="",f;s<o.length;)switch(o[s][0]){case r:a++,c+=o[s][1],s++;break;case n:l++,u+=o[s][1],s++;break;case i:l+a>1?(l!==0&&a!==0&&(f=this.diff_commonPrefix(c,u),f!==0&&(s-l-a>0&&o[s-l-a-1][0]==i?o[s-l-a-1][1]+=c.substring(0,f):(o.splice(0,0,new t.Diff(i,c.substring(0,f))),s++),c=c.substring(f),u=u.substring(f)),f=this.diff_commonSuffix(c,u),f!==0&&(o[s][1]=c.substring(c.length-f)+o[s][1],c=c.substring(0,c.length-f),u=u.substring(0,u.length-f))),s-=l+a,o.splice(s,l+a),u.length&&(o.splice(s,0,new t.Diff(n,u)),s++),c.length&&(o.splice(s,0,new t.Diff(r,c)),s++),s++):s!==0&&o[s-1][0]==i?(o[s-1][1]+=o[s][1],o.splice(s,1)):s++,a=0,l=0,u="",c="";break}o[o.length-1][1]===""&&o.pop();var d=!1;for(s=1;s<o.length-1;)o[s-1][0]==i&&o[s+1][0]==i&&(o[s][1].substring(o[s][1].length-o[s-1][1].length)==o[s-1][1]?(o[s][1]=o[s-1][1]+o[s][1].substring(0,o[s][1].length-o[s-1][1].length),o[s+1][1]=o[s-1][1]+o[s+1][1],o.splice(s-1,1),d=!0):o[s][1].substring(0,o[s+1][1].length)==o[s+1][1]&&(o[s-1][1]+=o[s+1][1],o[s][1]=o[s][1].substring(o[s+1][1].length)+o[s+1][1],o.splice(s+1,1),d=!0)),s++;d&&this.diff_cleanupMerge(o)},t.prototype.diff_xIndex=function(o,s){var l=0,a=0,u=0,c=0,f;for(f=0;f<o.length&&(o[f][0]!==r&&(l+=o[f][1].length),o[f][0]!==n&&(a+=o[f][1].length),!(l>s));f++)u=l,c=a;return o.length!=f&&o[f][0]===n?c:c+(s-u)},t.prototype.diff_prettyHtml=function(o){for(var s=[],l=/&/g,a=/</g,u=/>/g,c=/\n/g,f=0;f<o.length;f++){var d=o[f][0],p=o[f][1],y=p.replace(l,"&").replace(a,"<").replace(u,">").replace(c,"¶<br>");switch(d){case r:s[f]='<ins style="background:#e6ffe6;">'+y+"</ins>";break;case n:s[f]='<del style="background:#ffe6e6;">'+y+"</del>";break;case i:s[f]="<span>"+y+"</span>";break}}return s.join("")},t.prototype.diff_text1=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==r&&(s[l]=o[l][1]);return s.join("")},t.prototype.diff_text2=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==n&&(s[l]=o[l][1]);return s.join("")},t.prototype.diff_levenshtein=function(o){for(var s=0,l=0,a=0,u=0;u<o.length;u++){var c=o[u][0],f=o[u][1];switch(c){case r:l+=f.length;break;case n:a+=f.length;break;case i:s+=Math.max(l,a),l=0,a=0;break}}return s+=Math.max(l,a),s},t.prototype.diff_toDelta=function(o){for(var s=[],l=0;l<o.length;l++)switch(o[l][0]){case r:s[l]="+"+encodeURI(o[l][1]);break;case n:s[l]="-"+o[l][1].length;break;case i:s[l]="="+o[l][1].length;break}return s.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(o,s){for(var l=[],a=0,u=0,c=s.split(/\t/g),f=0;f<c.length;f++){var d=c[f].substring(1);switch(c[f].charAt(0)){case"+":try{l[a++]=new t.Diff(r,decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":var p=parseInt(d,10);if(isNaN(p)||p<0)throw new Error("Invalid number in diff_fromDelta: "+d);var y=o.substring(u,u+=p);c[f].charAt(0)=="="?l[a++]=new t.Diff(i,y):l[a++]=new t.Diff(n,y);break;default:if(c[f])throw new Error("Invalid diff operation in diff_fromDelta: "+c[f])}}if(u!=o.length)throw new Error("Delta length ("+u+") does not equal source text length ("+o.length+").");return l},t.prototype.match_main=function(o,s,l){if(o==null||s==null||l==null)throw new Error("Null input. (match_main)");return l=Math.max(0,Math.min(l,o.length)),o==s?0:o.length?o.substring(l,l+s.length)==s?l:this.match_bitap_(o,s,l):-1},t.prototype.match_bitap_=function(o,s,l){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var a=this.match_alphabet_(s),u=this;function c(k,P){var N=k/s.length,R=Math.abs(l-P);return u.Match_Distance?N+R/u.Match_Distance:R?1:N}var f=this.Match_Threshold,d=o.indexOf(s,l);d!=-1&&(f=Math.min(c(0,d),f),d=o.lastIndexOf(s,l+s.length),d!=-1&&(f=Math.min(c(0,d),f)));var p=1<<s.length-1;d=-1;for(var y,m,_=s.length+o.length,g,h=0;h<s.length;h++){for(y=0,m=_;y<m;)c(h,l+m)<=f?y=m:_=m,m=Math.floor((_-y)/2+y);_=m;var w=Math.max(1,l-m+1),x=Math.min(l+m,o.length)+s.length,S=Array(x+2);S[x+1]=(1<<h)-1;for(var E=x;E>=w;E--){var C=a[o.charAt(E-1)];if(h===0?S[E]=(S[E+1]<<1|1)&C:S[E]=(S[E+1]<<1|1)&C|((g[E+1]|g[E])<<1|1)|g[E+1],S[E]&p){var A=c(h,E-1);if(A<=f)if(f=A,d=E-1,d>l)w=Math.max(1,2*l-d);else break}}if(c(h+1,l)>f)break;g=S}return d},t.prototype.match_alphabet_=function(o){for(var s={},l=0;l<o.length;l++)s[o.charAt(l)]=0;for(var l=0;l<o.length;l++)s[o.charAt(l)]|=1<<o.length-l-1;return s},t.prototype.patch_addContext_=function(o,s){if(s.length!=0){if(o.start2===null)throw Error("patch not initialized");for(var l=s.substring(o.start2,o.start2+o.length1),a=0;s.indexOf(l)!=s.lastIndexOf(l)&&l.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)a+=this.Patch_Margin,l=s.substring(o.start2-a,o.start2+o.length1+a);a+=this.Patch_Margin;var u=s.substring(o.start2-a,o.start2);u&&o.diffs.unshift(new t.Diff(i,u));var c=s.substring(o.start2+o.length1,o.start2+o.length1+a);c&&o.diffs.push(new t.Diff(i,c)),o.start1-=u.length,o.start2-=u.length,o.length1+=u.length+c.length,o.length2+=u.length+c.length}},t.prototype.patch_make=function(o,s,l){var a,u;if(typeof o=="string"&&typeof s=="string"&&typeof l>"u")a=o,u=this.diff_main(a,s,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(o&&typeof o=="object"&&typeof s>"u"&&typeof l>"u")u=o,a=this.diff_text1(u);else if(typeof o=="string"&&s&&typeof s=="object"&&typeof l>"u")a=o,u=s;else if(typeof o=="string"&&typeof s=="string"&&l&&typeof l=="object")a=o,u=l;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],f=new t.patch_obj,d=0,p=0,y=0,m=a,_=a,g=0;g<u.length;g++){var h=u[g][0],w=u[g][1];switch(!d&&h!==i&&(f.start1=p,f.start2=y),h){case r:f.diffs[d++]=u[g],f.length2+=w.length,_=_.substring(0,y)+w+_.substring(y);break;case n:f.length1+=w.length,f.diffs[d++]=u[g],_=_.substring(0,y)+_.substring(y+w.length);break;case i:w.length<=2*this.Patch_Margin&&d&&u.length!=g+1?(f.diffs[d++]=u[g],f.length1+=w.length,f.length2+=w.length):w.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(f,m),c.push(f),f=new t.patch_obj,d=0,m=_,p=y);break}h!==r&&(p+=w.length),h!==n&&(y+=w.length)}return d&&(this.patch_addContext_(f,m),c.push(f)),c},t.prototype.patch_deepCopy=function(o){for(var s=[],l=0;l<o.length;l++){var a=o[l],u=new t.patch_obj;u.diffs=[];for(var c=0;c<a.diffs.length;c++)u.diffs[c]=new t.Diff(a.diffs[c][0],a.diffs[c][1]);u.start1=a.start1,u.start2=a.start2,u.length1=a.length1,u.length2=a.length2,s[l]=u}return s},t.prototype.patch_apply=function(o,s){if(o.length==0)return[s,[]];o=this.patch_deepCopy(o);var l=this.patch_addPadding(o);s=l+s+l,this.patch_splitMax(o);for(var a=0,u=[],c=0;c<o.length;c++){var f=o[c].start2+a,d=this.diff_text1(o[c].diffs),p,y=-1;if(d.length>this.Match_MaxBits?(p=this.match_main(s,d.substring(0,this.Match_MaxBits),f),p!=-1&&(y=this.match_main(s,d.substring(d.length-this.Match_MaxBits),f+d.length-this.Match_MaxBits),(y==-1||p>=y)&&(p=-1))):p=this.match_main(s,d,f),p==-1)u[c]=!1,a-=o[c].length2-o[c].length1;else{u[c]=!0,a=p-f;var m;if(y==-1?m=s.substring(p,p+d.length):m=s.substring(p,y+this.Match_MaxBits),d==m)s=s.substring(0,p)+this.diff_text2(o[c].diffs)+s.substring(p+d.length);else{var _=this.diff_main(d,m,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(_)/d.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(_);for(var g=0,h,w=0;w<o[c].diffs.length;w++){var x=o[c].diffs[w];x[0]!==i&&(h=this.diff_xIndex(_,g)),x[0]===r?s=s.substring(0,p+h)+x[1]+s.substring(p+h):x[0]===n&&(s=s.substring(0,p+h)+s.substring(p+this.diff_xIndex(_,g+x[1].length))),x[0]!==n&&(g+=x[1].length)}}}}}return s=s.substring(l.length,s.length-l.length),[s,u]},t.prototype.patch_addPadding=function(o){for(var s=this.Patch_Margin,l="",a=1;a<=s;a++)l+=String.fromCharCode(a);for(var a=0;a<o.length;a++)o[a].start1+=s,o[a].start2+=s;var u=o[0],c=u.diffs;if(c.length==0||c[0][0]!=i)c.unshift(new t.Diff(i,l)),u.start1-=s,u.start2-=s,u.length1+=s,u.length2+=s;else if(s>c[0][1].length){var f=s-c[0][1].length;c[0][1]=l.substring(c[0][1].length)+c[0][1],u.start1-=f,u.start2-=f,u.length1+=f,u.length2+=f}if(u=o[o.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,l)),u.length1+=s,u.length2+=s;else if(s>c[c.length-1][1].length){var f=s-c[c.length-1][1].length;c[c.length-1][1]+=l.substring(0,f),u.length1+=f,u.length2+=f}return l},t.prototype.patch_splitMax=function(o){for(var s=this.Match_MaxBits,l=0;l<o.length;l++)if(!(o[l].length1<=s)){var a=o[l];o.splice(l--,1);for(var u=a.start1,c=a.start2,f="";a.diffs.length!==0;){var d=new t.patch_obj,p=!0;for(d.start1=u-f.length,d.start2=c-f.length,f!==""&&(d.length1=d.length2=f.length,d.diffs.push(new t.Diff(i,f)));a.diffs.length!==0&&d.length1<s-this.Patch_Margin;){var y=a.diffs[0][0],m=a.diffs[0][1];y===r?(d.length2+=m.length,c+=m.length,d.diffs.push(a.diffs.shift()),p=!1):y===n&&d.diffs.length==1&&d.diffs[0][0]==i&&m.length>2*s?(d.length1+=m.length,u+=m.length,p=!1,d.diffs.push(new t.Diff(y,m)),a.diffs.shift()):(m=m.substring(0,s-d.length1-this.Patch_Margin),d.length1+=m.length,u+=m.length,y===i?(d.length2+=m.length,c+=m.length):p=!1,d.diffs.push(new t.Diff(y,m)),m==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(m.length))}f=this.diff_text2(d.diffs),f=f.substring(f.length-this.Patch_Margin);var _=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);_!==""&&(d.length1+=_.length,d.length2+=_.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===i?d.diffs[d.diffs.length-1][1]+=_:d.diffs.push(new t.Diff(i,_))),p||o.splice(++l,0,d)}}},t.prototype.patch_toText=function(o){for(var s=[],l=0;l<o.length;l++)s[l]=o[l];return s.join("")},t.prototype.patch_fromText=function(o){var s=[];if(!o)return s;for(var l=o.split(`
|
|
86
|
-
`),a=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<l.length;){var c=l[a].match(u);if(!c)throw new Error("Invalid patch string: "+l[a]);var f=new t.patch_obj;for(s.push(f),f.start1=parseInt(c[1],10),c[2]===""?(f.start1--,f.length1=1):c[2]=="0"?f.length1=0:(f.start1--,f.length1=parseInt(c[2],10)),f.start2=parseInt(c[3],10),c[4]===""?(f.start2--,f.length2=1):c[4]=="0"?f.length2=0:(f.start2--,f.length2=parseInt(c[4],10)),a++;a<l.length;){var d=l[a].charAt(0);try{var p=decodeURI(l[a].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+p)}if(d=="-")f.diffs.push(new t.Diff(n,p));else if(d=="+")f.diffs.push(new t.Diff(r,p));else if(d==" ")f.diffs.push(new t.Diff(i,p));else{if(d=="@")break;if(d!=="")throw new Error('Invalid patch mode "'+d+'" in: '+p)}a++}}return s},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.prototype.toString=function(){var o,s;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?s=this.start2+",0":this.length2==1?s=this.start2+1:s=this.start2+1+","+this.length2;for(var l=["@@ -"+o+" +"+s+` @@
|
|
87
|
-
`],a,u=0;u<this.diffs.length;u++){switch(this.diffs[u][0]){case r:a="+";break;case n:a="-";break;case i:a=" ";break}l[u+1]=a+encodeURI(this.diffs[u][1])+`
|
|
88
|
-
`}return l.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=r,e.exports.DIFF_EQUAL=i})(Ty);var K2=Ty.exports;new K2.diff_match_patch;class G2{constructor(){U(this,"value",0);jf(this)}}new G2;function $y(e){var n,r,i,o,s,l;let t=[0,0,0,0];return t&&((n=e==null?void 0:e.html)!=null&&n.src&&(t[1]+=(r=e.html)==null?void 0:r.src.length),((o=(i=e==null?void 0:e.html)==null?void 0:i.untracked)==null?void 0:o.length)===2&&((s=e==null?void 0:e.html)==null||s.untracked[0].forEach(a=>{var u;t[2]+=(u=a==null?void 0:a.content)==null?void 0:u.length}),(l=e==null?void 0:e.html)==null||l.untracked[1].forEach(a=>{var u;t[3]+=(u=a==null?void 0:a.value)==null?void 0:u.length})),t[0]=t[1]+t[2]+t[3],t)}function Q2(e){let t={total:0,before:[0,0,0,0],after:[0,0,0,0]};for(let n in e)t[n]=$y(e[n]),t.total+=t[n][0];return t}function Y2(e){Array.isArray(e)?e.forEach(t=>Ah(t)):Ah(e)}function Ah(e){e.type==="command"?X2(e):e.type==="request"?J2(e):e.type==="response"?q2(e):e.type==="log"?eO(e):e.type==="context"?tO(e):console.warn(e)}function X2(e){var a,u;let t="";((a=e.snapshots)!=null&&a.after||(u=e.snapshots)!=null&&u.before)&&(t+="S");let n=Q2(e.snapshots),r=(n.total/1e3).toFixed(2),i=(((n==null?void 0:n.before[1])+(n==null?void 0:n.after[1]))/1e3).toFixed(2),o=(((n==null?void 0:n.before[2])+(n==null?void 0:n.after[2]))/1e3).toFixed(2),s=(((n==null?void 0:n.before[3])+(n==null?void 0:n.after[3]))/1e3).toFixed(2),l=["color: #18c0d1","kb","color: #d2d3d3"];console.groupCollapsed("%s %s %c%s %c%s%c%s%c [%s%c%s%c, %s%c%s%c, %s%c%s%c] %s",e.context.id,e.type,"color: #bada55",t.length===0?"-":t,"color: #d2d3d3",r,...l,i,...l,o,...l,s,...l,e.func),console.group("Snapshots");for(let c in e.snapshots)Z2(c,e.snapshots[c]);console.groupEnd(),console.log("source",e),console.groupEnd()}function Z2(e,t){if(!t)return;let n=$y(t);console.group(e),console.log("Url:",t.url),console.log("Size total:",(n[0]/1e3).toFixed(2),"kb"),console.log("Size html:",(n[1]/1e3).toFixed(2),"kb"),console.log("Size css:",(n[2]/1e3).toFixed(2),"kb"),console.log("Size js:",(n[3]/1e3).toFixed(2),"kb"),console.log("Viewport:",t.viewport),console.log("Version:",t.version),console.log(t),console.groupEnd()}function J2(e){console.groupCollapsed(e.context.id,e.type,"#"+e.requestId,e.resourceType,e.method,e.url.length>64?e.url.substring(0,60)+"...":e.url),console.log("Headers"),console.table(e.headers),console.log("source",e),console.groupEnd()}function q2(e){console.groupCollapsed(e.context.id,e.type,"#"+e.requestId,(e.content.length/1e3).toFixed(2),"kb"),console.log("Headers"),console.table(e.headers),console.log("source",e),console.groupEnd()}function eO(e){console.groupCollapsed(e.context.id,e.type,e.messageType,e.args),console.log("source",e),console.groupEnd()}function tO(e){console.groupCollapsed(e.id,e.type),console.log("source",e),console.groupEnd()}const Do=new rd;Do.register({type:0,encode:e=>e instanceof Function?new TextEncoder().encode(e.toString()):null,decode:e=>new TextDecoder().decode(e)});class Oh{constructor(t,n){U(this,"websocket");U(this,"uri");U(this,"retryTimeout",5e3);U(this,"connectionTimeout",2e3);U(this,"connectionState",WebSocket.CLOSED);U(this,"totalBytesReceived",0);U(this,"contexts",[]);U(this,"emitter",G0());U(this,"active",{context:void 0});U(this,"preview");this.uri=t,this.connect(this.uri),this.preview=n,jf(this)}retry(){this.connectionState===WebSocket.CLOSED&&this.connect(this.uri)}connect(t){this.uri=t,this.websocket=new WebSocket(this.uri),this.websocket.binaryType="arraybuffer",this.connectionState=this.websocket.readyState;const n=setTimeout(()=>{this.websocket.readyState===WebSocket.CONNECTING&&this.websocket.close()},this.connectionTimeout);this.websocket.onopen=()=>{clearTimeout(n),this.connectionState=this.websocket.readyState},this.websocket.onclose=()=>{setTimeout(()=>{this.connectionState===WebSocket.CLOSED&&this.connect(this.uri)},this.retryTimeout),this.connectionState=this.websocket.readyState},this.websocket.onmessage=r=>{this.received(r.data)}}send(t){if(this.websocket.readyState!==WebSocket.OPEN){console.error("Did not send packet because websocket was not open",t);return}let n=Oy(t,{extensionCodec:Do});this.websocket.send(n)}received(t){this.totalBytesReceived+=t.byteLength;let n=Date.now(),r=Py(t,{extensionCodec:Do}),i=Date.now();if(Array.isArray(r))for(let s of r)this.receivedPacket(s);else this.receivedPacket(r);let o=Date.now();Cc(()=>{let s=(t.byteLength/1e3/1e3).toFixed(2);console.group("Packet received"),console.groupCollapsed("Events",Array.isArray(r)?r.length:1),Y2(r),console.groupEnd(),console.log("Size",s,"mb"),console.log("Delta time parse",i-n,"ms"),console.log("Delta time proc.",o-i,"ms"),console.log("Delta time debug",Date.now()-o,"ms"),console.groupEnd()})}receivedPacket(t){if(t.type==="context"){let r=new ky(t,this);this.contexts.unshift(r),et.emit("context:created",r),this.emit("context:created",r);return}let n=this.getContext(t.context.id);if(!n){console.log("ignored packet because no context was initialized",t);return}n.received(t),et.emit("context:received",{context:n,packet:t}),this.emit("context:received",{context:n,packet:t})}getContext(t){return this.contexts.find(n=>n.id===t)}get hasNoContexts(){return this.contexts.length===0}getTotalBytesReceived(){return this.totalBytesReceived}getMetrics(){let t={contexts:this.contexts.length,events:0};return this.contexts.forEach(n=>{t.events+=n.commands.length,t.events+=n.logs.length}),t}clear(){}on(t,n){return this.emitter.on(t,n)}off(t,n){return this.emitter.on(t,n)}emit(t,n){return this.emitter.emit(t,n)}}const nO=st(()=>{const{app:e}=v.useContext(Ot),[t,n]=v.useState(!1);let r=()=>{n(!1),ua(()=>No.active=0)},i=l=>{n(!0);let a=new FileReader;a.readAsArrayBuffer(l[0]),a.addEventListener("load",u=>{var f,d;const c=Py((f=u.target)==null?void 0:f.result,{extensionCodec:Do});if(((d=c[0])==null?void 0:d.type)==="context"){let p=e.dragAndDropped.contexts.find(m=>m.id===c[0].context.id);if(p){console.warn("Can't add same context multiple times."),r(),e.setView("local"),e.setActive(p);return}let y=new ky(c[0]);for(let m=1;m<c.length;m++)y.received(c[m]);e.dragAndDropped.contexts.unshift(y),e.setView("local"),e.setActive(y)}r()})};const{getRootProps:o,getInputProps:s}=Sy({accept:".puth",maxFiles:1,onDropAccepted:i});return b.jsx("div",{className:`dropzone-wrapper ${No.active>0?"active":null}`,children:t?b.jsx("div",{children:"Importing snapshot..."}):b.jsxs("div",{...o({className:"dropzone"}),children:[b.jsx("input",{...s()}),b.jsx("p",{children:"Drag and drop a snapshot here"}),b.jsx("em",{children:"(Only *.puth files will be accepted)"})]})})}),rO=()=>b.jsxs(b.Fragment,{children:[b.jsx(dC,{sidebar:b.jsx(gA,{}),preview:b.jsx(mA,{}),mainTop:b.jsx(gC,{})}),b.jsx(nO,{})]});let Ds=null;class Ph{constructor(){U(this,"_activeContext");U(this,"_activeCommand");U(this,"highlightCommand");U(this,"highlightState",Ut.AFTER);U(this,"highlightScreencast",null);U(this,"highlightInterval");U(this,"_darken",!1);U(this,"screencast",{lastFrameBeforeSector:null,inBetween:[]});U(this,"_mode",dy.FRAME);U(this,"_state",Ut.AFTER);ca(this,{_activeContext:V,_activeCommand:V,highlightCommand:V,highlightState:V,highlightScreencast:V,highlightInterval:V,_darken:V,screencast:V,_mode:V,_state:V,clear:de,resetHighlightInterval:de,toggleHighlightState:de,findLastEventUntil:de,findEventsBetween:de,findLastScreencastForCommand:de,registerEvents:de,activeScreencast:Se,visibleScreencast:Se,activeScreencastUrl:Se,visibleCommand:Se,visibleHighlightState:Se,isVisibleHighlight:Se,mode:Se,state:Se}),this.registerEvents()}get mode(){return this._mode}set mode(t){this._mode=t}get state(){return this._state}set state(t){this._state=t}get activeScreencast(){return this.state===Ut.AFTER&&this.screencast.inBetween.length>0?this.screencast.inBetween[this.screencast.inBetween.length-1]:this.state===Ut.BEFORE?this.screencast.lastFrameBeforeSector:this.screencast.lastFrameBeforeSector}get visibleScreencast(){return this.highlightScreencast??this.activeScreencast}get activeScreencastUrl(){return Ds&&URL.revokeObjectURL(Ds),this.visibleScreencast?(Ds=URL.createObjectURL(new Blob([this.visibleScreencast.frame],{type:"image/jpeg"})),Ds):null}clear(){this.highlightCommand=void 0,this.activeCommand=void 0,this.activeContext=void 0}set darken(t){this._darken=t}get darken(){return this._darken}resetHighlightInterval(){clearInterval(this.highlightInterval),this.highlightState=Ut.AFTER}toggleHighlightState(){this.highlightState=this.highlightState===Ut.BEFORE?Ut.AFTER:Ut.BEFORE}get visibleCommand(){return this.highlightCommand??this.activeCommand}get visibleHighlightState(){return this.highlightCommand?this.highlightState:this.state}get isVisibleHighlight(){return this.highlightCommand!==void 0}set activeCommand(t){t&&(this.activeContext=t.context),this._activeCommand=t}get activeCommand(){return this._activeCommand}set activeContext(t){this._activeContext=t}get activeContext(){return this._activeContext}findLastEventUntil(t,n){let r=null;for(let i of n){if(i.timestamp>=t)break;r=i}return r}findEventsBetween(t,n,r){let i=[];for(let o of r)o.timestamp>t&&o.timestamp<n&&i.push(o);return i}findLastScreencastForCommand(t){let n=t.context.commands.indexOf(t);if(n===t.context.commands.length-1)return{screencast:t.context.screencasts[t.context.screencasts.length-1],until:t.timestamp};{let r=t.context.commands[n+1].time.started;return{screencast:this.findLastEventUntil(r,t.context.screencasts),until:r}}}registerEvents(){et.on("preview:toggle",de(t=>{var i,o;if(((i=this.activeCommand)==null?void 0:i.id)===(t==null?void 0:t.id)){this.activeCommand=void 0,this.screencast.lastFrameBeforeSector=void 0,this.screencast.inBetween=[],et.emit("command:active",void 0);return}((o=this.highlightCommand)==null?void 0:o.id)===(t==null?void 0:t.id)&&(this.highlightCommand=void 0,this.highlightScreencast=null),this.activeCommand=t,this.state=Ut.BEFORE;let n=t.context.commands.indexOf(t),r=n===t.context.commands.length-1?t.time.finished+1:t.context.commands[n+1].time.started;this.screencast.inBetween=this.findEventsBetween(t.time.started,r,t.context.screencasts),this.screencast.lastFrameBeforeSector=this.findLastEventUntil(t.time.started,t.context.screencasts),et.emit("command:active",t)})),et.on("preview:highlight:show",de(t=>{var r;if(((r=this.visibleCommand)==null?void 0:r.id)===(t==null?void 0:t.id))return;this.highlightCommand=t,this.resetHighlightInterval();let n=this.findLastScreencastForCommand(t);this.highlightScreencast=n.screencast})),et.on("preview:highlight:hide",de(t=>{var n;((n=this.highlightCommand)==null?void 0:n.id)===(t==null?void 0:t.id)&&(this.highlightCommand=void 0,this.highlightScreencast=null)}))}}class iO{constructor(){U(this,"name",{suffix:""});U(this,"connections",[]);U(this,"connectionSuggestions",[(document.location.protocol==="https:"?"wss://":"ws://")+window.location.host+"/websocket"]);U(this,"active",{connection:void 0});U(this,"modals",{connectionViewer:!0});U(this,"mode","default");U(this,"classes",{Connection:Oh});U(this,"dragAndDropped",{contexts:[],active:null,preview:new Ph});U(this,"settings",{preview:{darken:!1}});U(this,"view","instance");this.settings.preview.darken=this.readLocalStorageBoolean("previewStore.darken"),ca(this,{name:V,connections:V,connectionSuggestions:V,active:V,modals:V,mode:V,classes:V,dragAndDropped:V,settings:V,view:V,tryConnectingTo:de,setActive:de,setView:de,setDarkenPreview:de,history:Se,activeContext:Se,previewStore:Se,empty:Se,hasLocalContexts:Se,isConnected:Se})}tryConnectingTo(t){let n=new Oh(t,new Ph);this.connections.push(n),this.active.connection=n}get history(){var t;return this.view==="instance"?((t=this.active.connection)==null?void 0:t.contexts)??[]:this.dragAndDropped.contexts}get activeContext(){var t;return this.view==="instance"?(t=this.active.connection)==null?void 0:t.active.context:this.dragAndDropped.active}get previewStore(){var t;return this.view==="instance"?(t=this.active.connection)==null?void 0:t.preview:this.dragAndDropped.preview}get empty(){return!this.hasLocalContexts&&!this.isConnected}get hasLocalContexts(){return this.dragAndDropped.contexts.length!==0}get isConnected(){return this.connections.length!==0}setActive(t){if(this.view==="instance"){if(!this.active.connection)return;this.active.connection.active.context=t;return}this.dragAndDropped.active=t}setView(t){this.view=t}setDarkenPreview(t){this.settings.preview.darken=t,this.writeLocalStorageBoolean("previewStore.darken",t)}readLocalStorageBoolean(t){return localStorage.getItem(t)==="true"}writeLocalStorageBoolean(t,n){localStorage.setItem(t,n?"true":"false")}}const Rc=new iO;et.on("command:active",e=>{Rc.mode==="follow"&&(Rc.mode="default")});mu.createRoot(document.getElementById("root")).render(b.jsx(Ne.StrictMode,{children:b.jsx(Ot.Provider,{value:{app:Rc},children:b.jsx(rO,{})})}));let cn=document.getElementById("root");cn==null||cn.addEventListener("dragenter",()=>{ua(()=>No.active++)});cn==null||cn.addEventListener("dragleave",()=>{ua(()=>No.active--)});cn==null||cn.addEventListener("drop",()=>{ua(()=>No.active--)});
|