most-box 0.0.2 → 0.0.4
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.
- package/README.md +26 -0
- package/cli.js +2 -2
- package/out/404/index.html +15 -0
- package/out/404.html +15 -0
- package/out/__next.__PAGE__.txt +9 -0
- package/out/__next._full.txt +18 -0
- package/out/__next._head.txt +5 -0
- package/out/__next._index.txt +6 -0
- package/out/__next._tree.txt +2 -0
- package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_buildManifest.js +11 -0
- package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_clientMiddlewareManifest.js +1 -0
- package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_ssgManifest.js +1 -0
- package/out/_next/static/chunks/00l-yd3t8dvwz.js +5 -0
- package/out/_next/static/chunks/03k8t3tgym~8~.js +1 -0
- package/out/_next/static/chunks/03~yq9q893hmn.js +1 -0
- package/out/_next/static/chunks/09vfh8lfuacc0.css +1 -0
- package/out/_next/static/chunks/0bogtdbh.dcu1.js +1 -0
- package/out/_next/static/chunks/0dbhjjzl8qfwv.js +1 -0
- package/out/_next/static/chunks/0f73psqhr8dre.css +1 -0
- package/out/_next/static/chunks/0fbi7z4_.4j1j.js +1 -0
- package/out/_next/static/chunks/0ht900cau6_ur.js +31 -0
- package/out/_next/static/chunks/0ohm.ia-4ec60.js +1 -0
- package/out/_next/static/chunks/0u5ydb-f0.vxl.js +1 -0
- package/out/_next/static/chunks/14t2m1on-s5v~.js +1 -0
- package/out/_next/static/chunks/turbopack-076ce9exut_h3.js +1 -0
- package/out/_not-found/__next._full.txt +16 -0
- package/out/_not-found/__next._head.txt +5 -0
- package/out/_not-found/__next._index.txt +6 -0
- package/out/_not-found/__next._not-found/__PAGE__.txt +5 -0
- package/out/_not-found/__next._not-found.txt +5 -0
- package/out/_not-found/__next._tree.txt +2 -0
- package/out/_not-found/index.html +15 -0
- package/out/_not-found/index.txt +16 -0
- package/out/app.css +1535 -0
- package/out/bundle.js +107 -0
- package/out/bundle.js.map +7 -0
- package/out/chat/__next._full.txt +19 -0
- package/out/chat/__next._head.txt +5 -0
- package/out/chat/__next._index.txt +6 -0
- package/out/chat/__next._tree.txt +3 -0
- package/out/chat/__next.chat/__PAGE__.txt +9 -0
- package/out/chat/__next.chat.txt +5 -0
- package/out/chat/index.html +15 -0
- package/out/chat/index.txt +19 -0
- package/out/chat-page.js +112 -0
- package/out/chat.css +378 -0
- package/out/favicon.ico +0 -0
- package/out/index.html +15 -0
- package/out/index.js +148 -0
- package/out/index.txt +18 -0
- package/package.json +11 -6
- package/public/app.css +20 -4
- package/public/bundle.js +1 -1
- package/public/bundle.js.map +7 -0
- package/public/chat-page.js +112 -0
- package/public/chat.css +378 -0
- package/public/index.js +148 -0
- package/server.js +188 -6
- package/src/config.js +12 -1
- package/src/core/cid.js +7 -3
- package/src/index.js +475 -7
- package/src/utils/api.js +6 -0
- package/build.mjs +0 -40
- package/public/app.jsx +0 -1543
- package/public/bundle.css +0 -1
- package/public/error-boundary.jsx +0 -50
- package/public/index.html +0 -16
- package/public/index.jsx +0 -20
package/public/index.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
var u0=Object.create;var Kn=Object.defineProperty;var s0=Object.getOwnPropertyDescriptor;var d0=Object.getOwnPropertyNames;var c0=Object.getPrototypeOf,f0=Object.prototype.hasOwnProperty;var p0=(e,t,a)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var ho=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var te=(e,t)=>()=>(e&&(t=e(e=0)),t);var ea=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),h0=(e,t)=>{for(var a in t)Kn(e,a,{get:t[a],enumerable:!0})},m0=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of d0(t))!f0.call(e,l)&&l!==a&&Kn(e,l,{get:()=>t[l],enumerable:!(r=s0(t,l))||r.enumerable});return e};var Ae=(e,t,a)=>(a=e!=null?u0(c0(e)):{},m0(t||!e||!e.__esModule?Kn(a,"default",{value:e,enumerable:!0}):a,e));var pf=(e,t,a)=>p0(e,typeof t!="symbol"?t+"":t,a);var Cf=ea(Ge=>{"use strict";function Zu(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,l=e[r];if(0<Jn(l,t))e[r]=t,e[a]=l,a=r;else break e}}function Ca(e){return e.length===0?null:e[0]}function ei(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,l=e.length,o=l>>>1;r<o;){var n=2*(r+1)-1,s=e[n],p=n+1,d=e[p];if(0>Jn(s,a))p<l&&0>Jn(d,s)?(e[r]=d,e[p]=a,r=p):(e[r]=s,e[n]=a,r=n);else if(p<l&&0>Jn(d,a))e[r]=d,e[p]=a,r=p;else break e}}return t}function Jn(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}Ge.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(hf=performance,Ge.unstable_now=function(){return hf.now()}):(Vu=Date,mf=Vu.now(),Ge.unstable_now=function(){return Vu.now()-mf});var hf,Vu,mf,Oa=[],rr=[],g0=1,ta=null,St=3,Wu=!1,mo=!1,go=!1,Qu=!1,vf=typeof setTimeout=="function"?setTimeout:null,xf=typeof clearTimeout=="function"?clearTimeout:null,gf=typeof setImmediate<"u"?setImmediate:null;function $n(e){for(var t=Ca(rr);t!==null;){if(t.callback===null)ei(rr);else if(t.startTime<=e)ei(rr),t.sortIndex=t.expirationTime,Zu(Oa,t);else break;t=Ca(rr)}}function Ku(e){if(go=!1,$n(e),!mo)if(Ca(Oa)!==null)mo=!0,il||(il=!0,nl());else{var t=Ca(rr);t!==null&&Ju(Ku,t.startTime-e)}}var il=!1,yo=-1,bf=5,Lf=-1;function Sf(){return Qu?!0:!(Ge.unstable_now()-Lf<bf)}function Xu(){if(Qu=!1,il){var e=Ge.unstable_now();Lf=e;var t=!0;try{e:{mo=!1,go&&(go=!1,xf(yo),yo=-1),Wu=!0;var a=St;try{t:{for($n(e),ta=Ca(Oa);ta!==null&&!(ta.expirationTime>e&&Sf());){var r=ta.callback;if(typeof r=="function"){ta.callback=null,St=ta.priorityLevel;var l=r(ta.expirationTime<=e);if(e=Ge.unstable_now(),typeof l=="function"){ta.callback=l,$n(e),t=!0;break t}ta===Ca(Oa)&&ei(Oa),$n(e)}else ei(Oa);ta=Ca(Oa)}if(ta!==null)t=!0;else{var o=Ca(rr);o!==null&&Ju(Ku,o.startTime-e),t=!1}}break e}finally{ta=null,St=a,Wu=!1}t=void 0}}finally{t?nl():il=!1}}}var nl;typeof gf=="function"?nl=function(){gf(Xu)}:typeof MessageChannel<"u"?(Yu=new MessageChannel,yf=Yu.port2,Yu.port1.onmessage=Xu,nl=function(){yf.postMessage(null)}):nl=function(){vf(Xu,0)};var Yu,yf;function Ju(e,t){yo=vf(function(){e(Ge.unstable_now())},t)}Ge.unstable_IdlePriority=5;Ge.unstable_ImmediatePriority=1;Ge.unstable_LowPriority=4;Ge.unstable_NormalPriority=3;Ge.unstable_Profiling=null;Ge.unstable_UserBlockingPriority=2;Ge.unstable_cancelCallback=function(e){e.callback=null};Ge.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):bf=0<e?Math.floor(1e3/e):5};Ge.unstable_getCurrentPriorityLevel=function(){return St};Ge.unstable_next=function(e){switch(St){case 1:case 2:case 3:var t=3;break;default:t=St}var a=St;St=t;try{return e()}finally{St=a}};Ge.unstable_requestPaint=function(){Qu=!0};Ge.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=St;St=e;try{return t()}finally{St=a}};Ge.unstable_scheduleCallback=function(e,t,a){var r=Ge.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=a+l,e={id:g0++,callback:t,priorityLevel:e,startTime:a,expirationTime:l,sortIndex:-1},a>r?(e.sortIndex=a,Zu(rr,e),Ca(Oa)===null&&e===Ca(rr)&&(go?(xf(yo),yo=-1):go=!0,Ju(Ku,a-r))):(e.sortIndex=l,Zu(Oa,e),mo||Wu||(mo=!0,il||(il=!0,nl()))),e};Ge.unstable_shouldYield=Sf;Ge.unstable_wrapCallback=function(e){var t=St;return function(){var a=St;St=t;try{return e.apply(this,arguments)}finally{St=a}}}});var If=ea((O1,wf)=>{"use strict";wf.exports=Cf()});var Bf=ea(ne=>{"use strict";var ts=Symbol.for("react.transitional.element"),y0=Symbol.for("react.portal"),v0=Symbol.for("react.fragment"),x0=Symbol.for("react.strict_mode"),b0=Symbol.for("react.profiler"),L0=Symbol.for("react.consumer"),S0=Symbol.for("react.context"),C0=Symbol.for("react.forward_ref"),w0=Symbol.for("react.suspense"),I0=Symbol.for("react.memo"),Mf=Symbol.for("react.lazy"),R0=Symbol.for("react.activity"),Rf=Symbol.iterator;function E0(e){return e===null||typeof e!="object"?null:(e=Rf&&e[Rf]||e["@@iterator"],typeof e=="function"?e:null)}var kf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Df=Object.assign,_f={};function sl(e,t,a){this.props=e,this.context=t,this.refs=_f,this.updater=a||kf}sl.prototype.isReactComponent={};sl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};sl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Of(){}Of.prototype=sl.prototype;function as(e,t,a){this.props=e,this.context=t,this.refs=_f,this.updater=a||kf}var rs=as.prototype=new Of;rs.constructor=as;Df(rs,sl.prototype);rs.isPureReactComponent=!0;var Ef=Array.isArray;function es(){}var ze={H:null,A:null,T:null,S:null},Nf=Object.prototype.hasOwnProperty;function ls(e,t,a){var r=a.ref;return{$$typeof:ts,type:e,key:t,ref:r!==void 0?r:null,props:a}}function T0(e,t){return ls(e.type,t,e.props)}function os(e){return typeof e=="object"&&e!==null&&e.$$typeof===ts}function A0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Tf=/\/+/g;function $u(e,t){return typeof e=="object"&&e!==null&&e.key!=null?A0(""+e.key):t.toString(36)}function M0(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(es,es):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ul(e,t,a,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var n=!1;if(e===null)n=!0;else switch(o){case"bigint":case"string":case"number":n=!0;break;case"object":switch(e.$$typeof){case ts:case y0:n=!0;break;case Mf:return n=e._init,ul(n(e._payload),t,a,r,l)}}if(n)return l=l(e),n=r===""?"."+$u(e,0):r,Ef(l)?(a="",n!=null&&(a=n.replace(Tf,"$&/")+"/"),ul(l,t,a,"",function(d){return d})):l!=null&&(os(l)&&(l=T0(l,a+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(Tf,"$&/")+"/")+n)),t.push(l)),1;n=0;var s=r===""?".":r+":";if(Ef(e))for(var p=0;p<e.length;p++)r=e[p],o=s+$u(r,p),n+=ul(r,t,a,o,l);else if(p=E0(e),typeof p=="function")for(e=p.call(e),p=0;!(r=e.next()).done;)r=r.value,o=s+$u(r,p++),n+=ul(r,t,a,o,l);else if(o==="object"){if(typeof e.then=="function")return ul(M0(e),t,a,r,l);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 n}function ti(e,t,a){if(e==null)return e;var r=[],l=0;return ul(e,r,"","",function(o){return t.call(a,o,l++)}),r}function k0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Af=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},D0={map:ti,forEach:function(e,t,a){ti(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return ti(e,function(){t++}),t},toArray:function(e){return ti(e,function(t){return t})||[]},only:function(e){if(!os(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Activity=R0;ne.Children=D0;ne.Component=sl;ne.Fragment=v0;ne.Profiler=b0;ne.PureComponent=as;ne.StrictMode=x0;ne.Suspense=w0;ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ze;ne.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ze.H.useMemoCache(e)}};ne.cache=function(e){return function(){return e.apply(null,arguments)}};ne.cacheSignal=function(){return null};ne.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=Df({},e.props),l=e.key;if(t!=null)for(o in t.key!==void 0&&(l=""+t.key),t)!Nf.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=a;else if(1<o){for(var n=Array(o),s=0;s<o;s++)n[s]=arguments[s+2];r.children=n}return ls(e.type,l,r)};ne.createContext=function(e){return e={$$typeof:S0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:L0,_context:e},e};ne.createElement=function(e,t,a){var r,l={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)Nf.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(l[r]=t[r]);var n=arguments.length-2;if(n===1)l.children=a;else if(1<n){for(var s=Array(n),p=0;p<n;p++)s[p]=arguments[p+2];l.children=s}if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return ls(e,o,l)};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:C0,render:e}};ne.isValidElement=os;ne.lazy=function(e){return{$$typeof:Mf,_payload:{_status:-1,_result:e},_init:k0}};ne.memo=function(e,t){return{$$typeof:I0,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=ze.T,a={};ze.T=a;try{var r=e(),l=ze.S;l!==null&&l(a,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(es,Af)}catch(o){Af(o)}finally{t!==null&&a.types!==null&&(t.types=a.types),ze.T=t}};ne.unstable_useCacheRefresh=function(){return ze.H.useCacheRefresh()};ne.use=function(e){return ze.H.use(e)};ne.useActionState=function(e,t,a){return ze.H.useActionState(e,t,a)};ne.useCallback=function(e,t){return ze.H.useCallback(e,t)};ne.useContext=function(e){return ze.H.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e,t){return ze.H.useDeferredValue(e,t)};ne.useEffect=function(e,t){return ze.H.useEffect(e,t)};ne.useEffectEvent=function(e){return ze.H.useEffectEvent(e)};ne.useId=function(){return ze.H.useId()};ne.useImperativeHandle=function(e,t,a){return ze.H.useImperativeHandle(e,t,a)};ne.useInsertionEffect=function(e,t){return ze.H.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return ze.H.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return ze.H.useMemo(e,t)};ne.useOptimistic=function(e,t){return ze.H.useOptimistic(e,t)};ne.useReducer=function(e,t,a){return ze.H.useReducer(e,t,a)};ne.useRef=function(e){return ze.H.useRef(e)};ne.useState=function(e){return ze.H.useState(e)};ne.useSyncExternalStore=function(e,t,a){return ze.H.useSyncExternalStore(e,t,a)};ne.useTransition=function(){return ze.H.useTransition()};ne.version="19.2.4"});var Ke=ea((B1,Uf)=>{"use strict";Uf.exports=Bf()});var Pf=ea(At=>{"use strict";var _0=Ke();function zf(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function lr(){}var Tt={d:{f:lr,r:function(){throw Error(zf(522))},D:lr,C:lr,L:lr,m:lr,X:lr,S:lr,M:lr},p:0,findDOMNode:null},O0=Symbol.for("react.portal");function N0(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O0,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}var vo=_0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ai(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Tt;At.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(zf(299));return N0(e,t,null,a)};At.flushSync=function(e){var t=vo.T,a=Tt.p;try{if(vo.T=null,Tt.p=2,e)return e()}finally{vo.T=t,Tt.p=a,Tt.d.f()}};At.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Tt.d.C(e,t))};At.prefetchDNS=function(e){typeof e=="string"&&Tt.d.D(e)};At.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,r=ai(a,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?Tt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:l,fetchPriority:o}):a==="script"&&Tt.d.X(e,{crossOrigin:r,integrity:l,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};At.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=ai(t.as,t.crossOrigin);Tt.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Tt.d.M(e)};At.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,r=ai(a,t.crossOrigin);Tt.d.L(e,a,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};At.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=ai(t.as,t.crossOrigin);Tt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Tt.d.m(e)};At.requestFormReset=function(e){Tt.d.r(e)};At.unstable_batchedUpdates=function(e,t){return e(t)};At.useFormState=function(e,t,a){return vo.H.useFormState(e,t,a)};At.useFormStatus=function(){return vo.H.useHostTransitionStatus()};At.version="19.2.4"});var qf=ea((z1,Hf)=>{"use strict";function Ff(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ff)}catch(e){console.error(e)}}Ff(),Hf.exports=Pf()});var ey=ea(Eu=>{"use strict";var ut=If(),hh=Ke(),B0=qf();function z(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function mh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ln(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function gh(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 yh(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function jf(e){if(ln(e)!==e)throw Error(z(188))}function U0(e){var t=e.alternate;if(!t){if(t=ln(e),t===null)throw Error(z(188));return t!==e?null:e}for(var a=e,r=t;;){var l=a.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){a=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===a)return jf(l),e;if(o===r)return jf(l),t;o=o.sibling}throw Error(z(188))}if(a.return!==r.return)a=l,r=o;else{for(var n=!1,s=l.child;s;){if(s===a){n=!0,a=l,r=o;break}if(s===r){n=!0,r=l,a=o;break}s=s.sibling}if(!n){for(s=o.child;s;){if(s===a){n=!0,a=o,r=l;break}if(s===r){n=!0,r=o,a=l;break}s=s.sibling}if(!n)throw Error(z(189))}}if(a.alternate!==r)throw Error(z(190))}if(a.tag!==3)throw Error(z(188));return a.stateNode.current===a?e:t}function vh(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=vh(e),t!==null)return t;e=e.sibling}return null}var He=Object.assign,z0=Symbol.for("react.element"),ri=Symbol.for("react.transitional.element"),Ro=Symbol.for("react.portal"),ml=Symbol.for("react.fragment"),xh=Symbol.for("react.strict_mode"),Ps=Symbol.for("react.profiler"),bh=Symbol.for("react.consumer"),qa=Symbol.for("react.context"),Od=Symbol.for("react.forward_ref"),Fs=Symbol.for("react.suspense"),Hs=Symbol.for("react.suspense_list"),Nd=Symbol.for("react.memo"),or=Symbol.for("react.lazy"),qs=Symbol.for("react.activity"),P0=Symbol.for("react.memo_cache_sentinel"),Gf=Symbol.iterator;function xo(e){return e===null||typeof e!="object"?null:(e=Gf&&e[Gf]||e["@@iterator"],typeof e=="function"?e:null)}var F0=Symbol.for("react.client.reference");function js(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F0?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ml:return"Fragment";case Ps:return"Profiler";case xh:return"StrictMode";case Fs:return"Suspense";case Hs:return"SuspenseList";case qs:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ro:return"Portal";case qa:return e.displayName||"Context";case bh:return(e._context.displayName||"Context")+".Consumer";case Od:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nd:return t=e.displayName||null,t!==null?t:js(e.type)||"Memo";case or:t=e._payload,e=e._init;try{return js(e(t))}catch{}}return null}var Eo=Array.isArray,ae=hh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=B0.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fr={pending:!1,data:null,method:null,action:null},Gs=[],gl=-1;function Ta(e){return{current:e}}function ft(e){0>gl||(e.current=Gs[gl],Gs[gl]=null,gl--)}function Ue(e,t){gl++,Gs[gl]=e.current,e.current=t}var Ea=Ta(null),Go=Ta(null),gr=Ta(null),Bi=Ta(null);function Ui(e,t){switch(Ue(gr,t),Ue(Go,e),Ue(Ea,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kp(t),e=Fg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ft(Ea),Ue(Ea,e)}function Ol(){ft(Ea),ft(Go),ft(gr)}function Vs(e){e.memoizedState!==null&&Ue(Bi,e);var t=Ea.current,a=Fg(t,e.type);t!==a&&(Ue(Go,e),Ue(Ea,a))}function zi(e){Go.current===e&&(ft(Ea),ft(Go)),Bi.current===e&&(ft(Bi),tn._currentValue=Fr)}var ns,Vf;function Br(e){if(ns===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ns=t&&t[1]||"",Vf=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ns+e+Vf}var is=!1;function us(e,t){if(!e||is)return"";is=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(x){var f=x}Reflect.construct(e,[],m)}else{try{m.call()}catch(x){f=x}e.call(m.prototype)}}else{try{throw Error()}catch(x){f=x}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(x){if(x&&f&&typeof x.stack=="string")return[x.stack,f.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),n=o[0],s=o[1];if(n&&s){var p=n.split(`
|
|
4
|
+
`),d=s.split(`
|
|
5
|
+
`);for(l=r=0;r<p.length&&!p[r].includes("DetermineComponentFrameRoot");)r++;for(;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;if(r===p.length||l===d.length)for(r=p.length-1,l=d.length-1;1<=r&&0<=l&&p[r]!==d[l];)l--;for(;1<=r&&0<=l;r--,l--)if(p[r]!==d[l]){if(r!==1||l!==1)do if(r--,l--,0>l||p[r]!==d[l]){var g=`
|
|
6
|
+
`+p[r].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),g}while(1<=r&&0<=l);break}}}finally{is=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Br(a):""}function H0(e,t){switch(e.tag){case 26:case 27:case 5:return Br(e.type);case 16:return Br("Lazy");case 13:return e.child!==t&&t!==null?Br("Suspense Fallback"):Br("Suspense");case 19:return Br("SuspenseList");case 0:case 15:return us(e.type,!1);case 11:return us(e.type.render,!1);case 1:return us(e.type,!0);case 31:return Br("Activity");default:return""}}function Xf(e){try{var t="",a=null;do t+=H0(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
7
|
+
Error generating stack: `+r.message+`
|
|
8
|
+
`+r.stack}}var Xs=Object.prototype.hasOwnProperty,Bd=ut.unstable_scheduleCallback,ss=ut.unstable_cancelCallback,q0=ut.unstable_shouldYield,j0=ut.unstable_requestPaint,Vt=ut.unstable_now,G0=ut.unstable_getCurrentPriorityLevel,Lh=ut.unstable_ImmediatePriority,Sh=ut.unstable_UserBlockingPriority,Pi=ut.unstable_NormalPriority,V0=ut.unstable_LowPriority,Ch=ut.unstable_IdlePriority,X0=ut.log,Y0=ut.unstable_setDisableYieldValue,on=null,Xt=null;function cr(e){if(typeof X0=="function"&&Y0(e),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(on,e)}catch{}}var Yt=Math.clz32?Math.clz32:Q0,Z0=Math.log,W0=Math.LN2;function Q0(e){return e>>>=0,e===0?32:31-(Z0(e)/W0|0)|0}var li=256,oi=262144,ni=4194304;function Ur(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function cu(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var l=0,o=e.suspendedLanes,n=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s!==0?(r=s&~o,r!==0?l=Ur(r):(n&=s,n!==0?l=Ur(n):a||(a=s&~e,a!==0&&(l=Ur(a))))):(s=r&~o,s!==0?l=Ur(s):n!==0?l=Ur(n):a||(a=r&~e,a!==0&&(l=Ur(a)))),l===0?0:t!==0&&t!==l&&(t&o)===0&&(o=l&-l,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:l}function nn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function K0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wh(){var e=ni;return ni<<=1,(ni&62914560)===0&&(ni=4194304),e}function ds(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function un(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function J0(e,t,a,r,l,o){var n=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var s=e.entanglements,p=e.expirationTimes,d=e.hiddenUpdates;for(a=n&~a;0<a;){var g=31-Yt(a),m=1<<g;s[g]=0,p[g]=-1;var f=d[g];if(f!==null)for(d[g]=null,g=0;g<f.length;g++){var x=f[g];x!==null&&(x.lane&=-536870913)}a&=~m}r!==0&&Ih(e,r,0),o!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=o&~(n&~t))}function Ih(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Yt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Rh(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Yt(a),l=1<<r;l&t|e[r]&t&&(e[r]|=t),a&=~l}}function Eh(e,t){var a=t&-t;return a=(a&42)!==0?1:Ud(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ud(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function zd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Th(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:Kg(e.type))}function Yf(e,t){var a=Te.p;try{return Te.p=e,t()}finally{Te.p=a}}var Ar=Math.random().toString(36).slice(2),gt="__reactFiber$"+Ar,Ut="__reactProps$"+Ar,Vl="__reactContainer$"+Ar,Ys="__reactEvents$"+Ar,$0="__reactListeners$"+Ar,ex="__reactHandles$"+Ar,Zf="__reactResources$"+Ar,sn="__reactMarker$"+Ar;function Pd(e){delete e[gt],delete e[Ut],delete e[Ys],delete e[$0],delete e[ex]}function yl(e){var t=e[gt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Vl]||a[gt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ah(e);e!==null;){if(a=e[gt])return a;e=ah(e)}return t}e=a,a=e.parentNode}return null}function Xl(e){if(e=e[gt]||e[Vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function To(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(z(33))}function El(e){var t=e[Zf];return t||(t=e[Zf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[sn]=!0}var Ah=new Set,Mh={};function Qr(e,t){Nl(e,t),Nl(e+"Capture",t)}function Nl(e,t){for(Mh[e]=t,e=0;e<t.length;e++)Ah.add(t[e])}var tx=RegExp("^[: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]*$"),Wf={},Qf={};function ax(e){return Xs.call(Qf,e)?!0:Xs.call(Wf,e)?!1:tx.test(e)?Qf[e]=!0:(Wf[e]=!0,!1)}function Li(e,t,a){if(ax(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ii(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Na(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function ra(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rx(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(n){a=""+n,o.call(this,n)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(n){a=""+n},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zs(e){if(!e._valueTracker){var t=kh(e)?"checked":"value";e._valueTracker=rx(e,t,""+e[t])}}function Dh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=kh(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Fi(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}}var lx=/[\n"\\]/g;function na(e){return e.replace(lx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ws(e,t,a,r,l,o,n,s){e.name="",n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"?e.type=n:e.removeAttribute("type"),t!=null?n==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ra(t)):e.value!==""+ra(t)&&(e.value=""+ra(t)):n!=="submit"&&n!=="reset"||e.removeAttribute("value"),t!=null?Qs(e,n,ra(t)):a!=null?Qs(e,n,ra(a)):r!=null&&e.removeAttribute("value"),l==null&&o!=null&&(e.defaultChecked=!!o),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+ra(s):e.removeAttribute("name")}function _h(e,t,a,r,l,o,n,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Zs(e);return}a=a!=null?""+ra(a):"",t=t!=null?""+ra(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}r=r??l,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.name=n),Zs(e)}function Qs(e,t,a){t==="number"&&Fi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Tl(e,t,a,r){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&r&&(e[a].defaultSelected=!0)}else{for(a=""+ra(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Oh(e,t,a){if(t!=null&&(t=""+ra(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ra(a):""}function Nh(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(z(92));if(Eo(r)){if(1<r.length)throw Error(z(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=ra(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Zs(e)}function Bl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ox=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Kf(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||ox.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Bh(e,t,a){if(t!=null&&typeof t!="object")throw Error(z(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&a[l]!==r&&Kf(e,l,r)}else for(var o in t)t.hasOwnProperty(o)&&Kf(e,o,t[o])}function Fd(e){if(e.indexOf("-")===-1)return!1;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 nx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ix=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Si(e){return ix.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ja(){}var Ks=null;function Hd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vl=null,Al=null;function Jf(e){var t=Xl(e);if(t&&(e=t.stateNode)){var a=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ws(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+na(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var l=r[Ut]||null;if(!l)throw Error(z(90));Ws(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Dh(r)}break e;case"textarea":Oh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Tl(e,!!a.multiple,t,!1)}}}var cs=!1;function Uh(e,t,a){if(cs)return e(t,a);cs=!0;try{var r=e(t);return r}finally{if(cs=!1,(vl!==null||Al!==null)&&(Cu(),vl&&(t=vl,e=Al,Al=vl=null,Jf(t),e)))for(t=0;t<e.length;t++)Jf(e[t])}}function Vo(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Ut]||null;if(r===null)return null;a=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(a&&typeof a!="function")throw Error(z(231,t,typeof a));return a}var Za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Js=!1;if(Za)try{dl={},Object.defineProperty(dl,"passive",{get:function(){Js=!0}}),window.addEventListener("test",dl,dl),window.removeEventListener("test",dl,dl)}catch{Js=!1}var dl,fr=null,qd=null,Ci=null;function zh(){if(Ci)return Ci;var e,t=qd,a=t.length,r,l="value"in fr?fr.value:fr.textContent,o=l.length;for(e=0;e<a&&t[e]===l[e];e++);var n=a-e;for(r=1;r<=n&&t[a-r]===l[o-r];r++);return Ci=l.slice(e,1<r?1-r:void 0)}function wi(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 ui(){return!0}function $f(){return!1}function zt(e){function t(a,r,l,o,n){this._reactName=a,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=n,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ui:$f,this.isPropagationStopped=$f,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ui)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ui)},persist:function(){},isPersistent:ui}),t}var Kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fu=zt(Kr),dn=He({},Kr,{view:0,detail:0}),ux=zt(dn),fs,ps,bo,pu=He({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jd,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!==bo&&(bo&&e.type==="mousemove"?(fs=e.screenX-bo.screenX,ps=e.screenY-bo.screenY):ps=fs=0,bo=e),fs)},movementY:function(e){return"movementY"in e?e.movementY:ps}}),ep=zt(pu),sx=He({},pu,{dataTransfer:0}),dx=zt(sx),cx=He({},dn,{relatedTarget:0}),hs=zt(cx),fx=He({},Kr,{animationName:0,elapsedTime:0,pseudoElement:0}),px=zt(fx),hx=He({},Kr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mx=zt(hx),gx=He({},Kr,{data:0}),tp=zt(gx),yx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vx={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"},xx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xx[e])?!!t[e]:!1}function jd(){return bx}var Lx=He({},dn,{key:function(e){if(e.key){var t=yx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jd,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sx=zt(Lx),Cx=He({},pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ap=zt(Cx),wx=He({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jd}),Ix=zt(wx),Rx=He({},Kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ex=zt(Rx),Tx=He({},pu,{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}),Ax=zt(Tx),Mx=He({},Kr,{newState:0,oldState:0}),kx=zt(Mx),Dx=[9,13,27,32],Gd=Za&&"CompositionEvent"in window,ko=null;Za&&"documentMode"in document&&(ko=document.documentMode);var _x=Za&&"TextEvent"in window&&!ko,Ph=Za&&(!Gd||ko&&8<ko&&11>=ko),rp=" ",lp=!1;function Fh(e,t){switch(e){case"keyup":return Dx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xl=!1;function Ox(e,t){switch(e){case"compositionend":return Hh(t);case"keypress":return t.which!==32?null:(lp=!0,rp);case"textInput":return e=t.data,e===rp&&lp?null:e;default:return null}}function Nx(e,t){if(xl)return e==="compositionend"||!Gd&&Fh(e,t)?(e=zh(),Ci=qd=fr=null,xl=!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 Ph&&t.locale!=="ko"?null:t.data;default:return null}}var Bx={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 op(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bx[e.type]:t==="textarea"}function qh(e,t,a,r){vl?Al?Al.push(r):Al=[r]:vl=r,t=lu(t,"onChange"),0<t.length&&(a=new fu("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Do=null,Xo=null;function Ux(e){Ug(e,0)}function hu(e){var t=To(e);if(Dh(t))return e}function np(e,t){if(e==="change")return t}var jh=!1;Za&&(Za?(di="oninput"in document,di||(ms=document.createElement("div"),ms.setAttribute("oninput","return;"),di=typeof ms.oninput=="function"),si=di):si=!1,jh=si&&(!document.documentMode||9<document.documentMode));var si,di,ms;function ip(){Do&&(Do.detachEvent("onpropertychange",Gh),Xo=Do=null)}function Gh(e){if(e.propertyName==="value"&&hu(Xo)){var t=[];qh(t,Xo,e,Hd(e)),Uh(Ux,t)}}function zx(e,t,a){e==="focusin"?(ip(),Do=t,Xo=a,Do.attachEvent("onpropertychange",Gh)):e==="focusout"&&ip()}function Px(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hu(Xo)}function Fx(e,t){if(e==="click")return hu(t)}function Hx(e,t){if(e==="input"||e==="change")return hu(t)}function qx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:qx;function Yo(e,t){if(Wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var l=a[r];if(!Xs.call(t,l)||!Wt(e[l],t[l]))return!1}return!0}function up(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sp(e,t){var a=up(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=up(a)}}function Vh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Vd(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")}var jx=Za&&"documentMode"in document&&11>=document.documentMode,bl=null,$s=null,_o=null,ed=!1;function dp(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ed||bl==null||bl!==Fi(r)||(r=bl,"selectionStart"in r&&Vd(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}),_o&&Yo(_o,r)||(_o=r,r=lu($s,"onSelect"),0<r.length&&(t=new fu("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=bl)))}function Nr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ll={animationend:Nr("Animation","AnimationEnd"),animationiteration:Nr("Animation","AnimationIteration"),animationstart:Nr("Animation","AnimationStart"),transitionrun:Nr("Transition","TransitionRun"),transitionstart:Nr("Transition","TransitionStart"),transitioncancel:Nr("Transition","TransitionCancel"),transitionend:Nr("Transition","TransitionEnd")},gs={},Yh={};Za&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete Ll.animationend.animation,delete Ll.animationiteration.animation,delete Ll.animationstart.animation),"TransitionEvent"in window||delete Ll.transitionend.transition);function Jr(e){if(gs[e])return gs[e];if(!Ll[e])return e;var t=Ll[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Yh)return gs[e]=t[a];return e}var Zh=Jr("animationend"),Wh=Jr("animationiteration"),Qh=Jr("animationstart"),Gx=Jr("transitionrun"),Vx=Jr("transitionstart"),Xx=Jr("transitioncancel"),Kh=Jr("transitionend"),Jh=new Map,td="abort auxClick beforeToggle 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(" ");td.push("scrollEnd");function ba(e,t){Jh.set(e,t),Qr(t,[e])}var Hi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},aa=[],Sl=0,Xd=0;function mu(){for(var e=Sl,t=Xd=Sl=0;t<e;){var a=aa[t];aa[t++]=null;var r=aa[t];aa[t++]=null;var l=aa[t];aa[t++]=null;var o=aa[t];if(aa[t++]=null,r!==null&&l!==null){var n=r.pending;n===null?l.next=l:(l.next=n.next,n.next=l),r.pending=l}o!==0&&$h(a,l,o)}}function gu(e,t,a,r){aa[Sl++]=e,aa[Sl++]=t,aa[Sl++]=a,aa[Sl++]=r,Xd|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Yd(e,t,a,r){return gu(e,t,a,r),qi(e)}function $r(e,t){return gu(e,null,null,t),qi(e)}function $h(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var l=!1,o=e.return;o!==null;)o.childLanes|=a,r=o.alternate,r!==null&&(r.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(l=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,l&&t!==null&&(l=31-Yt(a),e=o.hiddenUpdates,r=e[l],r===null?e[l]=[t]:r.push(t),t.lane=a|536870912),o):null}function qi(e){if(50<qo)throw qo=0,Sd=null,Error(z(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Cl={};function Yx(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=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 jt(e,t,a,r){return new Yx(e,t,a,r)}function Zd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Va(e,t){var a=e.alternate;return a===null?(a=jt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function em(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ii(e,t,a,r,l,o){var n=0;if(r=e,typeof e=="function")Zd(e)&&(n=1);else if(typeof e=="string")n=Qb(e,a,Ea.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case qs:return e=jt(31,a,t,l),e.elementType=qs,e.lanes=o,e;case ml:return Hr(a.children,l,o,t);case xh:n=8,l|=24;break;case Ps:return e=jt(12,a,t,l|2),e.elementType=Ps,e.lanes=o,e;case Fs:return e=jt(13,a,t,l),e.elementType=Fs,e.lanes=o,e;case Hs:return e=jt(19,a,t,l),e.elementType=Hs,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qa:n=10;break e;case bh:n=9;break e;case Od:n=11;break e;case Nd:n=14;break e;case or:n=16,r=null;break e}n=29,a=Error(z(130,e===null?"null":typeof e,"")),r=null}return t=jt(n,a,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Hr(e,t,a,r){return e=jt(7,e,r,t),e.lanes=a,e}function ys(e,t,a){return e=jt(6,e,null,t),e.lanes=a,e}function tm(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function vs(e,t,a){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var cp=new WeakMap;function ia(e,t){if(typeof e=="object"&&e!==null){var a=cp.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Xf(t)},cp.set(e,t),t)}return{value:e,source:t,stack:Xf(t)}}var wl=[],Il=0,ji=null,Zo=0,la=[],oa=0,Ir=null,wa=1,Ia="";function Fa(e,t){wl[Il++]=Zo,wl[Il++]=ji,ji=e,Zo=t}function am(e,t,a){la[oa++]=wa,la[oa++]=Ia,la[oa++]=Ir,Ir=e;var r=wa;e=Ia;var l=32-Yt(r)-1;r&=~(1<<l),a+=1;var o=32-Yt(t)+l;if(30<o){var n=l-l%5;o=(r&(1<<n)-1).toString(32),r>>=n,l-=n,wa=1<<32-Yt(t)+l|a<<l|r,Ia=o+e}else wa=1<<o|a<<l|r,Ia=e}function Wd(e){e.return!==null&&(Fa(e,1),am(e,1,0))}function Qd(e){for(;e===ji;)ji=wl[--Il],wl[Il]=null,Zo=wl[--Il],wl[Il]=null;for(;e===Ir;)Ir=la[--oa],la[oa]=null,Ia=la[--oa],la[oa]=null,wa=la[--oa],la[oa]=null}function rm(e,t){la[oa++]=wa,la[oa++]=Ia,la[oa++]=Ir,wa=t.id,Ia=t.overflow,Ir=e}var yt=null,Fe=null,Se=!1,yr=null,ua=!1,ad=Error(z(519));function Rr(e){var t=Error(z(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wo(ia(t,e)),ad}function fp(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[gt]=e,t[Ut]=r,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<$o.length;a++)he($o[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),_h(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Nh(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||Pg(t.textContent,a)?(r.popover!=null&&(he("beforetoggle",t),he("toggle",t)),r.onScroll!=null&&he("scroll",t),r.onScrollEnd!=null&&he("scrollend",t),r.onClick!=null&&(t.onclick=ja),t=!0):t=!1,t||Rr(e,!0)}function pp(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:ua=!1;return;case 27:case 3:ua=!0;return;default:yt=yt.return}}function cl(e){if(e!==yt)return!1;if(!Se)return pp(e),Se=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ed(e.type,e.memoizedProps)),a=!a),a&&Fe&&Rr(e),pp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));Fe=th(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));Fe=th(e)}else t===27?(t=Fe,Mr(e.type)?(e=kd,kd=null,Fe=e):Fe=t):Fe=yt?da(e.stateNode.nextSibling):null;return!0}function Vr(){Fe=yt=null,Se=!1}function xs(){var e=yr;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),yr=null),e}function Wo(e){yr===null?yr=[e]:yr.push(e)}var rd=Ta(null),el=null,Ga=null;function ir(e,t,a){Ue(rd,t._currentValue),t._currentValue=a}function Xa(e){e._currentValue=rd.current,ft(rd)}function ld(e,t,a){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===a)break;e=e.return}}function od(e,t,a,r){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var o=l.dependencies;if(o!==null){var n=l.child;o=o.firstContext;e:for(;o!==null;){var s=o;o=l;for(var p=0;p<t.length;p++)if(s.context===t[p]){o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),ld(o.return,a,e),r||(n=null);break e}o=s.next}}else if(l.tag===18){if(n=l.return,n===null)throw Error(z(341));n.lanes|=a,o=n.alternate,o!==null&&(o.lanes|=a),ld(n,a,e),n=null}else n=l.child;if(n!==null)n.return=l;else for(n=l;n!==null;){if(n===e){n=null;break}if(l=n.sibling,l!==null){l.return=n.return,n=l;break}n=n.return}l=n}}function Yl(e,t,a,r){e=null;for(var l=t,o=!1;l!==null;){if(!o){if((l.flags&524288)!==0)o=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var n=l.alternate;if(n===null)throw Error(z(387));if(n=n.memoizedProps,n!==null){var s=l.type;Wt(l.pendingProps.value,n.value)||(e!==null?e.push(s):e=[s])}}else if(l===Bi.current){if(n=l.alternate,n===null)throw Error(z(387));n.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(tn):e=[tn])}l=l.return}e!==null&&od(t,e,a,r),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xr(e){el=e,Ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return lm(el,e)}function ci(e,t){return el===null&&Xr(e),lm(e,t)}function lm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ga===null){if(e===null)throw Error(z(308));Ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ga=Ga.next=t;return a}var Zx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Wx=ut.unstable_scheduleCallback,Qx=ut.unstable_NormalPriority,lt={$$typeof:qa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kd(){return{controller:new Zx,data:new Map,refCount:0}}function cn(e){e.refCount--,e.refCount===0&&Wx(Qx,function(){e.controller.abort()})}var Oo=null,nd=0,Ul=0,Ml=null;function Kx(e,t){if(Oo===null){var a=Oo=[];nd=0,Ul=Sc(),Ml={status:"pending",value:void 0,then:function(r){a.push(r)}}}return nd++,t.then(hp,hp),t}function hp(){if(--nd===0&&Oo!==null){Ml!==null&&(Ml.status="fulfilled");var e=Oo;Oo=null,Ul=0,Ml=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jx(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(r.status="rejected",r.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),r}var mp=ae.S;ae.S=function(e,t){vg=Vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kx(e,t),mp!==null&&mp(e,t)};var qr=Ta(null);function Jd(){var e=qr.current;return e!==null?e:Be.pooledCache}function Ri(e,t){t===null?Ue(qr,qr.current):Ue(qr,t.pool)}function om(){var e=Jd();return e===null?null:{parent:lt._currentValue,pool:e}}var Zl=Error(z(460)),$d=Error(z(474)),yu=Error(z(542)),Vi={then:function(){}};function gp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ja,ja),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vp(e),e;default:if(typeof t.status=="string")t.then(ja,ja);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(z(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=r}},function(r){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vp(e),e}throw jr=t,Zl}}function zr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(jr=a,Zl):a}}var jr=null;function yp(){if(jr===null)throw Error(z(459));var e=jr;return jr=null,e}function vp(e){if(e===Zl||e===yu)throw Error(z(483))}var kl=null,Qo=0;function fi(e){var t=Qo;return Qo+=1,kl===null&&(kl=[]),nm(kl,e,t)}function Lo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pi(e,t){throw t.$$typeof===z0?Error(z(525)):(e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function im(e){function t(c,h){if(e){var y=c.deletions;y===null?(c.deletions=[h],c.flags|=16):y.push(h)}}function a(c,h){if(!e)return null;for(;h!==null;)t(c,h),h=h.sibling;return null}function r(c){for(var h=new Map;c!==null;)c.key!==null?h.set(c.key,c):h.set(c.index,c),c=c.sibling;return h}function l(c,h){return c=Va(c,h),c.index=0,c.sibling=null,c}function o(c,h,y){return c.index=y,e?(y=c.alternate,y!==null?(y=y.index,y<h?(c.flags|=67108866,h):y):(c.flags|=67108866,h)):(c.flags|=1048576,h)}function n(c){return e&&c.alternate===null&&(c.flags|=67108866),c}function s(c,h,y,b){return h===null||h.tag!==6?(h=ys(y,c.mode,b),h.return=c,h):(h=l(h,y),h.return=c,h)}function p(c,h,y,b){var S=y.type;return S===ml?g(c,h,y.props.children,b,y.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===or&&zr(S)===h.type)?(h=l(h,y.props),Lo(h,y),h.return=c,h):(h=Ii(y.type,y.key,y.props,null,c.mode,b),Lo(h,y),h.return=c,h)}function d(c,h,y,b){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=vs(y,c.mode,b),h.return=c,h):(h=l(h,y.children||[]),h.return=c,h)}function g(c,h,y,b,S){return h===null||h.tag!==7?(h=Hr(y,c.mode,b,S),h.return=c,h):(h=l(h,y),h.return=c,h)}function m(c,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=ys(""+h,c.mode,y),h.return=c,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ri:return y=Ii(h.type,h.key,h.props,null,c.mode,y),Lo(y,h),y.return=c,y;case Ro:return h=vs(h,c.mode,y),h.return=c,h;case or:return h=zr(h),m(c,h,y)}if(Eo(h)||xo(h))return h=Hr(h,c.mode,y,null),h.return=c,h;if(typeof h.then=="function")return m(c,fi(h),y);if(h.$$typeof===qa)return m(c,ci(c,h),y);pi(c,h)}return null}function f(c,h,y,b){var S=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return S!==null?null:s(c,h,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ri:return y.key===S?p(c,h,y,b):null;case Ro:return y.key===S?d(c,h,y,b):null;case or:return y=zr(y),f(c,h,y,b)}if(Eo(y)||xo(y))return S!==null?null:g(c,h,y,b,null);if(typeof y.then=="function")return f(c,h,fi(y),b);if(y.$$typeof===qa)return f(c,h,ci(c,y),b);pi(c,y)}return null}function x(c,h,y,b,S){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return c=c.get(y)||null,s(h,c,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ri:return c=c.get(b.key===null?y:b.key)||null,p(h,c,b,S);case Ro:return c=c.get(b.key===null?y:b.key)||null,d(h,c,b,S);case or:return b=zr(b),x(c,h,y,b,S)}if(Eo(b)||xo(b))return c=c.get(y)||null,g(h,c,b,S,null);if(typeof b.then=="function")return x(c,h,y,fi(b),S);if(b.$$typeof===qa)return x(c,h,y,ci(h,b),S);pi(h,b)}return null}function L(c,h,y,b){for(var S=null,A=null,M=h,I=h=0,T=null;M!==null&&I<y.length;I++){M.index>I?(T=M,M=null):T=M.sibling;var N=f(c,M,y[I],b);if(N===null){M===null&&(M=T);break}e&&M&&N.alternate===null&&t(c,M),h=o(N,h,I),A===null?S=N:A.sibling=N,A=N,M=T}if(I===y.length)return a(c,M),Se&&Fa(c,I),S;if(M===null){for(;I<y.length;I++)M=m(c,y[I],b),M!==null&&(h=o(M,h,I),A===null?S=M:A.sibling=M,A=M);return Se&&Fa(c,I),S}for(M=r(M);I<y.length;I++)T=x(M,c,I,y[I],b),T!==null&&(e&&T.alternate!==null&&M.delete(T.key===null?I:T.key),h=o(T,h,I),A===null?S=T:A.sibling=T,A=T);return e&&M.forEach(function(F){return t(c,F)}),Se&&Fa(c,I),S}function w(c,h,y,b){if(y==null)throw Error(z(151));for(var S=null,A=null,M=h,I=h=0,T=null,N=y.next();M!==null&&!N.done;I++,N=y.next()){M.index>I?(T=M,M=null):T=M.sibling;var F=f(c,M,N.value,b);if(F===null){M===null&&(M=T);break}e&&M&&F.alternate===null&&t(c,M),h=o(F,h,I),A===null?S=F:A.sibling=F,A=F,M=T}if(N.done)return a(c,M),Se&&Fa(c,I),S;if(M===null){for(;!N.done;I++,N=y.next())N=m(c,N.value,b),N!==null&&(h=o(N,h,I),A===null?S=N:A.sibling=N,A=N);return Se&&Fa(c,I),S}for(M=r(M);!N.done;I++,N=y.next())N=x(M,c,I,N.value,b),N!==null&&(e&&N.alternate!==null&&M.delete(N.key===null?I:N.key),h=o(N,h,I),A===null?S=N:A.sibling=N,A=N);return e&&M.forEach(function(Y){return t(c,Y)}),Se&&Fa(c,I),S}function E(c,h,y,b){if(typeof y=="object"&&y!==null&&y.type===ml&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ri:e:{for(var S=y.key;h!==null;){if(h.key===S){if(S=y.type,S===ml){if(h.tag===7){a(c,h.sibling),b=l(h,y.props.children),b.return=c,c=b;break e}}else if(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===or&&zr(S)===h.type){a(c,h.sibling),b=l(h,y.props),Lo(b,y),b.return=c,c=b;break e}a(c,h);break}else t(c,h);h=h.sibling}y.type===ml?(b=Hr(y.props.children,c.mode,b,y.key),b.return=c,c=b):(b=Ii(y.type,y.key,y.props,null,c.mode,b),Lo(b,y),b.return=c,c=b)}return n(c);case Ro:e:{for(S=y.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){a(c,h.sibling),b=l(h,y.children||[]),b.return=c,c=b;break e}else{a(c,h);break}else t(c,h);h=h.sibling}b=vs(y,c.mode,b),b.return=c,c=b}return n(c);case or:return y=zr(y),E(c,h,y,b)}if(Eo(y))return L(c,h,y,b);if(xo(y)){if(S=xo(y),typeof S!="function")throw Error(z(150));return y=S.call(y),w(c,h,y,b)}if(typeof y.then=="function")return E(c,h,fi(y),b);if(y.$$typeof===qa)return E(c,h,ci(c,y),b);pi(c,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(a(c,h.sibling),b=l(h,y),b.return=c,c=b):(a(c,h),b=ys(y,c.mode,b),b.return=c,c=b),n(c)):a(c,h)}return function(c,h,y,b){try{Qo=0;var S=E(c,h,y,b);return kl=null,S}catch(M){if(M===Zl||M===yu)throw M;var A=jt(29,M,null,c.mode);return A.lanes=b,A.return=c,A}}}var Yr=im(!0),um=im(!1),nr=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function id(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xr(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ee&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,t=qi(e),$h(e,null,a),t}return gu(e,r,t,a),qi(e)}function No(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Rh(e,a)}}function bs(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var l=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var n={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?l=o=n:o=o.next=n,a=a.next}while(a!==null);o===null?l=o=t:o=o.next=t}else l=o=t;a={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ud=!1;function Bo(){if(ud){var e=Ml;if(e!==null)throw e}}function Uo(e,t,a,r){ud=!1;var l=e.updateQueue;nr=!1;var o=l.firstBaseUpdate,n=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var p=s,d=p.next;p.next=null,n===null?o=d:n.next=d,n=p;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==n&&(s===null?g.firstBaseUpdate=d:s.next=d,g.lastBaseUpdate=p))}if(o!==null){var m=l.baseState;n=0,g=d=p=null,s=o;do{var f=s.lane&-536870913,x=f!==s.lane;if(x?(ve&f)===f:(r&f)===f){f!==0&&f===Ul&&(ud=!0),g!==null&&(g=g.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var L=e,w=s;f=t;var E=a;switch(w.tag){case 1:if(L=w.payload,typeof L=="function"){m=L.call(E,m,f);break e}m=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=w.payload,f=typeof L=="function"?L.call(E,m,f):L,f==null)break e;m=He({},m,f);break e;case 2:nr=!0}}f=s.callback,f!==null&&(e.flags|=64,x&&(e.flags|=8192),x=l.callbacks,x===null?l.callbacks=[f]:x.push(f))}else x={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(d=g=x,p=m):g=g.next=x,n|=f;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;x=s,s=x.next,x.next=null,l.lastBaseUpdate=x,l.shared.pending=null}}while(!0);g===null&&(p=m),l.baseState=p,l.firstBaseUpdate=d,l.lastBaseUpdate=g,o===null&&(l.shared.lanes=0),Tr|=n,e.lanes=n,e.memoizedState=m}}function sm(e,t){if(typeof e!="function")throw Error(z(191,e));e.call(t)}function dm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)sm(a[e],t)}var zl=Ta(null),Xi=Ta(0);function xp(e,t){e=Ja,Ue(Xi,e),Ue(zl,t),Ja=e|t.baseLanes}function sd(){Ue(Xi,Ja),Ue(zl,zl.current)}function tc(){Ja=Xi.current,ft(zl),ft(Xi)}var Qt=Ta(null),sa=null;function ur(e){var t=e.alternate;Ue(Je,Je.current&1),Ue(Qt,e),sa===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(sa=e)}function dd(e){Ue(Je,Je.current),Ue(Qt,e),sa===null&&(sa=e)}function cm(e){e.tag===22?(Ue(Je,Je.current),Ue(Qt,e),sa===null&&(sa=e)):sr(e)}function sr(){Ue(Je,Je.current),Ue(Qt,Qt.current)}function qt(e){ft(Qt),sa===e&&(sa=null),ft(Je)}var Je=Ta(0);function Yi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ad(a)||Md(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Wa=0,de=null,Oe=null,at=null,Zi=!1,Dl=!1,Zr=!1,Wi=0,Ko=0,_l=null,$x=0;function Ye(){throw Error(z(321))}function ac(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Wt(e[a],t[a]))return!1;return!0}function rc(e,t,a,r,l,o){return Wa=o,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ae.H=e===null||e.memoizedState===null?qm:hc,Zr=!1,o=a(r,l),Zr=!1,Dl&&(o=pm(t,a,r,l)),fm(e),o}function fm(e){ae.H=Jo;var t=Oe!==null&&Oe.next!==null;if(Wa=0,at=Oe=de=null,Zi=!1,Ko=0,_l=null,t)throw Error(z(300));e===null||ot||(e=e.dependencies,e!==null&&Gi(e)&&(ot=!0))}function pm(e,t,a,r){de=e;var l=0;do{if(Dl&&(_l=null),Ko=0,Dl=!1,25<=l)throw Error(z(301));if(l+=1,at=Oe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ae.H=jm,o=t(a,r)}while(Dl);return o}function eb(){var e=ae.H,t=e.useState()[0];return t=typeof t.then=="function"?fn(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(de.flags|=1024),t}function lc(){var e=Wi!==0;return Wi=0,e}function oc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function nc(e){if(Zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zi=!1}Wa=0,at=Oe=de=null,Dl=!1,Ko=Wi=0,_l=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?de.memoizedState=at=e:at=at.next=e,at}function $e(){if(Oe===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=at===null?de.memoizedState:at.next;if(t!==null)at=t,Oe=e;else{if(e===null)throw de.alternate===null?Error(z(467)):Error(z(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},at===null?de.memoizedState=at=e:at=at.next=e}return at}function vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fn(e){var t=Ko;return Ko+=1,_l===null&&(_l=[]),e=nm(_l,e,t),t=de,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,ae.H=t===null||t.memoizedState===null?qm:hc),e}function xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fn(e);if(e.$$typeof===qa)return vt(e)}throw Error(z(438,String(e)))}function ic(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=de.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=vu(),de.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=P0;return t.index++,a}function Qa(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=$e();return uc(t,Oe,e)}function uc(e,t,a){var r=e.queue;if(r===null)throw Error(z(311));r.lastRenderedReducer=a;var l=e.baseQueue,o=r.pending;if(o!==null){if(l!==null){var n=l.next;l.next=o.next,o.next=n}t.baseQueue=l=o,r.pending=null}if(o=e.baseState,l===null)e.memoizedState=o;else{t=l.next;var s=n=null,p=null,d=t,g=!1;do{var m=d.lane&-536870913;if(m!==d.lane?(ve&m)===m:(Wa&m)===m){var f=d.revertLane;if(f===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),m===Ul&&(g=!0);else if((Wa&f)===f){d=d.next,f===Ul&&(g=!0);continue}else m={lane:0,revertLane:d.revertLane,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},p===null?(s=p=m,n=o):p=p.next=m,de.lanes|=f,Tr|=f;m=d.action,Zr&&a(o,m),o=d.hasEagerState?d.eagerState:a(o,m)}else f={lane:m,revertLane:d.revertLane,gesture:d.gesture,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},p===null?(s=p=f,n=o):p=p.next=f,de.lanes|=m,Tr|=m;d=d.next}while(d!==null&&d!==t);if(p===null?n=o:p.next=s,!Wt(o,e.memoizedState)&&(ot=!0,g&&(a=Ml,a!==null)))throw a;e.memoizedState=o,e.baseState=n,e.baseQueue=p,r.lastRenderedState=o}return l===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ls(e){var t=$e(),a=t.queue;if(a===null)throw Error(z(311));a.lastRenderedReducer=e;var r=a.dispatch,l=a.pending,o=t.memoizedState;if(l!==null){a.pending=null;var n=l=l.next;do o=e(o,n.action),n=n.next;while(n!==l);Wt(o,t.memoizedState)||(ot=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,r]}function hm(e,t,a){var r=de,l=$e(),o=Se;if(o){if(a===void 0)throw Error(z(407));a=a()}else a=t();var n=!Wt((Oe||l).memoizedState,a);if(n&&(l.memoizedState=a,ot=!0),l=l.queue,sc(ym.bind(null,r,l,e),[e]),l.getSnapshot!==t||n||at!==null&&at.memoizedState.tag&1){if(r.flags|=2048,Pl(9,{destroy:void 0},gm.bind(null,r,l,a,t),null),Be===null)throw Error(z(349));o||(Wa&127)!==0||mm(r,t,a)}return a}function mm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=vu(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function gm(e,t,a,r){t.value=a,t.getSnapshot=r,vm(t)&&xm(e)}function ym(e,t,a){return a(function(){vm(t)&&xm(e)})}function vm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Wt(e,a)}catch{return!0}}function xm(e){var t=$r(e,2);t!==null&&Bt(t,e,2)}function cd(e){var t=Mt();if(typeof e=="function"){var a=e;if(e=a(),Zr){cr(!0);try{a()}finally{cr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:e},t}function bm(e,t,a,r){return e.baseState=a,uc(e,Oe,typeof r=="function"?r:Qa)}function tb(e,t,a,r,l){if(Lu(e))throw Error(z(485));if(e=t.action,e!==null){var o={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(n){o.listeners.push(n)}};ae.T!==null?a(!0):o.isTransition=!1,r(o),a=t.pending,a===null?(o.next=t.pending=o,Lm(t,o)):(o.next=a.next,t.pending=a.next=o)}}function Lm(e,t){var a=t.action,r=t.payload,l=e.state;if(t.isTransition){var o=ae.T,n={};ae.T=n;try{var s=a(l,r),p=ae.S;p!==null&&p(n,s),bp(e,t,s)}catch(d){fd(e,t,d)}finally{o!==null&&n.types!==null&&(o.types=n.types),ae.T=o}}else try{o=a(l,r),bp(e,t,o)}catch(d){fd(e,t,d)}}function bp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){Lp(e,t,r)},function(r){return fd(e,t,r)}):Lp(e,t,a)}function Lp(e,t,a){t.status="fulfilled",t.value=a,Sm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Lm(e,a)))}function fd(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,Sm(t),t=t.next;while(t!==r)}e.action=null}function Sm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cm(e,t){return t}function Sp(e,t){if(Se){var a=Be.formState;if(a!==null){e:{var r=de;if(Se){if(Fe){t:{for(var l=Fe,o=ua;l.nodeType!==8;){if(!o){l=null;break t}if(l=da(l.nextSibling),l===null){l=null;break t}}o=l.data,l=o==="F!"||o==="F"?l:null}if(l){Fe=da(l.nextSibling),r=l.data==="F!";break e}}Rr(r)}r=!1}r&&(t=a[0])}}return a=Mt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cm,lastRenderedState:t},a.queue=r,a=Pm.bind(null,de,r),r.dispatch=a,r=cd(!1),o=pc.bind(null,de,!1,r.queue),r=Mt(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,a=tb.bind(null,de,l,o,a),l.dispatch=a,r.memoizedState=e,[t,a,!1]}function Cp(e){var t=$e();return wm(t,Oe,e)}function wm(e,t,a){if(t=uc(e,t,Cm)[0],e=Ei(Qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=fn(t)}catch(n){throw n===Zl?yu:n}else r=t;t=$e();var l=t.queue,o=l.dispatch;return a!==t.memoizedState&&(de.flags|=2048,Pl(9,{destroy:void 0},ab.bind(null,l,a),null)),[r,o,e]}function ab(e,t){e.action=t}function wp(e){var t=$e(),a=Oe;if(a!==null)return wm(t,a,e);$e(),t=t.memoizedState,a=$e();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function Pl(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=de.updateQueue,t===null&&(t=vu(),de.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Im(){return $e().memoizedState}function Ti(e,t,a,r){var l=Mt();de.flags|=e,l.memoizedState=Pl(1|t,{destroy:void 0},a,r===void 0?null:r)}function bu(e,t,a,r){var l=$e();r=r===void 0?null:r;var o=l.memoizedState.inst;Oe!==null&&r!==null&&ac(r,Oe.memoizedState.deps)?l.memoizedState=Pl(t,o,a,r):(de.flags|=e,l.memoizedState=Pl(1|t,o,a,r))}function Ip(e,t){Ti(8390656,8,e,t)}function sc(e,t){bu(2048,8,e,t)}function rb(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=vu(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Rm(e){var t=$e().memoizedState;return rb({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(z(440));return t.impl.apply(void 0,arguments)}}function Em(e,t){return bu(4,2,e,t)}function Tm(e,t){return bu(4,4,e,t)}function Am(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Mm(e,t,a){a=a!=null?a.concat([e]):null,bu(4,4,Am.bind(null,t,e),a)}function dc(){}function km(e,t){var a=$e();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&ac(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Dm(e,t){var a=$e();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&ac(t,r[1]))return r[0];if(r=e(),Zr){cr(!0);try{e()}finally{cr(!1)}}return a.memoizedState=[r,t],r}function cc(e,t,a){return a===void 0||(Wa&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=bg(),de.lanes|=e,Tr|=e,a)}function _m(e,t,a,r){return Wt(a,t)?a:zl.current!==null?(e=cc(e,a,r),Wt(e,t)||(ot=!0),e):(Wa&42)===0||(Wa&1073741824)!==0&&(ve&261930)===0?(ot=!0,e.memoizedState=a):(e=bg(),de.lanes|=e,Tr|=e,t)}function Om(e,t,a,r,l){var o=Te.p;Te.p=o!==0&&8>o?o:8;var n=ae.T,s={};ae.T=s,pc(e,!1,t,a);try{var p=l(),d=ae.S;if(d!==null&&d(s,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var g=Jx(p,r);zo(e,t,g,Zt(e))}else zo(e,t,r,Zt(e))}catch(m){zo(e,t,{then:function(){},status:"rejected",reason:m},Zt())}finally{Te.p=o,n!==null&&s.types!==null&&(n.types=s.types),ae.T=n}}function lb(){}function pd(e,t,a,r){if(e.tag!==5)throw Error(z(476));var l=Nm(e).queue;Om(e,l,t,Fr,a===null?lb:function(){return Bm(e),a(r)})}function Nm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fr,baseState:Fr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:Fr},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bm(e){var t=Nm(e);t.next===null&&(t=e.alternate.memoizedState),zo(e,t.next.queue,{},Zt())}function fc(){return vt(tn)}function Um(){return $e().memoizedState}function zm(){return $e().memoizedState}function ob(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Zt();e=vr(a);var r=xr(t,e,a);r!==null&&(Bt(r,t,a),No(r,t,a)),t={cache:Kd()},e.payload=t;return}t=t.return}}function nb(e,t,a){var r=Zt();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Lu(e)?Fm(t,a):(a=Yd(e,t,a,r),a!==null&&(Bt(a,e,r),Hm(a,t,r)))}function Pm(e,t,a){var r=Zt();zo(e,t,a,r)}function zo(e,t,a,r){var l={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Lu(e))Fm(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var n=t.lastRenderedState,s=o(n,a);if(l.hasEagerState=!0,l.eagerState=s,Wt(s,n))return gu(e,t,l,0),Be===null&&mu(),!1}catch{}if(a=Yd(e,t,l,r),a!==null)return Bt(a,e,r),Hm(a,t,r),!0}return!1}function pc(e,t,a,r){if(r={lane:2,revertLane:Sc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Lu(e)){if(t)throw Error(z(479))}else t=Yd(e,a,r,2),t!==null&&Bt(t,e,2)}function Lu(e){var t=e.alternate;return e===de||t!==null&&t===de}function Fm(e,t){Dl=Zi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hm(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Rh(e,a)}}var Jo={readContext:vt,use:xu,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Jo.useEffectEvent=Ye;var qm={readContext:vt,use:xu,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Ip,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ti(4194308,4,Am.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){Ti(4,2,e,t)},useMemo:function(e,t){var a=Mt();t=t===void 0?null:t;var r=e();if(Zr){cr(!0);try{e()}finally{cr(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Mt();if(a!==void 0){var l=a(t);if(Zr){cr(!0);try{a(t)}finally{cr(!1)}}}else l=t;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=nb.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=cd(e);var t=e.queue,a=Pm.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:dc,useDeferredValue:function(e,t){var a=Mt();return cc(a,e,t)},useTransition:function(){var e=cd(!1);return e=Om.bind(null,de,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=de,l=Mt();if(Se){if(a===void 0)throw Error(z(407));a=a()}else{if(a=t(),Be===null)throw Error(z(349));(ve&127)!==0||mm(r,t,a)}l.memoizedState=a;var o={value:a,getSnapshot:t};return l.queue=o,Ip(ym.bind(null,r,o,e),[e]),r.flags|=2048,Pl(9,{destroy:void 0},gm.bind(null,r,o,a,t),null),a},useId:function(){var e=Mt(),t=Be.identifierPrefix;if(Se){var a=Ia,r=wa;a=(r&~(1<<32-Yt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Wi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=$x++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fc,useFormState:Sp,useActionState:Sp,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=pc.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return Mt().memoizedState=ob.bind(null,de)},useEffectEvent:function(e){var t=Mt(),a={impl:e};return t.memoizedState=a,function(){if((Ee&2)!==0)throw Error(z(440));return a.impl.apply(void 0,arguments)}}},hc={readContext:vt,use:xu,useCallback:km,useContext:vt,useEffect:sc,useImperativeHandle:Mm,useInsertionEffect:Em,useLayoutEffect:Tm,useMemo:Dm,useReducer:Ei,useRef:Im,useState:function(){return Ei(Qa)},useDebugValue:dc,useDeferredValue:function(e,t){var a=$e();return _m(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ei(Qa)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:hm,useId:Um,useHostTransitionStatus:fc,useFormState:Cp,useActionState:Cp,useOptimistic:function(e,t){var a=$e();return bm(a,Oe,e,t)},useMemoCache:ic,useCacheRefresh:zm};hc.useEffectEvent=Rm;var jm={readContext:vt,use:xu,useCallback:km,useContext:vt,useEffect:sc,useImperativeHandle:Mm,useInsertionEffect:Em,useLayoutEffect:Tm,useMemo:Dm,useReducer:Ls,useRef:Im,useState:function(){return Ls(Qa)},useDebugValue:dc,useDeferredValue:function(e,t){var a=$e();return Oe===null?cc(a,e,t):_m(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ls(Qa)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:hm,useId:Um,useHostTransitionStatus:fc,useFormState:wp,useActionState:wp,useOptimistic:function(e,t){var a=$e();return Oe!==null?bm(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ic,useCacheRefresh:zm};jm.useEffectEvent=Rm;function Ss(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:He({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var hd={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Zt(),l=vr(r);l.payload=t,a!=null&&(l.callback=a),t=xr(e,l,r),t!==null&&(Bt(t,e,r),No(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Zt(),l=vr(r);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=xr(e,l,r),t!==null&&(Bt(t,e,r),No(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Zt(),r=vr(a);r.tag=2,t!=null&&(r.callback=t),t=xr(e,r,a),t!==null&&(Bt(t,e,a),No(t,e,a))}};function Rp(e,t,a,r,l,o,n){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,n):t.prototype&&t.prototype.isPureReactComponent?!Yo(a,r)||!Yo(l,o):!0}function Ep(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&hd.enqueueReplaceState(t,t.state,null)}function Wr(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=He({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Gm(e){Hi(e)}function Vm(e){console.error(e)}function Xm(e){Hi(e)}function Qi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Tp(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function md(e,t,a){return a=vr(a),a.tag=3,a.payload={element:null},a.callback=function(){Qi(e,t)},a}function Ym(e){return e=vr(e),e.tag=3,e}function Zm(e,t,a,r){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var o=r.value;e.payload=function(){return l(o)},e.callback=function(){Tp(t,a,r)}}var n=a.stateNode;n!==null&&typeof n.componentDidCatch=="function"&&(e.callback=function(){Tp(t,a,r),typeof l!="function"&&(br===null?br=new Set([this]):br.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function ib(e,t,a,r,l){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Yl(t,a,l,!0),a=Qt.current,a!==null){switch(a.tag){case 31:case 13:return sa===null?tu():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=l,r===Vi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),_s(e,r,l)),!1;case 22:return a.flags|=65536,r===Vi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),_s(e,r,l)),!1}throw Error(z(435,a.tag))}return _s(e,r,l),tu(),!1}if(Se)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,r!==ad&&(e=Error(z(422),{cause:r}),Wo(ia(e,a)))):(r!==ad&&(t=Error(z(423),{cause:r}),Wo(ia(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,r=ia(r,a),l=md(e.stateNode,r,l),bs(e,l),Ze!==4&&(Ze=2)),!1;var o=Error(z(520),{cause:r});if(o=ia(o,a),Ho===null?Ho=[o]:Ho.push(o),Ze!==4&&(Ze=2),t===null)return!0;r=ia(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=md(a.stateNode,r,e),bs(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(br===null||!br.has(o))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Ym(l),Zm(l,e,a,r),bs(a,l),!1}a=a.return}while(a!==null);return!1}var mc=Error(z(461)),ot=!1;function mt(e,t,a,r){t.child=e===null?um(t,null,a,r):Yr(t,e.child,a,r)}function Ap(e,t,a,r,l){a=a.render;var o=t.ref;if("ref"in r){var n={};for(var s in r)s!=="ref"&&(n[s]=r[s])}else n=r;return Xr(t),r=rc(e,t,a,n,o,l),s=lc(),e!==null&&!ot?(oc(e,t,l),Ka(e,t,l)):(Se&&s&&Wd(t),t.flags|=1,mt(e,t,r,l),t.child)}function Mp(e,t,a,r,l){if(e===null){var o=a.type;return typeof o=="function"&&!Zd(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,Wm(e,t,o,r,l)):(e=Ii(a.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!gc(e,l)){var n=o.memoizedProps;if(a=a.compare,a=a!==null?a:Yo,a(n,r)&&e.ref===t.ref)return Ka(e,t,l)}return t.flags|=1,e=Va(o,r),e.ref=t.ref,e.return=t,t.child=e}function Wm(e,t,a,r,l){if(e!==null){var o=e.memoizedProps;if(Yo(o,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=o,gc(e,l))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,Ka(e,t,l)}return gd(e,t,a,r,l)}function Qm(e,t,a,r){var l=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(r=t.child=e.child,l=0;r!==null;)l=l|r.lanes|r.childLanes,r=r.sibling;r=l&~o}else r=0,t.child=null;return kp(e,t,o,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ri(t,o!==null?o.cachePool:null),o!==null?xp(t,o):sd(),cm(t);else return r=t.lanes=536870912,kp(e,t,o!==null?o.baseLanes|a:a,a,r)}else o!==null?(Ri(t,o.cachePool),xp(t,o),sr(t),t.memoizedState=null):(e!==null&&Ri(t,null),sd(),sr(t));return mt(e,t,l,a),t.child}function Ao(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kp(e,t,a,r,l){var o=Jd();return o=o===null?null:{parent:lt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ri(t,null),sd(),cm(t),e!==null&&Yl(e,t,r,!0),t.childLanes=l,null}function Ai(e,t){return t=Ki({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dp(e,t,a){return Yr(t,e.child,null,a),e=Ai(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function ub(e,t,a){var r=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(r.mode==="hidden")return e=Ai(t,r),t.lanes=536870912,Ao(null,e);if(dd(t),(e=Fe)?(e=qg(e,ua),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ir!==null?{id:wa,overflow:Ia}:null,retryLane:536870912,hydrationErrors:null},a=tm(e),a.return=t,t.child=a,yt=t,Fe=null)):e=null,e===null)throw Rr(t);return t.lanes=536870912,null}return Ai(t,r)}var o=e.memoizedState;if(o!==null){var n=o.dehydrated;if(dd(t),l)if(t.flags&256)t.flags&=-257,t=Dp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(z(558));else if(ot||Yl(e,t,a,!1),l=(a&e.childLanes)!==0,ot||l){if(r=Be,r!==null&&(n=Eh(r,a),n!==0&&n!==o.retryLane))throw o.retryLane=n,$r(e,n),Bt(r,e,n),mc;tu(),t=Dp(e,t,a)}else e=o.treeContext,Fe=da(n.nextSibling),yt=t,Se=!0,yr=null,ua=!1,e!==null&&rm(t,e),t=Ai(t,r),t.flags|=4096;return t}return e=Va(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Mi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(z(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function gd(e,t,a,r,l){return Xr(t),a=rc(e,t,a,r,void 0,l),r=lc(),e!==null&&!ot?(oc(e,t,l),Ka(e,t,l)):(Se&&r&&Wd(t),t.flags|=1,mt(e,t,a,l),t.child)}function _p(e,t,a,r,l,o){return Xr(t),t.updateQueue=null,a=pm(t,r,a,l),fm(e),r=lc(),e!==null&&!ot?(oc(e,t,o),Ka(e,t,o)):(Se&&r&&Wd(t),t.flags|=1,mt(e,t,a,o),t.child)}function Op(e,t,a,r,l){if(Xr(t),t.stateNode===null){var o=Cl,n=a.contextType;typeof n=="object"&&n!==null&&(o=vt(n)),o=new a(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=hd,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},ec(t),n=a.contextType,o.context=typeof n=="object"&&n!==null?vt(n):Cl,o.state=t.memoizedState,n=a.getDerivedStateFromProps,typeof n=="function"&&(Ss(t,a,n,r),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(n=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),n!==o.state&&hd.enqueueReplaceState(o,o.state,null),Uo(t,r,o,l),Bo(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var s=t.memoizedProps,p=Wr(a,s);o.props=p;var d=o.context,g=a.contextType;n=Cl,typeof g=="object"&&g!==null&&(n=vt(g));var m=a.getDerivedStateFromProps;g=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s||d!==n)&&Ep(t,o,r,n),nr=!1;var f=t.memoizedState;o.state=f,Uo(t,r,o,l),Bo(),d=t.memoizedState,s||f!==d||nr?(typeof m=="function"&&(Ss(t,a,m,r),d=t.memoizedState),(p=nr||Rp(t,a,p,r,f,d,n))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=d),o.props=r,o.state=d,o.context=n,r=p):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,id(e,t),n=t.memoizedProps,g=Wr(a,n),o.props=g,m=t.pendingProps,f=o.context,d=a.contextType,p=Cl,typeof d=="object"&&d!==null&&(p=vt(d)),s=a.getDerivedStateFromProps,(d=typeof s=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(n!==m||f!==p)&&Ep(t,o,r,p),nr=!1,f=t.memoizedState,o.state=f,Uo(t,r,o,l),Bo();var x=t.memoizedState;n!==m||f!==x||nr||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof s=="function"&&(Ss(t,a,s,r),x=t.memoizedState),(g=nr||Rp(t,a,g,r,f,x,p)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,p),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,p)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||n===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||n===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=p,r=g):(typeof o.componentDidUpdate!="function"||n===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||n===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Mi(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=Yr(t,e.child,null,l),t.child=Yr(t,null,a,l)):mt(e,t,a,l),t.memoizedState=o.state,e=t.child):e=Ka(e,t,l),e}function Np(e,t,a,r){return Vr(),t.flags|=256,mt(e,t,a,r),t.child}var Cs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ws(e){return{baseLanes:e,cachePool:om()}}function Is(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Gt),e}function Km(e,t,a){var r=t.pendingProps,l=!1,o=(t.flags&128)!==0,n;if((n=o)||(n=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),n&&(l=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(l?ur(t):sr(t),(e=Fe)?(e=qg(e,ua),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ir!==null?{id:wa,overflow:Ia}:null,retryLane:536870912,hydrationErrors:null},a=tm(e),a.return=t,t.child=a,yt=t,Fe=null)):e=null,e===null)throw Rr(t);return Md(e)?t.lanes=32:t.lanes=536870912,null}var s=r.children;return r=r.fallback,l?(sr(t),l=t.mode,s=Ki({mode:"hidden",children:s},l),r=Hr(r,l,a,null),s.return=t,r.return=t,s.sibling=r,t.child=s,r=t.child,r.memoizedState=ws(a),r.childLanes=Is(e,n,a),t.memoizedState=Cs,Ao(null,r)):(ur(t),yd(t,s))}var p=e.memoizedState;if(p!==null&&(s=p.dehydrated,s!==null)){if(o)t.flags&256?(ur(t),t.flags&=-257,t=Rs(e,t,a)):t.memoizedState!==null?(sr(t),t.child=e.child,t.flags|=128,t=null):(sr(t),s=r.fallback,l=t.mode,r=Ki({mode:"visible",children:r.children},l),s=Hr(s,l,a,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,Yr(t,e.child,null,a),r=t.child,r.memoizedState=ws(a),r.childLanes=Is(e,n,a),t.memoizedState=Cs,t=Ao(null,r));else if(ur(t),Md(s)){if(n=s.nextSibling&&s.nextSibling.dataset,n)var d=n.dgst;n=d,r=Error(z(419)),r.stack="",r.digest=n,Wo({value:r,source:null,stack:null}),t=Rs(e,t,a)}else if(ot||Yl(e,t,a,!1),n=(a&e.childLanes)!==0,ot||n){if(n=Be,n!==null&&(r=Eh(n,a),r!==0&&r!==p.retryLane))throw p.retryLane=r,$r(e,r),Bt(n,e,r),mc;Ad(s)||tu(),t=Rs(e,t,a)}else Ad(s)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Fe=da(s.nextSibling),yt=t,Se=!0,yr=null,ua=!1,e!==null&&rm(t,e),t=yd(t,r.children),t.flags|=4096);return t}return l?(sr(t),s=r.fallback,l=t.mode,p=e.child,d=p.sibling,r=Va(p,{mode:"hidden",children:r.children}),r.subtreeFlags=p.subtreeFlags&65011712,d!==null?s=Va(d,s):(s=Hr(s,l,a,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,Ao(null,r),r=t.child,s=e.child.memoizedState,s===null?s=ws(a):(l=s.cachePool,l!==null?(p=lt._currentValue,l=l.parent!==p?{parent:p,pool:p}:l):l=om(),s={baseLanes:s.baseLanes|a,cachePool:l}),r.memoizedState=s,r.childLanes=Is(e,n,a),t.memoizedState=Cs,Ao(e.child,r)):(ur(t),a=e.child,e=a.sibling,a=Va(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function yd(e,t){return t=Ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ki(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function Rs(e,t,a){return Yr(t,e.child,null,a),e=yd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ld(e.return,t,a)}function Es(e,t,a,r,l,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:l,treeForkCount:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=l,n.treeForkCount=o)}function Jm(e,t,a){var r=t.pendingProps,l=r.revealOrder,o=r.tail;r=r.children;var n=Je.current,s=(n&2)!==0;if(s?(n=n&1|2,t.flags|=128):n&=1,Ue(Je,n),mt(e,t,r,a),r=Se?Zo:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bp(e,a,t);else if(e.tag===19)Bp(e,a,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}switch(l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&Yi(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Es(t,!1,l,a,o,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Yi(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Es(t,!0,a,null,o,r);break;case"together":Es(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ka(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Tr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Yl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,a=Va(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Va(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function gc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function sb(e,t,a){switch(t.tag){case 3:Ui(t,t.stateNode.containerInfo),ir(t,lt,e.memoizedState.cache),Vr();break;case 27:case 5:Vs(t);break;case 4:Ui(t,t.stateNode.containerInfo);break;case 10:ir(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dd(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ur(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Km(e,t,a):(ur(t),e=Ka(e,t,a),e!==null?e.sibling:null);ur(t);break;case 19:var l=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Yl(e,t,a,!1),r=(a&t.childLanes)!==0),l){if(r)return Jm(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ue(Je,Je.current),r)break;return null;case 22:return t.lanes=0,Qm(e,t,a,t.pendingProps);case 24:ir(t,lt,e.memoizedState.cache)}return Ka(e,t,a)}function $m(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!gc(e,a)&&(t.flags&128)===0)return ot=!1,sb(e,t,a);ot=(e.flags&131072)!==0}else ot=!1,Se&&(t.flags&1048576)!==0&&am(t,Zo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=zr(t.elementType),t.type=e,typeof e=="function")Zd(e)?(r=Wr(e,r),t.tag=1,t=Op(null,t,e,r,a)):(t.tag=0,t=gd(null,t,e,r,a));else{if(e!=null){var l=e.$$typeof;if(l===Od){t.tag=11,t=Ap(null,t,e,r,a);break e}else if(l===Nd){t.tag=14,t=Mp(null,t,e,r,a);break e}}throw t=js(e)||e,Error(z(306,t,""))}}return t;case 0:return gd(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,l=Wr(r,t.pendingProps),Op(e,t,r,l,a);case 3:e:{if(Ui(t,t.stateNode.containerInfo),e===null)throw Error(z(387));r=t.pendingProps;var o=t.memoizedState;l=o.element,id(e,t),Uo(t,r,null,a);var n=t.memoizedState;if(r=n.cache,ir(t,lt,r),r!==o.cache&&od(t,[lt],a,!0),Bo(),r=n.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:n.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Np(e,t,r,a);break e}else if(r!==l){l=ia(Error(z(424)),t),Wo(l),t=Np(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Fe=da(e.firstChild),yt=t,Se=!0,yr=null,ua=!0,a=um(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Vr(),r===l){t=Ka(e,t,a);break e}mt(e,t,r,a)}t=t.child}return t;case 26:return Mi(e,t),e===null?(a=lh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Se||(a=t.type,e=t.pendingProps,r=ou(gr.current).createElement(a),r[gt]=t,r[Ut]=e,xt(r,a,e),ct(r),t.stateNode=r):t.memoizedState=lh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vs(t),e===null&&Se&&(r=t.stateNode=jg(t.type,t.pendingProps,gr.current),yt=t,ua=!0,l=Fe,Mr(t.type)?(kd=l,Fe=da(r.firstChild)):Fe=l),mt(e,t,t.pendingProps.children,a),Mi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((l=r=Fe)&&(r=Ub(r,t.type,t.pendingProps,ua),r!==null?(t.stateNode=r,yt=t,Fe=da(r.firstChild),ua=!1,l=!0):l=!1),l||Rr(t)),Vs(t),l=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,r=o.children,Ed(l,o)?r=null:n!==null&&Ed(l,n)&&(t.flags|=32),t.memoizedState!==null&&(l=rc(e,t,eb,null,null,a),tn._currentValue=l),Mi(e,t),mt(e,t,r,a),t.child;case 6:return e===null&&Se&&((e=a=Fe)&&(a=zb(a,t.pendingProps,ua),a!==null?(t.stateNode=a,yt=t,Fe=null,e=!0):e=!1),e||Rr(t)),null;case 13:return Km(e,t,a);case 4:return Ui(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,a):mt(e,t,r,a),t.child;case 11:return Ap(e,t,t.type,t.pendingProps,a);case 7:return mt(e,t,t.pendingProps,a),t.child;case 8:return mt(e,t,t.pendingProps.children,a),t.child;case 12:return mt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,ir(t,t.type,r.value),mt(e,t,r.children,a),t.child;case 9:return l=t.type._context,r=t.pendingProps.children,Xr(t),l=vt(l),r=r(l),t.flags|=1,mt(e,t,r,a),t.child;case 14:return Mp(e,t,t.type,t.pendingProps,a);case 15:return Wm(e,t,t.type,t.pendingProps,a);case 19:return Jm(e,t,a);case 31:return ub(e,t,a);case 22:return Qm(e,t,a,t.pendingProps);case 24:return Xr(t),r=vt(lt),e===null?(l=Jd(),l===null&&(l=Be,o=Kd(),l.pooledCache=o,o.refCount++,o!==null&&(l.pooledCacheLanes|=a),l=o),t.memoizedState={parent:r,cache:l},ec(t),ir(t,lt,l)):((e.lanes&a)!==0&&(id(e,t),Uo(t,null,null,a),Bo()),l=e.memoizedState,o=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),ir(t,lt,r)):(r=o.cache,ir(t,lt,r),r!==l.cache&&od(t,[lt],a,!0))),mt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(z(156,t.tag))}function Ba(e){e.flags|=4}function Ts(e,t,a,r,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Cg())e.flags|=8192;else throw jr=Vi,$d}else e.flags&=-16777217}function Up(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xg(t))if(Cg())e.flags|=8192;else throw jr=Vi,$d}function hi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wh():536870912,e.lanes|=t,Fl|=t)}function So(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,r|=l.subtreeFlags&65011712,r|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function db(e,t,a){var r=t.pendingProps;switch(Qd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xa(lt),Ol(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(cl(t)?Ba(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xs())),Pe(t),null;case 26:var l=t.type,o=t.memoizedState;return e===null?(Ba(t),o!==null?(Pe(t),Up(t,o)):(Pe(t),Ts(t,l,null,r,a))):o?o!==e.memoizedState?(Ba(t),Pe(t),Up(t,o)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Ba(t),Pe(t),Ts(t,l,e,r,a)),null;case 27:if(zi(t),a=gr.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ba(t);else{if(!r){if(t.stateNode===null)throw Error(z(166));return Pe(t),null}e=Ea.current,cl(t)?fp(t,e):(e=jg(l,r,a),t.stateNode=e,Ba(t))}return Pe(t),null;case 5:if(zi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ba(t);else{if(!r){if(t.stateNode===null)throw Error(z(166));return Pe(t),null}if(o=Ea.current,cl(t))fp(t,o);else{var n=ou(gr.current);switch(o){case 1:o=n.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:o=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":o=n.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":o=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":o=n.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?n.createElement("select",{is:r.is}):n.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?n.createElement(l,{is:r.is}):n.createElement(l)}}o[gt]=t,o[Ut]=r;e:for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)o.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}t.stateNode=o;e:switch(xt(o,l,r),l){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Ba(t)}}return Pe(t),Ts(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ba(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(e=gr.current,cl(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,l=yt,l!==null)switch(l.tag){case 27:case 5:r=l.memoizedProps}e[gt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||Pg(e.nodeValue,a)),e||Rr(t,!0)}else e=ou(e).createTextNode(r),e[gt]=t,t.stateNode=e}return Pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=cl(t),a!==null){if(e===null){if(!r)throw Error(z(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(557));e[gt]=t}else Vr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else a=xs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(z(558))}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=cl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(z(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(z(317));l[gt]=t}else Vr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),l=!1}else l=xs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,l=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(l=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==l&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),hi(t,t.updateQueue),Pe(t),null);case 4:return Ol(),e===null&&Cc(t.stateNode.containerInfo),Pe(t),null;case 10:return Xa(t.type),Pe(t),null;case 19:if(ft(Je),r=t.memoizedState,r===null)return Pe(t),null;if(l=(t.flags&128)!==0,o=r.rendering,o===null)if(l)So(r,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Yi(e),o!==null){for(t.flags|=128,So(r,!1),e=o.updateQueue,t.updateQueue=e,hi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)em(a,e),a=a.sibling;return Ue(Je,Je.current&1|2),Se&&Fa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Vt()>$i&&(t.flags|=128,l=!0,So(r,!1),t.lanes=4194304)}else{if(!l)if(e=Yi(o),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,hi(t,e),So(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Se)return Pe(t),null}else 2*Vt()-r.renderingStartTime>$i&&a!==536870912&&(t.flags|=128,l=!0,So(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Vt(),e.sibling=null,a=Je.current,Ue(Je,l?a&1|2:a&1),Se&&Fa(t,r.treeForkCount),e):(Pe(t),null);case 22:case 23:return qt(t),tc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),a=t.updateQueue,a!==null&&hi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&ft(qr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Xa(lt),Pe(t),null;case 25:return null;case 30:return null}throw Error(z(156,t.tag))}function cb(e,t){switch(Qd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xa(lt),Ol(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zi(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(z(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ft(Je),null;case 4:return Ol(),null;case 10:return Xa(t.type),null;case 22:case 23:return qt(t),tc(),e!==null&&ft(qr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xa(lt),null;case 25:return null;default:return null}}function eg(e,t){switch(Qd(t),t.tag){case 3:Xa(lt),Ol();break;case 26:case 27:case 5:zi(t);break;case 4:Ol();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:ft(Je);break;case 10:Xa(t.type);break;case 22:case 23:qt(t),tc(),e!==null&&ft(qr);break;case 24:Xa(lt)}}function pn(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var l=r.next;a=l;do{if((a.tag&e)===e){r=void 0;var o=a.create,n=a.inst;r=o(),n.destroy=r}a=a.next}while(a!==l)}}catch(s){De(t,t.return,s)}}function Er(e,t,a){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var o=l.next;r=o;do{if((r.tag&e)===e){var n=r.inst,s=n.destroy;if(s!==void 0){n.destroy=void 0,l=t;var p=a,d=s;try{d()}catch(g){De(l,p,g)}}}r=r.next}while(r!==o)}}catch(g){De(t,t.return,g)}}function tg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{dm(t,a)}catch(r){De(e,e.return,r)}}}function ag(e,t,a){a.props=Wr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){De(e,t,r)}}function Po(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(l){De(e,t,l)}}function Ra(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(l){De(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){De(e,t,l)}else a.current=null}function rg(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(l){De(e,e.return,l)}}function As(e,t,a){try{var r=e.stateNode;kb(r,e.type,a,t),r[Ut]=t}catch(l){De(e,e.return,l)}}function lg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mr(e.type)||e.tag===4}function Ms(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lg(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.tag===27&&Mr(e.type)||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 vd(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ja));else if(r!==4&&(r===27&&Mr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(vd(e,t,a),e=e.sibling;e!==null;)vd(e,t,a),e=e.sibling}function Ji(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Mr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ji(e,t,a),e=e.sibling;e!==null;)Ji(e,t,a),e=e.sibling}function og(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);xt(t,r,a),t[gt]=e,t[Ut]=a}catch(o){De(e,e.return,o)}}var Ha=!1,rt=!1,ks=!1,zp=typeof WeakSet=="function"?WeakSet:Set,dt=null;function fb(e,t){if(e=e.containerInfo,Id=su,e=Xh(e),Vd(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var n=0,s=-1,p=-1,d=0,g=0,m=e,f=null;t:for(;;){for(var x;m!==a||l!==0&&m.nodeType!==3||(s=n+l),m!==o||r!==0&&m.nodeType!==3||(p=n+r),m.nodeType===3&&(n+=m.nodeValue.length),(x=m.firstChild)!==null;)f=m,m=x;for(;;){if(m===e)break t;if(f===a&&++d===l&&(s=n),f===o&&++g===r&&(p=n),(x=m.nextSibling)!==null)break;m=f,f=m.parentNode}m=x}a=s===-1||p===-1?null:{start:s,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;for(Rd={focusedElem:e,selectionRange:a},su=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,a=t,l=o.memoizedProps,o=o.memoizedState,r=a.stateNode;try{var L=Wr(a.type,l);e=r.getSnapshotBeforeUpdate(L,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(w){De(a,a.return,w)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Td(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Td(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(z(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function ng(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:za(e,a),r&4&&pn(5,a);break;case 1:if(za(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(n){De(a,a.return,n)}else{var l=Wr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(n){De(a,a.return,n)}}r&64&&tg(a),r&512&&Po(a,a.return);break;case 3:if(za(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{dm(e,t)}catch(n){De(a,a.return,n)}}break;case 27:t===null&&r&4&&og(a);case 26:case 5:za(e,a),t===null&&r&4&&rg(a),r&512&&Po(a,a.return);break;case 12:za(e,a);break;case 31:za(e,a),r&4&&sg(e,a);break;case 13:za(e,a),r&4&&dg(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Lb.bind(null,a),Pb(e,a))));break;case 22:if(r=a.memoizedState!==null||Ha,!r){t=t!==null&&t.memoizedState!==null||rt,l=Ha;var o=rt;Ha=r,(rt=t)&&!o?Pa(e,a,(a.subtreeFlags&8772)!==0):za(e,a),Ha=l,rt=o}break;case 30:break;default:za(e,a)}}function ig(e){var t=e.alternate;t!==null&&(e.alternate=null,ig(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pd(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,Ot=!1;function Ua(e,t,a){for(a=a.child;a!==null;)ug(e,t,a),a=a.sibling}function ug(e,t,a){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(on,a)}catch{}switch(a.tag){case 26:rt||Ra(a,t),Ua(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:rt||Ra(a,t);var r=Ve,l=Ot;Mr(a.type)&&(Ve=a.stateNode,Ot=!1),Ua(e,t,a),jo(a.stateNode),Ve=r,Ot=l;break;case 5:rt||Ra(a,t);case 6:if(r=Ve,l=Ot,Ve=null,Ua(e,t,a),Ve=r,Ot=l,Ve!==null)if(Ot)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(a.stateNode)}catch(o){De(a,t,o)}else try{Ve.removeChild(a.stateNode)}catch(o){De(a,t,o)}break;case 18:Ve!==null&&(Ot?(e=Ve,$p(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Gl(e)):$p(Ve,a.stateNode));break;case 4:r=Ve,l=Ot,Ve=a.stateNode.containerInfo,Ot=!0,Ua(e,t,a),Ve=r,Ot=l;break;case 0:case 11:case 14:case 15:Er(2,a,t),rt||Er(4,a,t),Ua(e,t,a);break;case 1:rt||(Ra(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&ag(a,t,r)),Ua(e,t,a);break;case 21:Ua(e,t,a);break;case 22:rt=(r=rt)||a.memoizedState!==null,Ua(e,t,a),rt=r;break;default:Ua(e,t,a)}}function sg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gl(e)}catch(a){De(t,t.return,a)}}}function dg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gl(e)}catch(a){De(t,t.return,a)}}function pb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zp),t;default:throw Error(z(435,e.tag))}}function mi(e,t){var a=pb(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var l=Sb.bind(null,e,r);r.then(l,l)}})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var l=a[r],o=e,n=t,s=n;e:for(;s!==null;){switch(s.tag){case 27:if(Mr(s.type)){Ve=s.stateNode,Ot=!1;break e}break;case 5:Ve=s.stateNode,Ot=!1;break e;case 3:case 4:Ve=s.stateNode.containerInfo,Ot=!0;break e}s=s.return}if(Ve===null)throw Error(z(160));ug(o,n,l),Ve=null,Ot=!1,o=l.alternate,o!==null&&(o.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cg(t,e),t=t.sibling}var xa=null;function cg(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),_t(e),r&4&&(Er(3,e,e.return),pn(3,e),Er(5,e,e.return));break;case 1:Dt(t,e),_t(e),r&512&&(rt||a===null||Ra(a,a.return)),r&64&&Ha&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var l=xa;if(Dt(t,e),_t(e),r&512&&(rt||a===null||Ra(a,a.return)),r&4){var o=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(r){case"title":o=l.getElementsByTagName("title")[0],(!o||o[sn]||o[gt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=l.createElement(r),l.head.insertBefore(o,l.querySelector("head > title"))),xt(o,r,a),o[gt]=e,ct(o),r=o;break e;case"link":var n=nh("link","href",l).get(r+(a.href||""));if(n){for(var s=0;s<n.length;s++)if(o=n[s],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){n.splice(s,1);break t}}o=l.createElement(r),xt(o,r,a),l.head.appendChild(o);break;case"meta":if(n=nh("meta","content",l).get(r+(a.content||""))){for(s=0;s<n.length;s++)if(o=n[s],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){n.splice(s,1);break t}}o=l.createElement(r),xt(o,r,a),l.head.appendChild(o);break;default:throw Error(z(468,r))}o[gt]=e,ct(o),r=o}e.stateNode=r}else ih(l,e.type,e.stateNode);else e.stateNode=oh(l,r,e.memoizedProps);else o!==r?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,r===null?ih(l,e.type,e.stateNode):oh(l,r,e.memoizedProps)):r===null&&e.stateNode!==null&&As(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),_t(e),r&512&&(rt||a===null||Ra(a,a.return)),a!==null&&r&4&&As(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),_t(e),r&512&&(rt||a===null||Ra(a,a.return)),e.flags&32){l=e.stateNode;try{Bl(l,"")}catch(L){De(e,e.return,L)}}r&4&&e.stateNode!=null&&(l=e.memoizedProps,As(e,l,a!==null?a.memoizedProps:l)),r&1024&&(ks=!0);break;case 6:if(Dt(t,e),_t(e),r&4){if(e.stateNode===null)throw Error(z(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(L){De(e,e.return,L)}}break;case 3:if(_i=null,l=xa,xa=nu(t.containerInfo),Dt(t,e),xa=l,_t(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Gl(t.containerInfo)}catch(L){De(e,e.return,L)}ks&&(ks=!1,fg(e));break;case 4:r=xa,xa=nu(e.stateNode.containerInfo),Dt(t,e),_t(e),xa=r;break;case 12:Dt(t,e),_t(e);break;case 31:Dt(t,e),_t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,mi(e,r)));break;case 13:Dt(t,e),_t(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Su=Vt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,mi(e,r)));break;case 22:l=e.memoizedState!==null;var p=a!==null&&a.memoizedState!==null,d=Ha,g=rt;if(Ha=d||l,rt=g||p,Dt(t,e),rt=g,Ha=d,_t(e),r&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||p||Ha||rt||Pr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){p=a=t;try{if(o=p.stateNode,l)n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{s=p.stateNode;var m=p.memoizedProps.style,f=m!=null&&m.hasOwnProperty("display")?m.display:null;s.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(L){De(p,p.return,L)}}}else if(t.tag===6){if(a===null){p=t;try{p.stateNode.nodeValue=l?"":p.memoizedProps}catch(L){De(p,p.return,L)}}}else if(t.tag===18){if(a===null){p=t;try{var x=p.stateNode;l?eh(x,!0):eh(p.stateNode,!1)}catch(L){De(p,p.return,L)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,mi(e,a))));break;case 19:Dt(t,e),_t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,mi(e,r)));break;case 30:break;case 21:break;default:Dt(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(lg(r)){a=r;break}r=r.return}if(a==null)throw Error(z(160));switch(a.tag){case 27:var l=a.stateNode,o=Ms(e);Ji(e,o,l);break;case 5:var n=a.stateNode;a.flags&32&&(Bl(n,""),a.flags&=-33);var s=Ms(e);Ji(e,s,n);break;case 3:case 4:var p=a.stateNode.containerInfo,d=Ms(e);vd(e,d,p);break;default:throw Error(z(161))}}catch(g){De(e,e.return,g)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function za(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ng(e,t.alternate,t),t=t.sibling}function Pr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Er(4,t,t.return),Pr(t);break;case 1:Ra(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ag(t,t.return,a),Pr(t);break;case 27:jo(t.stateNode);case 26:case 5:Ra(t,t.return),Pr(t);break;case 22:t.memoizedState===null&&Pr(t);break;case 30:Pr(t);break;default:Pr(t)}e=e.sibling}}function Pa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,l=e,o=t,n=o.flags;switch(o.tag){case 0:case 11:case 15:Pa(l,o,a),pn(4,o);break;case 1:if(Pa(l,o,a),r=o,l=r.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(d){De(r,r.return,d)}if(r=o,l=r.updateQueue,l!==null){var s=r.stateNode;try{var p=l.shared.hiddenCallbacks;if(p!==null)for(l.shared.hiddenCallbacks=null,l=0;l<p.length;l++)sm(p[l],s)}catch(d){De(r,r.return,d)}}a&&n&64&&tg(o),Po(o,o.return);break;case 27:og(o);case 26:case 5:Pa(l,o,a),a&&r===null&&n&4&&rg(o),Po(o,o.return);break;case 12:Pa(l,o,a);break;case 31:Pa(l,o,a),a&&n&4&&sg(l,o);break;case 13:Pa(l,o,a),a&&n&4&&dg(l,o);break;case 22:o.memoizedState===null&&Pa(l,o,a),Po(o,o.return);break;case 30:break;default:Pa(l,o,a)}t=t.sibling}}function yc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&cn(a))}function vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&cn(e))}function va(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pg(e,t,a,r),t=t.sibling}function pg(e,t,a,r){var l=t.flags;switch(t.tag){case 0:case 11:case 15:va(e,t,a,r),l&2048&&pn(9,t);break;case 1:va(e,t,a,r);break;case 3:va(e,t,a,r),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&cn(e)));break;case 12:if(l&2048){va(e,t,a,r),e=t.stateNode;try{var o=t.memoizedProps,n=o.id,s=o.onPostCommit;typeof s=="function"&&s(n,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){De(t,t.return,p)}}else va(e,t,a,r);break;case 31:va(e,t,a,r);break;case 13:va(e,t,a,r);break;case 23:break;case 22:o=t.stateNode,n=t.alternate,t.memoizedState!==null?o._visibility&2?va(e,t,a,r):Fo(e,t):o._visibility&2?va(e,t,a,r):(o._visibility|=2,pl(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),l&2048&&yc(n,t);break;case 24:va(e,t,a,r),l&2048&&vc(t.alternate,t);break;default:va(e,t,a,r)}}function pl(e,t,a,r,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,n=t,s=a,p=r,d=n.flags;switch(n.tag){case 0:case 11:case 15:pl(o,n,s,p,l),pn(8,n);break;case 23:break;case 22:var g=n.stateNode;n.memoizedState!==null?g._visibility&2?pl(o,n,s,p,l):Fo(o,n):(g._visibility|=2,pl(o,n,s,p,l)),l&&d&2048&&yc(n.alternate,n);break;case 24:pl(o,n,s,p,l),l&&d&2048&&vc(n.alternate,n);break;default:pl(o,n,s,p,l)}t=t.sibling}}function Fo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,l=r.flags;switch(r.tag){case 22:Fo(a,r),l&2048&&yc(r.alternate,r);break;case 24:Fo(a,r),l&2048&&vc(r.alternate,r);break;default:Fo(a,r)}t=t.sibling}}var Mo=8192;function fl(e,t,a){if(e.subtreeFlags&Mo)for(e=e.child;e!==null;)hg(e,t,a),e=e.sibling}function hg(e,t,a){switch(e.tag){case 26:fl(e,t,a),e.flags&Mo&&e.memoizedState!==null&&Kb(a,xa,e.memoizedState,e.memoizedProps);break;case 5:fl(e,t,a);break;case 3:case 4:var r=xa;xa=nu(e.stateNode.containerInfo),fl(e,t,a),xa=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Mo,Mo=16777216,fl(e,t,a),Mo=r):fl(e,t,a));break;default:fl(e,t,a)}}function mg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];dt=r,yg(r,e)}mg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gg(e),e=e.sibling}function gg(e){switch(e.tag){case 0:case 11:case 15:Co(e),e.flags&2048&&Er(9,e,e.return);break;case 3:Co(e);break;case 12:Co(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ki(e)):Co(e);break;default:Co(e)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];dt=r,yg(r,e)}mg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Er(8,t,t.return),ki(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ki(t));break;default:ki(t)}e=e.sibling}}function yg(e,t){for(;dt!==null;){var a=dt;switch(a.tag){case 0:case 11:case 15:Er(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:cn(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,dt=r;else e:for(a=e;dt!==null;){r=dt;var l=r.sibling,o=r.return;if(ig(r),r===a){dt=null;break e}if(l!==null){l.return=o,dt=l;break e}dt=o}}}var hb={getCacheForType:function(e){var t=vt(lt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return vt(lt).controller.signal}},mb=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Be=null,me=null,ve=0,ke=0,Ht=null,pr=!1,Wl=!1,xc=!1,Ja=0,Ze=0,Tr=0,Gr=0,bc=0,Gt=0,Fl=0,Ho=null,Nt=null,xd=!1,Su=0,vg=0,$i=1/0,eu=null,br=null,it=0,Lr=null,Hl=null,Ya=0,bd=0,Ld=null,xg=null,qo=0,Sd=null;function Zt(){return(Ee&2)!==0&&ve!==0?ve&-ve:ae.T!==null?Sc():Th()}function bg(){if(Gt===0)if((ve&536870912)===0||Se){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),Gt=e}else Gt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Gt}function Bt(e,t,a){(e===Be&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(ql(e,0),hr(e,ve,Gt,!1)),un(e,a),((Ee&2)===0||e!==Be)&&(e===Be&&((Ee&2)===0&&(Gr|=a),Ze===4&&hr(e,ve,Gt,!1)),Aa(e))}function Lg(e,t,a){if((Ee&6)!==0)throw Error(z(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nn(e,t),l=r?vb(e,t):Ds(e,t,!0),o=r;do{if(l===0){Wl&&!r&&hr(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!gb(a)){l=Ds(e,t,!1),o=!1;continue}if(l===2){if(o=t,e.errorRecoveryDisabledLanes&o)var n=0;else n=e.pendingLanes&-536870913,n=n!==0?n:n&536870912?536870912:0;if(n!==0){t=n;e:{var s=e;l=Ho;var p=s.current.memoizedState.isDehydrated;if(p&&(ql(s,n).flags|=256),n=Ds(s,n,!1),n!==2){if(xc&&!p){s.errorRecoveryDisabledLanes|=o,Gr|=o,l=4;break e}o=Nt,Nt=l,o!==null&&(Nt===null?Nt=o:Nt.push.apply(Nt,o))}l=n}if(o=!1,l!==2)continue}}if(l===1){ql(e,0),hr(e,t,0,!0);break}e:{switch(r=e,o=l,o){case 0:case 1:throw Error(z(345));case 4:if((t&4194048)!==t)break;case 6:hr(r,t,Gt,!pr);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(z(329))}if((t&62914560)===t&&(l=Su+300-Vt(),10<l)){if(hr(r,t,Gt,!pr),cu(r,0,!0)!==0)break e;Ya=t,r.timeoutHandle=Hg(Pp.bind(null,r,a,Nt,eu,xd,t,Gt,Gr,Fl,pr,o,"Throttled",-0,0),l);break e}Pp(r,a,Nt,eu,xd,t,Gt,Gr,Fl,pr,o,null,-0,0)}}break}while(!0);Aa(e)}function Pp(e,t,a,r,l,o,n,s,p,d,g,m,f,x){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ja},hg(t,o,m);var L=(o&62914560)===o?Su-Vt():(o&4194048)===o?vg-Vt():0;if(L=Jb(m,L),L!==null){Ya=o,e.cancelPendingCommit=L(Hp.bind(null,e,t,o,a,r,l,n,s,p,g,m,null,f,x)),hr(e,o,n,!d);return}}Hp(e,t,o,a,r,l,n,s,p)}function gb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var l=a[r],o=l.getSnapshot;l=l.value;try{if(!Wt(o(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 hr(e,t,a,r){t&=~bc,t&=~Gr,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var l=t;0<l;){var o=31-Yt(l),n=1<<o;r[o]=-1,l&=~n}a!==0&&Ih(e,a,t)}function Cu(){return(Ee&6)===0?(hn(0,!1),!1):!0}function Lc(){if(me!==null){if(ke===0)var e=me.return;else e=me,Ga=el=null,nc(e),kl=null,Qo=0,e=me;for(;e!==null;)eg(e.alternate,e),e=e.return;me=null}}function ql(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ob(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ya=0,Lc(),Be=e,me=a=Va(e.current,null),ve=t,ke=0,Ht=null,pr=!1,Wl=nn(e,t),xc=!1,Fl=Gt=bc=Gr=Tr=Ze=0,Nt=Ho=null,xd=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var l=31-Yt(r),o=1<<l;t|=e[l],r&=~o}return Ja=t,mu(),a}function Sg(e,t){de=null,ae.H=Jo,t===Zl||t===yu?(t=yp(),ke=3):t===$d?(t=yp(),ke=4):ke=t===mc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ht=t,me===null&&(Ze=1,Qi(e,ia(t,e.current)))}function Cg(){var e=Qt.current;return e===null?!0:(ve&4194048)===ve?sa===null:(ve&62914560)===ve||(ve&536870912)!==0?e===sa:!1}function wg(){var e=ae.H;return ae.H=Jo,e===null?Jo:e}function Ig(){var e=ae.A;return ae.A=hb,e}function tu(){Ze=4,pr||(ve&4194048)!==ve&&Qt.current!==null||(Wl=!0),(Tr&134217727)===0&&(Gr&134217727)===0||Be===null||hr(Be,ve,Gt,!1)}function Ds(e,t,a){var r=Ee;Ee|=2;var l=wg(),o=Ig();(Be!==e||ve!==t)&&(eu=null,ql(e,t)),t=!1;var n=Ze;e:do try{if(ke!==0&&me!==null){var s=me,p=Ht;switch(ke){case 8:Lc(),n=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var d=ke;if(ke=0,Ht=null,Rl(e,s,p,d),a&&Wl){n=0;break e}break;default:d=ke,ke=0,Ht=null,Rl(e,s,p,d)}}yb(),n=Ze;break}catch(g){Sg(e,g)}while(!0);return t&&e.shellSuspendCounter++,Ga=el=null,Ee=r,ae.H=l,ae.A=o,me===null&&(Be=null,ve=0,mu()),n}function yb(){for(;me!==null;)Rg(me)}function vb(e,t){var a=Ee;Ee|=2;var r=wg(),l=Ig();Be!==e||ve!==t?(eu=null,$i=Vt()+500,ql(e,t)):Wl=nn(e,t);e:do try{if(ke!==0&&me!==null){t=me;var o=Ht;t:switch(ke){case 1:ke=0,Ht=null,Rl(e,t,o,1);break;case 2:case 9:if(gp(o)){ke=0,Ht=null,Fp(t);break}t=function(){ke!==2&&ke!==9||Be!==e||(ke=7),Aa(e)},o.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:gp(o)?(ke=0,Ht=null,Fp(t)):(ke=0,Ht=null,Rl(e,t,o,7));break;case 5:var n=null;switch(me.tag){case 26:n=me.memoizedState;case 5:case 27:var s=me;if(n?Xg(n):s.stateNode.complete){ke=0,Ht=null;var p=s.sibling;if(p!==null)me=p;else{var d=s.return;d!==null?(me=d,wu(d)):me=null}break t}}ke=0,Ht=null,Rl(e,t,o,5);break;case 6:ke=0,Ht=null,Rl(e,t,o,6);break;case 8:Lc(),Ze=6;break e;default:throw Error(z(462))}}xb();break}catch(g){Sg(e,g)}while(!0);return Ga=el=null,ae.H=r,ae.A=l,Ee=a,me!==null?0:(Be=null,ve=0,mu(),Ze)}function xb(){for(;me!==null&&!q0();)Rg(me)}function Rg(e){var t=$m(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?wu(e):me=t}function Fp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=_p(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=_p(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:nc(t);default:eg(a,t),t=me=em(t,Ja),t=$m(a,t,Ja)}e.memoizedProps=e.pendingProps,t===null?wu(e):me=t}function Rl(e,t,a,r){Ga=el=null,nc(t),kl=null,Qo=0;var l=t.return;try{if(ib(e,l,t,a,ve)){Ze=1,Qi(e,ia(a,e.current)),me=null;return}}catch(o){if(l!==null)throw me=l,o;Ze=1,Qi(e,ia(a,e.current)),me=null;return}t.flags&32768?(Se||r===1?e=!0:Wl||(ve&536870912)!==0?e=!1:(pr=e=!0,(r===2||r===9||r===3||r===6)&&(r=Qt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Eg(t,e)):wu(t)}function wu(e){var t=e;do{if((t.flags&32768)!==0){Eg(t,pr);return}e=t.return;var a=db(t.alternate,t,Ja);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Ze===0&&(Ze=5)}function Eg(e,t){do{var a=cb(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);Ze=6,me=null}function Hp(e,t,a,r,l,o,n,s,p){e.cancelPendingCommit=null;do Iu();while(it!==0);if((Ee&6)!==0)throw Error(z(327));if(t!==null){if(t===e.current)throw Error(z(177));if(o=t.lanes|t.childLanes,o|=Xd,J0(e,a,o,n,s,p),e===Be&&(me=Be=null,ve=0),Hl=t,Lr=e,Ya=a,bd=o,Ld=l,xg=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Cb(Pi,function(){return Dg(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=ae.T,ae.T=null,l=Te.p,Te.p=2,n=Ee,Ee|=4;try{fb(e,t,a)}finally{Ee=n,Te.p=l,ae.T=r}}it=1,Tg(),Ag(),Mg()}}function Tg(){if(it===1){it=0;var e=Lr,t=Hl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=ae.T,ae.T=null;var r=Te.p;Te.p=2;var l=Ee;Ee|=4;try{cg(t,e);var o=Rd,n=Xh(e.containerInfo),s=o.focusedElem,p=o.selectionRange;if(n!==s&&s&&s.ownerDocument&&Vh(s.ownerDocument.documentElement,s)){if(p!==null&&Vd(s)){var d=p.start,g=p.end;if(g===void 0&&(g=d),"selectionStart"in s)s.selectionStart=d,s.selectionEnd=Math.min(g,s.value.length);else{var m=s.ownerDocument||document,f=m&&m.defaultView||window;if(f.getSelection){var x=f.getSelection(),L=s.textContent.length,w=Math.min(p.start,L),E=p.end===void 0?w:Math.min(p.end,L);!x.extend&&w>E&&(n=E,E=w,w=n);var c=sp(s,w),h=sp(s,E);if(c&&h&&(x.rangeCount!==1||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==h.node||x.focusOffset!==h.offset)){var y=m.createRange();y.setStart(c.node,c.offset),x.removeAllRanges(),w>E?(x.addRange(y),x.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),x.addRange(y))}}}}for(m=[],x=s;x=x.parentNode;)x.nodeType===1&&m.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<m.length;s++){var b=m[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}su=!!Id,Rd=Id=null}finally{Ee=l,Te.p=r,ae.T=a}}e.current=t,it=2}}function Ag(){if(it===2){it=0;var e=Lr,t=Hl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ae.T,ae.T=null;var r=Te.p;Te.p=2;var l=Ee;Ee|=4;try{ng(e,t.alternate,t)}finally{Ee=l,Te.p=r,ae.T=a}}it=3}}function Mg(){if(it===4||it===3){it=0,j0();var e=Lr,t=Hl,a=Ya,r=xg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?it=5:(it=0,Hl=Lr=null,kg(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(br=null),zd(a),t=t.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ae.T,l=Te.p,Te.p=2,ae.T=null;try{for(var o=e.onRecoverableError,n=0;n<r.length;n++){var s=r[n];o(s.value,{componentStack:s.stack})}}finally{ae.T=t,Te.p=l}}(Ya&3)!==0&&Iu(),Aa(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===Sd?qo++:(qo=0,Sd=e):qo=0,hn(0,!1)}}function kg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,cn(t)))}function Iu(){return Tg(),Ag(),Mg(),Dg()}function Dg(){if(it!==5)return!1;var e=Lr,t=bd;bd=0;var a=zd(Ya),r=ae.T,l=Te.p;try{Te.p=32>a?32:a,ae.T=null,a=Ld,Ld=null;var o=Lr,n=Ya;if(it=0,Hl=Lr=null,Ya=0,(Ee&6)!==0)throw Error(z(331));var s=Ee;if(Ee|=4,gg(o.current),pg(o,o.current,n,a),Ee=s,hn(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(on,o)}catch{}return!0}finally{Te.p=l,ae.T=r,kg(e,t)}}function qp(e,t,a){t=ia(a,t),t=md(e.stateNode,t,2),e=xr(e,t,2),e!==null&&(un(e,2),Aa(e))}function De(e,t,a){if(e.tag===3)qp(e,e,a);else for(;t!==null;){if(t.tag===3){qp(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(br===null||!br.has(r))){e=ia(a,e),a=Ym(2),r=xr(t,a,2),r!==null&&(Zm(a,r,t,e),un(r,2),Aa(r));break}}t=t.return}}function _s(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new mb;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(a)||(xc=!0,l.add(a),e=bb.bind(null,e,t,a),t.then(e,e))}function bb(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Be===e&&(ve&a)===a&&(Ze===4||Ze===3&&(ve&62914560)===ve&&300>Vt()-Su?(Ee&2)===0&&ql(e,0):bc|=a,Fl===ve&&(Fl=0)),Aa(e)}function _g(e,t){t===0&&(t=wh()),e=$r(e,t),e!==null&&(un(e,t),Aa(e))}function Lb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_g(e,a)}function Sb(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(z(314))}r!==null&&r.delete(t),_g(e,a)}function Cb(e,t){return Bd(e,t)}var au=null,hl=null,Cd=!1,ru=!1,Os=!1,mr=0;function Aa(e){e!==hl&&e.next===null&&(hl===null?au=hl=e:hl=hl.next=e),ru=!0,Cd||(Cd=!0,Ib())}function hn(e,t){if(!Os&&ru){Os=!0;do for(var a=!1,r=au;r!==null;){if(!t)if(e!==0){var l=r.pendingLanes;if(l===0)var o=0;else{var n=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-Yt(42|e)+1)-1,o&=l&~(n&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,jp(r,o))}else o=ve,o=cu(r,r===Be?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||nn(r,o)||(a=!0,jp(r,o));r=r.next}while(a);Os=!1}}function wb(){Og()}function Og(){ru=Cd=!1;var e=0;mr!==0&&_b()&&(e=mr);for(var t=Vt(),a=null,r=au;r!==null;){var l=r.next,o=Ng(r,t);o===0?(r.next=null,a===null?au=l:a.next=l,l===null&&(hl=a)):(a=r,(e!==0||(o&3)!==0)&&(ru=!0)),r=l}it!==0&&it!==5||hn(e,!1),mr!==0&&(mr=0)}function Ng(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var n=31-Yt(o),s=1<<n,p=l[n];p===-1?((s&a)===0||(s&r)!==0)&&(l[n]=K0(s,t)):p<=t&&(e.expiredLanes|=s),o&=~s}if(t=Be,a=ve,a=cu(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ss(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&ss(r),zd(a)){case 2:case 8:a=Sh;break;case 32:a=Pi;break;case 268435456:a=Ch;break;default:a=Pi}return r=Bg.bind(null,e),a=Bd(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&ss(r),e.callbackPriority=2,e.callbackNode=null,2}function Bg(e,t){if(it!==0&&it!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Iu()&&e.callbackNode!==a)return null;var r=ve;return r=cu(e,e===Be?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Lg(e,r,t),Ng(e,Vt()),e.callbackNode!=null&&e.callbackNode===a?Bg.bind(null,e):null)}function jp(e,t){if(Iu())return null;Lg(e,t,!0)}function Ib(){Nb(function(){(Ee&6)!==0?Bd(Lh,wb):Og()})}function Sc(){if(mr===0){var e=Ul;e===0&&(e=li,li<<=1,(li&261888)===0&&(li=256)),mr=e}return mr}function Gp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Si(""+e)}function Vp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Rb(e,t,a,r,l){if(t==="submit"&&a&&a.stateNode===l){var o=Gp((l[Ut]||null).action),n=r.submitter;n&&(t=(t=n[Ut]||null)?Gp(t.formAction):n.getAttribute("formAction"),t!==null&&(o=t,n=null));var s=new fu("action","action",null,r,l);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(mr!==0){var p=n?Vp(l,n):new FormData(l);pd(a,{pending:!0,data:p,method:l.method,action:o},null,p)}}else typeof o=="function"&&(s.preventDefault(),p=n?Vp(l,n):new FormData(l),pd(a,{pending:!0,data:p,method:l.method,action:o},o,p))},currentTarget:l}]})}}for(gi=0;gi<td.length;gi++)yi=td[gi],Xp=yi.toLowerCase(),Yp=yi[0].toUpperCase()+yi.slice(1),ba(Xp,"on"+Yp);var yi,Xp,Yp,gi;ba(Zh,"onAnimationEnd");ba(Wh,"onAnimationIteration");ba(Qh,"onAnimationStart");ba("dblclick","onDoubleClick");ba("focusin","onFocus");ba("focusout","onBlur");ba(Gx,"onTransitionRun");ba(Vx,"onTransitionStart");ba(Xx,"onTransitionCancel");ba(Kh,"onTransitionEnd");Nl("onMouseEnter",["mouseout","mouseover"]);Nl("onMouseLeave",["mouseout","mouseover"]);Nl("onPointerEnter",["pointerout","pointerover"]);Nl("onPointerLeave",["pointerout","pointerover"]);Qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="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(" "),Eb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($o));function Ug(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var n=r.length-1;0<=n;n--){var s=r[n],p=s.instance,d=s.currentTarget;if(s=s.listener,p!==o&&l.isPropagationStopped())break e;o=s,l.currentTarget=d;try{o(l)}catch(g){Hi(g)}l.currentTarget=null,o=p}else for(n=0;n<r.length;n++){if(s=r[n],p=s.instance,d=s.currentTarget,s=s.listener,p!==o&&l.isPropagationStopped())break e;o=s,l.currentTarget=d;try{o(l)}catch(g){Hi(g)}l.currentTarget=null,o=p}}}}function he(e,t){var a=t[Ys];a===void 0&&(a=t[Ys]=new Set);var r=e+"__bubble";a.has(r)||(zg(t,e,2,!1),a.add(r))}function Ns(e,t,a){var r=0;t&&(r|=4),zg(a,e,r,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function Cc(e){if(!e[vi]){e[vi]=!0,Ah.forEach(function(a){a!=="selectionchange"&&(Eb.has(a)||Ns(a,!1,e),Ns(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,Ns("selectionchange",!1,t))}}function zg(e,t,a,r){switch(Kg(t)){case 2:var l=tL;break;case 8:l=aL;break;default:l=Ec}a=l.bind(null,t,a,e),l=void 0,!Js||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function Bs(e,t,a,r,l){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var n=r.tag;if(n===3||n===4){var s=r.stateNode.containerInfo;if(s===l)break;if(n===4)for(n=r.return;n!==null;){var p=n.tag;if((p===3||p===4)&&n.stateNode.containerInfo===l)return;n=n.return}for(;s!==null;){if(n=yl(s),n===null)return;if(p=n.tag,p===5||p===6||p===26||p===27){r=o=n;continue e}s=s.parentNode}}r=r.return}Uh(function(){var d=o,g=Hd(a),m=[];e:{var f=Jh.get(e);if(f!==void 0){var x=fu,L=e;switch(e){case"keypress":if(wi(a)===0)break e;case"keydown":case"keyup":x=Sx;break;case"focusin":L="focus",x=hs;break;case"focusout":L="blur",x=hs;break;case"beforeblur":case"afterblur":x=hs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=ep;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=dx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Ix;break;case Zh:case Wh:case Qh:x=px;break;case Kh:x=Ex;break;case"scroll":case"scrollend":x=ux;break;case"wheel":x=Ax;break;case"copy":case"cut":case"paste":x=mx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=ap;break;case"toggle":case"beforetoggle":x=kx}var w=(t&4)!==0,E=!w&&(e==="scroll"||e==="scrollend"),c=w?f!==null?f+"Capture":null:f;w=[];for(var h=d,y;h!==null;){var b=h;if(y=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||y===null||c===null||(b=Vo(h,c),b!=null&&w.push(en(h,b,y))),E)break;h=h.return}0<w.length&&(f=new x(f,L,null,a,g),m.push({event:f,listeners:w}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",f&&a!==Ks&&(L=a.relatedTarget||a.fromElement)&&(yl(L)||L[Vl]))break e;if((x||f)&&(f=g.window===g?g:(f=g.ownerDocument)?f.defaultView||f.parentWindow:window,x?(L=a.relatedTarget||a.toElement,x=d,L=L?yl(L):null,L!==null&&(E=ln(L),w=L.tag,L!==E||w!==5&&w!==27&&w!==6)&&(L=null)):(x=null,L=d),x!==L)){if(w=ep,b="onMouseLeave",c="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(w=ap,b="onPointerLeave",c="onPointerEnter",h="pointer"),E=x==null?f:To(x),y=L==null?f:To(L),f=new w(b,h+"leave",x,a,g),f.target=E,f.relatedTarget=y,b=null,yl(g)===d&&(w=new w(c,h+"enter",L,a,g),w.target=y,w.relatedTarget=E,b=w),E=b,x&&L)t:{for(w=Tb,c=x,h=L,y=0,b=c;b;b=w(b))y++;b=0;for(var S=h;S;S=w(S))b++;for(;0<y-b;)c=w(c),y--;for(;0<b-y;)h=w(h),b--;for(;y--;){if(c===h||h!==null&&c===h.alternate){w=c;break t}c=w(c),h=w(h)}w=null}else w=null;x!==null&&Zp(m,f,x,w,!1),L!==null&&E!==null&&Zp(m,E,L,w,!0)}}e:{if(f=d?To(d):window,x=f.nodeName&&f.nodeName.toLowerCase(),x==="select"||x==="input"&&f.type==="file")var A=np;else if(op(f))if(jh)A=Hx;else{A=Px;var M=zx}else x=f.nodeName,!x||x.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?d&&Fd(d.elementType)&&(A=np):A=Fx;if(A&&(A=A(e,d))){qh(m,A,a,g);break e}M&&M(e,f,d),e==="focusout"&&d&&f.type==="number"&&d.memoizedProps.value!=null&&Qs(f,"number",f.value)}switch(M=d?To(d):window,e){case"focusin":(op(M)||M.contentEditable==="true")&&(bl=M,$s=d,_o=null);break;case"focusout":_o=$s=bl=null;break;case"mousedown":ed=!0;break;case"contextmenu":case"mouseup":case"dragend":ed=!1,dp(m,a,g);break;case"selectionchange":if(jx)break;case"keydown":case"keyup":dp(m,a,g)}var I;if(Gd)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else xl?Fh(e,a)&&(T="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(T="onCompositionStart");T&&(Ph&&a.locale!=="ko"&&(xl||T!=="onCompositionStart"?T==="onCompositionEnd"&&xl&&(I=zh()):(fr=g,qd="value"in fr?fr.value:fr.textContent,xl=!0)),M=lu(d,T),0<M.length&&(T=new tp(T,e,null,a,g),m.push({event:T,listeners:M}),I?T.data=I:(I=Hh(a),I!==null&&(T.data=I)))),(I=_x?Ox(e,a):Nx(e,a))&&(T=lu(d,"onBeforeInput"),0<T.length&&(M=new tp("onBeforeInput","beforeinput",null,a,g),m.push({event:M,listeners:T}),M.data=I)),Rb(m,e,d,a,g)}Ug(m,t)})}function en(e,t,a){return{instance:e,listener:t,currentTarget:a}}function lu(e,t){for(var a=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||o===null||(l=Vo(e,a),l!=null&&r.unshift(en(e,l,o)),l=Vo(e,t),l!=null&&r.push(en(e,l,o))),e.tag===3)return r;e=e.return}return[]}function Tb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zp(e,t,a,r,l){for(var o=t._reactName,n=[];a!==null&&a!==r;){var s=a,p=s.alternate,d=s.stateNode;if(s=s.tag,p!==null&&p===r)break;s!==5&&s!==26&&s!==27||d===null||(p=d,l?(d=Vo(a,o),d!=null&&n.unshift(en(a,d,p))):l||(d=Vo(a,o),d!=null&&n.push(en(a,d,p)))),a=a.return}n.length!==0&&e.push({event:t,listeners:n})}var Ab=/\r\n?/g,Mb=/\u0000|\uFFFD/g;function Wp(e){return(typeof e=="string"?e:""+e).replace(Ab,`
|
|
9
|
+
`).replace(Mb,"")}function Pg(e,t){return t=Wp(t),Wp(e)===t}function _e(e,t,a,r,l,o){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Bl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Bl(e,""+r);break;case"className":ii(e,"class",r);break;case"tabIndex":ii(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,a,r);break;case"style":Bh(e,r,o);break;case"data":if(t!=="object"){ii(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Si(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",l.name,l,null),_e(e,t,"formEncType",l.formEncType,l,null),_e(e,t,"formMethod",l.formMethod,l,null),_e(e,t,"formTarget",l.formTarget,l,null)):(_e(e,t,"encType",l.encType,l,null),_e(e,t,"method",l.method,l,null),_e(e,t,"target",l.target,l,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Si(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=ja);break;case"onScroll":r!=null&&he("scroll",e);break;case"onScrollEnd":r!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(z(61));if(a=r.__html,a!=null){if(l.children!=null)throw Error(z(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Si(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":he("beforetoggle",e),he("toggle",e),Li(e,"popover",r);break;case"xlinkActuate":Na(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Na(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Na(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Na(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Na(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Na(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Na(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Li(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=nx.get(a)||a,Li(e,a,r))}}function wd(e,t,a,r,l,o){switch(a){case"style":Bh(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(z(61));if(a=r.__html,a!=null){if(l.children!=null)throw Error(z(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Bl(e,r):(typeof r=="number"||typeof r=="bigint")&&Bl(e,""+r);break;case"onScroll":r!=null&&he("scroll",e);break;case"onScrollEnd":r!=null&&he("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ja);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),o=e[Ut]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,l),typeof r=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,l);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Li(e,a,r)}}}function xt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var r=!1,l=!1,o;for(o in a)if(a.hasOwnProperty(o)){var n=a[o];if(n!=null)switch(o){case"src":r=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(z(137,t));default:_e(e,t,o,n,a,null)}}l&&_e(e,t,"srcSet",a.srcSet,a,null),r&&_e(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var s=o=n=l=null,p=null,d=null;for(r in a)if(a.hasOwnProperty(r)){var g=a[r];if(g!=null)switch(r){case"name":l=g;break;case"type":n=g;break;case"checked":p=g;break;case"defaultChecked":d=g;break;case"value":o=g;break;case"defaultValue":s=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(z(137,t));break;default:_e(e,t,r,g,a,null)}}_h(e,o,s,p,d,n,l,!1);return;case"select":he("invalid",e),r=n=o=null;for(l in a)if(a.hasOwnProperty(l)&&(s=a[l],s!=null))switch(l){case"value":o=s;break;case"defaultValue":n=s;break;case"multiple":r=s;default:_e(e,t,l,s,a,null)}t=o,a=n,e.multiple=!!r,t!=null?Tl(e,!!r,t,!1):a!=null&&Tl(e,!!r,a,!0);return;case"textarea":he("invalid",e),o=l=r=null;for(n in a)if(a.hasOwnProperty(n)&&(s=a[n],s!=null))switch(n){case"value":r=s;break;case"defaultValue":l=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(z(91));break;default:_e(e,t,n,s,a,null)}Nh(e,r,l,o);return;case"option":for(p in a)a.hasOwnProperty(p)&&(r=a[p],r!=null)&&(p==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":_e(e,t,p,r,a,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(r=0;r<$o.length;r++)he($o[r],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in a)if(a.hasOwnProperty(d)&&(r=a[d],r!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(z(137,t));default:_e(e,t,d,r,a,null)}return;default:if(Fd(t)){for(g in a)a.hasOwnProperty(g)&&(r=a[g],r!==void 0&&wd(e,t,g,r,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(r=a[s],r!=null&&_e(e,t,s,r,a,null))}function kb(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,o=null,n=null,s=null,p=null,d=null,g=null;for(x in a){var m=a[x];if(a.hasOwnProperty(x)&&m!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":p=m;default:r.hasOwnProperty(x)||_e(e,t,x,null,r,m)}}for(var f in r){var x=r[f];if(m=a[f],r.hasOwnProperty(f)&&(x!=null||m!=null))switch(f){case"type":o=x;break;case"name":l=x;break;case"checked":d=x;break;case"defaultChecked":g=x;break;case"value":n=x;break;case"defaultValue":s=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(z(137,t));break;default:x!==m&&_e(e,t,f,x,r,m)}}Ws(e,n,s,p,d,g,o,l);return;case"select":x=n=s=f=null;for(o in a)if(p=a[o],a.hasOwnProperty(o)&&p!=null)switch(o){case"value":break;case"multiple":x=p;default:r.hasOwnProperty(o)||_e(e,t,o,null,r,p)}for(l in r)if(o=r[l],p=a[l],r.hasOwnProperty(l)&&(o!=null||p!=null))switch(l){case"value":f=o;break;case"defaultValue":s=o;break;case"multiple":n=o;default:o!==p&&_e(e,t,l,o,r,p)}t=s,a=n,r=x,f!=null?Tl(e,!!a,f,!1):!!r!=!!a&&(t!=null?Tl(e,!!a,t,!0):Tl(e,!!a,a?[]:"",!1));return;case"textarea":x=f=null;for(s in a)if(l=a[s],a.hasOwnProperty(s)&&l!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:_e(e,t,s,null,r,l)}for(n in r)if(l=r[n],o=a[n],r.hasOwnProperty(n)&&(l!=null||o!=null))switch(n){case"value":f=l;break;case"defaultValue":x=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(z(91));break;default:l!==o&&_e(e,t,n,l,r,o)}Oh(e,f,x);return;case"option":for(var L in a)f=a[L],a.hasOwnProperty(L)&&f!=null&&!r.hasOwnProperty(L)&&(L==="selected"?e.selected=!1:_e(e,t,L,null,r,f));for(p in r)f=r[p],x=a[p],r.hasOwnProperty(p)&&f!==x&&(f!=null||x!=null)&&(p==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":_e(e,t,p,f,r,x));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var w in a)f=a[w],a.hasOwnProperty(w)&&f!=null&&!r.hasOwnProperty(w)&&_e(e,t,w,null,r,f);for(d in r)if(f=r[d],x=a[d],r.hasOwnProperty(d)&&f!==x&&(f!=null||x!=null))switch(d){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(z(137,t));break;default:_e(e,t,d,f,r,x)}return;default:if(Fd(t)){for(var E in a)f=a[E],a.hasOwnProperty(E)&&f!==void 0&&!r.hasOwnProperty(E)&&wd(e,t,E,void 0,r,f);for(g in r)f=r[g],x=a[g],!r.hasOwnProperty(g)||f===x||f===void 0&&x===void 0||wd(e,t,g,f,r,x);return}}for(var c in a)f=a[c],a.hasOwnProperty(c)&&f!=null&&!r.hasOwnProperty(c)&&_e(e,t,c,null,r,f);for(m in r)f=r[m],x=a[m],!r.hasOwnProperty(m)||f===x||f==null&&x==null||_e(e,t,m,f,r,x)}function Qp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Db(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var l=a[r],o=l.transferSize,n=l.initiatorType,s=l.duration;if(o&&s&&Qp(n)){for(n=0,s=l.responseEnd,r+=1;r<a.length;r++){var p=a[r],d=p.startTime;if(d>s)break;var g=p.transferSize,m=p.initiatorType;g&&Qp(m)&&(p=p.responseEnd,n+=g*(p<s?1:(s-d)/(p-d)))}if(--r,t+=8*(o+n)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Id=null,Rd=null;function ou(e){return e.nodeType===9?e:e.ownerDocument}function Kp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Fg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ed(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Us=null;function _b(){var e=window.event;return e&&e.type==="popstate"?e===Us?!1:(Us=e,!0):(Us=null,!1)}var Hg=typeof setTimeout=="function"?setTimeout:void 0,Ob=typeof clearTimeout=="function"?clearTimeout:void 0,Jp=typeof Promise=="function"?Promise:void 0,Nb=typeof queueMicrotask=="function"?queueMicrotask:typeof Jp<"u"?function(e){return Jp.resolve(null).then(e).catch(Bb)}:Hg;function Bb(e){setTimeout(function(){throw e})}function Mr(e){return e==="head"}function $p(e,t){var a=t,r=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(l),Gl(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")jo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,jo(a);for(var o=a.firstChild;o;){var n=o.nextSibling,s=o.nodeName;o[sn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=n}}else a==="body"&&jo(e.ownerDocument.body);a=l}while(a);Gl(t)}function eh(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Td(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Td(a),Pd(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Ub(e,t,a,r){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[sn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=da(e.nextSibling),e===null)break}return null}function zb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=da(e.nextSibling),e===null))return null;return e}function qg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=da(e.nextSibling),e===null))return null;return e}function Ad(e){return e.data==="$?"||e.data==="$~"}function Md(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Pb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function da(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kd=null;function th(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return da(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function jg(e,t,a){switch(t=ou(a),e){case"html":if(e=t.documentElement,!e)throw Error(z(452));return e;case"head":if(e=t.head,!e)throw Error(z(453));return e;case"body":if(e=t.body,!e)throw Error(z(454));return e;default:throw Error(z(451))}}function jo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pd(e)}var ca=new Map,rh=new Set;function nu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $a=Te.d;Te.d={f:Fb,r:Hb,D:qb,C:jb,L:Gb,m:Vb,X:Yb,S:Xb,M:Zb};function Fb(){var e=$a.f(),t=Cu();return e||t}function Hb(e){var t=Xl(e);t!==null&&t.tag===5&&t.type==="form"?Bm(t):$a.r(e)}var Ql=typeof document>"u"?null:document;function Gg(e,t,a){var r=Ql;if(r&&typeof t=="string"&&t){var l=na(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),rh.has(l)||(rh.add(l),e={rel:e,crossOrigin:a,href:t},r.querySelector(l)===null&&(t=r.createElement("link"),xt(t,"link",e),ct(t),r.head.appendChild(t)))}}function qb(e){$a.D(e),Gg("dns-prefetch",e,null)}function jb(e,t){$a.C(e,t),Gg("preconnect",e,t)}function Gb(e,t,a){$a.L(e,t,a);var r=Ql;if(r&&e&&t){var l='link[rel="preload"][as="'+na(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+na(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+na(a.imageSizes)+'"]')):l+='[href="'+na(e)+'"]';var o=l;switch(t){case"style":o=jl(e);break;case"script":o=Kl(e)}ca.has(o)||(e=He({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ca.set(o,e),r.querySelector(l)!==null||t==="style"&&r.querySelector(mn(o))||t==="script"&&r.querySelector(gn(o))||(t=r.createElement("link"),xt(t,"link",e),ct(t),r.head.appendChild(t)))}}function Vb(e,t){$a.m(e,t);var a=Ql;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+na(r)+'"][href="'+na(e)+'"]',o=l;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Kl(e)}if(!ca.has(o)&&(e=He({rel:"modulepreload",href:e},t),ca.set(o,e),a.querySelector(l)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(gn(o)))return}r=a.createElement("link"),xt(r,"link",e),ct(r),a.head.appendChild(r)}}}function Xb(e,t,a){$a.S(e,t,a);var r=Ql;if(r&&e){var l=El(r).hoistableStyles,o=jl(e);t=t||"default";var n=l.get(o);if(!n){var s={loading:0,preload:null};if(n=r.querySelector(mn(o)))s.loading=5;else{e=He({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ca.get(o))&&wc(e,a);var p=n=r.createElement("link");ct(p),xt(p,"link",e),p._p=new Promise(function(d,g){p.onload=d,p.onerror=g}),p.addEventListener("load",function(){s.loading|=1}),p.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Di(n,t,r)}n={type:"stylesheet",instance:n,count:1,state:s},l.set(o,n)}}}function Yb(e,t){$a.X(e,t);var a=Ql;if(a&&e){var r=El(a).hoistableScripts,l=Kl(e),o=r.get(l);o||(o=a.querySelector(gn(l)),o||(e=He({src:e,async:!0},t),(t=ca.get(l))&&Ic(e,t),o=a.createElement("script"),ct(o),xt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(l,o))}}function Zb(e,t){$a.M(e,t);var a=Ql;if(a&&e){var r=El(a).hoistableScripts,l=Kl(e),o=r.get(l);o||(o=a.querySelector(gn(l)),o||(e=He({src:e,async:!0,type:"module"},t),(t=ca.get(l))&&Ic(e,t),o=a.createElement("script"),ct(o),xt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(l,o))}}function lh(e,t,a,r){var l=(l=gr.current)?nu(l):null;if(!l)throw Error(z(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=jl(a.href),a=El(l).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=jl(a.href);var o=El(l).hoistableStyles,n=o.get(e);if(n||(l=l.ownerDocument||l,n={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,n),(o=l.querySelector(mn(e)))&&!o._p&&(n.instance=o,n.state.loading=5),ca.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ca.set(e,a),o||Wb(l,e,a,n.state))),t&&r===null)throw Error(z(528,""));return n}if(t&&r!==null)throw Error(z(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Kl(a),a=El(l).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(z(444,e))}}function jl(e){return'href="'+na(e)+'"'}function mn(e){return'link[rel="stylesheet"]['+e+"]"}function Vg(e){return He({},e,{"data-precedence":e.precedence,precedence:null})}function Wb(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),xt(t,"link",a),ct(t),e.head.appendChild(t))}function Kl(e){return'[src="'+na(e)+'"]'}function gn(e){return"script[async]"+e}function oh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+na(a.href)+'"]');if(r)return t.instance=r,ct(r),r;var l=He({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ct(r),xt(r,"style",l),Di(r,a.precedence,e),t.instance=r;case"stylesheet":l=jl(a.href);var o=e.querySelector(mn(l));if(o)return t.state.loading|=4,t.instance=o,ct(o),o;r=Vg(a),(l=ca.get(l))&&wc(r,l),o=(e.ownerDocument||e).createElement("link"),ct(o);var n=o;return n._p=new Promise(function(s,p){n.onload=s,n.onerror=p}),xt(o,"link",r),t.state.loading|=4,Di(o,a.precedence,e),t.instance=o;case"script":return o=Kl(a.src),(l=e.querySelector(gn(o)))?(t.instance=l,ct(l),l):(r=a,(l=ca.get(o))&&(r=He({},a),Ic(r,l)),e=e.ownerDocument||e,l=e.createElement("script"),ct(l),xt(l,"link",r),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(z(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Di(r,a.precedence,e));return t.instance}function Di(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,o=l,n=0;n<r.length;n++){var s=r[n];if(s.dataset.precedence===t)o=s;else if(o!==l)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function wc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ic(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _i=null;function nh(e,t,a){if(_i===null){var r=new Map,l=_i=new Map;l.set(a,r)}else l=_i,r=l.get(a),r||(r=new Map,l.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var o=a[l];if(!(o[sn]||o[gt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var n=o.getAttribute(t)||"";n=e+n;var s=r.get(n);s?s.push(o):r.set(n,[o])}}return r}function ih(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Qb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Xg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Kb(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=jl(r.href),o=t.querySelector(mn(l));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=iu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,ct(o);return}o=t.ownerDocument||t,r=Vg(r),(l=ca.get(l))&&wc(r,l),o=o.createElement("link"),ct(o);var n=o;n._p=new Promise(function(s,p){n.onload=s,n.onerror=p}),xt(o,"link",r),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=iu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var zs=0;function Jb(e,t){return e.stylesheets&&e.count===0&&Oi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Oi(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&zs===0&&(zs=62500*Db());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Oi(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>zs?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(l)}}:null}function iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Oi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uu=null;function Oi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uu=new Map,t.forEach($b,e),uu=null,iu.call(e))}function $b(e,t){if(!(t.state.loading&4)){var a=uu.get(e);if(a)var r=a.get(null);else{a=new Map,uu.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<l.length;o++){var n=l[o];(n.nodeName==="LINK"||n.getAttribute("media")!=="not all")&&(a.set(n.dataset.precedence,n),r=n)}r&&a.set(null,r)}l=t.instance,n=l.getAttribute("data-precedence"),o=a.get(n)||r,o===r&&a.set(null,l),a.set(n,l),this.count++,r=iu.bind(this),l.addEventListener("load",r),l.addEventListener("error",r),o?o.parentNode.insertBefore(l,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var tn={$$typeof:qa,Provider:null,Consumer:null,_currentValue:Fr,_currentValue2:Fr,_threadCount:0};function eL(e,t,a,r,l,o,n,s,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ds(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.hiddenUpdates=ds(null),this.identifierPrefix=r,this.onUncaughtError=l,this.onCaughtError=o,this.onRecoverableError=n,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function Yg(e,t,a,r,l,o,n,s,p,d,g,m){return e=new eL(e,t,a,n,p,d,g,m,s),t=1,o===!0&&(t|=24),o=jt(3,null,null,t),e.current=o,o.stateNode=e,t=Kd(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:a,cache:t},ec(o),e}function Zg(e){return e?(e=Cl,e):Cl}function Wg(e,t,a,r,l,o){l=Zg(l),r.context===null?r.context=l:r.pendingContext=l,r=vr(t),r.payload={element:a},o=o===void 0?null:o,o!==null&&(r.callback=o),a=xr(e,r,t),a!==null&&(Bt(a,e,t),No(a,e,t))}function uh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Rc(e,t){uh(e,t),(e=e.alternate)&&uh(e,t)}function Qg(e){if(e.tag===13||e.tag===31){var t=$r(e,67108864);t!==null&&Bt(t,e,67108864),Rc(e,67108864)}}function sh(e){if(e.tag===13||e.tag===31){var t=Zt();t=Ud(t);var a=$r(e,t);a!==null&&Bt(a,e,t),Rc(e,t)}}var su=!0;function tL(e,t,a,r){var l=ae.T;ae.T=null;var o=Te.p;try{Te.p=2,Ec(e,t,a,r)}finally{Te.p=o,ae.T=l}}function aL(e,t,a,r){var l=ae.T;ae.T=null;var o=Te.p;try{Te.p=8,Ec(e,t,a,r)}finally{Te.p=o,ae.T=l}}function Ec(e,t,a,r){if(su){var l=Dd(r);if(l===null)Bs(e,t,r,du,a),dh(e,r);else if(lL(l,e,t,a,r))r.stopPropagation();else if(dh(e,r),t&4&&-1<rL.indexOf(e)){for(;l!==null;){var o=Xl(l);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var n=Ur(o.pendingLanes);if(n!==0){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;n;){var p=1<<31-Yt(n);s.entanglements[1]|=p,n&=~p}Aa(o),(Ee&6)===0&&($i=Vt()+500,hn(0,!1))}}break;case 31:case 13:s=$r(o,2),s!==null&&Bt(s,o,2),Cu(),Rc(o,2)}if(o=Dd(r),o===null&&Bs(e,t,r,du,a),o===l)break;l=o}l!==null&&r.stopPropagation()}else Bs(e,t,r,null,a)}}function Dd(e){return e=Hd(e),Tc(e)}var du=null;function Tc(e){if(du=null,e=yl(e),e!==null){var t=ln(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=gh(t),e!==null)return e;e=null}else if(a===31){if(e=yh(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return du=e,null}function Kg(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(G0()){case Lh:return 2;case Sh:return 8;case Pi:case V0:return 32;case Ch:return 268435456;default:return 32}default:return 32}}var _d=!1,Sr=null,Cr=null,wr=null,an=new Map,rn=new Map,dr=[],rL="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".split(" ");function dh(e,t){switch(e){case"focusin":case"focusout":Sr=null;break;case"dragenter":case"dragleave":Cr=null;break;case"mouseover":case"mouseout":wr=null;break;case"pointerover":case"pointerout":an.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rn.delete(t.pointerId)}}function wo(e,t,a,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Xl(t),t!==null&&Qg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function lL(e,t,a,r,l){switch(t){case"focusin":return Sr=wo(Sr,e,t,a,r,l),!0;case"dragenter":return Cr=wo(Cr,e,t,a,r,l),!0;case"mouseover":return wr=wo(wr,e,t,a,r,l),!0;case"pointerover":var o=l.pointerId;return an.set(o,wo(an.get(o)||null,e,t,a,r,l)),!0;case"gotpointercapture":return o=l.pointerId,rn.set(o,wo(rn.get(o)||null,e,t,a,r,l)),!0}return!1}function Jg(e){var t=yl(e.target);if(t!==null){var a=ln(t);if(a!==null){if(t=a.tag,t===13){if(t=gh(a),t!==null){e.blockedOn=t,Yf(e.priority,function(){sh(a)});return}}else if(t===31){if(t=yh(a),t!==null){e.blockedOn=t,Yf(e.priority,function(){sh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Dd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Ks=r,a.target.dispatchEvent(r),Ks=null}else return t=Xl(a),t!==null&&Qg(t),e.blockedOn=a,!1;t.shift()}return!0}function ch(e,t,a){Ni(e)&&a.delete(t)}function oL(){_d=!1,Sr!==null&&Ni(Sr)&&(Sr=null),Cr!==null&&Ni(Cr)&&(Cr=null),wr!==null&&Ni(wr)&&(wr=null),an.forEach(ch),rn.forEach(ch)}function xi(e,t){e.blockedOn===t&&(e.blockedOn=null,_d||(_d=!0,ut.unstable_scheduleCallback(ut.unstable_NormalPriority,oL)))}var bi=null;function fh(e){bi!==e&&(bi=e,ut.unstable_scheduleCallback(ut.unstable_NormalPriority,function(){bi===e&&(bi=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],l=e[t+2];if(typeof r!="function"){if(Tc(r||a)===null)continue;break}var o=Xl(a);o!==null&&(e.splice(t,3),t-=3,pd(o,{pending:!0,data:l,method:a.method,action:r},r,l))}}))}function Gl(e){function t(p){return xi(p,e)}Sr!==null&&xi(Sr,e),Cr!==null&&xi(Cr,e),wr!==null&&xi(wr,e),an.forEach(t),rn.forEach(t);for(var a=0;a<dr.length;a++){var r=dr[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<dr.length&&(a=dr[0],a.blockedOn===null);)Jg(a),a.blockedOn===null&&dr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var l=a[r],o=a[r+1],n=l[Ut]||null;if(typeof o=="function")n||fh(a);else if(n){var s=null;if(o&&o.hasAttribute("formAction")){if(l=o,n=o[Ut]||null)s=n.formAction;else if(Tc(l)!==null)continue}else s=n.action;typeof s=="function"?a[r+1]=s:(a.splice(r,3),r-=3),fh(a)}}}function $g(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(n){return l=n})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Ac(e){this._internalRoot=e}Ru.prototype.render=Ac.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));var a=t.current,r=Zt();Wg(a,r,e,t,null,null)};Ru.prototype.unmount=Ac.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wg(e.current,2,null,e,null,null),Cu(),t[Vl]=null}};function Ru(e){this._internalRoot=e}Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=Th();e={blockedOn:null,target:e,priority:t};for(var a=0;a<dr.length&&t!==0&&t<dr[a].priority;a++);dr.splice(a,0,e),a===0&&Jg(e)}};var ph=hh.version;if(ph!=="19.2.4")throw Error(z(527,ph,"19.2.4"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=U0(t),e=e!==null?vh(e):null,e=e===null?null:e.stateNode,e};var nL={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ae,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Io=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Io.isDisabled&&Io.supportsFiber))try{on=Io.inject(nL),Xt=Io}catch{}var Io;Eu.createRoot=function(e,t){if(!mh(e))throw Error(z(299));var a=!1,r="",l=Gm,o=Vm,n=Xm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=Yg(e,1,!1,null,null,a,r,null,l,o,n,$g),e[Vl]=t.current,Cc(e),new Ac(t)};Eu.hydrateRoot=function(e,t,a){if(!mh(e))throw Error(z(299));var r=!1,l="",o=Gm,n=Vm,s=Xm,p=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(n=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(p=a.formState)),t=Yg(e,1,!0,t,a??null,r,l,p,o,n,s,$g),t.context=Zg(null),a=t.current,r=Zt(),r=Ud(r),l=vr(r),l.callback=null,xr(a,l,r),a=r,t.current.lanes=a,un(t,a),Aa(t),e[Vl]=t.current,Cc(e),new Ru(t)};Eu.version="19.2.4"});var Mc=ea((F1,ay)=>{"use strict";function ty(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ty)}catch(e){console.error(e)}}ty(),ay.exports=ey()});var Ou,tf=te(()=>{Ou=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim()});var Wy,Qy=te(()=>{Wy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()});var Ky,Jy=te(()=>{Ky=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase())});var af,$y=te(()=>{Jy();af=e=>{let t=Ky(e);return t.charAt(0).toUpperCase()+t.slice(1)}});var Nu,ev=te(()=>{Nu={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"}});var tv,av=te(()=>{tv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1}});var ro,TS,rv,lv=te(()=>{"use strict";"use client";ro=Ae(Ke());TS=(0,ro.createContext)({}),rv=()=>(0,ro.useContext)(TS)});var Ln,ov,nv=te(()=>{"use strict";"use client";Ln=Ae(Ke());ev();av();tf();lv();ov=(0,Ln.forwardRef)(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:l="",children:o,iconNode:n,...s},p)=>{let{size:d=24,strokeWidth:g=2,absoluteStrokeWidth:m=!1,color:f="currentColor",className:x=""}=rv()??{},L=r??m?Number(a??g)*24/Number(t??d):a??g;return(0,Ln.createElement)("svg",{ref:p,...Nu,width:t??d??Nu.width,height:t??d??Nu.height,stroke:e??f,strokeWidth:L,className:Ou("lucide",x,l),...!o&&!tv(s)&&{"aria-hidden":"true"},...s},[...n.map(([w,E])=>(0,Ln.createElement)(w,E)),...Array.isArray(o)?o:[o]])})});var Bu,G,fe=te(()=>{Bu=Ae(Ke());tf();Qy();$y();nv();G=(e,t)=>{let a=(0,Bu.forwardRef)(({className:r,...l},o)=>(0,Bu.createElement)(ov,{ref:o,iconNode:t,className:Ou(`lucide-${Wy(af(e))}`,`lucide-${e}`,r),...l}));return a.displayName=af(e),a}});var AS,er,iv=te(()=>{fe();AS=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],er=G("arrow-left",AS)});var MS,Sn,uv=te(()=>{fe();MS=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Sn=G("arrow-up-down",MS)});var kS,kr,sv=te(()=>{fe();kS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kr=G("check",kS)});var DS,Cn,dv=te(()=>{fe();DS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Cn=G("chevron-right",DS)});var _S,rl,cv=te(()=>{fe();_S=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rl=G("copy",_S)});var OS,lo,fv=te(()=>{fe();OS=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],lo=G("download",OS)});var NS,ll,pv=te(()=>{fe();NS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ll=G("file-text",NS)});var BS,wn,hv=te(()=>{fe();BS=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],wn=G("files",BS)});var US,In,mv=te(()=>{fe();US=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],In=G("film",US)});var zS,oo,gv=te(()=>{fe();zS=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],oo=G("folder",zS)});var PS,Rn,yv=te(()=>{fe();PS=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Rn=G("hard-drive",PS)});var FS,En,vv=te(()=>{fe();FS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],En=G("image",FS)});var HS,Tn,xv=te(()=>{fe();HS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Tn=G("info",HS)});var qS,An,bv=te(()=>{fe();qS=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],An=G("loader",qS)});var jS,Mn,Lv=te(()=>{fe();jS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Mn=G("menu",jS)});var GS,Dr,Sv=te(()=>{fe();GS=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Dr=G("message-square",GS)});var VS,kn,Cv=te(()=>{fe();VS=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],kn=G("mic-off",VS)});var XS,Dn,wv=te(()=>{fe();XS=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Dn=G("mic",XS)});var YS,_n,Iv=te(()=>{fe();YS=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826",key:"cv7jms"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042",key:"z8ni2w"}]],_n=G("monitor-off",YS)});var ZS,On,Rv=te(()=>{fe();ZS=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],On=G("monitor",ZS)});var WS,Nn,Ev=te(()=>{fe();WS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Nn=G("moon",WS)});var QS,no,Tv=te(()=>{fe();QS=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],no=G("music",QS)});var KS,_r,Av=te(()=>{fe();KS=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],_r=G("pen",KS)});var JS,io,Mv=te(()=>{fe();JS=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],io=G("phone-off",JS)});var $S,Kt,kv=te(()=>{fe();$S=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Kt=G("phone",$S)});var e1,Bn,Dv=te(()=>{fe();e1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Bn=G("plus",e1)});var t1,Un,_v=te(()=>{fe();t1=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Un=G("power",t1)});var a1,zn,Ov=te(()=>{fe();a1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zn=G("search",a1)});var r1,uo,Nv=te(()=>{fe();r1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],uo=G("send",r1)});var l1,Pn,Bv=te(()=>{fe();l1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Pn=G("star",l1)});var o1,Fn,Uv=te(()=>{fe();o1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Fn=G("sun",o1)});var n1,Hn,zv=te(()=>{fe();n1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Hn=G("trash-2",n1)});var i1,so,Pv=te(()=>{fe();i1=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],so=G("upload",i1)});var u1,qn,Fv=te(()=>{fe();u1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qn=G("users",u1)});var s1,jn,Hv=te(()=>{fe();s1=[["path",{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196",key:"w8jjjt"}],["path",{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",key:"1xawa7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],jn=G("video-off",s1)});var d1,ol,qv=te(()=>{fe();d1=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],ol=G("video",d1)});var c1,Ct,jv=te(()=>{fe();c1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ct=G("x",c1)});var rf=te(()=>{"use strict";Av();iv();uv();sv();dv();cv();fv();pv();hv();mv();gv();yv();vv();xv();bv();Lv();Sv();Cv();wv();Iv();Rv();Ev();Tv();Mv();kv();Dv();_v();Ov();Nv();Bv();Uv();zv();Pv();Fv();Hv();qv();jv();});var Vv=ea(Uu=>{"use strict";var f1=Symbol.for("react.transitional.element"),p1=Symbol.for("react.fragment");function Gv(e,t,a){var r=null;if(a!==void 0&&(r=""+a),t.key!==void 0&&(r=""+t.key),"key"in t){a={};for(var l in t)l!=="key"&&(a[l]=t[l])}else a=t;return t=a.ref,{$$typeof:f1,type:e,key:r,ref:t!==void 0?t:null,props:a}}Uu.Fragment=p1;Uu.jsx=Gv;Uu.jsxs=Gv});var tr=ea((UI,Xv)=>{"use strict";Xv.exports=Vv()});var Qv=ea((Wv,nf)=>{(function(e){if(typeof Wv=="object"&&typeof nf<"u")nf.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;t=typeof window>"u"?typeof global>"u"?typeof self>"u"?this:self:global:window,t.SimplePeer=e()}})(function(){var e=Math.floor,t=Math.abs,a=Math.pow;return(function(){function r(l,o,n){function s(g,m){if(!o[g]){if(!l[g]){var f=typeof ho=="function"&&ho;if(!m&&f)return f(g,!0);if(p)return p(g,!0);var x=new Error("Cannot find module '"+g+"'");throw x.code="MODULE_NOT_FOUND",x}var L=o[g]={exports:{}};l[g][0].call(L.exports,function(w){var E=l[g][1][w];return s(E||w)},L,L.exports,r,l,o,n)}return o[g].exports}for(var p=typeof ho=="function"&&ho,d=0;d<n.length;d++)s(n[d]);return s}return r})()({1:[function(r,l,o){"use strict";function n(h){var y=h.length;if(0<y%4)throw new Error("Invalid string. Length must be a multiple of 4");var b=h.indexOf("=");b===-1&&(b=y);var S=b===y?0:4-b%4;return[b,S]}function s(h,y,b){return 3*(y+b)/4-b}function p(h){var y,b,S=n(h),A=S[0],M=S[1],I=new L(s(h,A,M)),T=0,N=0<M?A-4:A;for(b=0;b<N;b+=4)y=x[h.charCodeAt(b)]<<18|x[h.charCodeAt(b+1)]<<12|x[h.charCodeAt(b+2)]<<6|x[h.charCodeAt(b+3)],I[T++]=255&y>>16,I[T++]=255&y>>8,I[T++]=255&y;return M===2&&(y=x[h.charCodeAt(b)]<<2|x[h.charCodeAt(b+1)]>>4,I[T++]=255&y),M===1&&(y=x[h.charCodeAt(b)]<<10|x[h.charCodeAt(b+1)]<<4|x[h.charCodeAt(b+2)]>>2,I[T++]=255&y>>8,I[T++]=255&y),I}function d(h){return f[63&h>>18]+f[63&h>>12]+f[63&h>>6]+f[63&h]}function g(h,y,b){for(var S,A=[],M=y;M<b;M+=3)S=(16711680&h[M]<<16)+(65280&h[M+1]<<8)+(255&h[M+2]),A.push(d(S));return A.join("")}function m(h){for(var y,b=h.length,S=b%3,A=[],M=16383,I=0,T=b-S;I<T;I+=M)A.push(g(h,I,I+M>T?T:I+M));return S===1?(y=h[b-1],A.push(f[y>>2]+f[63&y<<4]+"==")):S===2&&(y=(h[b-2]<<8)+h[b-1],A.push(f[y>>10]+f[63&y>>4]+f[63&y<<2]+"=")),A.join("")}o.byteLength=function(h){var y=n(h),b=y[0],S=y[1];return 3*(b+S)/4-S},o.toByteArray=p,o.fromByteArray=m;for(var f=[],x=[],L=typeof Uint8Array>"u"?Array:Uint8Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,c=w.length;E<c;++E)f[E]=w[E],x[w.charCodeAt(E)]=E;x[45]=62,x[95]=63},{}],2:[function(){},{}],3:[function(r,l,o){(function(){(function(){"use strict";var n=String.fromCharCode,s=Math.min;function p(i){if(2147483647<i)throw new RangeError('The value "'+i+'" is invalid for option "size"');var u=new Uint8Array(i);return u.__proto__=d.prototype,u}function d(i,u,v){if(typeof i=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(i)}return g(i,u,v)}function g(i,u,v){if(typeof i=="string")return L(i,u);if(ArrayBuffer.isView(i))return w(i);if(i==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(D(i,ArrayBuffer)||i&&D(i.buffer,ArrayBuffer))return E(i,u,v);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var R=i.valueOf&&i.valueOf();if(R!=null&&R!==i)return d.from(R,u,v);var O=c(i);if(O)return O;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return d.from(i[Symbol.toPrimitive]("string"),u,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}function m(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(0>i)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function f(i,u,v){return m(i),0>=i||u===void 0?p(i):typeof v=="string"?p(i).fill(u,v):p(i).fill(u)}function x(i){return m(i),p(0>i?0:0|h(i))}function L(i,u){if((typeof u!="string"||u==="")&&(u="utf8"),!d.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var v=0|y(i,u),R=p(v),O=R.write(i,u);return O!==v&&(R=R.slice(0,O)),R}function w(i){for(var u=0>i.length?0:0|h(i.length),v=p(u),R=0;R<u;R+=1)v[R]=255&i[R];return v}function E(i,u,v){if(0>u||i.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<u+(v||0))throw new RangeError('"length" is outside of buffer bounds');var R;return R=u===void 0&&v===void 0?new Uint8Array(i):v===void 0?new Uint8Array(i,u):new Uint8Array(i,u,v),R.__proto__=d.prototype,R}function c(i){if(d.isBuffer(i)){var u=0|h(i.length),v=p(u);return v.length===0||i.copy(v,0,0,u),v}return i.length===void 0?i.type==="Buffer"&&Array.isArray(i.data)?w(i.data):void 0:typeof i.length!="number"||B(i.length)?p(0):w(i)}function h(i){if(i>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|i}function y(i,u){if(d.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||D(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);var v=i.length,R=2<arguments.length&&arguments[2]===!0;if(!R&&v===0)return 0;for(var O=!1;;)switch(u){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return bt(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*v;case"hex":return v>>>1;case"base64":return et(i).length;default:if(O)return R?-1:bt(i).length;u=(""+u).toLowerCase(),O=!0}}function b(i,u,v){var R=!1;if((u===void 0||0>u)&&(u=0),u>this.length||((v===void 0||v>this.length)&&(v=this.length),0>=v)||(v>>>=0,u>>>=0,v<=u))return"";for(i||(i="utf8");;)switch(i){case"hex":return wt(this,u,v);case"utf8":case"utf-8":return Ce(this,u,v);case"ascii":return $(this,u,v);case"latin1":case"binary":return Qe(this,u,v);case"base64":return ue(this,u,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,u,v);default:if(R)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),R=!0}}function S(i,u,v){var R=i[u];i[u]=i[v],i[v]=R}function A(i,u,v,R,O){if(i.length===0)return-1;if(typeof v=="string"?(R=v,v=0):2147483647<v?v=2147483647:-2147483648>v&&(v=-2147483648),v=+v,B(v)&&(v=O?0:i.length-1),0>v&&(v=i.length+v),v>=i.length){if(O)return-1;v=i.length-1}else if(0>v)if(O)v=0;else return-1;if(typeof u=="string"&&(u=d.from(u,R)),d.isBuffer(u))return u.length===0?-1:M(i,u,v,R,O);if(typeof u=="number")return u&=255,typeof Uint8Array.prototype.indexOf=="function"?O?Uint8Array.prototype.indexOf.call(i,u,v):Uint8Array.prototype.lastIndexOf.call(i,u,v):M(i,[u],v,R,O);throw new TypeError("val must be string, number or Buffer")}function M(i,u,v,R,O){function U(ee,$t){return q===1?ee[$t]:ee.readUInt16BE($t*q)}var q=1,se=i.length,Re=u.length;if(R!==void 0&&(R=(R+"").toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(2>i.length||2>u.length)return-1;q=2,se/=2,Re/=2,v/=2}var Le;if(O){var pe=-1;for(Le=v;Le<se;Le++)if(U(i,Le)!==U(u,pe===-1?0:Le-pe))pe!==-1&&(Le-=Le-pe),pe=-1;else if(pe===-1&&(pe=Le),Le-pe+1===Re)return pe*q}else for(v+Re>se&&(v=se-Re),Le=v;0<=Le;Le--){for(var ye=!0,ga=0;ga<Re;ga++)if(U(i,Le+ga)!==U(u,ga)){ye=!1;break}if(ye)return Le}return-1}function I(i,u,v,R){v=+v||0;var O=i.length-v;R?(R=+R,R>O&&(R=O)):R=O;var U=u.length;R>U/2&&(R=U/2);for(var q,se=0;se<R;++se){if(q=parseInt(u.substr(2*se,2),16),B(q))return se;i[v+se]=q}return se}function T(i,u,v,R){return ge(bt(u,i.length-v),i,v,R)}function N(i,u,v,R){return ge(_a(u),i,v,R)}function F(i,u,v,R){return N(i,u,v,R)}function Y(i,u,v,R){return ge(et(u),i,v,R)}function V(i,u,v,R){return ge(ma(u,i.length-v),i,v,R)}function ue(i,u,v){return u===0&&v===i.length?H.fromByteArray(i):H.fromByteArray(i.slice(u,v))}function Ce(i,u,v){v=s(i.length,v);for(var R=[],O=u;O<v;){var U=i[O],q=null,se=239<U?4:223<U?3:191<U?2:1;if(O+se<=v){var Re,Le,pe,ye;se===1?128>U&&(q=U):se===2?(Re=i[O+1],(192&Re)==128&&(ye=(31&U)<<6|63&Re,127<ye&&(q=ye))):se===3?(Re=i[O+1],Le=i[O+2],(192&Re)==128&&(192&Le)==128&&(ye=(15&U)<<12|(63&Re)<<6|63&Le,2047<ye&&(55296>ye||57343<ye)&&(q=ye))):se===4&&(Re=i[O+1],Le=i[O+2],pe=i[O+3],(192&Re)==128&&(192&Le)==128&&(192&pe)==128&&(ye=(15&U)<<18|(63&Re)<<12|(63&Le)<<6|63&pe,65535<ye&&1114112>ye&&(q=ye)))}q===null?(q=65533,se=1):65535<q&&(q-=65536,R.push(55296|1023&q>>>10),q=56320|1023&q),R.push(q),O+=se}return We(R)}function We(i){var u=i.length;if(u<=4096)return n.apply(String,i);for(var v="",R=0;R<u;)v+=n.apply(String,i.slice(R,R+=4096));return v}function $(i,u,v){var R="";v=s(i.length,v);for(var O=u;O<v;++O)R+=n(127&i[O]);return R}function Qe(i,u,v){var R="";v=s(i.length,v);for(var O=u;O<v;++O)R+=n(i[O]);return R}function wt(i,u,v){var R=i.length;(!u||0>u)&&(u=0),(!v||0>v||v>R)&&(v=R);for(var O="",U=u;U<v;++U)O+=Ft(i[U]);return O}function It(i,u,v){for(var R=i.slice(u,v),O="",U=0;U<R.length;U+=2)O+=n(R[U]+256*R[U+1]);return O}function we(i,u,v){if(i%1!=0||0>i)throw new RangeError("offset is not uint");if(i+u>v)throw new RangeError("Trying to access beyond buffer length")}function be(i,u,v,R,O,U){if(!d.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>O||u<U)throw new RangeError('"value" argument is out of bounds');if(v+R>i.length)throw new RangeError("Index out of range")}function Ne(i,u,v,R){if(v+R>i.length)throw new RangeError("Index out of range");if(0>v)throw new RangeError("Index out of range")}function je(i,u,v,R,O){return u=+u,v>>>=0,O||Ne(i,u,v,4,34028234663852886e22,-34028234663852886e22),X.write(i,u,v,R,23,4),v+4}function Rt(i,u,v,R,O){return u=+u,v>>>=0,O||Ne(i,u,v,8,17976931348623157e292,-17976931348623157e292),X.write(i,u,v,R,52,8),v+8}function ha(i){if(i=i.split("=")[0],i=i.trim().replace(J,""),2>i.length)return"";for(;i.length%4!=0;)i+="=";return i}function Ft(i){return 16>i?"0"+i.toString(16):i.toString(16)}function bt(i,u){u=u||1/0;for(var v,R=i.length,O=null,U=[],q=0;q<R;++q){if(v=i.charCodeAt(q),55295<v&&57344>v){if(!O){if(56319<v){-1<(u-=3)&&U.push(239,191,189);continue}else if(q+1===R){-1<(u-=3)&&U.push(239,191,189);continue}O=v;continue}if(56320>v){-1<(u-=3)&&U.push(239,191,189),O=v;continue}v=(O-55296<<10|v-56320)+65536}else O&&-1<(u-=3)&&U.push(239,191,189);if(O=null,128>v){if(0>(u-=1))break;U.push(v)}else if(2048>v){if(0>(u-=2))break;U.push(192|v>>6,128|63&v)}else if(65536>v){if(0>(u-=3))break;U.push(224|v>>12,128|63&v>>6,128|63&v)}else if(1114112>v){if(0>(u-=4))break;U.push(240|v>>18,128|63&v>>12,128|63&v>>6,128|63&v)}else throw new Error("Invalid code point")}return U}function _a(i){for(var u=[],v=0;v<i.length;++v)u.push(255&i.charCodeAt(v));return u}function ma(i,u){for(var v,R,O,U=[],q=0;q<i.length&&!(0>(u-=2));++q)v=i.charCodeAt(q),R=v>>8,O=v%256,U.push(O),U.push(R);return U}function et(i){return H.toByteArray(ha(i))}function ge(i,u,v,R){for(var O=0;O<R&&!(O+v>=u.length||O>=i.length);++O)u[O+v]=i[O];return O}function D(i,u){return i instanceof u||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===u.name}function B(i){return i!==i}var H=r("base64-js"),X=r("ieee754");o.Buffer=d,o.SlowBuffer=function(i){return+i!=i&&(i=0),d.alloc(+i)},o.INSPECT_MAX_BYTES=50,o.kMaxLength=2147483647,d.TYPED_ARRAY_SUPPORT=(function(){try{var i=new Uint8Array(1);return i.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},i.foo()===42}catch{return!1}})(),d.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){return d.isBuffer(this)?this.buffer:void 0}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){return d.isBuffer(this)?this.byteOffset:void 0}}),typeof Symbol<"u"&&Symbol.species!=null&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),d.poolSize=8192,d.from=function(i,u,v){return g(i,u,v)},d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,d.alloc=function(i,u,v){return f(i,u,v)},d.allocUnsafe=function(i){return x(i)},d.allocUnsafeSlow=function(i){return x(i)},d.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==d.prototype},d.compare=function(i,u){if(D(i,Uint8Array)&&(i=d.from(i,i.offset,i.byteLength)),D(u,Uint8Array)&&(u=d.from(u,u.offset,u.byteLength)),!d.isBuffer(i)||!d.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===u)return 0;for(var v=i.length,R=u.length,O=0,U=s(v,R);O<U;++O)if(i[O]!==u[O]){v=i[O],R=u[O];break}return v<R?-1:R<v?1:0},d.isEncoding=function(i){switch((i+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(i,u){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return d.alloc(0);var v;if(u===void 0)for(u=0,v=0;v<i.length;++v)u+=i[v].length;var R=d.allocUnsafe(u),O=0;for(v=0;v<i.length;++v){var U=i[v];if(D(U,Uint8Array)&&(U=d.from(U)),!d.isBuffer(U))throw new TypeError('"list" argument must be an Array of Buffers');U.copy(R,O),O+=U.length}return R},d.byteLength=y,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var i=this.length;if(i%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<i;u+=2)S(this,u,u+1);return this},d.prototype.swap32=function(){var i=this.length;if(i%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<i;u+=4)S(this,u,u+3),S(this,u+1,u+2);return this},d.prototype.swap64=function(){var i=this.length;if(i%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<i;u+=8)S(this,u,u+7),S(this,u+1,u+6),S(this,u+2,u+5),S(this,u+3,u+4);return this},d.prototype.toString=function(){var i=this.length;return i===0?"":arguments.length===0?Ce(this,0,i):b.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(i){if(!d.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i||d.compare(this,i)===0},d.prototype.inspect=function(){var i="",u=o.INSPECT_MAX_BYTES;return i=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(i+=" ... "),"<Buffer "+i+">"},d.prototype.compare=function(i,u,v,R,O){if(D(i,Uint8Array)&&(i=d.from(i,i.offset,i.byteLength)),!d.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(u===void 0&&(u=0),v===void 0&&(v=i?i.length:0),R===void 0&&(R=0),O===void 0&&(O=this.length),0>u||v>i.length||0>R||O>this.length)throw new RangeError("out of range index");if(R>=O&&u>=v)return 0;if(R>=O)return-1;if(u>=v)return 1;if(u>>>=0,v>>>=0,R>>>=0,O>>>=0,this===i)return 0;for(var U=O-R,q=v-u,se=s(U,q),Re=this.slice(R,O),Le=i.slice(u,v),pe=0;pe<se;++pe)if(Re[pe]!==Le[pe]){U=Re[pe],q=Le[pe];break}return U<q?-1:q<U?1:0},d.prototype.includes=function(i,u,v){return this.indexOf(i,u,v)!==-1},d.prototype.indexOf=function(i,u,v){return A(this,i,u,v,!0)},d.prototype.lastIndexOf=function(i,u,v){return A(this,i,u,v,!1)},d.prototype.write=function(i,u,v,R){if(u===void 0)R="utf8",v=this.length,u=0;else if(v===void 0&&typeof u=="string")R=u,v=this.length,u=0;else if(isFinite(u))u>>>=0,isFinite(v)?(v>>>=0,R===void 0&&(R="utf8")):(R=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var O=this.length-u;if((v===void 0||v>O)&&(v=O),0<i.length&&(0>v||0>u)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");for(var U=!1;;)switch(R){case"hex":return I(this,i,u,v);case"utf8":case"utf-8":return T(this,i,u,v);case"ascii":return N(this,i,u,v);case"latin1":case"binary":return F(this,i,u,v);case"base64":return Y(this,i,u,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,i,u,v);default:if(U)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),U=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},d.prototype.slice=function(i,u){var v=this.length;i=~~i,u=u===void 0?v:~~u,0>i?(i+=v,0>i&&(i=0)):i>v&&(i=v),0>u?(u+=v,0>u&&(u=0)):u>v&&(u=v),u<i&&(u=i);var R=this.subarray(i,u);return R.__proto__=d.prototype,R},d.prototype.readUIntLE=function(i,u,v){i>>>=0,u>>>=0,v||we(i,u,this.length);for(var R=this[i],O=1,U=0;++U<u&&(O*=256);)R+=this[i+U]*O;return R},d.prototype.readUIntBE=function(i,u,v){i>>>=0,u>>>=0,v||we(i,u,this.length);for(var R=this[i+--u],O=1;0<u&&(O*=256);)R+=this[i+--u]*O;return R},d.prototype.readUInt8=function(i,u){return i>>>=0,u||we(i,1,this.length),this[i]},d.prototype.readUInt16LE=function(i,u){return i>>>=0,u||we(i,2,this.length),this[i]|this[i+1]<<8},d.prototype.readUInt16BE=function(i,u){return i>>>=0,u||we(i,2,this.length),this[i]<<8|this[i+1]},d.prototype.readUInt32LE=function(i,u){return i>>>=0,u||we(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+16777216*this[i+3]},d.prototype.readUInt32BE=function(i,u){return i>>>=0,u||we(i,4,this.length),16777216*this[i]+(this[i+1]<<16|this[i+2]<<8|this[i+3])},d.prototype.readIntLE=function(i,u,v){i>>>=0,u>>>=0,v||we(i,u,this.length);for(var R=this[i],O=1,U=0;++U<u&&(O*=256);)R+=this[i+U]*O;return O*=128,R>=O&&(R-=a(2,8*u)),R},d.prototype.readIntBE=function(i,u,v){i>>>=0,u>>>=0,v||we(i,u,this.length);for(var R=u,O=1,U=this[i+--R];0<R&&(O*=256);)U+=this[i+--R]*O;return O*=128,U>=O&&(U-=a(2,8*u)),U},d.prototype.readInt8=function(i,u){return i>>>=0,u||we(i,1,this.length),128&this[i]?-1*(255-this[i]+1):this[i]},d.prototype.readInt16LE=function(i,u){i>>>=0,u||we(i,2,this.length);var v=this[i]|this[i+1]<<8;return 32768&v?4294901760|v:v},d.prototype.readInt16BE=function(i,u){i>>>=0,u||we(i,2,this.length);var v=this[i+1]|this[i]<<8;return 32768&v?4294901760|v:v},d.prototype.readInt32LE=function(i,u){return i>>>=0,u||we(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},d.prototype.readInt32BE=function(i,u){return i>>>=0,u||we(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},d.prototype.readFloatLE=function(i,u){return i>>>=0,u||we(i,4,this.length),X.read(this,i,!0,23,4)},d.prototype.readFloatBE=function(i,u){return i>>>=0,u||we(i,4,this.length),X.read(this,i,!1,23,4)},d.prototype.readDoubleLE=function(i,u){return i>>>=0,u||we(i,8,this.length),X.read(this,i,!0,52,8)},d.prototype.readDoubleBE=function(i,u){return i>>>=0,u||we(i,8,this.length),X.read(this,i,!1,52,8)},d.prototype.writeUIntLE=function(i,u,v,R){if(i=+i,u>>>=0,v>>>=0,!R){var O=a(2,8*v)-1;be(this,i,u,v,O,0)}var U=1,q=0;for(this[u]=255&i;++q<v&&(U*=256);)this[u+q]=255&i/U;return u+v},d.prototype.writeUIntBE=function(i,u,v,R){if(i=+i,u>>>=0,v>>>=0,!R){var O=a(2,8*v)-1;be(this,i,u,v,O,0)}var U=v-1,q=1;for(this[u+U]=255&i;0<=--U&&(q*=256);)this[u+U]=255&i/q;return u+v},d.prototype.writeUInt8=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,1,255,0),this[u]=255&i,u+1},d.prototype.writeUInt16LE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,2,65535,0),this[u]=255&i,this[u+1]=i>>>8,u+2},d.prototype.writeUInt16BE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,2,65535,0),this[u]=i>>>8,this[u+1]=255&i,u+2},d.prototype.writeUInt32LE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,4,4294967295,0),this[u+3]=i>>>24,this[u+2]=i>>>16,this[u+1]=i>>>8,this[u]=255&i,u+4},d.prototype.writeUInt32BE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,4,4294967295,0),this[u]=i>>>24,this[u+1]=i>>>16,this[u+2]=i>>>8,this[u+3]=255&i,u+4},d.prototype.writeIntLE=function(i,u,v,R){if(i=+i,u>>>=0,!R){var O=a(2,8*v-1);be(this,i,u,v,O-1,-O)}var U=0,q=1,se=0;for(this[u]=255&i;++U<v&&(q*=256);)0>i&&se===0&&this[u+U-1]!==0&&(se=1),this[u+U]=255&(i/q>>0)-se;return u+v},d.prototype.writeIntBE=function(i,u,v,R){if(i=+i,u>>>=0,!R){var O=a(2,8*v-1);be(this,i,u,v,O-1,-O)}var U=v-1,q=1,se=0;for(this[u+U]=255&i;0<=--U&&(q*=256);)0>i&&se===0&&this[u+U+1]!==0&&(se=1),this[u+U]=255&(i/q>>0)-se;return u+v},d.prototype.writeInt8=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,1,127,-128),0>i&&(i=255+i+1),this[u]=255&i,u+1},d.prototype.writeInt16LE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,2,32767,-32768),this[u]=255&i,this[u+1]=i>>>8,u+2},d.prototype.writeInt16BE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,2,32767,-32768),this[u]=i>>>8,this[u+1]=255&i,u+2},d.prototype.writeInt32LE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,4,2147483647,-2147483648),this[u]=255&i,this[u+1]=i>>>8,this[u+2]=i>>>16,this[u+3]=i>>>24,u+4},d.prototype.writeInt32BE=function(i,u,v){return i=+i,u>>>=0,v||be(this,i,u,4,2147483647,-2147483648),0>i&&(i=4294967295+i+1),this[u]=i>>>24,this[u+1]=i>>>16,this[u+2]=i>>>8,this[u+3]=255&i,u+4},d.prototype.writeFloatLE=function(i,u,v){return je(this,i,u,!0,v)},d.prototype.writeFloatBE=function(i,u,v){return je(this,i,u,!1,v)},d.prototype.writeDoubleLE=function(i,u,v){return Rt(this,i,u,!0,v)},d.prototype.writeDoubleBE=function(i,u,v){return Rt(this,i,u,!1,v)},d.prototype.copy=function(i,u,v,R){if(!d.isBuffer(i))throw new TypeError("argument should be a Buffer");if(v||(v=0),R||R===0||(R=this.length),u>=i.length&&(u=i.length),u||(u=0),0<R&&R<v&&(R=v),R===v||i.length===0||this.length===0)return 0;if(0>u)throw new RangeError("targetStart out of bounds");if(0>v||v>=this.length)throw new RangeError("Index out of range");if(0>R)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),i.length-u<R-v&&(R=i.length-u+v);var O=R-v;if(this===i&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(u,v,R);else if(this===i&&v<u&&u<R)for(var U=O-1;0<=U;--U)i[U+u]=this[U+v];else Uint8Array.prototype.set.call(i,this.subarray(v,R),u);return O},d.prototype.fill=function(i,u,v,R){if(typeof i=="string"){if(typeof u=="string"?(R=u,u=0,v=this.length):typeof v=="string"&&(R=v,v=this.length),R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!d.isEncoding(R))throw new TypeError("Unknown encoding: "+R);if(i.length===1){var O=i.charCodeAt(0);(R==="utf8"&&128>O||R==="latin1")&&(i=O)}}else typeof i=="number"&&(i&=255);if(0>u||this.length<u||this.length<v)throw new RangeError("Out of range index");if(v<=u)return this;u>>>=0,v=v===void 0?this.length:v>>>0,i||(i=0);var U;if(typeof i=="number")for(U=u;U<v;++U)this[U]=i;else{var q=d.isBuffer(i)?i:d.from(i,R),se=q.length;if(se===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(U=0;U<v-u;++U)this[U+u]=q[U%se]}return this};var J=/[^+/0-9A-Za-z-_]/g}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:9}],4:[function(r,l,o){(function(n){(function(){function s(){let d;try{d=o.storage.getItem("debug")}catch{}return!d&&typeof n<"u"&&"env"in n&&(d=n.env.DEBUG),d}o.formatArgs=function(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+l.exports.humanize(this.diff),!this.useColors)return;let g="color: "+this.color;d.splice(1,0,g,"color: inherit");let m=0,f=0;d[0].replace(/%[a-zA-Z%]/g,x=>{x==="%%"||(m++,x==="%c"&&(f=m))}),d.splice(f,0,g)},o.save=function(d){try{d?o.storage.setItem("debug",d):o.storage.removeItem("debug")}catch{}},o.load=s,o.useColors=function(){return!!(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},o.storage=(function(){try{return localStorage}catch{}})(),o.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),o.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],o.log=console.debug||console.log||(()=>{}),l.exports=r("./common")(o);let{formatters:p}=l.exports;p.j=function(d){try{return JSON.stringify(d)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}}).call(this)}).call(this,r("_process"))},{"./common":5,_process:12}],5:[function(r,l){l.exports=function(o){function n(d){function g(...x){if(!g.enabled)return;let L=g,w=+new Date,E=w-(m||w);L.diff=E,L.prev=m,L.curr=w,m=w,x[0]=n.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let c=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(y,b)=>{if(y==="%%")return"%";c++;let S=n.formatters[b];if(typeof S=="function"){let A=x[c];y=S.call(L,A),x.splice(c,1),c--}return y}),n.formatArgs.call(L,x),(L.log||n.log).apply(L,x)}let m,f=null;return g.namespace=d,g.useColors=n.useColors(),g.color=n.selectColor(d),g.extend=s,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f===null?n.enabled(d):f,set:x=>{f=x}}),typeof n.init=="function"&&n.init(g),g}function s(d,g){let m=n(this.namespace+(typeof g>"u"?":":g)+d);return m.log=this.log,m}function p(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(d){return d instanceof Error?d.stack||d.message:d},n.disable=function(){let d=[...n.names.map(p),...n.skips.map(p).map(g=>"-"+g)].join(",");return n.enable(""),d},n.enable=function(d){n.save(d),n.names=[],n.skips=[];let g,m=(typeof d=="string"?d:"").split(/[\s,]+/),f=m.length;for(g=0;g<f;g++)m[g]&&(d=m[g].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.substr(1)+"$")):n.names.push(new RegExp("^"+d+"$")))},n.enabled=function(d){if(d[d.length-1]==="*")return!0;let g,m;for(g=0,m=n.skips.length;g<m;g++)if(n.skips[g].test(d))return!1;for(g=0,m=n.names.length;g<m;g++)if(n.names[g].test(d))return!0;return!1},n.humanize=r("ms"),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(o).forEach(d=>{n[d]=o[d]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(d){let g=0;for(let m=0;m<d.length;m++)g=(g<<5)-g+d.charCodeAt(m),g|=0;return n.colors[t(g)%n.colors.length]},n.enable(n.load()),n}},{ms:11}],6:[function(r,l){"use strict";function o(n,s){for(let p in s)Object.defineProperty(n,p,{value:s[p],enumerable:!0,configurable:!0});return n}l.exports=function(n,s,p){if(!n||typeof n=="string")throw new TypeError("Please pass an Error to err-code");p||(p={}),typeof s=="object"&&(p=s,s=""),s&&(p.code=s);try{return o(n,p)}catch{p.message=n.message,p.stack=n.stack;let g=function(){};return g.prototype=Object.create(Object.getPrototypeOf(n)),o(new g,p)}}},{}],7:[function(r,l){"use strict";function o(I){console&&console.warn&&console.warn(I)}function n(){n.init.call(this)}function s(I){if(typeof I!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof I)}function p(I){return I._maxListeners===void 0?n.defaultMaxListeners:I._maxListeners}function d(I,T,N,F){var Y,V,ue;if(s(N),V=I._events,V===void 0?(V=I._events=Object.create(null),I._eventsCount=0):(V.newListener!==void 0&&(I.emit("newListener",T,N.listener?N.listener:N),V=I._events),ue=V[T]),ue===void 0)ue=V[T]=N,++I._eventsCount;else if(typeof ue=="function"?ue=V[T]=F?[N,ue]:[ue,N]:F?ue.unshift(N):ue.push(N),Y=p(I),0<Y&&ue.length>Y&&!ue.warned){ue.warned=!0;var Ce=new Error("Possible EventEmitter memory leak detected. "+ue.length+" "+(T+" listeners added. Use emitter.setMaxListeners() to increase limit"));Ce.name="MaxListenersExceededWarning",Ce.emitter=I,Ce.type=T,Ce.count=ue.length,o(Ce)}return I}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(I,T,N){var F={fired:!1,wrapFn:void 0,target:I,type:T,listener:N},Y=g.bind(F);return Y.listener=N,F.wrapFn=Y,Y}function f(I,T,N){var F=I._events;if(F===void 0)return[];var Y=F[T];return Y===void 0?[]:typeof Y=="function"?N?[Y.listener||Y]:[Y]:N?E(Y):L(Y,Y.length)}function x(I){var T=this._events;if(T!==void 0){var N=T[I];if(typeof N=="function")return 1;if(N!==void 0)return N.length}return 0}function L(I,T){for(var N=Array(T),F=0;F<T;++F)N[F]=I[F];return N}function w(I,T){for(;T+1<I.length;T++)I[T]=I[T+1];I.pop()}function E(I){for(var T=Array(I.length),N=0;N<T.length;++N)T[N]=I[N].listener||I[N];return T}function c(I,T,N){typeof I.on=="function"&&h(I,"error",T,N)}function h(I,T,N,F){if(typeof I.on=="function")F.once?I.once(T,N):I.on(T,N);else if(typeof I.addEventListener=="function")I.addEventListener(T,function Y(V){F.once&&I.removeEventListener(T,Y),N(V)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof I)}var y,b=typeof Reflect=="object"?Reflect:null,S=b&&typeof b.apply=="function"?b.apply:function(I,T,N){return Function.prototype.apply.call(I,T,N)};y=b&&typeof b.ownKeys=="function"?b.ownKeys:Object.getOwnPropertySymbols?function(I){return Object.getOwnPropertyNames(I).concat(Object.getOwnPropertySymbols(I))}:function(I){return Object.getOwnPropertyNames(I)};var A=Number.isNaN||function(I){return I!==I};l.exports=n,l.exports.once=function(I,T){return new Promise(function(N,F){function Y(ue){I.removeListener(T,V),F(ue)}function V(){typeof I.removeListener=="function"&&I.removeListener("error",Y),N([].slice.call(arguments))}h(I,T,V,{once:!0}),T!=="error"&&c(I,Y,{once:!0})})},n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var M=10;Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return M},set:function(I){if(typeof I!="number"||0>I||A(I))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+I+".");M=I}}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(I){if(typeof I!="number"||0>I||A(I))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+I+".");return this._maxListeners=I,this},n.prototype.getMaxListeners=function(){return p(this)},n.prototype.emit=function(I){for(var T=[],N=1;N<arguments.length;N++)T.push(arguments[N]);var F=I==="error",Y=this._events;if(Y!==void 0)F=F&&Y.error===void 0;else if(!F)return!1;if(F){var V;if(0<T.length&&(V=T[0]),V instanceof Error)throw V;var ue=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw ue.context=V,ue}var Ce=Y[I];if(Ce===void 0)return!1;if(typeof Ce=="function")S(Ce,this,T);else for(var We=Ce.length,$=L(Ce,We),N=0;N<We;++N)S($[N],this,T);return!0},n.prototype.addListener=function(I,T){return d(this,I,T,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(I,T){return d(this,I,T,!0)},n.prototype.once=function(I,T){return s(T),this.on(I,m(this,I,T)),this},n.prototype.prependOnceListener=function(I,T){return s(T),this.prependListener(I,m(this,I,T)),this},n.prototype.removeListener=function(I,T){var N,F,Y,V,ue;if(s(T),F=this._events,F===void 0)return this;if(N=F[I],N===void 0)return this;if(N===T||N.listener===T)--this._eventsCount==0?this._events=Object.create(null):(delete F[I],F.removeListener&&this.emit("removeListener",I,N.listener||T));else if(typeof N!="function"){for(Y=-1,V=N.length-1;0<=V;V--)if(N[V]===T||N[V].listener===T){ue=N[V].listener,Y=V;break}if(0>Y)return this;Y===0?N.shift():w(N,Y),N.length===1&&(F[I]=N[0]),F.removeListener!==void 0&&this.emit("removeListener",I,ue||T)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(I){var T,N,F;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[I]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete N[I]),this;if(arguments.length===0){var Y,V=Object.keys(N);for(F=0;F<V.length;++F)Y=V[F],Y!=="removeListener"&&this.removeAllListeners(Y);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=N[I],typeof T=="function")this.removeListener(I,T);else if(T!==void 0)for(F=T.length-1;0<=F;F--)this.removeListener(I,T[F]);return this},n.prototype.listeners=function(I){return f(this,I,!0)},n.prototype.rawListeners=function(I){return f(this,I,!1)},n.listenerCount=function(I,T){return typeof I.listenerCount=="function"?I.listenerCount(T):x.call(I,T)},n.prototype.listenerCount=x,n.prototype.eventNames=function(){return 0<this._eventsCount?y(this._events):[]}},{}],8:[function(r,l){l.exports=function(){if(typeof globalThis>"u")return null;var o={RTCPeerConnection:globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection,RTCSessionDescription:globalThis.RTCSessionDescription||globalThis.mozRTCSessionDescription||globalThis.webkitRTCSessionDescription,RTCIceCandidate:globalThis.RTCIceCandidate||globalThis.mozRTCIceCandidate||globalThis.webkitRTCIceCandidate};return o.RTCPeerConnection?o:null}},{}],9:[function(r,l,o){o.read=function(n,s,p,d,g){var m,f,x=8*g-d-1,L=(1<<x)-1,w=L>>1,E=-7,c=p?g-1:0,h=p?-1:1,y=n[s+c];for(c+=h,m=y&(1<<-E)-1,y>>=-E,E+=x;0<E;m=256*m+n[s+c],c+=h,E-=8);for(f=m&(1<<-E)-1,m>>=-E,E+=d;0<E;f=256*f+n[s+c],c+=h,E-=8);if(m===0)m=1-w;else{if(m===L)return f?NaN:(y?-1:1)*(1/0);f+=a(2,d),m-=w}return(y?-1:1)*f*a(2,m-d)},o.write=function(n,s,p,d,g,m){var f,x,L,w=Math.LN2,E=Math.log,c=8*m-g-1,h=(1<<c)-1,y=h>>1,b=g===23?a(2,-24)-a(2,-77):0,S=d?0:m-1,A=d?1:-1,M=0>s||s===0&&0>1/s?1:0;for(s=t(s),isNaN(s)||s===1/0?(x=isNaN(s)?1:0,f=h):(f=e(E(s)/w),1>s*(L=a(2,-f))&&(f--,L*=2),s+=1<=f+y?b/L:b*a(2,1-y),2<=s*L&&(f++,L/=2),f+y>=h?(x=0,f=h):1<=f+y?(x=(s*L-1)*a(2,g),f+=y):(x=s*a(2,y-1)*a(2,g),f=0));8<=g;n[p+S]=255&x,S+=A,x/=256,g-=8);for(f=f<<g|x,c+=g;0<c;n[p+S]=255&f,S+=A,f/=256,c-=8);n[p+S-A]|=128*M}},{}],10:[function(r,l){l.exports=typeof Object.create=="function"?function(o,n){n&&(o.super_=n,o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:function(o,n){if(n){o.super_=n;var s=function(){};s.prototype=n.prototype,o.prototype=new s,o.prototype.constructor=o}}},{}],11:[function(r,l){var o=Math.round;function n(m){if(m+="",!(100<m.length)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(m);if(f){var x=parseFloat(f[1]),L=(f[2]||"ms").toLowerCase();return L==="years"||L==="year"||L==="yrs"||L==="yr"||L==="y"?315576e5*x:L==="weeks"||L==="week"||L==="w"?6048e5*x:L==="days"||L==="day"||L==="d"?864e5*x:L==="hours"||L==="hour"||L==="hrs"||L==="hr"||L==="h"?36e5*x:L==="minutes"||L==="minute"||L==="mins"||L==="min"||L==="m"?6e4*x:L==="seconds"||L==="second"||L==="secs"||L==="sec"||L==="s"?1e3*x:L==="milliseconds"||L==="millisecond"||L==="msecs"||L==="msec"||L==="ms"?x:void 0}}}function s(m){var f=t(m);return 864e5<=f?o(m/864e5)+"d":36e5<=f?o(m/36e5)+"h":6e4<=f?o(m/6e4)+"m":1e3<=f?o(m/1e3)+"s":m+"ms"}function p(m){var f=t(m);return 864e5<=f?d(m,f,864e5,"day"):36e5<=f?d(m,f,36e5,"hour"):6e4<=f?d(m,f,6e4,"minute"):1e3<=f?d(m,f,1e3,"second"):m+" ms"}function d(m,f,x,L){return o(m/x)+" "+L+(f>=1.5*x?"s":"")}var g=24*(60*6e4);l.exports=function(m,f){f=f||{};var x=typeof m;if(x=="string"&&0<m.length)return n(m);if(x==="number"&&isFinite(m))return f.long?p(m):s(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))}},{}],12:[function(r,l){function o(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function s(b){if(x===setTimeout)return setTimeout(b,0);if((x===o||!x)&&setTimeout)return x=setTimeout,setTimeout(b,0);try{return x(b,0)}catch{try{return x.call(null,b,0)}catch{return x.call(this,b,0)}}}function p(b){if(L===clearTimeout)return clearTimeout(b);if((L===n||!L)&&clearTimeout)return L=clearTimeout,clearTimeout(b);try{return L(b)}catch{try{return L.call(null,b)}catch{return L.call(this,b)}}}function d(){h&&E&&(h=!1,E.length?c=E.concat(c):y=-1,c.length&&g())}function g(){if(!h){var b=s(d);h=!0;for(var S=c.length;S;){for(E=c,c=[];++y<S;)E&&E[y].run();y=-1,S=c.length}E=null,h=!1,p(b)}}function m(b,S){this.fun=b,this.array=S}function f(){}var x,L,w=l.exports={};(function(){try{x=typeof setTimeout=="function"?setTimeout:o}catch{x=o}try{L=typeof clearTimeout=="function"?clearTimeout:n}catch{L=n}})();var E,c=[],h=!1,y=-1;w.nextTick=function(b){var S=Array(arguments.length-1);if(1<arguments.length)for(var A=1;A<arguments.length;A++)S[A-1]=arguments[A];c.push(new m(b,S)),c.length!==1||h||s(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},w.title="browser",w.browser=!0,w.env={},w.argv=[],w.version="",w.versions={},w.on=f,w.addListener=f,w.once=f,w.off=f,w.removeListener=f,w.removeAllListeners=f,w.emit=f,w.prependListener=f,w.prependOnceListener=f,w.listeners=function(){return[]},w.binding=function(){throw new Error("process.binding is not supported")},w.cwd=function(){return"/"},w.chdir=function(){throw new Error("process.chdir is not supported")},w.umask=function(){return 0}},{}],13:[function(r,l){(function(o){(function(){let n;l.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window>"u"?o:window):s=>(n||(n=Promise.resolve())).then(s).catch(p=>setTimeout(()=>{throw p},0))}).call(this)}).call(this,typeof global>"u"?typeof self>"u"?typeof window>"u"?{}:window:self:global)},{}],14:[function(r,l){(function(o,n){(function(){"use strict";var s=r("safe-buffer").Buffer,p=n.crypto||n.msCrypto;l.exports=p&&p.getRandomValues?function(d,g){if(d>4294967295)throw new RangeError("requested too many random bytes");var m=s.allocUnsafe(d);if(0<d)if(65536<d)for(var f=0;f<d;f+=65536)p.getRandomValues(m.slice(f,f+65536));else p.getRandomValues(m);return typeof g=="function"?o.nextTick(function(){g(null,m)}):m}:function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
10
|
+
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,r("_process"),typeof global>"u"?typeof self>"u"?typeof window>"u"?{}:window:self:global)},{_process:12,"safe-buffer":30}],15:[function(r,l){"use strict";function o(f,x){f.prototype=Object.create(x.prototype),f.prototype.constructor=f,f.__proto__=x}function n(f,x,L){function w(c,h,y){return typeof x=="string"?x:x(c,h,y)}L||(L=Error);var E=(function(c){function h(y,b,S){return c.call(this,w(y,b,S))||this}return o(h,c),h})(L);E.prototype.name=L.name,E.prototype.code=f,m[f]=E}function s(f,x){if(Array.isArray(f)){var L=f.length;return f=f.map(function(w){return w+""}),2<L?"one of ".concat(x," ").concat(f.slice(0,L-1).join(", "),", or ")+f[L-1]:L===2?"one of ".concat(x," ").concat(f[0]," or ").concat(f[1]):"of ".concat(x," ").concat(f[0])}return"of ".concat(x," ").concat(f+"")}function p(f,x,L){return f.substr(!L||0>L?0:+L,x.length)===x}function d(f,x,L){return(L===void 0||L>f.length)&&(L=f.length),f.substring(L-x.length,L)===x}function g(f,x,L){return typeof L!="number"&&(L=0),!(L+x.length>f.length)&&f.indexOf(x,L)!==-1}var m={};n("ERR_INVALID_OPT_VALUE",function(f,x){return'The value "'+x+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,x,L){var w;typeof x=="string"&&p(x,"not ")?(w="must not be",x=x.replace(/^not /,"")):w="must be";var E;if(d(f," argument"))E="The ".concat(f," ").concat(w," ").concat(s(x,"type"));else{var c=g(f,".")?"property":"argument";E='The "'.concat(f,'" ').concat(c," ").concat(w," ").concat(s(x,"type"))}return E+=". Received type ".concat(typeof L),E},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),l.exports.codes=m},{}],16:[function(r,l){(function(o){(function(){"use strict";function n(w){return this instanceof n?(g.call(this,w),m.call(this,w),this.allowHalfOpen=!0,void(w&&(w.readable===!1&&(this.readable=!1),w.writable===!1&&(this.writable=!1),w.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s))))):new n(w)}function s(){this._writableState.ended||o.nextTick(p,this)}function p(w){w.end()}var d=Object.keys||function(w){var E=[];for(var c in w)E.push(c);return E};l.exports=n;var g=r("./_stream_readable"),m=r("./_stream_writable");r("inherits")(n,g);for(var f,x=d(m.prototype),L=0;L<x.length;L++)f=x[L],n.prototype[f]||(n.prototype[f]=m.prototype[f]);Object.defineProperty(n.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(n.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(n.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(n.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(w){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=w,this._writableState.destroyed=w)}})}).call(this)}).call(this,r("_process"))},{"./_stream_readable":18,"./_stream_writable":20,_process:12,inherits:10}],17:[function(r,l){"use strict";function o(s){return this instanceof o?void n.call(this,s):new o(s)}l.exports=o;var n=r("./_stream_transform");r("inherits")(o,n),o.prototype._transform=function(s,p,d){d(null,s)}},{"./_stream_transform":19,inherits:10}],18:[function(r,l){(function(o,n){(function(){"use strict";function s(i){return we.from(i)}function p(i){return we.isBuffer(i)||i instanceof be}function d(i,u,v){return typeof i.prependListener=="function"?i.prependListener(u,v):void(i._events&&i._events[u]?Array.isArray(i._events[u])?i._events[u].unshift(v):i._events[u]=[v,i._events[u]]:i.on(u,v))}function g(i,u,v){We=We||r("./_stream_duplex"),i=i||{},typeof v!="boolean"&&(v=u instanceof We),this.objectMode=!!i.objectMode,v&&(this.objectMode=this.objectMode||!!i.readableObjectMode),this.highWaterMark=ma(this,i,"readableHighWaterMark",v),this.buffer=new Ft,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=i.emitClose!==!1,this.autoDestroy=!!i.autoDestroy,this.destroyed=!1,this.defaultEncoding=i.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,i.encoding&&(!je&&(je=r("string_decoder/").StringDecoder),this.decoder=new je(i.encoding),this.encoding=i.encoding)}function m(i){if(We=We||r("./_stream_duplex"),!(this instanceof m))return new m(i);var u=this instanceof We;this._readableState=new g(i,this,u),this.readable=!0,i&&(typeof i.read=="function"&&(this._read=i.read),typeof i.destroy=="function"&&(this._destroy=i.destroy)),It.call(this)}function f(i,u,v,R,O){$("readableAddChunk",u);var U=i._readableState;if(u===null)U.reading=!1,c(i,U);else{var q;if(O||(q=L(U,u)),q)X(i,q);else if(!(U.objectMode||u&&0<u.length))R||(U.reading=!1,b(i,U));else if(typeof u=="string"||U.objectMode||Object.getPrototypeOf(u)===we.prototype||(u=s(u)),R)U.endEmitted?X(i,new H):x(i,U,u,!0);else if(U.ended)X(i,new D);else{if(U.destroyed)return!1;U.reading=!1,U.decoder&&!v?(u=U.decoder.write(u),U.objectMode||u.length!==0?x(i,U,u,!1):b(i,U)):x(i,U,u,!1)}}return!U.ended&&(U.length<U.highWaterMark||U.length===0)}function x(i,u,v,R){u.flowing&&u.length===0&&!u.sync?(u.awaitDrain=0,i.emit("data",v)):(u.length+=u.objectMode?1:v.length,R?u.buffer.unshift(v):u.buffer.push(v),u.needReadable&&h(i)),b(i,u)}function L(i,u){var v;return p(u)||typeof u=="string"||u===void 0||i.objectMode||(v=new ge("chunk",["string","Buffer","Uint8Array"],u)),v}function w(i){return 1073741824<=i?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i}function E(i,u){return 0>=i||u.length===0&&u.ended?0:u.objectMode?1:i===i?(i>u.highWaterMark&&(u.highWaterMark=w(i)),i<=u.length?i:u.ended?u.length:(u.needReadable=!0,0)):u.flowing&&u.length?u.buffer.head.data.length:u.length}function c(i,u){if($("onEofChunk"),!u.ended){if(u.decoder){var v=u.decoder.end();v&&v.length&&(u.buffer.push(v),u.length+=u.objectMode?1:v.length)}u.ended=!0,u.sync?h(i):(u.needReadable=!1,!u.emittedReadable&&(u.emittedReadable=!0,y(i)))}}function h(i){var u=i._readableState;$("emitReadable",u.needReadable,u.emittedReadable),u.needReadable=!1,u.emittedReadable||($("emitReadable",u.flowing),u.emittedReadable=!0,o.nextTick(y,i))}function y(i){var u=i._readableState;$("emitReadable_",u.destroyed,u.length,u.ended),!u.destroyed&&(u.length||u.ended)&&(i.emit("readable"),u.emittedReadable=!1),u.needReadable=!u.flowing&&!u.ended&&u.length<=u.highWaterMark,F(i)}function b(i,u){u.readingMore||(u.readingMore=!0,o.nextTick(S,i,u))}function S(i,u){for(;!u.reading&&!u.ended&&(u.length<u.highWaterMark||u.flowing&&u.length===0);){var v=u.length;if($("maybeReadMore read 0"),i.read(0),v===u.length)break}u.readingMore=!1}function A(i){return function(){var u=i._readableState;$("pipeOnDrain",u.awaitDrain),u.awaitDrain&&u.awaitDrain--,u.awaitDrain===0&&wt(i,"data")&&(u.flowing=!0,F(i))}}function M(i){var u=i._readableState;u.readableListening=0<i.listenerCount("readable"),u.resumeScheduled&&!u.paused?u.flowing=!0:0<i.listenerCount("data")&&i.resume()}function I(i){$("readable nexttick read 0"),i.read(0)}function T(i,u){u.resumeScheduled||(u.resumeScheduled=!0,o.nextTick(N,i,u))}function N(i,u){$("resume",u.reading),u.reading||i.read(0),u.resumeScheduled=!1,i.emit("resume"),F(i),u.flowing&&!u.reading&&i.read(0)}function F(i){var u=i._readableState;for($("flow",u.flowing);u.flowing&&i.read()!==null;);}function Y(i,u){if(u.length===0)return null;var v;return u.objectMode?v=u.buffer.shift():!i||i>=u.length?(v=u.decoder?u.buffer.join(""):u.buffer.length===1?u.buffer.first():u.buffer.concat(u.length),u.buffer.clear()):v=u.buffer.consume(i,u.decoder),v}function V(i){var u=i._readableState;$("endReadable",u.endEmitted),u.endEmitted||(u.ended=!0,o.nextTick(ue,u,i))}function ue(i,u){if($("endReadableNT",i.endEmitted,i.length),!i.endEmitted&&i.length===0&&(i.endEmitted=!0,u.readable=!1,u.emit("end"),i.autoDestroy)){var v=u._writableState;(!v||v.autoDestroy&&v.finished)&&u.destroy()}}function Ce(i,u){for(var v=0,R=i.length;v<R;v++)if(i[v]===u)return v;return-1}l.exports=m;var We;m.ReadableState=g;var $,Qe=r("events").EventEmitter,wt=function(i,u){return i.listeners(u).length},It=r("./internal/streams/stream"),we=r("buffer").Buffer,be=n.Uint8Array||function(){},Ne=r("util");$=Ne&&Ne.debuglog?Ne.debuglog("stream"):function(){};var je,Rt,ha,Ft=r("./internal/streams/buffer_list"),bt=r("./internal/streams/destroy"),_a=r("./internal/streams/state"),ma=_a.getHighWaterMark,et=r("../errors").codes,ge=et.ERR_INVALID_ARG_TYPE,D=et.ERR_STREAM_PUSH_AFTER_EOF,B=et.ERR_METHOD_NOT_IMPLEMENTED,H=et.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("inherits")(m,It);var X=bt.errorOrDestroy,J=["error","close","destroy","pause","resume"];Object.defineProperty(m.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(i){this._readableState&&(this._readableState.destroyed=i)}}),m.prototype.destroy=bt.destroy,m.prototype._undestroy=bt.undestroy,m.prototype._destroy=function(i,u){u(i)},m.prototype.push=function(i,u){var v,R=this._readableState;return R.objectMode?v=!0:typeof i=="string"&&(u=u||R.defaultEncoding,u!==R.encoding&&(i=we.from(i,u),u=""),v=!0),f(this,i,u,!1,v)},m.prototype.unshift=function(i){return f(this,i,null,!0,!1)},m.prototype.isPaused=function(){return this._readableState.flowing===!1},m.prototype.setEncoding=function(i){je||(je=r("string_decoder/").StringDecoder);var u=new je(i);this._readableState.decoder=u,this._readableState.encoding=this._readableState.decoder.encoding;for(var v=this._readableState.buffer.head,R="";v!==null;)R+=u.write(v.data),v=v.next;return this._readableState.buffer.clear(),R!==""&&this._readableState.buffer.push(R),this._readableState.length=R.length,this},m.prototype.read=function(i){$("read",i),i=parseInt(i,10);var u=this._readableState,v=i;if(i!==0&&(u.emittedReadable=!1),i===0&&u.needReadable&&((u.highWaterMark===0?0<u.length:u.length>=u.highWaterMark)||u.ended))return $("read: emitReadable",u.length,u.ended),u.length===0&&u.ended?V(this):h(this),null;if(i=E(i,u),i===0&&u.ended)return u.length===0&&V(this),null;var R=u.needReadable;$("need readable",R),(u.length===0||u.length-i<u.highWaterMark)&&(R=!0,$("length less than watermark",R)),u.ended||u.reading?(R=!1,$("reading or ended",R)):R&&($("do read"),u.reading=!0,u.sync=!0,u.length===0&&(u.needReadable=!0),this._read(u.highWaterMark),u.sync=!1,!u.reading&&(i=E(v,u)));var O;return O=0<i?Y(i,u):null,O===null?(u.needReadable=u.length<=u.highWaterMark,i=0):(u.length-=i,u.awaitDrain=0),u.length===0&&(!u.ended&&(u.needReadable=!0),v!==i&&u.ended&&V(this)),O!==null&&this.emit("data",O),O},m.prototype._read=function(){X(this,new B("_read()"))},m.prototype.pipe=function(i,u){function v(pt,nt){$("onunpipe"),pt===pe&&nt&&nt.hasUnpiped===!1&&(nt.hasUnpiped=!0,O())}function R(){$("onend"),i.end()}function O(){$("cleanup"),i.removeListener("close",se),i.removeListener("finish",Re),i.removeListener("drain",$t),i.removeListener("error",q),i.removeListener("unpipe",v),pe.removeListener("end",R),pe.removeListener("end",Le),pe.removeListener("data",U),Lt=!0,ye.awaitDrain&&(!i._writableState||i._writableState.needDrain)&&$t()}function U(pt){$("ondata");var nt=i.write(pt);$("dest.write",nt),nt===!1&&((ye.pipesCount===1&&ye.pipes===i||1<ye.pipesCount&&Ce(ye.pipes,i)!==-1)&&!Lt&&($("false write response, pause",ye.awaitDrain),ye.awaitDrain++),pe.pause())}function q(pt){$("onerror",pt),Le(),i.removeListener("error",q),wt(i,"error")===0&&X(i,pt)}function se(){i.removeListener("finish",Re),Le()}function Re(){$("onfinish"),i.removeListener("close",se),Le()}function Le(){$("unpipe"),pe.unpipe(i)}var pe=this,ye=this._readableState;switch(ye.pipesCount){case 0:ye.pipes=i;break;case 1:ye.pipes=[ye.pipes,i];break;default:ye.pipes.push(i)}ye.pipesCount+=1,$("pipe count=%d opts=%j",ye.pipesCount,u);var ga=(!u||u.end!==!1)&&i!==o.stdout&&i!==o.stderr,ee=ga?R:Le;ye.endEmitted?o.nextTick(ee):pe.once("end",ee),i.on("unpipe",v);var $t=A(pe);i.on("drain",$t);var Lt=!1;return pe.on("data",U),d(i,"error",q),i.once("close",se),i.once("finish",Re),i.emit("pipe",pe),ye.flowing||($("pipe resume"),pe.resume()),i},m.prototype.unpipe=function(i){var u=this._readableState,v={hasUnpiped:!1};if(u.pipesCount===0)return this;if(u.pipesCount===1)return i&&i!==u.pipes?this:(i||(i=u.pipes),u.pipes=null,u.pipesCount=0,u.flowing=!1,i&&i.emit("unpipe",this,v),this);if(!i){var R=u.pipes,O=u.pipesCount;u.pipes=null,u.pipesCount=0,u.flowing=!1;for(var U=0;U<O;U++)R[U].emit("unpipe",this,{hasUnpiped:!1});return this}var q=Ce(u.pipes,i);return q===-1?this:(u.pipes.splice(q,1),u.pipesCount-=1,u.pipesCount===1&&(u.pipes=u.pipes[0]),i.emit("unpipe",this,v),this)},m.prototype.on=function(i,u){var v=It.prototype.on.call(this,i,u),R=this._readableState;return i==="data"?(R.readableListening=0<this.listenerCount("readable"),R.flowing!==!1&&this.resume()):i=="readable"&&!R.endEmitted&&!R.readableListening&&(R.readableListening=R.needReadable=!0,R.flowing=!1,R.emittedReadable=!1,$("on readable",R.length,R.reading),R.length?h(this):!R.reading&&o.nextTick(I,this)),v},m.prototype.addListener=m.prototype.on,m.prototype.removeListener=function(i,u){var v=It.prototype.removeListener.call(this,i,u);return i==="readable"&&o.nextTick(M,this),v},m.prototype.removeAllListeners=function(i){var u=It.prototype.removeAllListeners.apply(this,arguments);return(i==="readable"||i===void 0)&&o.nextTick(M,this),u},m.prototype.resume=function(){var i=this._readableState;return i.flowing||($("resume"),i.flowing=!i.readableListening,T(this,i)),i.paused=!1,this},m.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},m.prototype.wrap=function(i){var u=this,v=this._readableState,R=!1;for(var O in i.on("end",function(){if($("wrapped end"),v.decoder&&!v.ended){var q=v.decoder.end();q&&q.length&&u.push(q)}u.push(null)}),i.on("data",function(q){if($("wrapped data"),v.decoder&&(q=v.decoder.write(q)),!(v.objectMode&&q==null)&&(v.objectMode||q&&q.length)){var se=u.push(q);se||(R=!0,i.pause())}}),i)this[O]===void 0&&typeof i[O]=="function"&&(this[O]=(function(q){return function(){return i[q].apply(i,arguments)}})(O));for(var U=0;U<J.length;U++)i.on(J[U],this.emit.bind(this,J[U]));return this._read=function(q){$("wrapped _read",q),R&&(R=!1,i.resume())},this},typeof Symbol=="function"&&(m.prototype[Symbol.asyncIterator]=function(){return Rt===void 0&&(Rt=r("./internal/streams/async_iterator")),Rt(this)}),Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(m.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(m.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(i){this._readableState&&(this._readableState.flowing=i)}}),m._fromList=Y,Object.defineProperty(m.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(m.from=function(i,u){return ha===void 0&&(ha=r("./internal/streams/from")),ha(m,i,u)})}).call(this)}).call(this,r("_process"),typeof global>"u"?typeof self>"u"?typeof window>"u"?{}:window:self:global)},{"../errors":15,"./_stream_duplex":16,"./internal/streams/async_iterator":21,"./internal/streams/buffer_list":22,"./internal/streams/destroy":23,"./internal/streams/from":25,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,events:7,inherits:10,"string_decoder/":31,util:2}],19:[function(r,l){"use strict";function o(w,E){var c=this._transformState;c.transforming=!1;var h=c.writecb;if(h===null)return this.emit("error",new m);c.writechunk=null,c.writecb=null,E!=null&&this.push(E),h(w);var y=this._readableState;y.reading=!1,(y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}function n(w){return this instanceof n?(L.call(this,w),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,w&&(typeof w.transform=="function"&&(this._transform=w.transform),typeof w.flush=="function"&&(this._flush=w.flush)),void this.on("prefinish",s)):new n(w)}function s(){var w=this;typeof this._flush!="function"||this._readableState.destroyed?p(this,null,null):this._flush(function(E,c){p(w,E,c)})}function p(w,E,c){if(E)return w.emit("error",E);if(c!=null&&w.push(c),w._writableState.length)throw new x;if(w._transformState.transforming)throw new f;return w.push(null)}l.exports=n;var d=r("../errors").codes,g=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,f=d.ERR_TRANSFORM_ALREADY_TRANSFORMING,x=d.ERR_TRANSFORM_WITH_LENGTH_0,L=r("./_stream_duplex");r("inherits")(n,L),n.prototype.push=function(w,E){return this._transformState.needTransform=!1,L.prototype.push.call(this,w,E)},n.prototype._transform=function(w,E,c){c(new g("_transform()"))},n.prototype._write=function(w,E,c){var h=this._transformState;if(h.writecb=c,h.writechunk=w,h.writeencoding=E,!h.transforming){var y=this._readableState;(h.needTransform||y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}},n.prototype._read=function(){var w=this._transformState;w.writechunk===null||w.transforming?w.needTransform=!0:(w.transforming=!0,this._transform(w.writechunk,w.writeencoding,w.afterTransform))},n.prototype._destroy=function(w,E){L.prototype._destroy.call(this,w,function(c){E(c)})}},{"../errors":15,"./_stream_duplex":16,inherits:10}],20:[function(r,l){(function(o,n){(function(){"use strict";function s(D){var B=this;this.next=null,this.entry=null,this.finish=function(){V(B,D)}}function p(D){return $.from(D)}function d(D){return $.isBuffer(D)||D instanceof Qe}function g(){}function m(D,B,H){ue=ue||r("./_stream_duplex"),D=D||{},typeof H!="boolean"&&(H=B instanceof ue),this.objectMode=!!D.objectMode,H&&(this.objectMode=this.objectMode||!!D.writableObjectMode),this.highWaterMark=we(this,D,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var X=D.decodeStrings===!1;this.decodeStrings=!X,this.defaultEncoding=D.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(J){b(B,J)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function f(D){ue=ue||r("./_stream_duplex");var B=this instanceof ue;return B||ge.call(f,this)?(this._writableState=new m(D,this,B),this.writable=!0,D&&(typeof D.write=="function"&&(this._write=D.write),typeof D.writev=="function"&&(this._writev=D.writev),typeof D.destroy=="function"&&(this._destroy=D.destroy),typeof D.final=="function"&&(this._final=D.final)),void We.call(this)):new f(D)}function x(D,B){var H=new _a;et(D,H),o.nextTick(B,H)}function L(D,B,H,X){var J;return H===null?J=new bt:typeof H!="string"&&!B.objectMode&&(J=new Ne("chunk",["string","Buffer"],H)),!J||(et(D,J),o.nextTick(X,J),!1)}function w(D,B,H){return D.objectMode||D.decodeStrings===!1||typeof B!="string"||(B=$.from(B,H)),B}function E(D,B,H,X,J,i){if(!H){var u=w(B,X,J);X!==u&&(H=!0,J="buffer",X=u)}var v=B.objectMode?1:X.length;B.length+=v;var R=B.length<B.highWaterMark;if(R||(B.needDrain=!0),B.writing||B.corked){var O=B.lastBufferedRequest;B.lastBufferedRequest={chunk:X,encoding:J,isBuf:H,callback:i,next:null},O?O.next=B.lastBufferedRequest:B.bufferedRequest=B.lastBufferedRequest,B.bufferedRequestCount+=1}else c(D,B,!1,v,X,J,i);return R}function c(D,B,H,X,J,i,u){B.writelen=X,B.writecb=u,B.writing=!0,B.sync=!0,B.destroyed?B.onwrite(new Ft("write")):H?D._writev(J,B.onwrite):D._write(J,i,B.onwrite),B.sync=!1}function h(D,B,H,X,J){--B.pendingcb,H?(o.nextTick(J,X),o.nextTick(F,D,B),D._writableState.errorEmitted=!0,et(D,X)):(J(X),D._writableState.errorEmitted=!0,et(D,X),F(D,B))}function y(D){D.writing=!1,D.writecb=null,D.length-=D.writelen,D.writelen=0}function b(D,B){var H=D._writableState,X=H.sync,J=H.writecb;if(typeof J!="function")throw new Rt;if(y(H),B)h(D,H,X,B,J);else{var i=I(H)||D.destroyed;i||H.corked||H.bufferProcessing||!H.bufferedRequest||M(D,H),X?o.nextTick(S,D,H,i,J):S(D,H,i,J)}}function S(D,B,H,X){H||A(D,B),B.pendingcb--,X(),F(D,B)}function A(D,B){B.length===0&&B.needDrain&&(B.needDrain=!1,D.emit("drain"))}function M(D,B){B.bufferProcessing=!0;var H=B.bufferedRequest;if(D._writev&&H&&H.next){var X=B.bufferedRequestCount,J=Array(X),i=B.corkedRequestsFree;i.entry=H;for(var u=0,v=!0;H;)J[u]=H,H.isBuf||(v=!1),H=H.next,u+=1;J.allBuffers=v,c(D,B,!0,B.length,J,"",i.finish),B.pendingcb++,B.lastBufferedRequest=null,i.next?(B.corkedRequestsFree=i.next,i.next=null):B.corkedRequestsFree=new s(B),B.bufferedRequestCount=0}else{for(;H;){var R=H.chunk,O=H.encoding,U=H.callback,q=B.objectMode?1:R.length;if(c(D,B,!1,q,R,O,U),H=H.next,B.bufferedRequestCount--,B.writing)break}H===null&&(B.lastBufferedRequest=null)}B.bufferedRequest=H,B.bufferProcessing=!1}function I(D){return D.ending&&D.length===0&&D.bufferedRequest===null&&!D.finished&&!D.writing}function T(D,B){D._final(function(H){B.pendingcb--,H&&et(D,H),B.prefinished=!0,D.emit("prefinish"),F(D,B)})}function N(D,B){B.prefinished||B.finalCalled||(typeof D._final!="function"||B.destroyed?(B.prefinished=!0,D.emit("prefinish")):(B.pendingcb++,B.finalCalled=!0,o.nextTick(T,D,B)))}function F(D,B){var H=I(B);if(H&&(N(D,B),B.pendingcb===0&&(B.finished=!0,D.emit("finish"),B.autoDestroy))){var X=D._readableState;(!X||X.autoDestroy&&X.endEmitted)&&D.destroy()}return H}function Y(D,B,H){B.ending=!0,F(D,B),H&&(B.finished?o.nextTick(H):D.once("finish",H)),B.ended=!0,D.writable=!1}function V(D,B,H){var X=D.entry;for(D.entry=null;X;){var J=X.callback;B.pendingcb--,J(H),X=X.next}B.corkedRequestsFree.next=D}l.exports=f;var ue;f.WritableState=m;var Ce={deprecate:r("util-deprecate")},We=r("./internal/streams/stream"),$=r("buffer").Buffer,Qe=n.Uint8Array||function(){},wt=r("./internal/streams/destroy"),It=r("./internal/streams/state"),we=It.getHighWaterMark,be=r("../errors").codes,Ne=be.ERR_INVALID_ARG_TYPE,je=be.ERR_METHOD_NOT_IMPLEMENTED,Rt=be.ERR_MULTIPLE_CALLBACK,ha=be.ERR_STREAM_CANNOT_PIPE,Ft=be.ERR_STREAM_DESTROYED,bt=be.ERR_STREAM_NULL_VALUES,_a=be.ERR_STREAM_WRITE_AFTER_END,ma=be.ERR_UNKNOWN_ENCODING,et=wt.errorOrDestroy;r("inherits")(f,We),m.prototype.getBuffer=function(){for(var D=this.bufferedRequest,B=[];D;)B.push(D),D=D.next;return B},(function(){try{Object.defineProperty(m.prototype,"buffer",{get:Ce.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ge;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ge=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(D){return!!ge.call(this,D)||this===f&&D&&D._writableState instanceof m}})):ge=function(D){return D instanceof this},f.prototype.pipe=function(){et(this,new ha)},f.prototype.write=function(D,B,H){var X=this._writableState,J=!1,i=!X.objectMode&&d(D);return i&&!$.isBuffer(D)&&(D=p(D)),typeof B=="function"&&(H=B,B=null),i?B="buffer":!B&&(B=X.defaultEncoding),typeof H!="function"&&(H=g),X.ending?x(this,H):(i||L(this,X,D,H))&&(X.pendingcb++,J=E(this,X,i,D,B,H)),J},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var D=this._writableState;D.corked&&(D.corked--,!D.writing&&!D.corked&&!D.bufferProcessing&&D.bufferedRequest&&M(this,D))},f.prototype.setDefaultEncoding=function(D){if(typeof D=="string"&&(D=D.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((D+"").toLowerCase())))throw new ma(D);return this._writableState.defaultEncoding=D,this},Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),f.prototype._write=function(D,B,H){H(new je("_write()"))},f.prototype._writev=null,f.prototype.end=function(D,B,H){var X=this._writableState;return typeof D=="function"?(H=D,D=null,B=null):typeof B=="function"&&(H=B,B=null),D!=null&&this.write(D,B),X.corked&&(X.corked=1,this.uncork()),X.ending||Y(this,X,H),this},Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(D){this._writableState&&(this._writableState.destroyed=D)}}),f.prototype.destroy=wt.destroy,f.prototype._undestroy=wt.undestroy,f.prototype._destroy=function(D,B){B(D)}}).call(this)}).call(this,r("_process"),typeof global>"u"?typeof self>"u"?typeof window>"u"?{}:window:self:global)},{"../errors":15,"./_stream_duplex":16,"./internal/streams/destroy":23,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,inherits:10,"util-deprecate":32}],21:[function(r,l){(function(o){(function(){"use strict";function n(A,M,I){return M in A?Object.defineProperty(A,M,{value:I,enumerable:!0,configurable:!0,writable:!0}):A[M]=I,A}function s(A,M){return{value:A,done:M}}function p(A){var M=A[x];if(M!==null){var I=A[y].read();I!==null&&(A[c]=null,A[x]=null,A[L]=null,M(s(I,!1)))}}function d(A){o.nextTick(p,A)}function g(A,M){return function(I,T){A.then(function(){return M[E]?void I(s(void 0,!0)):void M[h](I,T)},T)}}var m,f=r("./end-of-stream"),x=Symbol("lastResolve"),L=Symbol("lastReject"),w=Symbol("error"),E=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),y=Symbol("stream"),b=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((m={get stream(){return this[y]},next:function(){var A=this,M=this[w];if(M!==null)return Promise.reject(M);if(this[E])return Promise.resolve(s(void 0,!0));if(this[y].destroyed)return new Promise(function(F,Y){o.nextTick(function(){A[w]?Y(A[w]):F(s(void 0,!0))})});var I,T=this[c];if(T)I=new Promise(g(T,this));else{var N=this[y].read();if(N!==null)return Promise.resolve(s(N,!1));I=new Promise(this[h])}return this[c]=I,I}},n(m,Symbol.asyncIterator,function(){return this}),n(m,"return",function(){var A=this;return new Promise(function(M,I){A[y].destroy(null,function(T){return T?void I(T):void M(s(void 0,!0))})})}),m),b);l.exports=function(A){var M,I=Object.create(S,(M={},n(M,y,{value:A,writable:!0}),n(M,x,{value:null,writable:!0}),n(M,L,{value:null,writable:!0}),n(M,w,{value:null,writable:!0}),n(M,E,{value:A._readableState.endEmitted,writable:!0}),n(M,h,{value:function(T,N){var F=I[y].read();F?(I[c]=null,I[x]=null,I[L]=null,T(s(F,!1))):(I[x]=T,I[L]=N)},writable:!0}),M));return I[c]=null,f(A,function(T){if(T&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=I[L];return N!==null&&(I[c]=null,I[x]=null,I[L]=null,N(T)),void(I[w]=T)}var F=I[x];F!==null&&(I[c]=null,I[x]=null,I[L]=null,F(s(void 0,!0))),I[E]=!0}),A.on("readable",d.bind(null,I)),I}}).call(this)}).call(this,r("_process"))},{"./end-of-stream":24,_process:12}],22:[function(r,l){"use strict";function o(c,h){var y=Object.keys(c);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(c);h&&(b=b.filter(function(S){return Object.getOwnPropertyDescriptor(c,S).enumerable})),y.push.apply(y,b)}return y}function n(c){for(var h,y=1;y<arguments.length;y++)h=arguments[y]==null?{}:arguments[y],y%2?o(Object(h),!0).forEach(function(b){s(c,b,h[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(h)):o(Object(h)).forEach(function(b){Object.defineProperty(c,b,Object.getOwnPropertyDescriptor(h,b))});return c}function s(c,h,y){return h in c?Object.defineProperty(c,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):c[h]=y,c}function p(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){for(var y,b=0;b<h.length;b++)y=h[b],y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(c,y.key,y)}function g(c,h,y){return h&&d(c.prototype,h),y&&d(c,y),c}function m(c,h,y){x.prototype.copy.call(c,h,y)}var f=r("buffer"),x=f.Buffer,L=r("util"),w=L.inspect,E=w&&w.custom||"inspect";l.exports=(function(){function c(){p(this,c),this.head=null,this.tail=null,this.length=0}return g(c,[{key:"push",value:function(h){var y={data:h,next:null};0<this.length?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(h){var y={data:h,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var y=this.head,b=""+y.data;y=y.next;)b+=h+y.data;return b}},{key:"concat",value:function(h){if(this.length===0)return x.alloc(0);for(var y=x.allocUnsafe(h>>>0),b=this.head,S=0;b;)m(b.data,y,S),S+=b.data.length,b=b.next;return y}},{key:"consume",value:function(h,y){var b;return h<this.head.data.length?(b=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):h===this.head.data.length?b=this.shift():b=y?this._getString(h):this._getBuffer(h),b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var y=this.head,b=1,S=y.data;for(h-=S.length;y=y.next;){var A=y.data,M=h>A.length?A.length:h;if(S+=M===A.length?A:A.slice(0,h),h-=M,h===0){M===A.length?(++b,this.head=y.next?y.next:this.tail=null):(this.head=y,y.data=A.slice(M));break}++b}return this.length-=b,S}},{key:"_getBuffer",value:function(h){var y=x.allocUnsafe(h),b=this.head,S=1;for(b.data.copy(y),h-=b.data.length;b=b.next;){var A=b.data,M=h>A.length?A.length:h;if(A.copy(y,y.length-h,0,M),h-=M,h===0){M===A.length?(++S,this.head=b.next?b.next:this.tail=null):(this.head=b,b.data=A.slice(M));break}++S}return this.length-=S,y}},{key:E,value:function(h,y){return w(this,n({},y,{depth:0,customInspect:!1}))}}]),c})()},{buffer:3,util:2}],23:[function(r,l){(function(o){(function(){"use strict";function n(d,g){p(d,g),s(d)}function s(d){d._writableState&&!d._writableState.emitClose||d._readableState&&!d._readableState.emitClose||d.emit("close")}function p(d,g){d.emit("error",g)}l.exports={destroy:function(d,g){var m=this,f=this._readableState&&this._readableState.destroyed,x=this._writableState&&this._writableState.destroyed;return f||x?(g?g(d):d&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,o.nextTick(p,this,d)):o.nextTick(p,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(L){!g&&L?m._writableState?m._writableState.errorEmitted?o.nextTick(s,m):(m._writableState.errorEmitted=!0,o.nextTick(n,m,L)):o.nextTick(n,m,L):g?(o.nextTick(s,m),g(L)):o.nextTick(s,m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(d,g){var m=d._readableState,f=d._writableState;m&&m.autoDestroy||f&&f.autoDestroy?d.destroy(g):d.emit("error",g)}}}).call(this)}).call(this,r("_process"))},{_process:12}],24:[function(r,l){"use strict";function o(g){var m=!1;return function(){if(!m){m=!0;for(var f=arguments.length,x=Array(f),L=0;L<f;L++)x[L]=arguments[L];g.apply(this,x)}}}function n(){}function s(g){return g.setHeader&&typeof g.abort=="function"}function p(g,m,f){if(typeof m=="function")return p(g,null,m);m||(m={}),f=o(f||n);var x=m.readable||m.readable!==!1&&g.readable,L=m.writable||m.writable!==!1&&g.writable,w=function(){g.writable||c()},E=g._writableState&&g._writableState.finished,c=function(){L=!1,E=!0,x||f.call(g)},h=g._readableState&&g._readableState.endEmitted,y=function(){x=!1,h=!0,L||f.call(g)},b=function(M){f.call(g,M)},S=function(){var M;return x&&!h?(g._readableState&&g._readableState.ended||(M=new d),f.call(g,M)):L&&!E?(g._writableState&&g._writableState.ended||(M=new d),f.call(g,M)):void 0},A=function(){g.req.on("finish",c)};return s(g)?(g.on("complete",c),g.on("abort",S),g.req?A():g.on("request",A)):L&&!g._writableState&&(g.on("end",w),g.on("close",w)),g.on("end",y),g.on("finish",c),m.error!==!1&&g.on("error",b),g.on("close",S),function(){g.removeListener("complete",c),g.removeListener("abort",S),g.removeListener("request",A),g.req&&g.req.removeListener("finish",c),g.removeListener("end",w),g.removeListener("close",w),g.removeListener("finish",c),g.removeListener("end",y),g.removeListener("error",b),g.removeListener("close",S)}}var d=r("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;l.exports=p},{"../../../errors":15}],25:[function(r,l){l.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],26:[function(r,l){"use strict";function o(E){var c=!1;return function(){c||(c=!0,E.apply(void 0,arguments))}}function n(E){if(E)throw E}function s(E){return E.setHeader&&typeof E.abort=="function"}function p(E,c,h,y){y=o(y);var b=!1;E.on("close",function(){b=!0}),f===void 0&&(f=r("./end-of-stream")),f(E,{readable:c,writable:h},function(A){return A?y(A):(b=!0,void y())});var S=!1;return function(A){if(!b)return S?void 0:(S=!0,s(E)?E.abort():typeof E.destroy=="function"?E.destroy():void y(A||new w("pipe")))}}function d(E){E()}function g(E,c){return E.pipe(c)}function m(E){return E.length&&typeof E[E.length-1]=="function"?E.pop():n}var f,x=r("../../../errors").codes,L=x.ERR_MISSING_ARGS,w=x.ERR_STREAM_DESTROYED;l.exports=function(){for(var E=arguments.length,c=Array(E),h=0;h<E;h++)c[h]=arguments[h];var y=m(c);if(Array.isArray(c[0])&&(c=c[0]),2>c.length)throw new L("streams");var b,S=c.map(function(A,M){var I=M<c.length-1;return p(A,I,0<M,function(T){b||(b=T),T&&S.forEach(d),I||(S.forEach(d),y(b))})});return c.reduce(g)}},{"../../../errors":15,"./end-of-stream":24}],27:[function(r,l){"use strict";function o(s,p,d){return s.highWaterMark==null?p?s[d]:null:s.highWaterMark}var n=r("../../../errors").codes.ERR_INVALID_OPT_VALUE;l.exports={getHighWaterMark:function(s,p,d,g){var m=o(p,g,d);if(m!=null){if(!(isFinite(m)&&e(m)===m)||0>m){var f=g?d:"highWaterMark";throw new n(f,m)}return e(m)}return s.objectMode?16:16384}}},{"../../../errors":15}],28:[function(r,l){l.exports=r("events").EventEmitter},{events:7}],29:[function(r,l,o){o=l.exports=r("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=r("./lib/_stream_writable.js"),o.Duplex=r("./lib/_stream_duplex.js"),o.Transform=r("./lib/_stream_transform.js"),o.PassThrough=r("./lib/_stream_passthrough.js"),o.finished=r("./lib/internal/streams/end-of-stream.js"),o.pipeline=r("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":16,"./lib/_stream_passthrough.js":17,"./lib/_stream_readable.js":18,"./lib/_stream_transform.js":19,"./lib/_stream_writable.js":20,"./lib/internal/streams/end-of-stream.js":24,"./lib/internal/streams/pipeline.js":26}],30:[function(r,l,o){function n(g,m){for(var f in g)m[f]=g[f]}function s(g,m,f){return d(g,m,f)}var p=r("buffer"),d=p.Buffer;d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?l.exports=p:(n(p,o),o.Buffer=s),s.prototype=Object.create(d.prototype),n(d,s),s.from=function(g,m,f){if(typeof g=="number")throw new TypeError("Argument must not be a number");return d(g,m,f)},s.alloc=function(g,m,f){if(typeof g!="number")throw new TypeError("Argument must be a number");var x=d(g);return m===void 0?x.fill(0):typeof f=="string"?x.fill(m,f):x.fill(m),x},s.allocUnsafe=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return d(g)},s.allocUnsafeSlow=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return p.SlowBuffer(g)}},{buffer:3}],31:[function(r,l,o){"use strict";function n(S){if(!S)return"utf8";for(var A;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(A)return;S=(""+S).toLowerCase(),A=!0}}function s(S){var A=n(S);if(typeof A!="string"&&(y.isEncoding===b||!b(S)))throw new Error("Unknown encoding: "+S);return A||S}function p(S){this.encoding=s(S);var A;switch(this.encoding){case"utf16le":this.text=x,this.end=L,A=4;break;case"utf8":this.fillLast=f,A=4;break;case"base64":this.text=w,this.end=E,A=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(A)}function d(S){return 127>=S?0:S>>5==6?2:S>>4==14?3:S>>3==30?4:S>>6==2?-1:-2}function g(S,A,M){var I=A.length-1;if(I<M)return 0;var T=d(A[I]);return 0<=T?(0<T&&(S.lastNeed=T-1),T):--I<M||T===-2?0:(T=d(A[I]),0<=T?(0<T&&(S.lastNeed=T-2),T):--I<M||T===-2?0:(T=d(A[I]),0<=T?(0<T&&(T===2?T=0:S.lastNeed=T-3),T):0))}function m(S,A){if((192&A[0])!=128)return S.lastNeed=0,"\uFFFD";if(1<S.lastNeed&&1<A.length){if((192&A[1])!=128)return S.lastNeed=1,"\uFFFD";if(2<S.lastNeed&&2<A.length&&(192&A[2])!=128)return S.lastNeed=2,"\uFFFD"}}function f(S){var A=this.lastTotal-this.lastNeed,M=m(this,S,A);return M===void 0?this.lastNeed<=S.length?(S.copy(this.lastChar,A,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(S.copy(this.lastChar,A,0,S.length),void(this.lastNeed-=S.length)):M}function x(S,A){if((S.length-A)%2==0){var M=S.toString("utf16le",A);if(M){var I=M.charCodeAt(M.length-1);if(55296<=I&&56319>=I)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",A,S.length-1)}function L(S){var A=S&&S.length?this.write(S):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return A+this.lastChar.toString("utf16le",0,M)}return A}function w(S,A){var M=(S.length-A)%3;return M==0?S.toString("base64",A):(this.lastNeed=3-M,this.lastTotal=3,M==1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",A,S.length-M))}function E(S){var A=S&&S.length?this.write(S):"";return this.lastNeed?A+this.lastChar.toString("base64",0,3-this.lastNeed):A}function c(S){return S.toString(this.encoding)}function h(S){return S&&S.length?this.write(S):""}var y=r("safe-buffer").Buffer,b=y.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};o.StringDecoder=p,p.prototype.write=function(S){if(S.length===0)return"";var A,M;if(this.lastNeed){if(A=this.fillLast(S),A===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;return M<S.length?A?A+this.text(S,M):this.text(S,M):A||""},p.prototype.end=function(S){var A=S&&S.length?this.write(S):"";return this.lastNeed?A+"\uFFFD":A},p.prototype.text=function(S,A){var M=g(this,S,A);if(!this.lastNeed)return S.toString("utf8",A);this.lastTotal=M;var I=S.length-(M-this.lastNeed);return S.copy(this.lastChar,0,I),S.toString("utf8",A,I)},p.prototype.fillLast=function(S){return this.lastNeed<=S.length?(S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),void(this.lastNeed-=S.length))}},{"safe-buffer":30}],32:[function(r,l){(function(o){(function(){function n(s){try{if(!o.localStorage)return!1}catch{return!1}var p=o.localStorage[s];return p!=null&&(p+"").toLowerCase()==="true"}l.exports=function(s,p){function d(){if(!g){if(n("throwDeprecation"))throw new Error(p);n("traceDeprecation")?console.trace(p):console.warn(p),g=!0}return s.apply(this,arguments)}if(n("noDeprecation"))return s;var g=!1;return d}}).call(this)}).call(this,typeof global>"u"?typeof self>"u"?typeof window>"u"?{}:window:self:global)},{}],"/":[function(r,l){function o(E){return E.replace(/a=ice-options:trickle\s\n/g,"")}function n(E){console.warn(E)}let s=r("debug")("simple-peer"),p=r("get-browser-rtc"),d=r("randombytes"),g=r("readable-stream"),m=r("queue-microtask"),f=r("err-code"),{Buffer:x}=r("buffer"),L=65536;class w extends g.Duplex{constructor(c){if(c=Object.assign({allowHalfOpen:!1},c),super(c),this._id=d(4).toString("hex").slice(0,7),this._debug("new peer %o",c),this.channelName=c.initiator?c.channelName||d(20).toString("hex"):null,this.initiator=c.initiator||!1,this.channelConfig=c.channelConfig||w.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},w.config,c.config),this.offerOptions=c.offerOptions||{},this.answerOptions=c.answerOptions||{},this.sdpTransform=c.sdpTransform||(h=>h),this.streams=c.streams||(c.stream?[c.stream]:[]),this.trickle=c.trickle===void 0||c.trickle,this.allowHalfTrickle=c.allowHalfTrickle!==void 0&&c.allowHalfTrickle,this.iceCompleteTimeout=c.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=c.wrtc&&typeof c.wrtc=="object"?c.wrtc:p(),!this._wrtc)throw f(typeof window>"u"?new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"):new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(h){return void this.destroy(f(h,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc=typeof this._pc._peerConnectionId=="number",this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=h=>{this._onIceCandidate(h)},typeof this._pc.peerIdentity=="object"&&this._pc.peerIdentity.catch(h=>{this.destroy(f(h,"ERR_PC_PEER_IDENTITY"))}),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=h=>{this._setupData(h)},this.streams&&this.streams.forEach(h=>{this.addStream(h)}),this._pc.ontrack=h=>{this._onTrack(h)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&this._channel.readyState==="open"}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(c){if(!this.destroying){if(this.destroyed)throw f(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if(typeof c=="string")try{c=JSON.parse(c)}catch{c={}}this._debug("signal()"),c.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),c.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(c.transceiverRequest.kind,c.transceiverRequest.init)),c.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(c.candidate):this._pendingCandidates.push(c.candidate)),c.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(c)).then(()=>{this.destroyed||(this._pendingCandidates.forEach(h=>{this._addIceCandidate(h)}),this._pendingCandidates=[],this._pc.remoteDescription.type==="offer"&&this._createAnswer())}).catch(h=>{this.destroy(f(h,"ERR_SET_REMOTE_DESCRIPTION"))}),c.sdp||c.candidate||c.renegotiate||c.transceiverRequest||this.destroy(f(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(c){let h=new this._wrtc.RTCIceCandidate(c);this._pc.addIceCandidate(h).catch(y=>{!h.address||h.address.endsWith(".local")?n("Ignoring unsupported ICE candidate."):this.destroy(f(y,"ERR_ADD_ICE_CANDIDATE"))})}send(c){if(!this.destroying){if(this.destroyed)throw f(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(c)}}addTransceiver(c,h){if(!this.destroying){if(this.destroyed)throw f(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(c,h),this._needsNegotiation()}catch(y){this.destroy(f(y,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:c,init:h}})}}addStream(c){if(!this.destroying){if(this.destroyed)throw f(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),c.getTracks().forEach(h=>{this.addTrack(h,c)})}}addTrack(c,h){if(this.destroying)return;if(this.destroyed)throw f(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");let y=this._senderMap.get(c)||new Map,b=y.get(h);if(!b)b=this._pc.addTrack(c,h),y.set(h,b),this._senderMap.set(c,y),this._needsNegotiation();else throw b.removed?f(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):f(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED")}replaceTrack(c,h,y){if(this.destroying)return;if(this.destroyed)throw f(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");let b=this._senderMap.get(c),S=b?b.get(y):null;if(!S)throw f(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");h&&this._senderMap.set(h,b),S.replaceTrack==null?this.destroy(f(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK")):S.replaceTrack(h)}removeTrack(c,h){if(this.destroying)return;if(this.destroyed)throw f(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");let y=this._senderMap.get(c),b=y?y.get(h):null;if(!b)throw f(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{b.removed=!0,this._pc.removeTrack(b)}catch(S){S.name==="NS_ERROR_UNEXPECTED"?this._sendersAwaitingStable.push(b):this.destroy(f(S,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(c){if(!this.destroying){if(this.destroyed)throw f(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),c.getTracks().forEach(h=>{this.removeTrack(h,c)})}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,m(()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1}))}negotiate(){if(!this.destroying){if(this.destroyed)throw f(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout(()=>{this._createOffer()},0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(c){this._destroy(c,()=>{})}_destroy(c,h){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",c&&(c.message||c)),m(()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",c&&(c.message||c)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch{}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch{}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,c&&this.emit("error",c),this.emit("close"),h()}))}_setupData(c){if(!c.channel)return this.destroy(f(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=c.channel,this._channel.binaryType="arraybuffer",typeof this._channel.bufferedAmountLowThreshold=="number"&&(this._channel.bufferedAmountLowThreshold=L),this.channelName=this._channel.label,this._channel.onmessage=y=>{this._onChannelMessage(y)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=y=>{let b=y.error instanceof Error?y.error:new Error(`Datachannel error: ${y.message} ${y.filename}:${y.lineno}:${y.colno}`);this.destroy(f(b,"ERR_DATA_CHANNEL"))};let h=!1;this._closingInterval=setInterval(()=>{this._channel&&this._channel.readyState==="closing"?(h&&this._onChannelClose(),h=!0):h=!1},5e3)}_read(){}_write(c,h,y){if(this.destroyed)return y(f(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(c)}catch(b){return this.destroy(f(b,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>L?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=y):y(null)}else this._debug("write before connect"),this._chunk=c,this._cb=y}_onFinish(){if(!this.destroyed){let c=()=>{setTimeout(()=>this.destroy(),1e3)};this._connected?c():this.once("connect",c)}}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout(()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))},this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then(c=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(c.sdp=o(c.sdp)),c.sdp=this.sdpTransform(c.sdp);let h=()=>{if(!this.destroyed){let y=this._pc.localDescription||c;this._debug("signal"),this.emit("signal",{type:y.type,sdp:y.sdp})}};this._pc.setLocalDescription(c).then(()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?h():this.once("_iceComplete",h))}).catch(y=>{this.destroy(f(y,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(c=>{this.destroy(f(c,"ERR_CREATE_OFFER"))})}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach(c=>{c.mid||!c.sender.track||c.requested||(c.requested=!0,this.addTransceiver(c.sender.track.kind))})}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then(c=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(c.sdp=o(c.sdp)),c.sdp=this.sdpTransform(c.sdp);let h=()=>{if(!this.destroyed){let y=this._pc.localDescription||c;this._debug("signal"),this.emit("signal",{type:y.type,sdp:y.sdp}),this.initiator||this._requestMissingTransceivers()}};this._pc.setLocalDescription(c).then(()=>{this.destroyed||(this.trickle||this._iceComplete?h():this.once("_iceComplete",h))}).catch(y=>{this.destroy(f(y,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(c=>{this.destroy(f(c,"ERR_CREATE_ANSWER"))})}_onConnectionStateChange(){this.destroyed||this._pc.connectionState==="failed"&&this.destroy(f(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;let c=this._pc.iceConnectionState,h=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",c,h),this.emit("iceStateChange",c,h),(c==="connected"||c==="completed")&&(this._pcReady=!0,this._maybeReady()),c==="failed"&&this.destroy(f(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),c==="closed"&&this.destroy(f(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(c){let h=y=>(Object.prototype.toString.call(y.values)==="[object Array]"&&y.values.forEach(b=>{Object.assign(y,b)}),y);this._pc.getStats.length===0||this._isReactNativeWebrtc?this._pc.getStats().then(y=>{let b=[];y.forEach(S=>{b.push(h(S))}),c(null,b)},y=>c(y)):0<this._pc.getStats.length?this._pc.getStats(y=>{if(this.destroyed)return;let b=[];y.result().forEach(S=>{let A={};S.names().forEach(M=>{A[M]=S.stat(M)}),A.id=S.id,A.type=S.type,A.timestamp=S.timestamp,b.push(h(A))}),c(null,b)},y=>c(y)):c(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;let c=()=>{this.destroyed||this.getStats((h,y)=>{if(this.destroyed)return;h&&(y=[]);let b={},S={},A={},M=!1;y.forEach(T=>{(T.type==="remotecandidate"||T.type==="remote-candidate")&&(b[T.id]=T),(T.type==="localcandidate"||T.type==="local-candidate")&&(S[T.id]=T),(T.type==="candidatepair"||T.type==="candidate-pair")&&(A[T.id]=T)});let I=T=>{M=!0;let N=S[T.localCandidateId];N&&(N.ip||N.address)?(this.localAddress=N.ip||N.address,this.localPort=+N.port):N&&N.ipAddress?(this.localAddress=N.ipAddress,this.localPort=+N.portNumber):typeof T.googLocalAddress=="string"&&(N=T.googLocalAddress.split(":"),this.localAddress=N[0],this.localPort=+N[1]),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let F=b[T.remoteCandidateId];F&&(F.ip||F.address)?(this.remoteAddress=F.ip||F.address,this.remotePort=+F.port):F&&F.ipAddress?(this.remoteAddress=F.ipAddress,this.remotePort=+F.portNumber):typeof T.googRemoteAddress=="string"&&(F=T.googRemoteAddress.split(":"),this.remoteAddress=F[0],this.remotePort=+F[1]),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(y.forEach(T=>{T.type==="transport"&&T.selectedCandidatePairId&&I(A[T.selectedCandidatePairId]),(T.type==="googCandidatePair"&&T.googActiveConnection==="true"||(T.type==="candidatepair"||T.type==="candidate-pair")&&T.selected)&&I(T)}),!M&&(!Object.keys(A).length||Object.keys(S).length))return void setTimeout(c,100);if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(N){return this.destroy(f(N,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');let T=this._cb;this._cb=null,T(null)}typeof this._channel.bufferedAmountLowThreshold!="number"&&(this._interval=setInterval(()=>this._onInterval(),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")})};c()}_onInterval(){this._cb&&this._channel&&!(this._channel.bufferedAmount>L)&&this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||(this._pc.signalingState==="stable"&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach(c=>{this._pc.removeTrack(c),this._queuedNegotiation=!0}),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(c){this.destroyed||(c.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:c.candidate.candidate,sdpMLineIndex:c.candidate.sdpMLineIndex,sdpMid:c.candidate.sdpMid}}):!c.candidate&&!this._iceComplete&&(this._iceComplete=!0,this.emit("_iceComplete")),c.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(c){if(this.destroyed)return;let h=c.data;h instanceof ArrayBuffer&&(h=x.from(h)),this.push(h)}_onChannelBufferedAmountLow(){if(!this.destroyed&&this._cb){this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);let c=this._cb;this._cb=null,c(null)}}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(c){this.destroyed||c.streams.forEach(h=>{this._debug("on track"),this.emit("track",c.track,h),this._remoteTracks.push({track:c.track,stream:h}),this._remoteStreams.some(y=>y.id===h.id)||(this._remoteStreams.push(h),m(()=>{this._debug("on stream"),this.emit("stream",h)}))})}_debug(){let c=[].slice.call(arguments);c[0]="["+this._id+"] "+c[0],s.apply(null,c)}}w.WEBRTC_SUPPORT=!!p(),w.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},w.channelConfig={},l.exports=w},{buffer:3,debug:4,"err-code":6,"get-browser-rtc":8,"queue-microtask":13,randombytes:14,"readable-stream":29}]},{},[])("/")})});var Kv=ea((YI,R1)=>{R1.exports={}});var t0={};h0(t0,{default:()=>A1});function T1(e){let t=Math.floor(e/60),a=e%60;return`${t.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function e0(){let[e,t]=(0,le.useState)("call"),[a,r]=(0,le.useState)(""),[l,o]=(0,le.useState)("idle"),[n,s]=(0,le.useState)(null),[p,d]=(0,le.useState)(null),[g,m]=(0,le.useState)(0),[f,x]=(0,le.useState)(!1),[L,w]=(0,le.useState)(!1),[E,c]=(0,le.useState)(!1),[h,y]=(0,le.useState)(!1),[b,S]=(0,le.useState)([]),[A,M]=(0,le.useState)(""),[I,T]=(0,le.useState)(""),[N,F]=(0,le.useState)("video"),[Y,V]=(0,le.useState)(""),[ue,Ce]=(0,le.useState)(!1),[We,$]=(0,le.useState)([]),[Qe,wt]=(0,le.useState)(null),[It,we]=(0,le.useState)([]),[be,Ne]=(0,le.useState)([]),[je,Rt]=(0,le.useState)(""),[ha,Ft]=(0,le.useState)(!1),[bt,_a]=(0,le.useState)(""),[ma,et]=(0,le.useState)("personal"),ge=(0,le.useRef)(null),D=(0,le.useRef)(null),B=(0,le.useRef)(null),H=(0,le.useRef)(null),X=(0,le.useRef)(null),J=(0,le.useRef)(null),i=(0,le.useRef)(null),u=(0,le.useRef)(null),v=(0,le.useRef)(null),R=(0,le.useRef)(null);(0,le.useEffect)(()=>{v.current=p},[p]),(0,le.useEffect)(()=>{R.current?.scrollIntoView({behavior:"smooth"})},[It]),(0,le.useEffect)(()=>{i.current?.scrollIntoView({behavior:"smooth"})},[b]),(0,le.useEffect)(()=>{let P=location.protocol==="https:"?"wss:":"ws:",K=new WebSocket(`${P}//${location.host}/ws`);return K.onopen=()=>{console.log("[Call] WS connected")},K.onmessage=Me=>{try{let{event:st,data:ht}=JSON.parse(Me.data);U(st,ht)}catch{}},K.onclose=()=>{console.log("[Call] WS disconnected")},ge.current=K,()=>{K.close()}},[]),(0,le.useEffect)(()=>{let P=new URLSearchParams(window.location.search),K=P.get("peerId"),Me=P.get("type");K&&T(K),(Me==="audio"||Me==="video")&&F(Me)},[]),(0,le.useEffect)(()=>{fetch("/api/peer-id").then(P=>P.json()).then(P=>{r(P.peerId),ge.current&&ge.current.readyState===1&&ge.current.send(JSON.stringify({event:"register",data:{peerId:P.peerId}}))}).catch(()=>V("Failed to get peer ID"))},[]),(0,le.useEffect)(()=>(l==="connected"?(m(0),J.current=setInterval(()=>{m(P=>P+1)},1e3)):J.current&&(clearInterval(J.current),J.current=null),()=>{J.current&&clearInterval(J.current)}),[l]),(0,le.useEffect)(()=>{H.current&&B.current&&(H.current.srcObject=B.current)},[l,L]),(0,le.useEffect)(()=>{O()},[]);function O(){Jt.getChannels().then($).catch(()=>{})}function U(P,K){switch(P){case"call:incoming":s(K),o("incoming");break;case"call:accepted":o("connecting");break;case"call:rejected":o("ended"),V("\u5BF9\u65B9\u62D2\u7EDD\u4E86\u901A\u8BDD"),setTimeout(()=>{o("idle"),V("")},3e3);break;case"call:ended":o("ended"),V(K.reason==="remote_hangup"?"\u5BF9\u65B9\u5DF2\u6302\u65AD":"\u5BF9\u65B9\u5DF2\u65AD\u5F00"),ee(),setTimeout(()=>{o("idle"),V("")},3e3);break;case"call:started":K.error?(V(q(K.error)),o("idle")):Le(K.callId);break;case"signal":if(D.current&&K.signalData)try{D.current.signal(K.signalData)}catch{}break;case"call:chat":S(Me=>[...Me,{id:Date.now(),from:K.from,text:K.message,ts:new Date,self:!1}]);break;case"channel:message":Qe&&K.channel===Qe.name&&we(Me=>Me.some(ht=>ht.timestamp===K.message.timestamp&&ht.content===K.message.content&&ht.author===K.message.author)?Me:[...Me,K.message]);break;case"channel:peer:online":case"channel:peer:offline":Qe&&Jt.getChannelPeers(Qe.name).then(Ne).catch(()=>{});break;case"channel:joined":case"channel:left":O();break}}function q(P){return{not_registered:"\u672A\u6CE8\u518C\uFF0C\u8BF7\u5237\u65B0\u9875\u9762",cannot_call_self:"\u4E0D\u80FD\u547C\u53EB\u81EA\u5DF1",peer_not_found:"\u5BF9\u65B9\u4E0D\u5728\u7EBF"}[P]||"\u672A\u77E5\u9519\u8BEF"}async function se(P=!0){let K={audio:!0,video:P?{width:{ideal:1280},height:{ideal:720},facingMode:"user"}:!1};try{return await navigator.mediaDevices.getUserMedia(K)}catch{if(P)return await navigator.mediaDevices.getUserMedia({audio:!0,video:!1});throw new Error("\u65E0\u6CD5\u83B7\u53D6\u5A92\u4F53\u6743\u9650")}}function Re(P,K){let Me=new $v.default({initiator:P,stream:K,trickle:!0,config:E1});return Me.on("signal",st=>{if(ge.current&&ge.current.readyState===1){let ht=v.current?.callId;ht&&ge.current.send(JSON.stringify({event:"signal",data:{callId:ht,signalData:st}}))}}),Me.on("stream",st=>{X.current&&(X.current.srcObject=st)}),Me.on("connect",()=>{o("connected")}),Me.on("data",st=>{try{let ht=JSON.parse(st.toString());ht.type==="chat"&&S(Zn=>[...Zn,{id:Date.now(),from:"peer",text:ht.text,ts:new Date,self:!1}])}catch{}}),Me.on("close",()=>{o("ended"),V("\u8FDE\u63A5\u5DF2\u65AD\u5F00"),ee(),setTimeout(()=>{o("idle"),V("")},3e3)}),Me.on("error",st=>{console.error("[Peer Error]",st),o("ended"),V("\u8FDE\u63A5\u51FA\u9519: "+st.message),ee(),setTimeout(()=>{o("idle"),V("")},3e3)}),D.current=Me,Me}async function Le(P){try{o("connecting"),d({callId:P,peerId:I,type:N}),S([]);let K=await se(N==="video");B.current=K,w(N!=="video"),Re(!0,K)}catch(K){V(K.message),o("idle")}}async function pe(){if(!I.trim()){V("\u8BF7\u8F93\u5165\u5BF9\u65B9 Peer ID");return}if(!a){V("\u672A\u83B7\u53D6\u5230\u672C\u673A Peer ID");return}V(""),ge.current&&ge.current.readyState===1&&ge.current.send(JSON.stringify({event:"call:start",data:{targetPeerId:I.trim(),type:N}}))}async function ye(){if(n)try{o("connecting"),d({callId:n.callId,peerId:n.callerId,type:n.type}),S([]);let P=await se(n.type==="video");B.current=P,w(n.type!=="video"),Re(!1,P),ge.current&&ge.current.readyState===1&&ge.current.send(JSON.stringify({event:"call:accept",data:{callId:n.callId}})),s(null)}catch(P){V(P.message),o("idle"),s(null)}}function ga(){n&&(ge.current&&ge.current.readyState===1&&ge.current.send(JSON.stringify({event:"call:reject",data:{callId:n.callId}})),s(null),o("idle"))}function ee(){if(D.current){try{D.current.destroy()}catch{}D.current=null}B.current&&(B.current.getTracks().forEach(P=>P.stop()),B.current=null),u.current&&(u.current.getTracks().forEach(P=>P.stop()),u.current=null),d(null),x(!1),w(!1),c(!1)}function $t(){v.current&&ge.current&&ge.current.readyState===1&&ge.current.send(JSON.stringify({event:"call:hangup",data:{callId:v.current.callId}})),ee(),o("idle")}function Lt(){if(B.current){let P=B.current.getAudioTracks()[0];P&&(P.enabled=!P.enabled,x(!P.enabled))}}function pt(){if(B.current){let P=B.current.getVideoTracks()[0];P&&(P.enabled=!P.enabled,w(!P.enabled))}}async function nt(){if(E)Gn();else try{let P=await navigator.mediaDevices.getDisplayMedia({video:!0});u.current=P;let K=P.getVideoTracks()[0],st=D.current._pc.getSenders().find(ht=>ht.track?.kind==="video");st&&st.replaceTrack(K),K.onended=()=>{Gn()},c(!0)}catch{}}function Gn(){u.current&&(u.current.getTracks().forEach(K=>K.stop()),u.current=null);let P=B.current?.getVideoTracks()[0];if(P){let Me=D.current._pc.getSenders().find(st=>st.track?.kind==="video");Me&&Me.replaceTrack(P)}c(!1)}function Hu(){if(!A.trim()||!v.current)return;let P={id:Date.now(),from:"self",text:A.trim(),ts:new Date,self:!0};if(S(K=>[...K,P]),D.current&&D.current.connected)try{D.current.send(JSON.stringify({type:"chat",text:A.trim()}))}catch{}ge.current&&ge.current.readyState===1&&ge.current.send(JSON.stringify({event:"call:chat",data:{callId:v.current.callId,message:A.trim()}})),M("")}function qu(){window.location.href="/"}async function sf(P){wt(P);try{let K=await Jt.getChannelMessages(P.name);we(K);let Me=await Jt.getChannelPeers(P.name);Ne(Me)}catch{V("\u52A0\u8F7D\u9891\u9053\u5931\u8D25"),setTimeout(()=>V(""),3e3)}}async function ju(P){try{await Jt.leaveChannel(P),Qe?.name===P&&(wt(null),we([]),Ne([])),O()}catch(K){V(K.message),setTimeout(()=>V(""),3e3)}}async function Vn(){if(bt.trim())try{await Jt.createChannel(bt.trim(),ma),_a(""),et("personal"),Ft(!1),O()}catch(P){V(P.message),setTimeout(()=>V(""),3e3)}}async function Xn(){if(!je.trim()||!Qe)return;let P=je.trim();Rt("");try{await Jt.sendChannelMessage(Qe.name,P)}catch(K){V(K.message),setTimeout(()=>V(""),3e3)}}function Yn(){wt(null),we([]),Ne([])}function ar(){return(0,_.jsxs)("div",{className:"chat-tab-nav",children:[(0,_.jsxs)("button",{className:`chat-tab-btn ${e==="call"?"active":""}`,onClick:()=>t("call"),children:[(0,_.jsx)(Kt,{size:16}),(0,_.jsx)("span",{children:"\u901A\u8BDD"})]}),(0,_.jsxs)("button",{className:`chat-tab-btn ${e==="channels"?"active":""}`,onClick:()=>{t("channels"),O()},children:[(0,_.jsx)(Dr,{size:16}),(0,_.jsx)("span",{children:"\u9891\u9053"})]})]})}if(e==="call"){if(l==="idle"||l==="ended")return(0,_.jsxs)("div",{className:"chat-page",children:[(0,_.jsxs)("header",{className:"chat-header",children:[(0,_.jsx)("button",{className:"chat-back-btn",onClick:qu,"aria-label":"\u8FD4\u56DE",children:(0,_.jsx)(er,{size:20})}),(0,_.jsx)("h1",{children:"P2P \u901A\u8BDD"}),(0,_.jsx)("div",{className:"chat-spacer"}),(0,_.jsxs)("div",{className:"chat-peer-id-badge",children:["ID: ",a||"\u52A0\u8F7D\u4E2D..."]})]}),ar(),(0,_.jsxs)("div",{className:"chat-dial-container",children:[(0,_.jsx)("div",{className:"chat-dial-icon",children:(0,_.jsx)(Kt,{size:48})}),(0,_.jsx)("p",{className:"chat-dial-description",children:"\u8F93\u5165\u5BF9\u65B9 Peer ID \u53D1\u8D77\u8BED\u97F3\u6216\u89C6\u9891\u901A\u8BDD"}),(0,_.jsxs)("div",{className:"chat-dial-input-group",children:[(0,_.jsx)("input",{type:"text",className:"chat-dial-input",placeholder:"\u8F93\u5165\u5BF9\u65B9 Peer ID",value:I,onChange:P=>T(P.target.value),onKeyDown:P=>P.key==="Enter"&&pe()}),(0,_.jsxs)("div",{className:"chat-type-selector",children:[(0,_.jsxs)("button",{className:`chat-type-btn ${N==="audio"?"active":""}`,onClick:()=>F("audio"),children:[(0,_.jsx)(Kt,{size:18}),(0,_.jsx)("span",{children:"\u8BED\u97F3"})]}),(0,_.jsxs)("button",{className:`chat-type-btn ${N==="video"?"active":""}`,onClick:()=>F("video"),children:[(0,_.jsx)(ol,{size:18}),(0,_.jsx)("span",{children:"\u89C6\u9891"})]})]}),(0,_.jsxs)("button",{className:"chat-start-btn",onClick:pe,children:[N==="audio"?(0,_.jsx)(Kt,{size:20}):(0,_.jsx)(ol,{size:20}),(0,_.jsx)("span",{children:"\u53D1\u8D77\u901A\u8BDD"})]})]}),Y&&(0,_.jsx)("div",{className:"chat-error",children:Y}),(0,_.jsx)("div",{className:"chat-copy-id",children:(0,_.jsxs)("button",{className:"chat-copy-btn",onClick:()=>{navigator.clipboard.writeText(a),Ce(!0),setTimeout(()=>Ce(!1),2e3)},children:[ue?(0,_.jsx)(kr,{size:14}):(0,_.jsx)(rl,{size:14}),ue?"\u5DF2\u590D\u5236":"\u590D\u5236\u6211\u7684 ID"]})})]})]});if(l==="incoming"&&n)return(0,_.jsxs)("div",{className:"chat-page",children:[(0,_.jsxs)("header",{className:"chat-header",children:[(0,_.jsx)("button",{className:"chat-back-btn",onClick:ga,"aria-label":"\u8FD4\u56DE",children:(0,_.jsx)(er,{size:20})}),(0,_.jsx)("h1",{children:"\u6765\u7535"}),(0,_.jsx)("div",{className:"chat-spacer"})]}),ar(),(0,_.jsxs)("div",{className:"chat-incoming-container",children:[(0,_.jsx)("div",{className:"chat-incoming-avatar",children:(0,_.jsx)(Kt,{size:48})}),(0,_.jsx)("h2",{className:"chat-incoming-caller",children:n.callerName||n.callerId}),(0,_.jsx)("p",{className:"chat-incoming-type",children:n.type==="video"?"\u89C6\u9891\u901A\u8BDD":"\u8BED\u97F3\u901A\u8BDD"}),(0,_.jsxs)("div",{className:"chat-incoming-actions",children:[(0,_.jsxs)("button",{className:"chat-accept-btn",onClick:ye,children:[(0,_.jsx)(Kt,{size:24}),(0,_.jsx)("span",{children:"\u63A5\u542C"})]}),(0,_.jsxs)("button",{className:"chat-reject-btn",onClick:ga,children:[(0,_.jsx)(io,{size:24}),(0,_.jsx)("span",{children:"\u62D2\u7EDD"})]})]})]})]});if(l==="connecting")return(0,_.jsxs)("div",{className:"chat-page",children:[(0,_.jsxs)("header",{className:"chat-header",children:[(0,_.jsx)("button",{className:"chat-back-btn",onClick:$t,"aria-label":"\u53D6\u6D88",children:(0,_.jsx)(er,{size:20})}),(0,_.jsx)("h1",{children:"\u8FDE\u63A5\u4E2D..."}),(0,_.jsx)("div",{className:"chat-spacer"})]}),ar(),(0,_.jsxs)("div",{className:"chat-connecting-container",children:[(0,_.jsx)("div",{className:"chat-connecting-spinner"}),(0,_.jsx)("p",{children:"\u6B63\u5728\u5EFA\u7ACB P2P \u8FDE\u63A5..."}),(0,_.jsxs)("p",{className:"chat-connecting-peer",children:["\u5BF9\u65B9: ",p?.peerId]}),(0,_.jsx)("button",{className:"chat-cancel-btn",onClick:$t,children:"\u53D6\u6D88"})]})]});if(l==="connected"&&p)return(0,_.jsxs)("div",{className:`chat-page ${h?"with-chat":""}`,children:[ar(),(0,_.jsxs)("div",{className:"chat-active-layout",children:[(0,_.jsxs)("div",{className:"chat-video-area",children:[(0,_.jsx)("video",{ref:X,className:"chat-remote-video",autoPlay:!0,playsInline:!0}),p.type==="video"&&(0,_.jsx)("video",{ref:H,className:"chat-local-video",autoPlay:!0,playsInline:!0,muted:!0}),p.type==="audio"&&(0,_.jsxs)("div",{className:"chat-audio-display",children:[(0,_.jsx)("div",{className:"chat-audio-avatar",children:(0,_.jsx)(Kt,{size:64})}),(0,_.jsx)("p",{className:"chat-audio-name",children:p.peerId})]}),(0,_.jsx)("div",{className:"chat-duration-badge",children:T1(g)})]}),(0,_.jsxs)("div",{className:"chat-controls",children:[(0,_.jsx)("button",{className:`chat-control-btn ${f?"active":""}`,onClick:Lt,title:f?"\u53D6\u6D88\u9759\u97F3":"\u9759\u97F3",children:f?(0,_.jsx)(kn,{size:20}):(0,_.jsx)(Dn,{size:20})}),p.type==="video"&&(0,_.jsx)("button",{className:`chat-control-btn ${L?"active":""}`,onClick:pt,title:L?"\u5F00\u542F\u6444\u50CF\u5934":"\u5173\u95ED\u6444\u50CF\u5934",children:L?(0,_.jsx)(jn,{size:20}):(0,_.jsx)(ol,{size:20})}),(0,_.jsx)("button",{className:`chat-control-btn ${E?"active":""}`,onClick:nt,title:E?"\u505C\u6B62\u5171\u4EAB":"\u5171\u4EAB\u5C4F\u5E55",children:E?(0,_.jsx)(_n,{size:20}):(0,_.jsx)(On,{size:20})}),(0,_.jsx)("button",{className:`chat-control-btn ${h?"active":""}`,onClick:()=>y(!h),title:"\u6587\u5B57\u804A\u5929",children:(0,_.jsx)(Dr,{size:20})}),(0,_.jsx)("button",{className:"chat-control-btn hangup",onClick:$t,title:"\u6302\u65AD",children:(0,_.jsx)(io,{size:24})})]}),h&&(0,_.jsxs)("div",{className:"chat-chat-panel",children:[(0,_.jsxs)("div",{className:"chat-chat-header",children:[(0,_.jsx)("h3",{children:"\u6587\u5B57\u804A\u5929"}),(0,_.jsx)("button",{className:"chat-chat-close",onClick:()=>y(!1),children:(0,_.jsx)(Ct,{size:18})})]}),(0,_.jsxs)("div",{className:"chat-chat-messages",children:[b.length===0&&(0,_.jsx)("p",{className:"chat-chat-empty",children:"\u6682\u65E0\u6D88\u606F"}),b.map(P=>(0,_.jsxs)("div",{className:`chat-chat-msg ${P.self?"self":""}`,children:[!P.self&&(0,_.jsx)("span",{className:"chat-chat-msg-from",children:P.from}),(0,_.jsx)("div",{className:"chat-chat-msg-bubble",children:P.text})]},P.id)),(0,_.jsx)("div",{ref:i})]}),(0,_.jsxs)("div",{className:"chat-chat-input-area",children:[(0,_.jsx)("input",{type:"text",className:"chat-chat-input",placeholder:"\u8F93\u5165\u6D88\u606F...",value:A,onChange:P=>M(P.target.value),onKeyDown:P=>P.key==="Enter"&&Hu()}),(0,_.jsx)("button",{className:"chat-chat-send",onClick:Hu,children:(0,_.jsx)(uo,{size:18})})]})]})]})]})}return e==="channels"?Qe?(0,_.jsxs)("div",{className:"chat-page",children:[(0,_.jsxs)("header",{className:"chat-header",children:[(0,_.jsx)("button",{className:"chat-back-btn",onClick:Yn,"aria-label":"\u8FD4\u56DE\u9891\u9053\u5217\u8868",children:(0,_.jsx)(er,{size:20})}),(0,_.jsx)("h1",{children:Qe.name}),(0,_.jsx)("div",{className:"chat-spacer"}),(0,_.jsxs)("div",{className:"chat-peer-id-badge",children:[(0,_.jsx)(qn,{size:12})," ",be.length," \u5728\u7EBF"]})]}),ar(),(0,_.jsxs)("div",{className:"chat-channel-view",children:[(0,_.jsxs)("div",{className:"chat-channel-messages",children:[It.length===0?(0,_.jsx)("div",{className:"chat-channel-empty",children:"\u6682\u65E0\u6D88\u606F\uFF0C\u5F00\u59CB\u804A\u5929\u5427\uFF01"}):It.map((P,K)=>(0,_.jsxs)("div",{className:`chat-channel-msg ${P.author===a?"self":"other"}`,children:[P.author!==a&&(0,_.jsx)("span",{className:"chat-channel-msg-author",children:P.authorName}),(0,_.jsx)("div",{className:"chat-channel-msg-bubble",children:P.content}),(0,_.jsx)("span",{className:"chat-channel-msg-time",children:new Date(P.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})})]},K)),(0,_.jsx)("div",{ref:R})]}),(0,_.jsxs)("div",{className:"chat-channel-input-area",children:[(0,_.jsx)("input",{type:"text",className:"chat-channel-input",placeholder:"\u8F93\u5165\u6D88\u606F...",value:je,onChange:P=>Rt(P.target.value),onKeyDown:P=>{P.key==="Enter"&&je.trim()&&Xn()}}),(0,_.jsx)("button",{className:"chat-channel-send-btn",onClick:Xn,disabled:!je.trim(),children:(0,_.jsx)(uo,{size:18})})]})]})]}):(0,_.jsxs)("div",{className:"chat-page",children:[(0,_.jsxs)("header",{className:"chat-header",children:[(0,_.jsx)("button",{className:"chat-back-btn",onClick:qu,"aria-label":"\u8FD4\u56DE",children:(0,_.jsx)(er,{size:20})}),(0,_.jsx)("h1",{children:"\u9891\u9053"}),(0,_.jsx)("div",{className:"chat-spacer"}),(0,_.jsxs)("button",{className:"chat-create-channel-btn",onClick:()=>Ft(!0),children:[(0,_.jsx)(Bn,{size:18}),(0,_.jsx)("span",{children:"\u521B\u5EFA"})]})]}),ar(),(0,_.jsx)("div",{className:"chat-channels-list",children:We.length===0?(0,_.jsxs)("div",{className:"chat-channels-empty",children:[(0,_.jsx)(Dr,{size:48}),(0,_.jsx)("p",{children:"\u6682\u65E0\u9891\u9053\uFF0C\u521B\u5EFA\u4E00\u4E2A\u5F00\u59CB\u804A\u5929\u5427"})]}):We.map(P=>(0,_.jsxs)("div",{className:"chat-channel-item",onClick:()=>sf(P),children:[(0,_.jsx)("div",{className:"chat-channel-item-icon",children:(0,_.jsx)(Dr,{size:20})}),(0,_.jsxs)("div",{className:"chat-channel-item-info",children:[(0,_.jsx)("div",{className:"chat-channel-item-name",children:P.name}),(0,_.jsxs)("div",{className:"chat-channel-item-meta",children:[(0,_.jsx)("span",{children:P.type==="personal"?"\u4E2A\u4EBA":"\u7FA4\u7EC4"}),(0,_.jsx)("span",{children:"\xB7"}),(0,_.jsxs)("span",{children:[P.peerCount," \u5728\u7EBF"]})]})]}),(0,_.jsx)("button",{className:"chat-channel-item-leave",onClick:K=>{K.stopPropagation(),ju(P.name)},title:"\u79BB\u5F00\u9891\u9053",children:(0,_.jsx)(Ct,{size:14})})]},P.name))}),ha&&(0,_.jsx)("div",{className:"chat-create-channel-overlay",onClick:()=>Ft(!1),children:(0,_.jsxs)("div",{className:"chat-create-channel-modal",onClick:P=>P.stopPropagation(),children:[(0,_.jsx)("h3",{children:"\u521B\u5EFA\u9891\u9053"}),(0,_.jsx)("p",{children:"\u521B\u5EFA\u4E00\u4E2A\u9891\u9053\uFF0C\u670B\u53CB\u52A0\u5165\u540E\u53EF\u4EE5\u804A\u5929"}),(0,_.jsx)("input",{type:"text",className:"chat-create-channel-input",placeholder:"\u9891\u9053\u540D\uFF0C\u5982 alice \u6216 team-project",value:bt,onChange:P=>_a(P.target.value),onKeyDown:P=>{P.key==="Enter"&&bt.trim()&&Vn()},autoFocus:!0}),(0,_.jsxs)("div",{className:"chat-channel-type-selector",children:[(0,_.jsx)("button",{className:`chat-channel-type-btn ${ma==="personal"?"active":""}`,onClick:()=>et("personal"),children:"\u4E2A\u4EBA"}),(0,_.jsx)("button",{className:`chat-channel-type-btn ${ma==="group"?"active":""}`,onClick:()=>et("group"),children:"\u7FA4\u7EC4"})]}),(0,_.jsx)("div",{className:"chat-create-channel-hint",children:"3-20\u4F4D\uFF0C\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u4E0B\u5212\u7EBF\u3001\u8FDE\u5B57\u7B26"}),(0,_.jsxs)("div",{className:"chat-create-channel-actions",children:[(0,_.jsx)("button",{className:"chat-create-channel-cancel",onClick:()=>Ft(!1),children:"\u53D6\u6D88"}),(0,_.jsx)("button",{className:"chat-create-channel-submit",onClick:Vn,disabled:!bt.trim(),children:"\u521B\u5EFA"})]})]})}),Y&&(0,_.jsx)("div",{className:"chat-error toast",children:Y})]}):null}var le,Jv,$v,_,E1,Jt,A1,a0=te(()=>{le=Ae(Ke(),1),Jv=Ae(Mc(),1),$v=Ae(Qv(),1);rf();_=Ae(tr(),1),E1={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"}]};Jt={async fetch(e,t={}){let a=await fetch(e,t);if(!a.ok){let r=await a.json().catch(()=>({error:a.statusText}));throw new Error(r.error||"Request failed")}return a.json()},getChannels:()=>Jt.fetch("/api/channels"),createChannel:(e,t)=>Jt.fetch("/api/channels",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,type:t})}),leaveChannel:e=>Jt.fetch(`/api/channels/${encodeURIComponent(e)}`,{method:"DELETE"}),getChannelMessages:(e,t=100,a=0)=>Jt.fetch(`/api/channels/${encodeURIComponent(e)}/messages?limit=${t}&offset=${a}`),sendChannelMessage:(e,t)=>Jt.fetch(`/api/channels/${encodeURIComponent(e)}/messages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})}),getChannelPeers:e=>Jt.fetch(`/api/channels/${encodeURIComponent(e)}/peers`)};A1=e0;if(typeof document<"u"){let e=document.getElementById("root");e&&!e.hasChildNodes()&&(Promise.resolve().then(()=>Ae(Kv(),1)),(0,Jv.createRoot)(e).render((0,_.jsx)(e0,{})))}});var r0=Ae(Mc(),1),uf=Ae(Ke(),1);var Pt=Ae(Ke(),1),W=Ae(Ke(),1),Xe=Ae(Ke(),1),Zc=Ae(Ke(),1),Ny=Ae(Ke(),1),xe=Ae(Ke(),1),hS=Ae(Ke(),1),mS=Ae(Ke(),1),gS=Ae(Ke(),1),Q=Ae(Ke(),1),Zy=Ae(Ke(),1);var ry="popstate";function ly(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function cy(e={}){function t(r,l){let o=l.state?.masked,{pathname:n,search:s,hash:p}=o||r.location;return Oc("",{pathname:n,search:s,hash:p},l.state&&l.state.usr||null,l.state&&l.state.key||"default",o?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function a(r,l){return typeof l=="string"?l:Jl(l)}return uL(t,a,null,e)}function qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iL(){return Math.random().toString(36).substring(2,10)}function oy(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Oc(e,t,a=null,r,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?tl(t):t,state:a,key:t&&t.key||r||iL(),unstable_mask:l}}function Jl({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function tl(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function uL(e,t,a,r={}){let{window:l=document.defaultView,v5Compat:o=!1}=r,n=l.history,s="POP",p=null,d=g();d==null&&(d=0,n.replaceState({...n.state,idx:d},""));function g(){return(n.state||{idx:null}).idx}function m(){s="POP";let E=g(),c=E==null?null:E-d;d=E,p&&p({action:s,location:w.location,delta:c})}function f(E,c){s="PUSH";let h=ly(E)?E:Oc(w.location,E,c);a&&a(h,E),d=g()+1;let y=oy(h,d),b=w.createHref(h.unstable_mask||h);try{n.pushState(y,"",b)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(b)}o&&p&&p({action:s,location:w.location,delta:1})}function x(E,c){s="REPLACE";let h=ly(E)?E:Oc(w.location,E,c);a&&a(h,E),d=g();let y=oy(h,d),b=w.createHref(h.unstable_mask||h);n.replaceState(y,"",b),o&&p&&p({action:s,location:w.location,delta:0})}function L(E){return sL(E)}let w={get action(){return s},get location(){return e(l,n)},listen(E){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(ry,m),p=E,()=>{l.removeEventListener(ry,m),p=null}},createHref(E){return t(l,E)},createURL:L,encodeLocation(E){let c=L(E);return{pathname:c.pathname,search:c.search,hash:c.hash}},push:f,replace:x,go(E){return n.go(E)}};return w}function sL(e,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),qe(a,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Jl(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=a+r),new URL(r,a)}var dL;dL=new WeakMap;function zc(e,t,a="/"){return cL(e,t,a,!1)}function cL(e,t,a,r){let l=typeof t=="string"?tl(t):t,o=ka(l.pathname||"/",a);if(o==null)return null;let n=fy(e);pL(n);let s=null;for(let p=0;s==null&&p<n.length;++p){let d=wL(o);s=SL(n[p],d,r)}return s}function fL(e,t){let{route:a,pathname:r,params:l}=e;return{id:a.id,pathname:r,params:l,data:t[a.id],loaderData:t[a.id],handle:a.handle}}function fy(e,t=[],a=[],r="",l=!1){let o=(n,s,p=l,d)=>{let g={relativePath:d===void 0?n.path||"":d,caseSensitive:n.caseSensitive===!0,childrenIndex:s,route:n};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(r)&&p)return;qe(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length)}let m=Ma([r,g.relativePath]),f=a.concat(g);n.children&&n.children.length>0&&(qe(n.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),fy(n.children,t,f,m,p)),!(n.path==null&&!n.index)&&t.push({path:m,score:bL(m,n.index),routesMeta:f})};return e.forEach((n,s)=>{if(n.path===""||!n.path?.includes("?"))o(n,s);else for(let p of py(n.path))o(n,s,!0,p)}),t}function py(e){let t=e.split("/");if(t.length===0)return[];let[a,...r]=t,l=a.endsWith("?"),o=a.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let n=py(r.join("/")),s=[];return s.push(...n.map(p=>p===""?o:[o,p].join("/"))),l&&s.push(...n),s.map(p=>e.startsWith("/")&&p===""?"/":p)}function pL(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:LL(t.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var hL=/^:[\w-]+$/,mL=3,gL=2,yL=1,vL=10,xL=-2,ny=e=>e==="*";function bL(e,t){let a=e.split("/"),r=a.length;return a.some(ny)&&(r+=xL),t&&(r+=gL),a.filter(l=>!ny(l)).reduce((l,o)=>l+(hL.test(o)?mL:o===""?yL:vL),r)}function LL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function SL(e,t,a=!1){let{routesMeta:r}=e,l={},o="/",n=[];for(let s=0;s<r.length;++s){let p=r[s],d=s===r.length-1,g=o==="/"?t:t.slice(o.length)||"/",m=vn({path:p.relativePath,caseSensitive:p.caseSensitive,end:d},g),f=p.route;if(!m&&d&&a&&!r[r.length-1].route.index&&(m=vn({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!m)return null;Object.assign(l,m.params),n.push({params:l,pathname:Ma([o,m.pathname]),pathnameBase:EL(Ma([o,m.pathnameBase])),route:f}),m.pathnameBase!=="/"&&(o=Ma([o,m.pathnameBase]))}return n}function vn(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=CL(e.path,e.caseSensitive,e.end),l=t.match(a);if(!l)return null;let o=l[0],n=o.replace(/(.)\/+$/,"$1"),s=l.slice(1);return{params:r.reduce((d,{paramName:g,isOptional:m},f)=>{if(g==="*"){let L=s[f]||"";n=o.slice(0,o.length-L.length).replace(/(.)\/+$/,"$1")}let x=s[f];return m&&!x?d[g]=void 0:d[g]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:n,pattern:e}}function CL(e,t=!1,a=!0){fa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(n,s,p,d,g)=>{if(r.push({paramName:s,isOptional:p!=null}),p){let m=g.charAt(d+n.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function wL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ka(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}var IL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function hy(e,t="/"){let{pathname:a,search:r="",hash:l=""}=typeof e=="string"?tl(e):e,o;return a?(a=a.replace(/\/\/+/g,"/"),a.startsWith("/")?o=iy(a.substring(1),"/"):o=iy(a,t)):o=t,{pathname:o,search:TL(r),hash:AL(l)}}function iy(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function kc(e,t,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function RL(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function my(e){let t=RL(e);return t.map((a,r)=>r===t.length-1?a.pathname:a.pathnameBase)}function Pc(e,t,a,r=!1){let l;typeof e=="string"?l=tl(e):(l={...e},qe(!l.pathname||!l.pathname.includes("?"),kc("?","pathname","search",l)),qe(!l.pathname||!l.pathname.includes("#"),kc("#","pathname","hash",l)),qe(!l.search||!l.search.includes("#"),kc("#","search","hash",l)));let o=e===""||l.pathname==="",n=o?"/":l.pathname,s;if(n==null)s=a;else{let m=t.length-1;if(!r&&n.startsWith("..")){let f=n.split("/");for(;f[0]==="..";)f.shift(),m-=1;l.pathname=f.join("/")}s=m>=0?t[m]:"/"}let p=hy(l,s),d=n&&n!=="/"&&n.endsWith("/"),g=(o||n===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(d||g)&&(p.pathname+="/"),p}var Ma=e=>e.join("/").replace(/\/\/+/g,"/"),EL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;var gy=class{constructor(e,t,a,r=!1){this.status=e,this.statusText=t||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function yy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function ML(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xy(e,t){let a=e;if(typeof a!="string"||!IL.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let r=a,l=!1;if(vy)try{let o=new URL(window.location.href),n=a.startsWith("//")?new URL(o.protocol+a):new URL(a),s=ka(n.pathname,t);n.origin===o.origin&&s!=null?a=s+n.search+n.hash:l=!0}catch{fa(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:l,to:a}}var H1=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var by=["POST","PUT","PATCH","DELETE"],q1=new Set(by),kL=["GET",...by],j1=new Set(kL);var al=Pt.createContext(null);al.displayName="DataRouter";var $l=Pt.createContext(null);$l.displayName="DataRouterState";var Ly=Pt.createContext(!1);function DL(){return Pt.useContext(Ly)}var Fc=Pt.createContext({isTransitioning:!1});Fc.displayName="ViewTransition";var Sy=Pt.createContext(new Map);Sy.displayName="Fetchers";var _L=Pt.createContext(null);_L.displayName="Await";var kt=Pt.createContext(null);kt.displayName="Navigation";var eo=Pt.createContext(null);eo.displayName="Location";var Da=Pt.createContext({outlet:null,matches:[],isDataRoute:!1});Da.displayName="Route";var Hc=Pt.createContext(null);Hc.displayName="RouteError";var Nc=!0,Cy="REACT_ROUTER_ERROR",OL="REDIRECT",NL="ROUTE_ERROR_RESPONSE";function BL(e){if(e.startsWith(`${Cy}:${OL}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function UL(e){if(e.startsWith(`${Cy}:${NL}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new gy(t.status,t.statusText,t.data)}catch{}}function wy(e,{relative:t}={}){qe(to(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=W.useContext(kt),{hash:l,pathname:o,search:n}=ao(e,{relative:t}),s=o;return a!=="/"&&(s=o==="/"?a:Ma([a,o])),r.createHref({pathname:s,search:n,hash:l})}function to(){return W.useContext(eo)!=null}function pa(){return qe(to(),"useLocation() may be used only in the context of a <Router> component."),W.useContext(eo).location}var Iy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ry(e){W.useContext(kt).static||W.useLayoutEffect(e)}function Ey(){let{isDataRoute:e}=W.useContext(Da);return e?YL():zL()}function zL(){qe(to(),"useNavigate() may be used only in the context of a <Router> component.");let e=W.useContext(al),{basename:t,navigator:a}=W.useContext(kt),{matches:r}=W.useContext(Da),{pathname:l}=pa(),o=JSON.stringify(my(r)),n=W.useRef(!1);return Ry(()=>{n.current=!0}),W.useCallback((p,d={})=>{if(fa(n.current,Iy),!n.current)return;if(typeof p=="number"){a.go(p);return}let g=Pc(p,JSON.parse(o),l,d.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Ma([t,g.pathname])),(d.replace?a.replace:a.push)(g,d.state,d)},[t,a,o,l,e])}var G1=W.createContext(null);function ao(e,{relative:t}={}){let{matches:a}=W.useContext(Da),{pathname:r}=pa(),l=JSON.stringify(my(a));return W.useMemo(()=>Pc(e,JSON.parse(l),r,t==="path"),[e,l,r,t])}function Ty(e,t){return Ay(e,t)}function Ay(e,t,a){qe(to(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=W.useContext(kt),{matches:l}=W.useContext(Da),o=l[l.length-1],n=o?o.params:{},s=o?o.pathname:"/",p=o?o.pathnameBase:"/",d=o&&o.route;if(Nc){let E=d&&d.path||"";_y(s,!d||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
|
+
|
|
12
|
+
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let g=pa(),m;if(t){let E=typeof t=="string"?tl(t):t;qe(p==="/"||E.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${E.pathname}" was given in the \`location\` prop.`),m=E}else m=g;let f=m.pathname||"/",x=f;if(p!=="/"){let E=p.replace(/^\//,"").split("/");x="/"+f.replace(/^\//,"").split("/").slice(E.length).join("/")}let L=zc(e,{pathname:x});Nc&&(fa(d||L!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),fa(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let w=jL(L&&L.map(E=>Object.assign({},E,{params:Object.assign({},n,E.params),pathname:Ma([p,r.encodeLocation?r.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?p:Ma([p,r.encodeLocation?r.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),l,a);return t&&w?W.createElement(eo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},w):w}function PL(){let e=Dy(),t=yy(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},n=null;return Nc&&(console.error("Error handled by React Router default ErrorBoundary:",e),n=W.createElement(W.Fragment,null,W.createElement("p",null,"\u{1F4BF} Hey developer \u{1F44B}"),W.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",W.createElement("code",{style:o},"ErrorBoundary")," or"," ",W.createElement("code",{style:o},"errorElement")," prop on your route."))),W.createElement(W.Fragment,null,W.createElement("h2",null,"Unexpected Application Error!"),W.createElement("h3",{style:{fontStyle:"italic"}},t),a?W.createElement("pre",{style:l},a):null,n)}var FL=W.createElement(PL,null),My=class extends W.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let a=UL(e.digest);a&&(e=a)}let t=e!==void 0?W.createElement(Da.Provider,{value:this.props.routeContext},W.createElement(Hc.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?W.createElement(HL,{error:e},t):t}};My.contextType=Ly;var Dc=new WeakMap;function HL({children:e,error:t}){let{basename:a}=W.useContext(kt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=BL(t.digest);if(r){let l=Dc.get(t);if(l)throw l;let o=xy(r.location,a);if(vy&&!Dc.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Dc.set(t,n),n}return W.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function qL({routeContext:e,match:t,children:a}){let r=W.useContext(al);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),W.createElement(Da.Provider,{value:e},a)}function jL(e,t=[],a){let r=a?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,o=r?.errors;if(o!=null){let g=l.findIndex(m=>m.route.id&&o?.[m.route.id]!==void 0);qe(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let n=!1,s=-1;if(a&&r){n=r.renderFallback;for(let g=0;g<l.length;g++){let m=l[g];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(s=g),m.route.id){let{loaderData:f,errors:x}=r,L=m.route.loader&&!f.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||L){a.isStatic&&(n=!0),s>=0?l=l.slice(0,s+1):l=[l[0]];break}}}}let p=a?.onError,d=r&&p?(g,m)=>{p(g,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ML(r.matches),errorInfo:m})}:void 0;return l.reduceRight((g,m,f)=>{let x,L=!1,w=null,E=null;r&&(x=o&&m.route.id?o[m.route.id]:void 0,w=m.route.errorElement||FL,n&&(s<0&&f===0?(_y("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,E=null):s===f&&(L=!0,E=m.route.hydrateFallbackElement||null)));let c=t.concat(l.slice(0,f+1)),h=()=>{let y;return x?y=w:L?y=E:m.route.Component?y=W.createElement(m.route.Component,null):m.route.element?y=m.route.element:y=g,W.createElement(qL,{match:m,routeContext:{outlet:g,matches:c,isDataRoute:r!=null},children:y})};return r&&(m.route.ErrorBoundary||m.route.errorElement||f===0)?W.createElement(My,{location:r.location,revalidation:r.revalidation,component:w,error:x,children:h(),routeContext:{outlet:null,matches:c,isDataRoute:!0},onError:d}):h()},null)}function qc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function GL(e){let t=W.useContext(al);return qe(t,qc(e)),t}function jc(e){let t=W.useContext($l);return qe(t,qc(e)),t}function VL(e){let t=W.useContext(Da);return qe(t,qc(e)),t}function Gc(e){let t=VL(e),a=t.matches[t.matches.length-1];return qe(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function XL(){return Gc("useRouteId")}function ky(){return jc("useNavigation").navigation}function Vc(){let{matches:e,loaderData:t}=jc("useMatches");return W.useMemo(()=>e.map(a=>fL(a,t)),[e,t])}function Dy(){let e=W.useContext(Hc),t=jc("useRouteError"),a=Gc("useRouteError");return e!==void 0?e:t.errors?.[a]}function YL(){let{router:e}=GL("useNavigate"),t=Gc("useNavigate"),a=W.useRef(!1);return Ry(()=>{a.current=!0}),W.useCallback(async(l,o={})=>{fa(a.current,Iy),a.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var uy={};function _y(e,t,a){!t&&!uy[e]&&(uy[e]=!0,fa(!1,a))}var ZL="useOptimistic",V1=Xe[ZL];var X1=Xe.memo(WL);function WL({routes:e,future:t,state:a,isStatic:r,onError:l}){return Ay(e,void 0,{state:a,isStatic:r,onError:l,future:t})}function xn(e){qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Xc({basename:e="/",children:t=null,location:a,navigationType:r="POP",navigator:l,static:o=!1,unstable_useTransitions:n}){qe(!to(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),p=Xe.useMemo(()=>({basename:s,navigator:l,static:o,unstable_useTransitions:n,future:{}}),[s,l,o,n]);typeof a=="string"&&(a=tl(a));let{pathname:d="/",search:g="",hash:m="",state:f=null,key:x="default",unstable_mask:L}=a,w=Xe.useMemo(()=>{let E=ka(d,s);return E==null?null:{location:{pathname:E,search:g,hash:m,state:f,key:x,unstable_mask:L},navigationType:r}},[s,d,g,m,f,x,r,L]);return fa(w!=null,`<Router basename="${s}"> is not able to match the URL "${d}${g}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:Xe.createElement(kt.Provider,{value:p},Xe.createElement(eo.Provider,{children:t,value:w}))}function Yc({children:e,location:t}){return Ty(Du(e),t)}function Du(e,t=[]){let a=[];return Xe.Children.forEach(e,(r,l)=>{if(!Xe.isValidElement(r))return;let o=[...t,l];if(r.type===Xe.Fragment){a.push.apply(a,Du(r.props.children,o));return}qe(r.type===xn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),qe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let n={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(n.children=Du(r.props.children,o)),a.push(n)}),a}var Mu="get",ku="application/x-www-form-urlencoded";function _u(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function QL(e){return _u(e)&&e.tagName.toLowerCase()==="button"}function KL(e){return _u(e)&&e.tagName.toLowerCase()==="form"}function JL(e){return _u(e)&&e.tagName.toLowerCase()==="input"}function $L(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eS(e,t){return e.button===0&&(!t||t==="_self")&&!$L(e)}var Tu=null;function tS(){if(Tu===null)try{new FormData(document.createElement("form"),0),Tu=!1}catch{Tu=!0}return Tu}var aS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _c(e){return e!=null&&!aS.has(e)?(fa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ku}"`),null):e}function rS(e,t){let a,r,l,o,n;if(KL(e)){let s=e.getAttribute("action");r=s?ka(s,t):null,a=e.getAttribute("method")||Mu,l=_c(e.getAttribute("enctype"))||ku,o=new FormData(e)}else if(QL(e)||JL(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||s.getAttribute("action");if(r=p?ka(p,t):null,a=e.getAttribute("formmethod")||s.getAttribute("method")||Mu,l=_c(e.getAttribute("formenctype"))||_c(s.getAttribute("enctype"))||ku,o=new FormData(s,e),!tS()){let{name:d,type:g,value:m}=e;if(g==="image"){let f=d?`${d}.`:"";o.append(`${f}x`,"0"),o.append(`${f}y`,"0")}else d&&o.append(d,m)}}else{if(_u(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Mu,r=null,l=ku,n=e}return o&&l==="text/plain"&&(n=o,o=void 0),{action:r,method:a.toLowerCase(),encType:l,formData:o,body:n}}var Y1=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lS={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},oS=/[&><\u2028\u2029]/g;function sy(e){return e.replace(oS,t=>lS[t])}function Wc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oy(e,t,a,r){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${r}`:l.pathname=`${l.pathname}.${r}`:l.pathname==="/"?l.pathname=`_root.${r}`:t&&ka(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${r}`,l}async function nS(e,t){if(e.id in t)return t[e.id];try{let a=await import(e.module);return t[e.id]=a,a}catch(a){if(console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&import.meta.hot)throw a;return window.location.reload(),new Promise(()=>{})}}function iS(e){return e!=null&&typeof e.page=="string"}function uS(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function sS(e,t,a){let r=await Promise.all(e.map(async l=>{let o=t.routes[l.route.id];if(o){let n=await nS(o,a);return n.links?n.links():[]}return[]}));return pS(r.flat(1).filter(uS).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function dy(e,t,a,r,l,o){let n=(p,d)=>a[d]?p.route.id!==a[d].route.id:!0,s=(p,d)=>a[d].pathname!==p.pathname||a[d].route.path?.endsWith("*")&&a[d].params["*"]!==p.params["*"];return o==="assets"?t.filter((p,d)=>n(p,d)||s(p,d)):o==="data"?t.filter((p,d)=>{let g=r.routes[p.route.id];if(!g||!g.hasLoader)return!1;if(n(p,d)||s(p,d))return!0;if(p.route.shouldRevalidate){let m=p.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function dS(e,t,{includeHydrateFallback:a}={}){return cS(e.map(r=>{let l=t.routes[r.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),a&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function cS(e){return[...new Set(e)]}function fS(e){let t={},a=Object.keys(e).sort();for(let r of a)t[r]=e[r];return t}function pS(e,t){let a=new Set,r=new Set(t);return e.reduce((l,o)=>{if(t&&!iS(o)&&o.as==="script"&&o.href&&r.has(o.href))return l;let s=JSON.stringify(fS(o));return a.has(s)||(a.add(s),l.push({key:s,link:o})),l},[])}function Qc(){let e=xe.useContext(al);return Wc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function yS(){let e=xe.useContext($l);return Wc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var bn=xe.createContext(void 0);bn.displayName="FrameworkContext";function Kc(){let e=xe.useContext(bn);return Wc(e,"You must render this element inside a <HydratedRouter> element"),e}function vS(e,t){let a=xe.useContext(bn),[r,l]=xe.useState(!1),[o,n]=xe.useState(!1),{onFocus:s,onBlur:p,onMouseEnter:d,onMouseLeave:g,onTouchStart:m}=t,f=xe.useRef(null);xe.useEffect(()=>{if(e==="render"&&n(!0),e==="viewport"){let w=c=>{c.forEach(h=>{n(h.isIntersecting)})},E=new IntersectionObserver(w,{threshold:.5});return f.current&&E.observe(f.current),()=>{E.disconnect()}}},[e]),xe.useEffect(()=>{if(r){let w=setTimeout(()=>{n(!0)},100);return()=>{clearTimeout(w)}}},[r]);let x=()=>{l(!0)},L=()=>{l(!1),n(!1)};return a?e!=="intent"?[o,f,{}]:[o,f,{onFocus:yn(s,x),onBlur:yn(p,L),onMouseEnter:yn(d,x),onMouseLeave:yn(g,L),onTouchStart:yn(m,x)}]:[!1,f,{}]}function yn(e,t){return a=>{e&&e(a),a.defaultPrevented||t(a)}}function By({page:e,...t}){let a=DL(),{router:r}=Qc(),l=xe.useMemo(()=>zc(r.routes,e,r.basename),[r.routes,e,r.basename]);return l?a?xe.createElement(bS,{page:e,matches:l,...t}):xe.createElement(LS,{page:e,matches:l,...t}):null}function xS(e){let{manifest:t,routeModules:a}=Kc(),[r,l]=xe.useState([]);return xe.useEffect(()=>{let o=!1;return sS(e,t,a).then(n=>{o||l(n)}),()=>{o=!0}},[e,t,a]),r}function bS({page:e,matches:t,...a}){let r=pa(),{future:l}=Kc(),{basename:o}=Qc(),n=xe.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let s=Oy(e,o,l.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,d=[];for(let g of t)typeof g.route.shouldRevalidate=="function"?p=!0:d.push(g.route.id);return p&&d.length>0&&s.searchParams.set("_routes",d.join(",")),[s.pathname+s.search]},[o,l.unstable_trailingSlashAwareDataRequests,e,r,t]);return xe.createElement(xe.Fragment,null,n.map(s=>xe.createElement("link",{key:s,rel:"prefetch",as:"fetch",href:s,...a})))}function LS({page:e,matches:t,...a}){let r=pa(),{future:l,manifest:o,routeModules:n}=Kc(),{basename:s}=Qc(),{loaderData:p,matches:d}=yS(),g=xe.useMemo(()=>dy(e,t,d,o,r,"data"),[e,t,d,o,r]),m=xe.useMemo(()=>dy(e,t,d,o,r,"assets"),[e,t,d,o,r]),f=xe.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,E=!1;if(t.forEach(h=>{let y=o.routes[h.route.id];!y||!y.hasLoader||(!g.some(b=>b.route.id===h.route.id)&&h.route.id in p&&n[h.route.id]?.shouldRevalidate||y.hasClientLoader?E=!0:w.add(h.route.id))}),w.size===0)return[];let c=Oy(e,s,l.unstable_trailingSlashAwareDataRequests,"data");return E&&w.size>0&&c.searchParams.set("_routes",t.filter(h=>w.has(h.route.id)).map(h=>h.route.id).join(",")),[c.pathname+c.search]},[s,l.unstable_trailingSlashAwareDataRequests,p,r,o,g,t,e,n]),x=xe.useMemo(()=>dS(m,o),[m,o]),L=xS(m);return xe.createElement(xe.Fragment,null,f.map(w=>xe.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...a})),x.map(w=>xe.createElement("link",{key:w,rel:"modulepreload",href:w,...a})),L.map(({key:w,link:E})=>xe.createElement("link",{key:w,nonce:a.nonce,...E,crossOrigin:E.crossOrigin??a.crossOrigin})))}function SS(...e){return t=>{e.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var CS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{CS&&(window.__reactRouterVersion="7.14.0")}catch{}function Jc({basename:e,children:t,unstable_useTransitions:a,window:r}){let l=Q.useRef();l.current==null&&(l.current=cy({window:r,v5Compat:!0}));let o=l.current,[n,s]=Q.useState({action:o.action,location:o.location}),p=Q.useCallback(d=>{a===!1?s(d):Q.startTransition(()=>s(d))},[a]);return Q.useLayoutEffect(()=>o.listen(p),[o,p]),Q.createElement(Xc,{basename:e,children:t,location:n.location,navigationType:n.action,navigator:o,unstable_useTransitions:a})}function Uy({basename:e,children:t,history:a,unstable_useTransitions:r}){let[l,o]=Q.useState({action:a.action,location:a.location}),n=Q.useCallback(s=>{r===!1?o(s):Q.startTransition(()=>o(s))},[r]);return Q.useLayoutEffect(()=>a.listen(n),[a,n]),Q.createElement(Xc,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a,unstable_useTransitions:r})}Uy.displayName="unstable_HistoryRouter";var zy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$c=Q.forwardRef(function({onClick:t,discover:a="render",prefetch:r="none",relative:l,reloadDocument:o,replace:n,unstable_mask:s,state:p,target:d,to:g,preventScrollReset:m,viewTransition:f,unstable_defaultShouldRevalidate:x,...L},w){let{basename:E,navigator:c,unstable_useTransitions:h}=Q.useContext(kt),y=typeof g=="string"&&zy.test(g),b=xy(g,E);g=b.to;let S=wy(g,{relative:l}),A=pa(),M=null;if(s){let Ce=Pc(s,[],A.unstable_mask?A.unstable_mask.pathname:"/",!0);E!=="/"&&(Ce.pathname=Ce.pathname==="/"?E:Ma([E,Ce.pathname])),M=c.createHref(Ce)}let[I,T,N]=vS(r,L),F=jy(g,{replace:n,unstable_mask:s,state:p,target:d,preventScrollReset:m,relative:l,viewTransition:f,unstable_defaultShouldRevalidate:x,unstable_useTransitions:h});function Y(Ce){t&&t(Ce),Ce.defaultPrevented||F(Ce)}let V=!(b.isExternal||o),ue=Q.createElement("a",{...L,...N,href:(V?M:void 0)||b.absoluteURL||S,onClick:V?Y:t,ref:SS(w,T),target:d,"data-discover":!y&&a==="render"?"true":void 0});return I&&!y?Q.createElement(Q.Fragment,null,ue,Q.createElement(By,{page:S})):ue});$c.displayName="Link";var Py=Q.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:r="",end:l=!1,style:o,to:n,viewTransition:s,children:p,...d},g){let m=ao(n,{relative:d.relative}),f=pa(),x=Q.useContext($l),{navigator:L,basename:w}=Q.useContext(kt),E=x!=null&&Yy(m)&&s===!0,c=L.encodeLocation?L.encodeLocation(m).pathname:m.pathname,h=f.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;a||(h=h.toLowerCase(),y=y?y.toLowerCase():null,c=c.toLowerCase()),y&&w&&(y=ka(y,w)||y);let b=c!=="/"&&c.endsWith("/")?c.length-1:c.length,S=h===c||!l&&h.startsWith(c)&&h.charAt(b)==="/",A=y!=null&&(y===c||!l&&y.startsWith(c)&&y.charAt(c.length)==="/"),M={isActive:S,isPending:A,isTransitioning:E},I=S?t:void 0,T;typeof r=="function"?T=r(M):T=[r,S?"active":null,A?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let N=typeof o=="function"?o(M):o;return Q.createElement($c,{...d,"aria-current":I,className:T,ref:g,style:N,to:n,viewTransition:s},typeof p=="function"?p(M):p)});Py.displayName="NavLink";var Fy=Q.forwardRef(({discover:e="render",fetcherKey:t,navigate:a,reloadDocument:r,replace:l,state:o,method:n=Mu,action:s,onSubmit:p,relative:d,preventScrollReset:g,viewTransition:m,unstable_defaultShouldRevalidate:f,...x},L)=>{let{unstable_useTransitions:w}=Q.useContext(kt),E=Gy(),c=Vy(s,{relative:d}),h=n.toLowerCase()==="get"?"get":"post",y=typeof s=="string"&&zy.test(s);return Q.createElement("form",{ref:L,method:h,action:c,onSubmit:r?p:S=>{if(p&&p(S),S.defaultPrevented)return;S.preventDefault();let A=S.nativeEvent.submitter,M=A?.getAttribute("formmethod")||n,I=()=>E(A||S.currentTarget,{fetcherKey:t,method:M,navigate:a,replace:l,state:o,relative:d,preventScrollReset:g,viewTransition:m,unstable_defaultShouldRevalidate:f});w&&a!==!1?Q.startTransition(()=>I()):I()},...x,"data-discover":!y&&e==="render"?"true":void 0})});Fy.displayName="Form";function Hy({getKey:e,storageKey:t,...a}){let r=Q.useContext(bn),{basename:l}=Q.useContext(kt),o=pa(),n=Vc();Xy({getKey:e,storageKey:t});let s=Q.useMemo(()=>{if(!r||!e)return null;let d=Uc(o,n,l,e);return d!==o.key?d:null},[]);if(!r||r.isSpaMode)return null;let p=((d,g)=>{if(!window.history.state||!window.history.state.key){let m=Math.random().toString(32).slice(2);window.history.replaceState({key:m},"")}try{let f=JSON.parse(sessionStorage.getItem(d)||"{}")[g||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch(m){console.error(m),sessionStorage.removeItem(d)}}).toString();return Q.createElement("script",{...a,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${p})(${sy(JSON.stringify(t||Bc))}, ${sy(JSON.stringify(s))})`}})}Hy.displayName="ScrollRestoration";function qy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ef(e){let t=Q.useContext(al);return qe(t,qy(e)),t}function wS(e){let t=Q.useContext($l);return qe(t,qy(e)),t}function jy(e,{target:t,replace:a,unstable_mask:r,state:l,preventScrollReset:o,relative:n,viewTransition:s,unstable_defaultShouldRevalidate:p,unstable_useTransitions:d}={}){let g=Ey(),m=pa(),f=ao(e,{relative:n});return Q.useCallback(x=>{if(eS(x,t)){x.preventDefault();let L=a!==void 0?a:Jl(m)===Jl(f),w=()=>g(e,{replace:L,unstable_mask:r,state:l,preventScrollReset:o,relative:n,viewTransition:s,unstable_defaultShouldRevalidate:p});d?Q.startTransition(()=>w()):w()}},[m,g,f,a,r,l,t,e,o,n,s,p,d])}var IS=0,RS=()=>`__${String(++IS)}__`;function Gy(){let{router:e}=ef("useSubmit"),{basename:t}=Q.useContext(kt),a=XL(),r=e.fetch,l=e.navigate;return Q.useCallback(async(o,n={})=>{let{action:s,method:p,encType:d,formData:g,body:m}=rS(o,t);if(n.navigate===!1){let f=n.fetcherKey||RS();await r(f,a,n.action||s,{unstable_defaultShouldRevalidate:n.unstable_defaultShouldRevalidate,preventScrollReset:n.preventScrollReset,formData:g,body:m,formMethod:n.method||p,formEncType:n.encType||d,flushSync:n.flushSync})}else await l(n.action||s,{unstable_defaultShouldRevalidate:n.unstable_defaultShouldRevalidate,preventScrollReset:n.preventScrollReset,formData:g,body:m,formMethod:n.method||p,formEncType:n.encType||d,replace:n.replace,state:n.state,fromRouteId:a,flushSync:n.flushSync,viewTransition:n.viewTransition})},[r,l,t,a])}function Vy(e,{relative:t}={}){let{basename:a}=Q.useContext(kt),r=Q.useContext(Da);qe(r,"useFormAction must be used inside a RouteContext");let[l]=r.matches.slice(-1),o={...ao(e||".",{relative:t})},n=pa();if(e==null){o.search=n.search;let s=new URLSearchParams(o.search),p=s.getAll("index");if(p.some(g=>g==="")){s.delete("index"),p.filter(m=>m).forEach(m=>s.append("index",m));let g=s.toString();o.search=g?`?${g}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(o.pathname=o.pathname==="/"?a:Ma([a,o.pathname])),Jl(o)}var Bc="react-router-scroll-positions",Au={};function Uc(e,t,a,r){let l=null;return r&&(a!=="/"?l=r({...e,pathname:ka(e.pathname,a)||e.pathname},t):l=r(e,t)),l==null&&(l=e.key),l}function Xy({getKey:e,storageKey:t}={}){let{router:a}=ef("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:l}=wS("useScrollRestoration"),{basename:o}=Q.useContext(kt),n=pa(),s=Vc(),p=ky();Q.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),ES(Q.useCallback(()=>{if(p.state==="idle"){let d=Uc(n,s,o,e);Au[d]=window.scrollY}try{sessionStorage.setItem(t||Bc,JSON.stringify(Au))}catch(d){fa(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${d}).`)}window.history.scrollRestoration="auto"},[p.state,e,o,n,s,t])),typeof document<"u"&&(Q.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(t||Bc);d&&(Au=JSON.parse(d))}catch{}},[t]),Q.useLayoutEffect(()=>{let d=a?.enableScrollRestoration(Au,()=>window.scrollY,e?(g,m)=>Uc(g,m,o,e):void 0);return()=>d&&d()},[a,o,e]),Q.useLayoutEffect(()=>{if(r!==!1){if(typeof r=="number"){window.scrollTo(0,r);return}try{if(n.hash){let d=document.getElementById(decodeURIComponent(n.hash.slice(1)));if(d){d.scrollIntoView();return}}}catch{fa(!1,`"${n.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}l!==!0&&window.scrollTo(0,0)}},[n,r,l]))}function ES(e,t){let{capture:a}=t||{};Q.useEffect(()=>{let r=a!=null?{capture:a}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,a])}function Yy(e,{relative:t}={}){let a=Q.useContext(Fc);qe(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ef("useViewTransitionState"),l=ao(e,{relative:t});if(!a.isTransitioning)return!1;let o=ka(a.currentLocation.pathname,r)||a.currentLocation.pathname,n=ka(a.nextLocation.pathname,r)||a.nextLocation.pathname;return vn(l.pathname,n)!=null||vn(l.pathname,o)!=null}var Z=Ae(Ke(),1);rf();var C=Ae(tr(),1),ie={async fetch(e,t={}){let a=await fetch(e,t);if(!a.ok){let r=await a.json().catch(()=>({error:a.statusText}));throw new Error(r.error||"Request failed")}return a.json()},listPublishedFiles:()=>ie.fetch("/api/files"),listTrashFiles:()=>ie.fetch("/api/trash"),deletePublishedFile:e=>ie.fetch(`/api/files/${e}`,{method:"DELETE"}),restoreTrashFile:e=>ie.fetch(`/api/trash/${e}/restore`,{method:"POST"}),permanentDeleteTrashFile:e=>ie.fetch(`/api/trash/${e}`,{method:"DELETE"}),emptyTrash:()=>ie.fetch("/api/trash",{method:"DELETE"}),toggleStar:e=>ie.fetch(`/api/files/${e}/star`,{method:"POST"}),getStorageStats:()=>ie.fetch("/api/storage"),getConfig:()=>ie.fetch("/api/config"),getDataPath:()=>ie.fetch("/api/config/data-path"),saveConfig:e=>ie.fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),async publishFile(e,t){let a=new FormData;a.append("file",e,t||e.name);let r=await fetch("/api/publish",{method:"POST",body:a});if(!r.ok){let l=await r.json().catch(()=>({error:r.statusText}));throw new Error(l.error||"Request failed")}return r.json()},downloadFile:e=>ie.fetch("/api/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({link:e})}),cancelDownload:e=>ie.fetch("/api/download/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({taskId:e})}),getFileDownloadUrl:e=>`/api/files/${e}/download`,moveFile:(e,t)=>ie.fetch("/api/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cid:e,newFileName:t})}),renameFolder:(e,t)=>ie.fetch("/api/folder/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:e,newPath:t})})};function zu(e){return!e||e<=0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function h1(e){return e?new Date(e).toLocaleDateString("zh-CN"):""}function La(e){let t=e.lastIndexOf("/");return t===-1?{folder:"",name:e}:{folder:e.substring(0,t),name:e.substring(t+1)}}function m1(e){let t=new Set;return e.forEach(a=>{let{folder:r}=La(a.fileName),l=r.split("/").filter(Boolean),o="";for(let n of l)o+=(o?"/":"")+n,t.add(o)}),[...t].sort()}function g1(e,t){let a=t?t+"/":"";return e.filter(r=>{let l=r.toLowerCase().startsWith(a.toLowerCase()),o=r.substring(a.length);return l&&!o.includes("/")}).map(r=>({name:r.substring(a.length),path:r}))}function y1(e,t,a){return{folders:g1(t,a),files:e.filter(r=>La(r.fileName).folder===a)}}function Pu(e){let t=e.split(".").pop().toLowerCase(),a=["jpg","jpeg","png","gif","webp","svg","bmp","ico","tiff","heic","heif"],r=["mp4","webm","mov","avi","mkv","flv","wmv","m4v","mpeg","3gp"],l=["mp3","wav","ogg","flac","aac","m4a","wma","opus"],o=["txt","md","js","ts","jsx","tsx","css","scss","less","json","xml","html","htm","yaml","yml","toml","ini","cfg","conf","log","sh","bash","py","rb","go","rs","java","c","cpp","h","hpp","cs","php","sql","graphql","env","gitignore","dockerfile","readme"];return a.includes(t)?"image":r.includes(t)?"video":l.includes(t)?"audio":o.includes(t)?"text":"file"}function v1({onClose:e,onShutdown:t}){let[a,r]=(0,Z.useState)(0),[l,o]=(0,Z.useState)(""),[n,s]=(0,Z.useState)(!1),[p,d]=(0,Z.useState)(!1),[g,m]=(0,Z.useState)("");(0,Z.useEffect)(()=>{ie.getDataPath().then(c=>{m(c.dataPath||"")}).catch(()=>{})},[]);let f=[{title:"\u6B22\u8FCE\u4F7F\u7528",content:"\u62D6\u62FD\u6587\u4EF6\u5230\u4E0A\u4F20\u533A\uFF0C\u6216\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u3002\u4E0A\u4F20\u540E\u590D\u5236\u94FE\u63A5\u53D1\u7ED9\u670B\u53CB\u5373\u53EF\u3002"},{title:"\u4E0B\u8F7D\u6587\u4EF6",content:"\u70B9\u51FB\u300C\u4E0B\u8F7D\u6587\u4EF6\u300D\uFF0C\u7C98\u8D34\u5206\u4EAB\u94FE\u63A5\u5373\u53EF\u4ECE P2P \u7F51\u7EDC\u4E0B\u8F7D\u6587\u4EF6\u3002"},{title:"\u8BBE\u7F6E\u5B58\u50A8\u4F4D\u7F6E",content:"\u9009\u62E9\u6587\u4EF6\u5B58\u50A8\u7684\u6587\u4EF6\u5939\u4F4D\u7F6E\uFF08\u53EF\u9009\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u76D8\uFF09",isOptional:!0}],x=f[a],L=async()=>{if(l.trim()){s(!0);try{await ie.saveConfig({dataPath:l.trim()})}catch(c){console.error("Save path error:",c),s(!1);return}s(!1),d(!0)}},w=a===f.length-1,E=a===2;return(0,C.jsx)(Or,{onClose:e,closeOnOverlayClick:!1,children:(0,C.jsx)("div",{className:"welcome-modal",onClick:c=>c.stopPropagation(),children:p?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"welcome-success-icon",children:(0,C.jsx)(kr,{size:24,color:"#22c55e"})}),(0,C.jsx)("h2",{children:"\u8BBE\u7F6E\u5DF2\u4FDD\u5B58"}),(0,C.jsx)("p",{children:"\u5B58\u50A8\u4F4D\u7F6E\u5DF2\u66F4\u6539\uFF0C\u9700\u8981\u91CD\u542F\u5E94\u7528\u751F\u6548\u3002"}),(0,C.jsx)("button",{onClick:t,className:"btn primary",children:"\u597D\u7684"})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("h2",{children:x.title}),(0,C.jsx)("p",{children:x.content}),E&&(0,C.jsxs)("div",{className:"welcome-path-section",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"path-label",children:"\u5F53\u524D\u5B58\u50A8\u4F4D\u7F6E"}),(0,C.jsx)("div",{className:"path-value",children:g||"\u672A\u8BBE\u7F6E"})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"path-label",children:"\u81EA\u5B9A\u4E49\u4F4D\u7F6E"}),(0,C.jsx)("input",{type:"text",value:l,onChange:c=>o(c.target.value),placeholder:"\u5982 D:\\",className:"path-input"}),(0,C.jsx)("div",{className:"path-hint",children:"\u4E0D\u586B\u5219\u4F7F\u7528\u5F53\u524D\u4F4D\u7F6E\uFF0C\u4FEE\u6539\u540E\u9700\u91CD\u542F\u5E94\u7528"})]})]}),(0,C.jsx)("div",{className:"welcome-steps",children:f.map((c,h)=>(0,C.jsx)("div",{className:`welcome-step-dot ${h===a?"active":""}`},h))}),(0,C.jsxs)("div",{className:"welcome-actions",children:[E&&(0,C.jsx)("button",{onClick:e,className:"btn secondary",children:"\u8DF3\u8FC7"}),(0,C.jsx)("button",{onClick:()=>{E&&l?L():w?e():r(a+1)},disabled:E&&n,className:"btn primary",style:{opacity:E&&n?.6:1,cursor:E&&n?"not-allowed":"pointer"},children:E?n?"\u4FDD\u5B58\u4E2D...":"\u4FDD\u5B58\u5E76\u5B8C\u6210":w?"\u5F00\u59CB\u4F7F\u7528":"\u4E0B\u4E00\u6B65"})]})]})})})}function x1({onClose:e,addToast:t,isDarkMode:a,handleShutdown:r}){let[l,o]=(0,Z.useState)(""),[n,s]=(0,Z.useState)(""),[p,d]=(0,Z.useState)(!1),[g,m]=(0,Z.useState)(!0),[f,x]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{ie.getDataPath().then(c=>{let h=c.dataPath||"";o(h),s(h),d(c.isDefault||!1),m(!1)}).catch(()=>m(!1))},[]);let L=async()=>{if(l.trim()&&l.trim()!==n){x(!0);try{await ie.saveConfig({dataPath:l.trim()}),await fetch("/api/shutdown",{method:"POST"}),window.close()}catch(c){t(c.message||"\u4FDD\u5B58\u5931\u8D25","error"),x(!1)}}},w=async()=>{if(n!==""){x(!0);try{await ie.saveConfig({resetStorage:!0}),await fetch("/api/shutdown",{method:"POST"}),window.close()}catch(c){t(c.message||"\u64CD\u4F5C\u5931\u8D25","error"),x(!1)}}},E=l.trim()!==n;return(0,C.jsx)(Or,{onClose:e,children:(0,C.jsxs)("div",{className:"settings-modal",onClick:c=>c.stopPropagation(),children:[(0,C.jsxs)("div",{className:"modal-header",children:[(0,C.jsx)("h2",{className:"settings-title",children:"\u8BBE\u7F6E"}),(0,C.jsx)("button",{onClick:e,className:"modal-close-btn",children:(0,C.jsx)(Ct,{size:18})})]}),(0,C.jsxs)("div",{style:{marginBottom:20},children:[(0,C.jsx)("label",{className:"settings-label",children:"\u5B58\u50A8\u4F4D\u7F6E"}),(0,C.jsxs)("div",{className:"settings-row",children:[(0,C.jsx)("input",{type:"text",value:l,onChange:c=>o(c.target.value),placeholder:"\u5982 D:\\most-data",disabled:g,className:"settings-input"}),(0,C.jsx)("button",{onClick:L,disabled:f||g||!E,className:"btn primary",style:{whiteSpace:"nowrap",opacity:f||g||!E?.5:1},children:f?"\u4FDD\u5B58\u4E2D...":"\u4FDD\u5B58"}),!p&&(0,C.jsx)("button",{onClick:w,disabled:f||g,className:"btn secondary",style:{whiteSpace:"nowrap",opacity:f||g?.5:1},children:"\u6062\u590D\u9ED8\u8BA4"})]}),(0,C.jsx)("p",{className:"settings-hint",children:"\u4FEE\u6539\u540E\u9700\u91CD\u542F\u5E94\u7528"})]}),(0,C.jsxs)("div",{className:"settings-divider",children:[(0,C.jsxs)("div",{className:"settings-about",children:[(0,C.jsx)("h3",{children:"MostBox"}),(0,C.jsx)("p",{children:"\u7248\u672C 0.0.1"})]}),(0,C.jsx)("p",{style:{fontSize:12,textAlign:"center",color:"var(--text-secondary)"},children:"Hyperswarm \xB7 Hyperdrive \xB7 IPFS"})]}),(0,C.jsxs)("button",{onClick:()=>{e(),r()},className:"btn danger full",style:{marginTop:20},children:[(0,C.jsx)(Un,{size:16})," \u5173\u95ED\u670D\u52A1"]})]})})}function b1({message:e,type:t,onDone:a,index:r}){return(0,Z.useEffect)(()=>{let l=setTimeout(a,3e3);return()=>clearTimeout(l)},[]),(0,C.jsx)("div",{className:`toast ${t}`,style:{bottom:24+r*60},children:e})}function Or({children:e,onClose:t,closeOnOverlayClick:a=!1}){return(0,C.jsx)("div",{className:"modal-overlay",onClick:l=>{a&&l.target===l.currentTarget&&t?.()},children:e})}function Yv(e){return e?[{path:"",name:"\u5168\u90E8\u5185\u5BB9"},...e.split("/").filter(Boolean).map((t,a,r)=>({path:r.slice(0,a+1).join("/"),name:t}))]:[]}var lf=(e,t)=>async()=>{try{e(await t())}catch(a){console.error(a)}};function L1({file:e,isSelected:t,isDarkMode:a,onSelect:r,onPreview:l}){let o=Pu(e.fileName);return(0,C.jsxs)("div",{"data-id":e.cid,onClick:()=>r(e.cid),onDoubleClick:()=>l(e),className:`card ${t?"selected":""}`,children:[(0,C.jsxs)("div",{className:`card-icon ${e.starred?"starred":"file"}`,children:[o==="image"&&(0,C.jsx)(En,{size:24,color:"#fff"}),o==="video"&&(0,C.jsx)(In,{size:24,color:"#fff"}),o==="audio"&&(0,C.jsx)(no,{size:24,color:"#fff"}),o==="file"&&(0,C.jsx)(ll,{size:24,color:"#fff"})]}),(0,C.jsx)("p",{className:"card-name",children:La(e.fileName).name})]})}function S1({folder:e,isDarkMode:t,onClick:a}){return(0,C.jsxs)("div",{onClick:a,className:"card",children:[(0,C.jsx)("div",{className:"card-icon folder",children:(0,C.jsx)(oo,{size:28,color:"#fff"})}),(0,C.jsx)("p",{className:"card-name",children:e.name})]})}function C1({title:e,message:t,confirmText:a,onConfirm:r,onClose:l,danger:o,isDarkMode:n,closeOnOverlayClick:s}){return(0,C.jsx)(Or,{onClose:l,closeOnOverlayClick:s,children:(0,C.jsxs)("div",{className:"confirm-modal",onClick:p=>p.stopPropagation(),children:[(0,C.jsx)("h3",{children:e}),(0,C.jsx)("p",{children:t}),(0,C.jsxs)("div",{className:"modal-actions",children:[(0,C.jsx)("button",{onClick:l,className:"btn secondary",children:"\u53D6\u6D88"}),(0,C.jsx)("button",{onClick:r,className:`btn ${o?"danger":"primary"}`,children:a})]})]})})}function w1({title:e,placeholder:t,defaultValue:a,confirmText:r,onConfirm:l,onClose:o,isDarkMode:n,isLoading:s,loadingText:p}){let[d,g]=(0,Z.useState)(a||"");return(0,C.jsx)(Or,{onClose:o,children:(0,C.jsxs)("div",{className:"input-modal",onClick:m=>m.stopPropagation(),children:[(0,C.jsx)("h3",{children:e}),(0,C.jsx)("input",{type:"text",value:d,onChange:m=>g(m.target.value),placeholder:t,autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&d.trim()&&!s&&l(d.trim())},className:"modal-input"}),(0,C.jsxs)("div",{className:"modal-actions",children:[(0,C.jsx)("button",{onClick:o,disabled:s,className:"btn secondary",children:"\u53D6\u6D88"}),(0,C.jsx)("button",{onClick:()=>d.trim()&&l(d.trim()),disabled:!d.trim()||s,className:"btn primary",style:{opacity:s?.7:1},children:s?p||"\u5904\u7406\u4E2D...":r})]})]})})}function I1({items:e,allFolders:t,currentPath:a,isDarkMode:r,onMove:l,onClose:o}){let[n,s]=(0,Z.useState)(""),[p,d]=(0,Z.useState)(a),g=Yv(n),m=()=>{let f=n||p.trim();l(f)};return(0,C.jsx)(Or,{onClose:o,children:(0,C.jsxs)("div",{className:"move-modal",onClick:f=>f.stopPropagation(),children:[(0,C.jsxs)("div",{className:"modal-header",children:[(0,C.jsx)("h3",{children:"\u79FB\u52A8\u5230"}),(0,C.jsx)("button",{onClick:o,className:"modal-close-btn",children:(0,C.jsx)(Ct,{size:18})})]}),(0,C.jsxs)("p",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:12},children:["\u5DF2\u9009 ",e.length," \u4E2A\u9879\u76EE"]}),(0,C.jsx)("div",{className:"move-new-folder",children:(0,C.jsx)("input",{type:"text",value:p,onChange:f=>d(f.target.value),placeholder:"\u8F93\u5165\u8DEF\u5F84\u521B\u5EFA\u5D4C\u5957\u6587\u4EF6\u5939"})}),(0,C.jsx)("p",{style:{fontSize:11,color:"var(--text-muted)",marginBottom:12},children:"\u5982 \u56FE\u7247/\u58C1\u7EB8"}),(0,C.jsx)("div",{className:"move-breadcrumb",children:g.map((f,x)=>(0,C.jsxs)(Z.default.Fragment,{children:[x>0&&(0,C.jsx)("span",{style:{color:"var(--text-secondary)"},children:"/"}),(0,C.jsx)("button",{onClick:()=>{s(f.path),d(f.path)},className:`move-breadcrumb-btn ${n===f.path&&!p?"active":""}`,children:f.name},f.path)]},f.path))}),(0,C.jsxs)("div",{className:"move-folder-list",children:[t.filter(f=>{if(n==="")return!f.path.includes("/");let x=n+"/";return f.path.startsWith(x)?!f.path.substring(x.length).includes("/"):!1}).length===0&&(0,C.jsx)("p",{style:{fontSize:12,color:"var(--text-secondary)",textAlign:"center",padding:16},children:"\u8BE5\u76EE\u5F55\u4E0B\u6CA1\u6709\u5B50\u6587\u4EF6\u5939"}),t.filter(f=>{if(n==="")return!f.path.includes("/");let x=n+"/";return f.path.startsWith(x)?!f.path.substring(x.length).includes("/"):!1}).map(f=>(0,C.jsxs)("button",{onClick:()=>s(f.path),className:`move-folder-item ${n===f.path&&!p?"selected":""}`,children:[(0,C.jsx)(oo,{size:16}),(0,C.jsx)("span",{children:f.name})]},f.path))]}),(0,C.jsxs)("div",{className:"modal-actions",children:[(0,C.jsx)("button",{onClick:o,className:"btn secondary",children:"\u53D6\u6D88"}),(0,C.jsx)("button",{onClick:m,className:"btn primary",children:"\u79FB\u52A8"})]})]})})}function of(){let[e,t]=(0,Z.useState)([]),[a,r]=(0,Z.useState)([]),[l,o]=(0,Z.useState)(null),[n,s]=(0,Z.useState)("all"),[p,d]=(0,Z.useState)(!1),[g,m]=(0,Z.useState)(!1),[f,x]=(0,Z.useState)([]),[L,w]=(0,Z.useState)(null),[E,c]=(0,Z.useState)(null),[h,y]=(0,Z.useState)(!1),[b,S]=(0,Z.useState)(""),[A,M]=(0,Z.useState)([]),[I,T]=(0,Z.useState)([]),[N,F]=(0,Z.useState)(!1),[Y,V]=(0,Z.useState)(""),[ue,Ce]=(0,Z.useState)(!1),[We,$]=(0,Z.useState)(0),[Qe,wt]=(0,Z.useState)({total:0,used:0,free:0}),[It,we]=(0,Z.useState)(!1),[be,Ne]=(0,Z.useState)(null),[je,Rt]=(0,Z.useState)(null),[ha,Ft]=(0,Z.useState)(!1),[bt,_a]=(0,Z.useState)(null),[ma,et]=(0,Z.useState)(()=>!localStorage.getItem("mostbox_welcomed")),[ge,D]=(0,Z.useState)(!1),[B,H]=(0,Z.useState)(!1),[X,J]=(0,Z.useState)(""),[i,u]=(0,Z.useState)(!1),[v,R]=(0,Z.useState)(!1),[O,U]=(0,Z.useState)(!1),q=(0,Z.useRef)(null),se=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{L&&(L.subtype==="image"||L.subtype==="video")&&(R(!0),U(!1)),L&&L.subtype==="text"&&(J(""),Me(L.cid))},[L?.cid]),(0,Z.useEffect)(()=>{let k=q.current;if(!k)return;let j=()=>R(!1),re=()=>R(!1);return L?.subtype==="image"?k.complete?R(!1):(k.addEventListener("load",j),k.addEventListener("error",re)):L?.subtype==="video"&&(k.addEventListener("canplay",j),k.addEventListener("error",re)),()=>{k.removeEventListener("load",j),k.removeEventListener("error",re),k.removeEventListener("canplay",j)}},[L]);let Re=l||"",Le=m1(e),{folders:pe,files:ye}=y1(e,Le,Re),ga=Y?e.filter(k=>La(k.fileName).name.toLowerCase().includes(Y.toLowerCase())):ye,ee=(k,j="info")=>M(re=>[...re,{id:Date.now(),message:k,type:j}]),$t=k=>M(j=>j.filter(re=>re.id!==k)),Lt=lf(t,()=>ie.listPublishedFiles().then(k=>k||[])),pt=lf(r,()=>ie.listTrashFiles().then(k=>k||[])),nt=lf(wt,ie.getStorageStats),Gn=k=>{x(j=>j.includes(k)?j.filter(re=>re!==k):[...j,k])},Hu=async k=>{Ne({title:"\u786E\u8BA4\u5220\u9664",message:"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",confirmText:"\u5220\u9664",danger:!0,onConfirm:async()=>{Ne(null);try{await ie.deletePublishedFile(k),x(j=>j.filter(re=>re!==k)),ee("\u5DF2\u5220\u9664","success"),Lt(),pt(),nt()}catch{ee("\u5220\u9664\u5931\u8D25","error")}}})},qu=async k=>{let j=e.filter(re=>La(re.fileName).folder.toLowerCase()===k.path.toLowerCase());Ne({title:"\u786E\u8BA4\u5220\u9664",message:j.length>0?`\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5939\u4E2D\u7684 ${j.length} \u4E2A\u6587\u4EF6\u5417\uFF1F`:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6587\u4EF6\u5939\u5417\uFF1F",confirmText:"\u5220\u9664",danger:!0,onConfirm:async()=>{Ne(null);try{for(let re of j)re.cid&&await ie.deletePublishedFile(re.cid);ee("\u5DF2\u5220\u9664","success"),Lt(),pt(),nt()}catch{ee("\u5220\u9664\u5931\u8D25","error")}}})},sf=async k=>{Ne({title:"\u6C38\u4E45\u5220\u9664",message:"\u786E\u5B9A\u8981\u6C38\u4E45\u5220\u9664\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF01",confirmText:"\u6C38\u4E45\u5220\u9664",danger:!0,onConfirm:async()=>{Ne(null);try{await ie.permanentDeleteTrashFile(k),ee("\u5DF2\u6C38\u4E45\u5220\u9664","success"),pt(),nt()}catch{ee("\u5220\u9664\u5931\u8D25","error")}}})},ju=async k=>{try{await ie.restoreTrashFile(k),ee("\u5DF2\u6062\u590D","success"),Lt(),pt(),nt()}catch{ee("\u6062\u590D\u5931\u8D25","error")}},Vn=async()=>{Ne({title:"\u6E05\u7A7A\u56DE\u6536\u7AD9",message:"\u786E\u5B9A\u8981\u6E05\u7A7A\u56DE\u6536\u7AD9\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF01",confirmText:"\u6E05\u7A7A",danger:!0,onConfirm:async()=>{Ne(null);try{await ie.emptyTrash(),ee("\u56DE\u6536\u7AD9\u5DF2\u6E05\u7A7A","success"),pt(),nt()}catch{ee("\u6E05\u7A7A\u5931\u8D25","error")}}})},Xn=async k=>{try{let j=await ie.toggleStar(k);t(re=>re.map(ce=>ce.cid===k?{...ce,starred:j.starred}:ce)),ee(j.starred?"\u5DF2\u6536\u85CF":"\u5DF2\u53D6\u6D88\u6536\u85CF","success")}catch{ee("\u64CD\u4F5C\u5931\u8D25","error")}},Yn=async()=>{let k=n==="trash";Ne({title:k?"\u6C38\u4E45\u5220\u9664":"\u6279\u91CF\u5220\u9664",message:k?`\u786E\u5B9A\u8981\u6C38\u4E45\u5220\u9664\u9009\u4E2D\u7684 ${f.length} \u4E2A\u9879\u76EE\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF01`:`\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684 ${f.length} \u4E2A\u9879\u76EE\u5417\uFF1F`,confirmText:k?"\u6C38\u4E45\u5220\u9664":"\u5220\u9664",danger:!0,onConfirm:async()=>{Ne(null);try{for(let j of f)k?await ie.permanentDeleteTrashFile(j):j.startsWith("__")||await ie.deletePublishedFile(j);x([]),ee(k?"\u5DF2\u6C38\u4E45\u5220\u9664":"\u5DF2\u5220\u9664","success"),Lt(),pt(),nt()}catch{ee("\u5220\u9664\u5931\u8D25","error")}}})},ar=async k=>{try{for(let j of f){let re=e.find(tt=>tt.cid===j);if(!re)continue;let{name:ce}=La(re.fileName),oe=k?`${k}/${ce}`:ce;re.fileName!==oe&&await ie.moveFile(j,oe)}x([]),we(!1),ee("\u5DF2\u79FB\u52A8","success"),Lt()}catch{ee("\u79FB\u52A8\u5931\u8D25","error")}},P=k=>{let j=!!k.path,re=j?k.name:La(k.fileName).name;Rt({title:j?"\u91CD\u547D\u540D\u6587\u4EF6\u5939":"\u91CD\u547D\u540D\u6587\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u65B0\u540D\u79F0",defaultValue:re,confirmText:"\u91CD\u547D\u540D",onConfirm:async ce=>{if(ce!==re){Ft(!0);try{if(j){let oe=k.path.lastIndexOf("/"),tt=oe!==-1?k.path.substring(0,oe):"",Ie=tt?`${tt}/${ce}`:ce;await ie.renameFolder(k.path,Ie),ee("\u5DF2\u91CD\u547D\u540D","success"),Lt(),Wn(Ie)}else{let{folder:oe}=La(k.fileName),tt=oe?`${oe}/${ce}`:ce;await ie.moveFile(k.cid,tt),ee("\u5DF2\u91CD\u547D\u540D","success"),Lt()}Rt(null)}catch{ee("\u91CD\u547D\u540D\u5931\u8D25","error")}finally{Ft(!1)}}}})},K=async k=>{let j=Re?Re+"/":"",re=[];for(let ce of Array.from(k)){let oe=j+ce.name;if(e.some(fo=>fo.fileName===oe)){ee(`${ce.name} \u5DF2\u5B58\u5728`,"warning");continue}let Ie=`upload_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,Et={id:Ie,fileName:ce.name,progress:0,type:"upload",status:"uploading"};re.push(Et),T(fo=>[...fo,Et]),re.length>0&&F(!0);try{(await ie.publishFile(ce,oe)).alreadyExists?(T(po=>po.map(ya=>ya.id===Ie?{...ya,status:"completed"}:ya)),ee(`${ce.name} \u5DF2\u5B58\u5728`,"warning")):(T(po=>po.map(ya=>ya.id===Ie?{...ya,progress:100,status:"completed"}:ya)),ee(`${ce.name} \u4E0A\u4F20\u6210\u529F`,"success"))}catch{T(po=>po.map(ya=>ya.id===Ie?{...ya,status:"error"}:ya)),ee(`\u4E0A\u4F20\u5931\u8D25: ${ce.name}`,"error")}}setTimeout(()=>{T(ce=>ce.filter(oe=>oe.status!=="completed"&&oe.status!=="error"&&oe.status!=="cancelled"))},3e3),Lt(),nt()},Me=async k=>{u(!0);try{let j=await fetch(`/api/files/${k}/download`,{headers:{Range:"bytes=0-9999"}});if(!j.ok)throw new Error("\u52A0\u8F7D\u5931\u8D25");let re=await j.text();J(re||"\uFF08\u6587\u4EF6\u4E3A\u7A7A\uFF09")}catch{J("\u52A0\u8F7D\u5931\u8D25")}u(!1)},st=()=>{navigator.clipboard.writeText(`most://${E.cid}`).then(()=>{Ce(!0),setTimeout(()=>Ce(!1),2e3)})},[ht,Zn]=(0,Z.useState)(!1),df=async()=>{if(!b.trim()||!b.startsWith("most://")){ee("\u94FE\u63A5\u683C\u5F0F\u5E94\u4E3A most://<cid>","warning");return}if(!ht){Zn(!0);try{let k=await ie.downloadFile(b);if(S(""),y(!1),k.alreadyExists)ee(`${k.fileName} \u5DF2\u5B58\u5728`,"warning");else{let j={id:k.taskId,fileName:"\u4E0B\u8F7D\u6587\u4EF6",progress:0,type:"download",status:"downloading"};T(re=>[...re,j]),F(!0),ee("\u4E0B\u8F7D\u5DF2\u5F00\u59CB","info")}}catch{ee("\u4E0B\u8F7D\u5931\u8D25","error")}finally{Zn(!1)}}},l0=async k=>{if(k.type==="download"&&k.status==="downloading")try{await ie.cancelDownload(k.id)}catch{ee("\u53D6\u6D88\u5931\u8D25","error")}},o0=async k=>{try{let j=await fetch(ie.getFileDownloadUrl(k.cid));if(!j.ok)throw new Error("\u83B7\u53D6\u6587\u4EF6\u5931\u8D25");let re=await j.blob();if(window.showSaveFilePicker){let oe=await(await window.showSaveFilePicker({suggestedName:k.fileName})).createWritable();await oe.write(re),await oe.close(),ee("\u6587\u4EF6\u5DF2\u4FDD\u5B58","success")}else{let ce=URL.createObjectURL(re),oe=document.createElement("a");oe.href=ce,oe.download=k.fileName,document.body.appendChild(oe),oe.click(),document.body.removeChild(oe),URL.revokeObjectURL(ce),ee("\u6587\u4EF6\u5DF2\u4E0B\u8F7D","success")}}catch(j){j.name!=="AbortError"&&ee("\u4FDD\u5B58\u5931\u8D25: "+j.message,"error")}},Wn=k=>{o(k||null),x([])},cf=()=>{et(!1),localStorage.setItem("mostbox_welcomed","true")},n0=()=>{Ne({title:"\u5173\u95ED\u670D\u52A1",message:"\u786E\u5B9A\u8981\u5173\u95ED\u670D\u52A1\u5417\uFF1F",confirmText:"\u5173\u95ED",danger:!0,onConfirm:async()=>{Ne(null);try{await fetch("/api/shutdown",{method:"POST"})}catch{}window.close()}})};(0,Z.useEffect)(()=>{let k=location.protocol==="https:"?"wss:":"ws:",j=new WebSocket(`${k}//${location.host}/ws`);return j.onmessage=re=>{try{let{event:ce,data:oe}=JSON.parse(re.data);if(ce==="publish:success"||ce==="download:success"){Lt(),nt();let tt=oe.taskId||oe.fileName;T(Ie=>Ie.map(Et=>Et.id===tt||Et.fileName===oe.fileName?{...Et,progress:100,status:"completed"}:Et)),ce==="download:success"&&(oe.alreadyExists?ee(`${oe.fileName} \u5DF2\u5B58\u5728`,"warning"):ee(`${oe.fileName} \u4E0B\u8F7D\u5B8C\u6210`,"success"),setTimeout(()=>{T(Ie=>Ie.filter(Et=>!(Et.id===tt&&Et.status==="completed")))},3e3))}ce==="publish:progress"&&T(tt=>tt.map(Ie=>{if(oe.file&&Ie.fileName===oe.file&&Ie.type==="upload"){let Et=50;return oe.stage==="calculating-cid"?Et=25:oe.stage==="uploading"?Et=75:oe.stage==="complete"&&(Et=100),{...Ie,progress:Et}}return Ie})),ce==="download:progress"&&T(tt=>tt.map(Ie=>Ie.id===oe.taskId?{...Ie,progress:oe.percent||0,loaded:oe.loaded,total:oe.total}:Ie)),ce==="download:error"&&(T(tt=>tt.map(Ie=>Ie.id===oe.taskId?{...Ie,status:"error"}:Ie)),ee(`\u4E0B\u8F7D\u5931\u8D25: ${oe.error}`,"error")),ce==="download:status"&&T(tt=>tt.map(Ie=>Ie.id===oe.taskId?{...Ie,fileName:oe.file||Ie.fileName}:Ie)),ce==="download:cancelled"&&(T(tt=>tt.map(Ie=>Ie.id===oe.taskId?{...Ie,status:"cancelled"}:Ie)),ee("\u4E0B\u8F7D\u5DF2\u53D6\u6D88","warning"))}catch{}},()=>j.close()},[]),(0,Z.useEffect)(()=>{let k=localStorage.getItem("theme");(k==="dark"||!k&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&d(!0),Lt(),pt(),nt(),ie.getStorageStats().then(j=>wt(j)).catch(()=>{})},[]),(0,Z.useEffect)(()=>{document.documentElement.setAttribute("data-theme",p?"dark":"light")},[p]);let i0=n==="all"?"\u5168\u90E8\u5185\u5BB9":n==="starred"?"\u6536\u85CF":"\u56DE\u6536\u7AD9",Qn=n==="all"?ga:n==="starred"?e.filter(k=>k.starred&&La(k.fileName).name.toLowerCase().includes(Y.toLowerCase())):a.filter(k=>La(k.fileName).name.toLowerCase().includes(Y.toLowerCase())),ff=n==="starred"?[]:pe.filter(k=>k.name.toLowerCase().includes(Y.toLowerCase())),Gu=Yv(Re);return(0,C.jsxs)("div",{className:"app-layout",children:[(0,C.jsx)("div",{className:`sidebar-overlay ${B?"visible":""}`,onClick:()=>H(!1)}),(0,C.jsxs)("div",{className:`sidebar ${B?"open":""}`,children:[(0,C.jsx)("div",{className:"sidebar-header",children:(0,C.jsx)("h1",{children:"Most.Box"})}),(0,C.jsx)("nav",{className:"sidebar-nav",children:[{id:"all",icon:(0,C.jsx)(wn,{size:18}),label:"\u5168\u90E8\u5185\u5BB9"},{id:"starred",icon:(0,C.jsx)(Pn,{size:18}),label:"\u6536\u85CF"},{id:"trash",icon:(0,C.jsx)(Hn,{size:18}),label:"\u56DE\u6536\u7AD9"}].map(k=>(0,C.jsxs)("button",{onClick:()=>{s(k.id),o(null),x([]),V(""),H(!1)},className:`sidebar-nav-btn ${n===k.id?"active":""}`,children:[k.icon,(0,C.jsx)("span",{children:k.label})]},k.id))}),(0,C.jsxs)("div",{className:"sidebar-footer",children:[(0,C.jsxs)("div",{className:"sidebar-footer-label",children:[(0,C.jsx)(Rn,{size:14}),(0,C.jsx)("span",{children:"\u5B58\u50A8\u7A7A\u95F4"})]}),(0,C.jsx)("div",{className:"storage-bar",children:(0,C.jsx)("div",{className:"storage-bar-fill",style:{width:`${Qe.total>0?Qe.used/Qe.total*100:0}%`}})}),(0,C.jsxs)("div",{className:"storage-info",children:[(0,C.jsx)("span",{children:zu(Qe.used)}),(0,C.jsx)("span",{children:Qe.total>0?zu(Qe.total):"-"})]})]})]}),(0,C.jsxs)("div",{className:"main-content",children:[(0,C.jsxs)("header",{className:"app-header",children:[(0,C.jsxs)("div",{className:"header-left",children:[(0,C.jsx)("button",{onClick:()=>H(!0),className:"icon-btn mobile-menu-btn",children:(0,C.jsx)(Mn,{size:18})}),(0,C.jsx)("h2",{className:"header-title",children:i0}),(0,C.jsxs)("div",{className:"header-badge",children:[(0,C.jsx)("div",{className:`header-badge-dot ${We>0?"connected":""}`}),We>0?`${We} \u8282\u70B9`:"\u7B49\u5F85\u8FDE\u63A5"]})]}),(0,C.jsxs)("div",{className:"header-right",children:[(0,C.jsxs)("div",{className:"search-box",children:[(0,C.jsx)(zn,{size:14}),(0,C.jsx)("input",{type:"text",value:Y,onChange:k=>V(k.target.value),placeholder:"\u641C\u7D22..."}),Y&&(0,C.jsx)("button",{onClick:()=>V(""),children:(0,C.jsx)(Ct,{size:12})})]}),n==="trash"&&a.length>0&&(0,C.jsx)("button",{onClick:Vn,className:"btn small",style:{background:"rgba(239,68,68,0.1)",color:"#ef4444"},children:"\u6E05\u7A7A\u56DE\u6536\u7AD9"}),(0,C.jsxs)("button",{onClick:()=>F(!0),className:"icon-btn",children:[(0,C.jsx)(Sn,{size:16}),I.length>0&&(0,C.jsx)("span",{className:"icon-btn-badge",children:I.length})]}),(0,C.jsx)("a",{href:"/chat",className:"icon-btn accent",title:"P2P \u901A\u8BDD",style:{textDecoration:"none"},children:(0,C.jsx)(Kt,{size:16})}),(0,C.jsx)("button",{onClick:()=>d(!p),className:"icon-btn theme-toggle",children:p?(0,C.jsx)(Fn,{size:16}):(0,C.jsx)(Nn,{size:16})}),(0,C.jsx)("button",{onClick:()=>D(!0),className:"icon-btn",children:(0,C.jsx)(Tn,{size:16})})]})]}),n==="all"&&(0,C.jsxs)("div",{className:"action-grid",children:[(0,C.jsxs)("div",{className:`action-card upload ${g?"drag-over":""}`,onDragOver:k=>{k.preventDefault(),m(!0)},onDragLeave:()=>m(!1),onDrop:k=>{k.preventDefault(),m(!1),K(k.dataTransfer.files)},children:[(0,C.jsx)("input",{type:"file",multiple:!0,onChange:k=>K(k.target.files),className:"action-card-input"}),(0,C.jsx)(so,{size:20,style:{marginBottom:8}}),(0,C.jsx)("p",{children:"\u4E0A\u4F20\u6587\u4EF6"})]}),(0,C.jsxs)("div",{className:"action-card action-card-download",onClick:()=>y(!0),children:[(0,C.jsx)(lo,{size:20,style:{marginBottom:8}}),(0,C.jsx)("p",{children:"\u4E0B\u8F7D\u6587\u4EF6"})]})]}),n==="all"&&(0,C.jsx)("div",{className:"breadcrumb",children:Re?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("button",{onClick:()=>Wn(""),children:"\u5168\u90E8\u5185\u5BB9"}),Gu.slice(1).map((k,j)=>(0,C.jsxs)(Z.default.Fragment,{children:[(0,C.jsx)(Cn,{size:12}),(0,C.jsx)("button",{onClick:()=>Wn(k.path),className:j===Gu.length-2?"current":"",children:k.name}),j===Gu.length-2&&(0,C.jsx)("button",{onClick:()=>P(k),className:"breadcrumb-edit-btn",children:(0,C.jsx)(_r,{size:12})})]},k.path))]}):null}),(0,C.jsxs)("div",{className:"content-grid",children:[n==="trash"&&(Qn.length===0?(0,C.jsx)("div",{className:"empty-state",children:Y?"\u672A\u627E\u5230\u76F8\u5173\u6587\u4EF6":"\u56DE\u6536\u7AD9\u662F\u7A7A\u7684"}):(0,C.jsx)("div",{className:"file-grid",children:Qn.map(k=>(0,C.jsxs)("div",{onClick:()=>x(j=>j.includes(k.cid)?j.filter(re=>re!==k.cid):[...j,k.cid]),onDoubleClick:()=>ju(k.cid),className:`card ${f.includes(k.cid)?"selected":""}`,children:[(0,C.jsx)("div",{className:"card-icon trash",children:(0,C.jsx)(ll,{size:24,color:"#fff"})}),(0,C.jsx)("p",{className:"card-name",children:La(k.fileName).name}),(0,C.jsxs)("p",{className:"card-date",children:["\u5220\u9664\u4E8E ",h1(k.deletedAt)]})]},k.cid))})),n!=="trash"&&(Qn.length===0&&ff.length===0?(0,C.jsx)("div",{className:"empty-state",children:Y?"\u672A\u627E\u5230\u76F8\u5173\u6587\u4EF6":n==="starred"?"\u6682\u65E0\u6536\u85CF":"\u6682\u65E0\u6587\u4EF6"}):(0,C.jsxs)("div",{className:"file-grid",children:[ff.map(k=>(0,C.jsx)(S1,{folder:k,isDarkMode:p,onClick:()=>Wn(k.path)},k.path)),Qn.map(k=>(0,C.jsx)(L1,{file:k,isSelected:f.includes(k.cid),isDarkMode:p,onSelect:Gn,onPreview:j=>w({...j,subtype:Pu(j.fileName)})},k.cid))]}))]})]}),be&&(0,C.jsx)(C1,{title:be.title,message:be.message,confirmText:be.confirmText,danger:be.danger,isDarkMode:p,closeOnOverlayClick:be.danger,onConfirm:be.onConfirm,onClose:()=>Ne(null)}),je&&(0,C.jsx)(w1,{title:je.title,placeholder:je.placeholder,defaultValue:je.defaultValue,confirmText:je.confirmText,isDarkMode:p,isLoading:ha,onConfirm:je.onConfirm,onClose:()=>Rt(null)}),It&&(0,C.jsx)(I1,{items:f.map(k=>e.find(j=>j.cid===k)).filter(Boolean),allFolders:Le.map(k=>({path:k,name:k.split("/").pop()})),currentPath:Re,isDarkMode:p,onMove:ar,onClose:()=>we(!1)}),E&&(0,C.jsx)(Or,{onClose:()=>c(null),children:(0,C.jsxs)("div",{className:"share-modal",onClick:k=>k.stopPropagation(),children:[(0,C.jsxs)("div",{className:"modal-header",children:[(0,C.jsx)("h3",{children:"\u5206\u4EAB\u94FE\u63A5"}),(0,C.jsx)("button",{onClick:()=>c(null),className:"modal-close-btn",children:(0,C.jsx)(Ct,{size:18})})]}),(0,C.jsxs)("div",{className:"share-link-box",children:[(0,C.jsxs)("div",{className:"share-link-text",children:["most://",E.cid]}),(0,C.jsx)("button",{onClick:st,className:`share-copy-btn ${ue?"copied":""}`,children:ue?(0,C.jsx)(kr,{size:18}):(0,C.jsx)(rl,{size:18})})]})]})}),h&&(0,C.jsx)(Or,{onClose:()=>y(!1),children:(0,C.jsxs)("div",{className:"download-modal",onClick:k=>k.stopPropagation(),children:[(0,C.jsxs)("div",{className:"modal-header",children:[(0,C.jsx)("h3",{children:"\u4E0B\u8F7D\u6587\u4EF6"}),(0,C.jsx)("button",{onClick:()=>y(!1),className:"modal-close-btn",children:(0,C.jsx)(Ct,{size:18})})]}),(0,C.jsx)("input",{type:"text",value:b,onChange:k=>S(k.target.value),placeholder:"most://...",onKeyDown:k=>k.key==="Enter"&&df(),className:"download-input"}),(0,C.jsx)("button",{onClick:df,disabled:!b.trim()||ht,className:"download-btn",children:ht?"\u4E0B\u8F7D\u4E2D...":"\u5F00\u59CB\u4E0B\u8F7D"})]})}),L&&(0,C.jsxs)("div",{className:"preview-overlay",onClick:()=>{w(null),J(""),R(!1)},children:[(0,C.jsx)("button",{className:"preview-close",children:(0,C.jsx)(Ct,{size:20})}),(0,C.jsxs)("div",{onClick:k=>k.stopPropagation(),children:[L.subtype==="image"&&(0,C.jsx)("div",{className:"preview-media-wrapper",children:(0,C.jsx)("img",{ref:q,src:ie.getFileDownloadUrl(L.cid),alt:""})}),L.subtype==="video"&&(0,C.jsx)("div",{className:"preview-media-wrapper",children:(0,C.jsx)("video",{ref:q,src:ie.getFileDownloadUrl(L.cid),controls:!0})}),L.subtype==="audio"&&(0,C.jsxs)("div",{className:"preview-audio",children:[(0,C.jsx)("div",{className:"preview-audio-icon",children:(0,C.jsx)(no,{size:36,color:"var(--accent-blue)"})}),(0,C.jsx)("p",{className:"preview-audio-filename",children:L.fileName}),(0,C.jsx)("audio",{className:"preview-audio-player",src:ie.getFileDownloadUrl(L.cid),controls:!0})]}),L.subtype==="file"&&(0,C.jsxs)("div",{className:"preview-unsupported",children:[(0,C.jsx)(ll,{size:48,color:"#fff",style:{marginBottom:12,opacity:.5}}),(0,C.jsx)("p",{children:L.fileName}),(0,C.jsx)("p",{style:{fontSize:12,marginTop:8,opacity:.7},children:"\u65E0\u6CD5\u9884\u89C8"})]}),L.subtype==="text"&&(0,C.jsxs)("div",{className:"preview-text-container",children:[(0,C.jsx)("div",{className:"preview-text-header",children:(0,C.jsx)("span",{children:L.fileName})}),i?(0,C.jsxs)("div",{className:"preview-text-loading",children:[(0,C.jsx)(An,{size:24,className:"preview-text-spinner"}),(0,C.jsx)("p",{children:"\u6B63\u5728\u52A0\u8F7D\u6587\u672C\u9884\u89C8..."}),(0,C.jsx)("p",{className:"preview-text-loading-hint",children:"\u5982\u679C\u662F\u9996\u6B21\u9884\u89C8\uFF0C\u53EF\u80FD\u9700\u8981\u7B49\u5F85 P2P \u7F51\u7EDC\u540C\u6B65"})]}):(0,C.jsx)("pre",{className:"preview-text",children:X||"\uFF08\u6587\u4EF6\u4E3A\u7A7A\uFF09"})]})]})]}),f.length>0&&(0,C.jsxs)("div",{className:"batch-bar",children:[(0,C.jsxs)("span",{className:"batch-info",children:["\u5DF2\u9009 ",f.length," \u9879"]}),(0,C.jsx)("button",{onClick:()=>x([]),className:"batch-dismiss",children:(0,C.jsx)(Ct,{size:16})}),(0,C.jsx)("div",{className:"batch-divider"}),n==="trash"?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("button",{onClick:async()=>{await Promise.all(f.map(k=>ie.restoreTrashFile(k))),x([]),ee("\u5DF2\u6062\u590D","success"),Lt(),pt(),nt()},className:"btn small",children:"\u6062\u590D"}),(0,C.jsx)("button",{onClick:Yn,className:"btn small danger",children:"\u6C38\u4E45\u5220\u9664"})]}):(0,C.jsxs)(C.Fragment,{children:[f.length===1&&(()=>{let k=e.find(j=>j.cid===f[0]);return k&&Pu(k.fileName)!=="file"})()&&(0,C.jsx)("button",{onClick:()=>{let k=e.find(j=>j.cid===f[0]);if(k){let j=Pu(k.fileName);w({...k,subtype:j}),J(""),j==="text"&&Me(k.cid)}},className:"btn small",children:"\u9884\u89C8"}),(0,C.jsx)("button",{onClick:()=>{let k=f.some(j=>{let re=e.find(ce=>ce.cid===j);return re&&!re.starred});f.forEach(j=>{let re=e.find(ce=>ce.cid===j);re&&(k?!re.starred:re.starred)&&Xn(j)})},className:"btn small",style:{background:"#f59e0b",color:"#fff"},children:"\u6536\u85CF"}),f.length===1&&(0,C.jsx)("button",{onClick:()=>{let k=e.find(j=>j.cid===f[0]);k&&P(k)},className:"btn small",children:"\u91CD\u547D\u540D"}),(0,C.jsx)("button",{onClick:()=>we(!0),className:"btn small",style:{background:"var(--accent-blue)",color:"#fff"},children:"\u79FB\u52A8"}),(0,C.jsx)("button",{onClick:Yn,className:"btn small danger",children:"\u5220\u9664"}),f.length===1&&(0,C.jsx)("button",{onClick:()=>c(e.find(k=>k.cid===f[0])),className:"btn small",children:"\u5206\u4EAB"}),f.length===1&&(0,C.jsx)("button",{onClick:()=>{let k=e.find(j=>j.cid===f[0]);k&&o0(k)},className:"btn small",children:"\u53E6\u5B58\u4E3A"})]})]}),N&&(0,C.jsx)(Or,{onClose:()=>F(!1),closeOnOverlayClick:!0,children:(0,C.jsxs)("div",{className:"transfer-modal",onClick:k=>k.stopPropagation(),children:[(0,C.jsxs)("div",{className:"modal-header",children:[(0,C.jsx)("h3",{children:"\u4F20\u8F93"}),(0,C.jsx)("button",{onClick:()=>F(!1),className:"modal-close-btn",children:(0,C.jsx)(Ct,{size:18})})]}),I.length===0?(0,C.jsx)("div",{style:{textAlign:"center",color:"var(--text-muted)",padding:24,fontSize:13},children:"\u6682\u65E0\u4F20\u8F93"}):I.map(k=>(0,C.jsxs)("div",{className:"transfer-item",children:[(0,C.jsxs)("div",{className:"transfer-item-header",children:[k.type==="upload"?(0,C.jsx)(so,{size:14}):(0,C.jsx)(lo,{size:14}),(0,C.jsx)("span",{className:"transfer-item-name",children:k.fileName}),k.status==="downloading"&&k.type==="download"&&(0,C.jsx)("button",{onClick:()=>l0(k),className:"transfer-item-cancel",children:(0,C.jsx)(Ct,{size:14})})]}),(0,C.jsxs)("div",{className:"transfer-progress-row",children:[(0,C.jsx)("div",{className:"transfer-progress-bar",children:(0,C.jsx)("div",{className:`transfer-progress-fill ${k.type==="download"?"download":""} ${k.status==="error"?"error":""} ${k.status==="cancelled"?"cancelled":""}`,style:{width:`${k.progress}%`}})}),(0,C.jsx)("span",{className:"transfer-progress-text",children:k.status==="completed"?"\u5B8C\u6210":k.status==="error"?"\u5931\u8D25":k.status==="cancelled"?"\u5DF2\u53D6\u6D88":k.loaded&&k.total?`${zu(k.loaded)}/${zu(k.total)}`:`${k.progress}%`})]})]},k.id))]})}),A.map((k,j)=>(0,C.jsx)(b1,{message:k.message,type:k.type,onDone:()=>$t(k.id),index:j},k.id)),ma&&(0,C.jsx)(v1,{onClose:cf,onShutdown:()=>{fetch("/api/shutdown",{method:"POST"}),ee("\u670D\u52A1\u5DF2\u5173\u95ED\uFF0C\u8BF7\u91CD\u65B0\u542F\u52A8\u5E94\u7528","info"),cf()}}),ge&&(0,C.jsx)(x1,{onClose:()=>D(!1),addToast:ee,isDarkMode:p,handleShutdown:n0})]})}var Zv=Ae(Ke(),1);var co=Ae(tr(),1),Fu=class extends Zv.default.Component{constructor(a){super(a);pf(this,"handleReload",()=>{window.location.reload()});this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,r){console.error("[ErrorBoundary]",a,r)}render(){return this.state.hasError?(0,co.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"#f8fafc",fontFamily:"system-ui"},children:[(0,co.jsx)("h1",{style:{fontSize:20,fontWeight:600,marginBottom:8,color:"#1e293b"},children:"\u51FA\u9519\u4E86"}),(0,co.jsx)("p",{style:{color:"#64748b",marginBottom:24,textAlign:"center",maxWidth:400},children:"\u53D1\u751F\u4E86\u610F\u5916\u9519\u8BEF\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u52A0\u8F7D\u9875\u9762"}),(0,co.jsx)("button",{onClick:this.handleReload,style:{padding:"10px 24px",borderRadius:8,border:"none",background:"#3b82f6",color:"#fff",fontSize:14,cursor:"pointer"},children:"\u91CD\u65B0\u52A0\u8F7D"})]}):this.props.children}};var Sa=Ae(tr(),1);window.onerror=(e,t,a,r,l)=>{console.error("[Global Error]",{message:e,source:t,lineno:a,colno:r,error:l})};window.onunhandledrejection=e=>{console.error("[Unhandled Promise Rejection]",e.reason)};var M1=uf.default.lazy(()=>Promise.resolve().then(()=>(a0(),t0))),k1=(0,r0.createRoot)(document.getElementById("root"));k1.render((0,Sa.jsx)(Fu,{children:(0,Sa.jsx)(Jc,{children:(0,Sa.jsxs)(Yc,{children:[(0,Sa.jsx)(xn,{path:"/",element:(0,Sa.jsx)(of,{})}),(0,Sa.jsx)(xn,{path:"/chat",element:(0,Sa.jsx)(uf.default.Suspense,{fallback:(0,Sa.jsx)("div",{className:"chat-loading",children:"\u52A0\u8F7D\u4E2D..."}),children:(0,Sa.jsx)(M1,{})})})]})})}));
|
|
13
|
+
/*! Bundled license information:
|
|
14
|
+
|
|
15
|
+
scheduler/cjs/scheduler.production.js:
|
|
16
|
+
(**
|
|
17
|
+
* @license React
|
|
18
|
+
* scheduler.production.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*)
|
|
25
|
+
|
|
26
|
+
react/cjs/react.production.js:
|
|
27
|
+
(**
|
|
28
|
+
* @license React
|
|
29
|
+
* react.production.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*)
|
|
36
|
+
|
|
37
|
+
react-dom/cjs/react-dom.production.js:
|
|
38
|
+
(**
|
|
39
|
+
* @license React
|
|
40
|
+
* react-dom.production.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*)
|
|
47
|
+
|
|
48
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
49
|
+
(**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-dom-client.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*)
|
|
58
|
+
|
|
59
|
+
lucide-react/dist/esm/shared/src/utils/mergeClasses.js:
|
|
60
|
+
lucide-react/dist/esm/shared/src/utils/toKebabCase.js:
|
|
61
|
+
lucide-react/dist/esm/shared/src/utils/toCamelCase.js:
|
|
62
|
+
lucide-react/dist/esm/shared/src/utils/toPascalCase.js:
|
|
63
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
64
|
+
lucide-react/dist/esm/shared/src/utils/hasA11yProp.js:
|
|
65
|
+
lucide-react/dist/esm/context.js:
|
|
66
|
+
lucide-react/dist/esm/Icon.js:
|
|
67
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
68
|
+
lucide-react/dist/esm/icons/arrow-left.js:
|
|
69
|
+
lucide-react/dist/esm/icons/arrow-up-down.js:
|
|
70
|
+
lucide-react/dist/esm/icons/check.js:
|
|
71
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
72
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
73
|
+
lucide-react/dist/esm/icons/download.js:
|
|
74
|
+
lucide-react/dist/esm/icons/file-text.js:
|
|
75
|
+
lucide-react/dist/esm/icons/files.js:
|
|
76
|
+
lucide-react/dist/esm/icons/film.js:
|
|
77
|
+
lucide-react/dist/esm/icons/folder.js:
|
|
78
|
+
lucide-react/dist/esm/icons/hard-drive.js:
|
|
79
|
+
lucide-react/dist/esm/icons/image.js:
|
|
80
|
+
lucide-react/dist/esm/icons/info.js:
|
|
81
|
+
lucide-react/dist/esm/icons/loader.js:
|
|
82
|
+
lucide-react/dist/esm/icons/menu.js:
|
|
83
|
+
lucide-react/dist/esm/icons/message-square.js:
|
|
84
|
+
lucide-react/dist/esm/icons/mic-off.js:
|
|
85
|
+
lucide-react/dist/esm/icons/mic.js:
|
|
86
|
+
lucide-react/dist/esm/icons/monitor-off.js:
|
|
87
|
+
lucide-react/dist/esm/icons/monitor.js:
|
|
88
|
+
lucide-react/dist/esm/icons/moon.js:
|
|
89
|
+
lucide-react/dist/esm/icons/music.js:
|
|
90
|
+
lucide-react/dist/esm/icons/pen.js:
|
|
91
|
+
lucide-react/dist/esm/icons/phone-off.js:
|
|
92
|
+
lucide-react/dist/esm/icons/phone.js:
|
|
93
|
+
lucide-react/dist/esm/icons/plus.js:
|
|
94
|
+
lucide-react/dist/esm/icons/power.js:
|
|
95
|
+
lucide-react/dist/esm/icons/search.js:
|
|
96
|
+
lucide-react/dist/esm/icons/send.js:
|
|
97
|
+
lucide-react/dist/esm/icons/star.js:
|
|
98
|
+
lucide-react/dist/esm/icons/sun.js:
|
|
99
|
+
lucide-react/dist/esm/icons/trash-2.js:
|
|
100
|
+
lucide-react/dist/esm/icons/upload.js:
|
|
101
|
+
lucide-react/dist/esm/icons/users.js:
|
|
102
|
+
lucide-react/dist/esm/icons/video-off.js:
|
|
103
|
+
lucide-react/dist/esm/icons/video.js:
|
|
104
|
+
lucide-react/dist/esm/icons/x.js:
|
|
105
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
106
|
+
(**
|
|
107
|
+
* @license lucide-react v1.7.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*)
|
|
112
|
+
|
|
113
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
114
|
+
(**
|
|
115
|
+
* @license React
|
|
116
|
+
* react-jsx-runtime.production.js
|
|
117
|
+
*
|
|
118
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the MIT license found in the
|
|
121
|
+
* LICENSE file in the root directory of this source tree.
|
|
122
|
+
*)
|
|
123
|
+
|
|
124
|
+
simple-peer/simplepeer.min.js:
|
|
125
|
+
(*!
|
|
126
|
+
* The buffer module from node.js, for the browser.
|
|
127
|
+
*
|
|
128
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
129
|
+
* @license MIT
|
|
130
|
+
*)
|
|
131
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
132
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
133
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
134
|
+
(*! simple-peer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
135
|
+
|
|
136
|
+
react-router/dist/development/chunk-QFMPRPBF.mjs:
|
|
137
|
+
react-router/dist/development/index.mjs:
|
|
138
|
+
(**
|
|
139
|
+
* react-router v7.14.0
|
|
140
|
+
*
|
|
141
|
+
* Copyright (c) Remix Software Inc.
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the MIT license found in the
|
|
144
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
145
|
+
*
|
|
146
|
+
* @license MIT
|
|
147
|
+
*)
|
|
148
|
+
*/
|