vendor: 6,303 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/register-DLvMqJvD.js","assets/AuthForm-DL0su_TC.js","assets/LanguageSwitcher-Cfcr-xeH.js","assets/Check.es-Ol5SzviO.js","assets/collaboration-DImdZMNi.js","assets/login-Byd5O-HA.js","assets/app-Da_wqth9.js","assets/local-data-BYRvkvUo.js","assets/PriorityButton-3ehhx7Jh.js","assets/index-ucvyiknt.js","assets/invite._token-3FXuaEk7.js"])))=>i.map(i=>d[i]); 2function c0(a,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in a)){const h=Object.getOwnPropertyDescriptor(s,c);h&&Object.defineProperty(a,c,h.get?h:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var f0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Sd={exports:{}},dl={};var Ry;function d0(){if(Ry)return dl;Ry=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,c,h){var y=null;if(h!==void 0&&(y=""+h),c.key!==void 0&&(y=""+c.key),"key"in c){h={};for(var v in c)v!=="key"&&(h[v]=c[v])}else h=c;return c=h.ref,{$$typeof:a,type:s,key:y,ref:c!==void 0?c:null,props:h}}return dl.Fragment=r,dl.jsx=i,dl.jsxs=i,dl}var xy;function h0(){return xy||(xy=1,Sd.exports=d0()),Sd.exports}var me=h0(),_d={exports:{}},Ve={};var Oy;function p0(){if(Oy)return Ve;Oy=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),O=Symbol.iterator;function D(K){return K===null||typeof K!="object"?null:(K=O&&K[O]||K["@@iterator"],typeof K=="function"?K:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,V={};function te(K,ie,Se){this.props=K,this.context=ie,this.refs=V,this.updater=Se||Y}te.prototype.isReactComponent={},te.prototype.setState=function(K,ie){if(typeof K!="object"&&typeof K!="function"&&K!=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,K,ie,"setState")},te.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};function fe(){}fe.prototype=te.prototype;function le(K,ie,Se){this.props=K,this.context=ie,this.refs=V,this.updater=Se||Y}var re=le.prototype=new fe;re.constructor=le,z(re,te.prototype),re.isPureReactComponent=!0;var Ce=Array.isArray;function Te(){}var ue={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function Ee(K,ie,Se){var be=Se.ref;return{$$typeof:a,type:K,key:ie,ref:be!==void 0?be:null,props:Se}}function He(K,ie){return Ee(K.type,ie,K.props)}function Be(K){return typeof K=="object"&&K!==null&&K.$$typeof===a}function Ue(K){var ie={"=":"=0",":":"=2"};return"$"+K.replace(/[=:]/g,function(Se){return ie[Se]})}var Xe=/\/+/g;function Ye(K,ie){return typeof K=="object"&&K!==null&&K.key!=null?Ue(""+K.key):ie.toString(36)}function Dt(K){switch(K.status){case"fulfilled":return K.value;case"rejected":throw K.reason;default:switch(typeof K.status=="string"?K.then(Te,Te):(K.status="pending",K.then(function(ie){K.status==="pending"&&(K.status="fulfilled",K.value=ie)},function(ie){K.status==="pending"&&(K.status="rejected",K.reason=ie)})),K.status){case"fulfilled":return K.value;case"rejected":throw K.reason}}throw K}function ee(K,ie,Se,be,qe){var Ke=typeof K;(Ke==="undefined"||Ke==="boolean")&&(K=null);var Qe=!1;if(K===null)Qe=!0;else switch(Ke){case"bigint":case"string":case"number":Qe=!0;break;case"object":switch(K.$$typeof){case a:case r:Qe=!0;break;case x:return Qe=K._init,ee(Qe(K._payload),ie,Se,be,qe)}}if(Qe)return qe=qe(K),Qe=be===""?"."+Ye(K,0):be,Ce(qe)?(Se="",Qe!=null&&(Se=Qe.replace(Xe,"$&/")+"/"),ee(qe,ie,Se,"",function(Me){return Me})):qe!=null&&(Be(qe)&&(qe=He(qe,Se+(qe.key==null||K&&K.key===qe.key?"":(""+qe.key).replace(Xe,"$&/")+"/")+Qe)),ie.push(qe)),1;Qe=0;var zt=be===""?".":be+":";if(Ce(K))for(var wt=0;wt<K.length;wt++)be=K[wt],Ke=zt+Ye(be,wt),Qe+=ee(be,ie,Se,Ke,qe);else if(wt=D(K),typeof wt=="function")for(K=wt.call(K),wt=0;!(be=K.next()).done;)be=be.value,Ke=zt+Ye(be,wt++),Qe+=ee(be,ie,Se,Ke,qe);else if(Ke==="object"){if(typeof K.then=="function")return ee(Dt(K),ie,Se,be,qe);throw ie=String(K),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(K).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return Qe}function ve(K,ie,Se){if(K==null)return K;var be=[],qe=0;return ee(K,be,"","",function(Ke){return ie.call(Se,Ke,qe++)}),be}function Le(K){if(K._status===-1){var ie=K._result;ie=ie(),ie.then(function(Se){(K._status===0||K._status===-1)&&(K._status=1,K._result=Se)},function(Se){(K._status===0||K._status===-1)&&(K._status=2,K._result=Se)}),K._status===-1&&(K._status=0,K._result=ie)}if(K._status===1)return K._result.default;throw K._result}var et=typeof reportError=="function"?reportError:function(K){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof K=="object"&&K!==null&&typeof K.message=="string"?String(K.message):String(K),error:K});if(!window.dispatchEvent(ie))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",K);return}console.error(K)},Je={map:ve,forEach:function(K,ie,Se){ve(K,function(){ie.apply(this,arguments)},Se)},count:function(K){var ie=0;return ve(K,function(){ie++}),ie},toArray:function(K){return ve(K,function(ie){return ie})||[]},only:function(K){if(!Be(K))throw Error("React.Children.only expected to receive a single React element child.");return K}};return Ve.Activity=E,Ve.Children=Je,Ve.Component=te,Ve.Fragment=i,Ve.Profiler=c,Ve.PureComponent=le,Ve.StrictMode=s,Ve.Suspense=b,Ve.__
vendor: 5,254 bytes, line 2
2CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ue,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(K){return ue.H.useMemoCache(K)}},Ve.cache=function(K){return function(){return K.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(K,ie,Se){if(K==null)throw Error("The argument must be a React element, but you passed "+K+".");var be=z({},K.props),qe=K.key;if(ie!=null)for(Ke in ie.key!==void 0&&(qe=""+ie.key),ie)!ce.call(ie,Ke)||Ke==="key"||Ke==="__self"||Ke==="__source"||Ke==="ref"&&ie.ref===void 0||(be[Ke]=ie[Ke]);var Ke=arguments.length-2;if(Ke===1)be.children=Se;else if(1<Ke){for(var Qe=Array(Ke),zt=0;zt<Ke;zt++)Qe[zt]=arguments[zt+2];be.children=Qe}return Ee(K.type,qe,be)},Ve.createContext=function(K){return K={$$typeof:y,_currentValue:K,_currentValue2:K,_threadCount:0,Provider:null,Consumer:null},K.Provider=K,K.Consumer={$$typeof:h,_context:K},K},Ve.createElement=function(K,ie,Se){var be,qe={},Ke=null;if(ie!=null)for(be in ie.key!==void 0&&(Ke=""+ie.key),ie)ce.call(ie,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(qe[be]=ie[be]);var Qe=arguments.length-2;if(Qe===1)qe.children=Se;else if(1<Qe){for(var zt=Array(Qe),wt=0;wt<Qe;wt++)zt[wt]=arguments[wt+2];qe.children=zt}if(K&&K.defaultProps)for(be in Qe=K.defaultProps,Qe)qe[be]===void 0&&(qe[be]=Qe[be]);return Ee(K,Ke,qe)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(K){return{$$typeof:v,render:K}},Ve.isValidElement=Be,Ve.lazy=function(K){return{$$typeof:x,_payload:{_status:-1,_result:K},_init:Le}},Ve.memo=function(K,ie){return{$$typeof:_,type:K,compare:ie===void 0?null:ie}},Ve.startTransition=function(K){var ie=ue.T,Se={};ue.T=Se;try{var be=K(),qe=ue.S;qe!==null&&qe(Se,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(Te,et)}catch(Ke){et(Ke)}finally{ie!==null&&Se.types!==null&&(ie.types=Se.types),ue.T=ie}},Ve.unstable_useCacheRefresh=function(){return ue.H.useCacheRefresh()},Ve.use=function(K){return ue.H.use(K)},Ve.useActionState=function(K,ie,Se){return ue.H.useActionState(K,ie,Se)},Ve.useCallback=function(K,ie){return ue.H.useCallback(K,ie)},Ve.useContext=function(K){return ue.H.useContext(K)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(K,ie){return ue.H.useDeferredValue(K,ie)},Ve.useEffect=function(K,ie){return ue.H.useEffect(K,ie)},Ve.useEffectEvent=function(K){return ue.H.useEffectEvent(K)},Ve.useId=function(){return ue.H.useId()},Ve.useImperativeHandle=function(K,ie,Se){return ue.H.useImperativeHandle(K,ie,Se)},Ve.useInsertionEffect=function(K,ie){return ue.H.useInsertionEffect(K,ie)},Ve.useLayoutEffect=function(K,ie){return ue.H.useLayoutEffect(K,ie)},Ve.useMemo=function(K,ie){return ue.H.useMemo(K,ie)},Ve.useOptimistic=function(K,ie){return ue.H.useOptimistic(K,ie)},Ve.useReducer=function(K,ie,Se){return ue.H.useReducer(K,ie,Se)},Ve.useRef=function(K){return ue.H.useRef(K)},Ve.useState=function(K){return ue.H.useState(K)},Ve.useSyncExternalStore=function(K,ie,Se){return ue.H.useSyncExternalStore(K,ie,Se)},Ve.useTransition=function(){return ue.H.useTransition()},Ve.version="19.2.4",Ve}var Ay;function xl(){return Ay||(Ay=1,_d.exports=p0()),_d.exports}var xe=xl();const us=xg(xe),m0=c0({__proto__:null,default:us},[xe]);var wd={exports:{}},hl={},Ed={exports:{}},Td={};var Cy;function y0(){return Cy||(Cy=1,(function(a){function r(ee,ve){var Le=ee.length;ee.push(ve);e:for(;0<Le;){var et=Le-1>>>1,Je=ee[et];if(0<c(Je,ve))ee[et]=ve,ee[Le]=Je,Le=et;else break e}}function i(ee){return ee.length===0?null:ee[0]}function s(ee){if(ee.length===0)return null;var ve=ee[0],Le=ee.pop();if(Le!==ve){ee[0]=Le;e:for(var et=0,Je=ee.length,K=Je>>>1;et<K;){var ie=2*(et+1)-1,Se=ee[ie],be=ie+1,qe=ee[be];if(0>c(Se,Le))be<Je&&0>c(qe,Se)?(ee[et]=qe,ee[be]=Le,et=be):(ee[et]=Se,ee[ie]=Le,et=ie);else if(be<Je&&0>c(qe,Le))ee[et]=qe,ee[be]=Le,et=be;else break e}}return ve}function c(ee,ve){var Le=ee.sortIndex-ve.sortIndex;return Le!==0?Le:ee.id-ve.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var y=Date,v=y.now();a.unstable_now=function(){return y.now()-v}}var b=[],_=[],x=1,E=null,O=3,D=!1,Y=!1,z=!1,V=!1,te=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,le=typeof setImmediate<"u"?setImmediate:null;function re(ee){for(var ve=i(_);ve!==null;){if(ve.callback===null)s(_);else if(ve.startTime<=ee)s(_),ve.sortIndex=ve.expirationTime,r(b,ve);else break;ve=i(_)}}function Ce(ee){if(z=!1,re(ee),!Y)if(i(b)!==null)Y=!0,Te||(Te=!0,Ue());else{var ve=i(_);ve!==null&&Dt(Ce,ve.startTime-ee)}}var Te=!1,ue=-1,ce=5,Ee=-1;function He(){return V?!0:!(a.unstable_now()-Ee<ce)}function Be(){if(V=!1,Te){var ee=a.unstable_now();Ee=ee;var ve=!0;try{e:{Y=!1,z&&(z=!1,fe(ue),ue=-1),D=!0;var Le=O;try{t:{for(re(ee),E=i(b);E!==null&&!(E.expirationTime>ee&&He());){var et=E.callback;if(typeof et=="function"){E.callback=null,O=E.priorityLevel;var Je=et(E.expirationTime<=ee);if(ee=a.unstable_now(),typeof Je=="function"){E.callback=Je,re(ee),ve=!0;break t}E===i(b)&&s(b),re(ee)}else s(b);E=i(b)}if(E!==null)ve=!0;else{var K=i(_);K!==null&&Dt(Ce,K.startTime-ee),ve=!1}}break e}finally{E=null,O=Le,D=!1}
vendor: 6,997 bytes, line 2
2ve=void 0}}finally{ve?Ue():Te=!1}}}var Ue;if(typeof le=="function")Ue=function(){le(Be)};else if(typeof MessageChannel<"u"){var Xe=new MessageChannel,Ye=Xe.port2;Xe.port1.onmessage=Be,Ue=function(){Ye.postMessage(null)}}else Ue=function(){te(Be,0)};function Dt(ee,ve){ue=te(function(){ee(a.unstable_now())},ve)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(ee){ee.callback=null},a.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<ee?Math.floor(1e3/ee):5},a.unstable_getCurrentPriorityLevel=function(){return O},a.unstable_next=function(ee){switch(O){case 1:case 2:case 3:var ve=3;break;default:ve=O}var Le=O;O=ve;try{return ee()}finally{O=Le}},a.unstable_requestPaint=function(){V=!0},a.unstable_runWithPriority=function(ee,ve){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var Le=O;O=ee;try{return ve()}finally{O=Le}},a.unstable_scheduleCallback=function(ee,ve,Le){var et=a.unstable_now();switch(typeof Le=="object"&&Le!==null?(Le=Le.delay,Le=typeof Le=="number"&&0<Le?et+Le:et):Le=et,ee){case 1:var Je=-1;break;case 2:Je=250;break;case 5:Je=1073741823;break;case 4:Je=1e4;break;default:Je=5e3}return Je=Le+Je,ee={id:x++,callback:ve,priorityLevel:ee,startTime:Le,expirationTime:Je,sortIndex:-1},Le>et?(ee.sortIndex=Le,r(_,ee),i(b)===null&&ee===i(_)&&(z?(fe(ue),ue=-1):z=!0,Dt(Ce,Le-et))):(ee.sortIndex=Je,r(b,ee),Y||D||(Y=!0,Te||(Te=!0,Ue()))),ee},a.unstable_shouldYield=He,a.unstable_wrapCallback=function(ee){var ve=O;return function(){var Le=O;O=ve;try{return ee.apply(this,arguments)}finally{O=Le}}}})(Td)),Td}var My;function g0(){return My||(My=1,Ed.exports=y0()),Ed.exports}var Rd={exports:{}},yn={};var Dy;function v0(){if(Dy)return yn;Dy=1;var a=xl();function r(b){var _="https://react.dev/errors/"+b;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)_+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+b+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(b,_,x){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:E==null?null:""+E,children:b,containerInfo:_,implementation:x}}var y=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(b,_){if(b==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return yn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,yn.createPortal=function(b,_){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(r(299));return h(b,_,null,x)},yn.flushSync=function(b){var _=y.T,x=s.p;try{if(y.T=null,s.p=2,b)return b()}finally{y.T=_,s.p=x,s.d.f()}},yn.preconnect=function(b,_){typeof b=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,s.d.C(b,_))},yn.prefetchDNS=function(b){typeof b=="string"&&s.d.D(b)},yn.preinit=function(b,_){if(typeof b=="string"&&_&&typeof _.as=="string"){var x=_.as,E=v(x,_.crossOrigin),O=typeof _.integrity=="string"?_.integrity:void 0,D=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;x==="style"?s.d.S(b,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:E,integrity:O,fetchPriority:D}):x==="script"&&s.d.X(b,{crossOrigin:E,integrity:O,fetchPriority:D,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},yn.preinitModule=function(b,_){if(typeof b=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var x=v(_.as,_.crossOrigin);s.d.M(b,{crossOrigin:x,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&s.d.M(b)},yn.preload=function(b,_){if(typeof b=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var x=_.as,E=v(x,_.crossOrigin);s.d.L(b,x,{crossOrigin:E,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},yn.preloadModule=function(b,_){if(typeof b=="string")if(_){var x=v(_.as,_.crossOrigin);s.d.m(b,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:x,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else s.d.m(b)},yn.requestFormReset=function(b){s.d.r(b)},yn.unstable_batchedUpdates=function(b,_){return b(_)},yn.useFormState=function(b,_,x){return y.H.useFormState(b,_,x)},yn.useFormStatus=function(){return y.H.useHostTransitionStatus()},yn.version="19.2.4",yn}var zy;function Og(){if(zy)return Rd.exports;zy=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),Rd.exports=v0(),Rd.exports}var Ly;function b0(){if(Ly)return hl;Ly=1;var a=g0(),r=xl(),i=Og();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function y(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 v(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 b(e){if(h(e)!==e)throw Error(s(188))}function _(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,o=t;;){var u=n.return;if(u===null)break;var f=u.alternate;if(f===null){if(o=u.return,o!==null){n=o;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===n)return b(u),e;if(f===o)return b(u),t;f=f.sibling}throw Error(s(188))}if(n.return!==o.return)n=u,o=f;else{for(var g=!1,R=u.child;R;){if(R===n){g=!0,n=u,o=f;break}if(R===o){g=!0,o=u,n=f;break}
vendor: 15,689 bytes, lines 2-9
2R=R.sibling}if(!g){for(R=f.child;R;){if(R===n){g=!0,n=f,o=u;break}if(R===o){g=!0,o=f,n=u;break}R=R.sibling}if(!g)throw Error(s(189))}}if(n.alternate!==o)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,O=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),le=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),He=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function Ue(e){return e===null||typeof e!="object"?null:(e=Be&&e[Be]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case te:return"Profiler";case V:return"StrictMode";case Ce:return"Suspense";case Te:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case le:return e.displayName||"Context";case fe:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var Dt=Array.isArray,ee=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Le={pending:!1,data:null,method:null,action:null},et=[],Je=-1;function K(e){return{current:e}}function ie(e){0>Je||(e.current=et[Je],et[Je]=null,Je--)}function Se(e,t){Je++,et[Je]=e.current,e.current=t}var be=K(null),qe=K(null),Ke=K(null),Qe=K(null);function zt(e,t){switch(Se(Ke,t),Se(qe,e),Se(be,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Im(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Im(t),e=Zm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(be),Se(be,e)}function wt(){ie(be),ie(qe),ie(Ke)}function Me(e){e.memoizedState!==null&&Se(Qe,e);var t=be.current,n=Zm(t,e.type);t!==n&&(Se(qe,e),Se(be,n))}function Yn(e){qe.current===e&&(ie(be),ie(qe)),Qe.current===e&&(ie(Qe),ll._currentValue=Le)}var it,ia;function oa(e){if(it===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);it=t&&t[1]||"",ia=-1<n.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+it+e+ia}var Tn=!1;function br(e,t){if(!e||Tn)return"";Tn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(W){var $=W}Reflect.construct(e,[],se)}else{try{se.call()}catch(W){$=W}e.call(se.prototype)}}else{try{throw Error()}catch(W){$=W}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(W){if(W&&$&&typeof W.stack=="string")return[W.stack,$.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),g=f[0],R=f[1];if(g&&R){var L=g.split(` 5`),F=R.split(` 6`);for(u=o=0;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;for(;u<F.length&&!F[u].includes("DetermineComponentFrameRoot");)u++;if(o===L.length||u===F.length)for(o=L.length-1,u=F.length-1;1<=o&&0<=u&&L[o]!==F[u];)u--;for(;1<=o&&0<=u;o--,u--)if(L[o]!==F[u]){if(o!==1||u!==1)do if(o--,u--,0>u||L[o]!==F[u]){var ae=` 7`+L[o].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=o&&0<=u);break}}}finally{Tn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?oa(n):""}function ha(e,t){switch(e.tag){case 26:case 27:case 5:return oa(e.type);case 16:return oa("Lazy");case 13:return e.child!==t&&t!==null?oa("Suspense Fallback"):oa("Suspense");case 19:return oa("SuspenseList");case 0:case 15:return br(e.type,!1);case 11:return br(e.type.render,!1);case 1:return br(e.type,!0);case 31:return oa("Activity");default:return""}}function Sr(e){try{var t="",n=null;do t+=ha(e,n),n=e,e=e.return;while(e);return t}catch(o){return` 8Error generating stack: `+o.message+` 9`+o.stack}}var zn=Object.prototype.hasOwnProperty,ja=a.unstable_scheduleCallback,fn=a.unstable_cancelCallback,hi=a.unstable_shouldYield,Na=a.unstable_requestPaint,$t=a.unstable_now,Ua=a.unstable_getCurrentPriorityLevel,Ze=a.unstable_ImmediatePriority,yt=a.unstable_UserBlockingPriority,Kt=a.unstable_NormalPriority,pa=a.unstable_LowPriority,ro=a.unstable_IdlePriority,io=a.log,ka=a.unstable_setDisableYieldValue,ma=null,an=null;function rn(e){if(typeof io=="function"&&ka(e),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(ma,e)}catch{}}var Re=Math.clz32?Math.clz32:oo,pi=Math.log,Ba=Math.LN2;function oo(e){return e>>>=0,e===0?32:31-(pi(e)/Ba|0)|0}var _e=256,_r=262144,mi=4194304;function sa(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 yi(e,t,n){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var R=o&134217727;return R!==0?(o=R&~f,o!==0?u=sa(o):(g&=R,g!==0?u=sa(g):n||(n=R&~e,n!==0&&(u=sa(n))))):(R=o&~f,R!==0?u=sa(R):g!==0?u=sa(g):n||(n=o&~e,n!==0&&(u=sa(n)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:u}function qa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xc(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 Cl(){var e=mi;return mi<<=1,(mi&62914560)===0&&(mi=4194304),e}function ya(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ds(e,t,n,o,u,f){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var R=e.entanglements,L=e.expirationTimes,F=e.hiddenUpdates;for(n=g&~n;0<n;){var ae=31-Re(n),se=1<<ae;R[ae]=0,L[ae]=-1;var $=F[ae];if($!==null)for(F[ae]=null,ae=0;ae<$.length;ae++){var W=$[ae];W!==null&&(W.lane&=-536870913)}n&=~se}o!==0&&gi(e,o,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~t))}function gi(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Re(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|n&261930}function Et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-Re(n),u=1<<o;u&t|e[o]&t&&(e[o]|=t),n&=~u}}function kt(e,t){var n=t&-t;return n=(n&42)!==0?1:hs(n),(n&(e.suspendedLanes|t))!==0?0:n}function hs(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 wr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vi(){var e=ve.p;return e!==0?e:(e=window.event,e===void 0?32:vy(e.type))}function bi(e,t){var n=ve.p;try{return ve.p=e,t()}finally{ve.p=n}}var ga=Math.random().toString(36).slice(2),xt="__reactFiber$"+ga,Bt="__reactProps$"+ga,bn="__reactContainer$"+ga,Er="__reactEvents$"+ga,Oc="__reactListeners$"+ga,va="__reactHandles$"+ga,ps="__reactResources$"+ga,Ln="__reactMarker$"+ga;function so(e){delete e[xt],delete e[Bt],delete e[Er],delete e[Oc],delete e[va]}function ba(e){var t=e[xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bn]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ny(e);e!==null;){if(n=e[xt])return n;e=ny(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[xt]||e[bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function dn(e){var t=e[ps];return t||(t=e[ps]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qt(e){e[Ln]=!0}var Pa=new Set,Si={};function la(e,t){Sa(e,t),Sa(e+"Capture",t)}function Sa(e,t){for(Si[e]=t,e=0;e<t.length;e++)Pa.add(t[e])}var Ha=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]*$"),ms={},_i={};function Ml(e){return zn.call(_i,e)?!0:zn.call(ms,e)?!1:Ha.test(e)?_i[e]=!0:(ms[e]=!0,!1)}function $e(e,t,n){if(Ml(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function wi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Vn(e,t,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+o)}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dl(e,t,n){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){n=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){if(!e._valueTracker){var t=Tr(e)?"checked":"value";e._valueTracker=Dl(e,t,""+e[t])}}function ys(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Tr(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function ft(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 Ei=/[\n"\\]/g;function Wt(e){return e.replace(Ei,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _a(e,t,n,o,u,f,g,R){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+on(t)):e.value!==""+on(t)&&(e.value=""+on(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,g,on(t)):n!=null?Ti(e,g,on(n)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+on(R):e.removeAttribute("name")}function uo(e,t,n,o,u,f,g,R){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){lo(e);return}n=n!=null?""+on(n):"",t=t!=null?""+on(t):n,R||t===e.value||(e.value=t),e.defaultValue=t}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=R?e.checked:!!o,e.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),lo(e)}function Ti(e,t,n){t==="number"&&ft(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ua(e,t,n,o){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&o&&(e[n].defaultSelected=!0)}else{for(n=""+on(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function gs(e,t,n){if(t!=null&&(t=""+on(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+on(n):""}function Ri(e,t,n,o){if(t==null){if(o!=null){if(n!=null)throw Error(s(92));if(Dt(o)){if(1<o.length)throw Error(s(93));o=o[0]}n=o}n==null&&(n=""),t=n}n=on(t),e.defaultValue=n,o=e.textContent,o===n&&o!==""&&o!==null&&(e.value=o),lo(e)}function Ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ac=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 ot(e,t,n){var o=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,n):typeof n!="number"||n===0||Ac.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}
vendor: 13,701 bytes, line 9
9function vs(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var o in n)!n.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in t)o=t[u],t.hasOwnProperty(u)&&n[u]!==o&&ot(e,u,o)}else for(var f in t)t.hasOwnProperty(f)&&ot(e,f,t[f])}function bs(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 Cc=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"]]),Sn=/^[\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 ca(e){return Sn.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var Xn=null;function co(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ya=null,Ot=null;function Nn(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(_a(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Wt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var u=o[Bt]||null;if(!u)throw Error(s(90));_a(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)o=n[t],o.form===e.form&&ys(o)}break e;case"textarea":gs(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ua(e,!!n.multiple,t,!1)}}}var Ga=!1;function Rr(e,t,n){if(Ga)return e(t,n);Ga=!0;try{var o=e(t);return o}finally{if(Ga=!1,(Ya!==null||Ot!==null)&&(Su(),Ya&&(t=Ya,e=Ot,Ot=Ya=null,Nn(t),e)))for(t=0;t<e.length;t++)Nn(e[t])}}function Va(e,t){var n=e.stateNode;if(n===null)return null;var o=n[Bt]||null;if(o===null)return null;n=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ss=!1;if(en)try{var hn={};Object.defineProperty(hn,"passive",{get:function(){Ss=!0}}),window.addEventListener("test",hn,hn),window.removeEventListener("test",hn,hn)}catch{Ss=!1}var Qn=null,fo=null,xr=null;function Or(){if(xr)return xr;var e,t=fo,n=t.length,o,u="value"in Qn?Qn.value:Qn.textContent,f=u.length;for(e=0;e<n&&t[e]===u[e];e++);var g=n-e;for(o=1;o<=g&&t[n-o]===u[f-o];o++);return xr=u.slice(e,1<o?1-o:void 0)}function Ar(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 xi(){return!0}function zl(){return!1}function Yt(e){function t(n,o,u,f,g){this._reactName=n,this._targetInst=u,this.type=o,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(n=e[R],this[R]=n?n(f):f[R]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?xi:zl,this.isPropagationStopped=zl,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),t}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ho=Yt(Xa),wa=E({},Xa,{view:0,detail:0}),po=Yt(wa),Oi,_s,Ai,mo=E({},wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qa,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!==Ai&&(Ai&&e.type==="mousemove"?(Oi=e.screenX-Ai.screenX,_s=e.screenY-Ai.screenY):_s=Oi=0,Ai=e),Oi)},movementY:function(e){return"movementY"in e?e.movementY:_s}}),yo=Yt(mo),ws=E({},mo,{dataTransfer:0}),Ll=Yt(ws),go=E({},wa,{relatedTarget:0}),Cr=Yt(go),vo=E({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),jl=Yt(vo),Mc=E({},Xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mr=Yt(Mc),Es=E({},Xa,{data:0}),bo=Yt(Es),Ts={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rs={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"},tn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ci(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tn[e])?!!t[e]:!1}function Qa(){return Ci}var Nl=E({},wa,{key:function(e){if(e.key){var t=Ts[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rs[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qa,charCode:function(e){return e.type==="keypress"?Ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),So=Yt(Nl),Ul=E({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xs=Yt(Ul),_o=E({},wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qa}),Os=Yt(_o),Ia=E({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),As=Yt(Ia),Cs=E({},mo,{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}),wo=Yt(Cs),Ms=E({},Xa,{newState:0,oldState:0}),kl=Yt(Ms),Dc=[9,13,27,32],Mi=en&&"CompositionEvent"in window,Ea=null;en&&"documentMode"in document&&(Ea=document.documentMode);var zc=en&&"TextEvent"in window&&!Ea,Eo=en&&(!Mi||Ea&&8<Ea&&11>=Ea),To=" ",Bl=!1;function Ds(e,t){switch(e){case"keyup":return Dc.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ql(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Za=!1;function Pl(e,t){switch(e){case"compositionend":return ql(t);case"keypress":return t.which!==32?null:(Bl=!0,To);case"textInput":return e=t.data,e===To&&Bl?null:e;default:return null}}function Lc(e,t){if(Za)return e==="compositionend"||!Mi&&Ds(e,t)?(e=Or(),xr=fo=Qn=null,Za=!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 Eo&&t.locale!=="ko"?null:t.data;default:return null}}var Hl={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 Ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hl[e.type]:t==="textarea"}function zs(e,t,n,o){Ya?Ot?Ot.push(o):Ot=[o]:Ya=o,t=Ou(t,"onChange"),0<t.length&&(n=new ho("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Dr=null,Di=null;function jc(e){Km(e,0)}function xo(e){var t=jn(e);if(ys(t))return e}function zi(e,t){if(e==="change")return t}var In=!1;if(en){var At;if(en){var zr="oninput"in document;if(!zr){var Fa=document.createElement("div");Fa.setAttribute("oninput","return;"),zr=typeof Fa.oninput=="function"}At=zr}else At=!1;In=At&&(!document.documentMode||9<document.documentMode)}function Kl(){Dr&&(Dr.detachEvent("onpropertychange",Oo),Di=Dr=null)}function Oo(e){if(e.propertyName==="value"&&xo(Di)){var t=[];zs(t,Di,e,co(e)),Rr(jc,t)}}function Yl(e,t,n){e==="focusin"?(Kl(),Dr=t,Di=n,Dr.attachEvent("onpropertychange",Oo)):e==="focusout"&&Kl()}function Ja(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xo(Di)}function Ls(e,t){if(e==="click")return xo(t)}function Lr(e,t){if(e==="input"||e==="change")return xo(t)}function Ta(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pn=typeof Object.is=="function"?Object.is:Ta;function l(e,t){if(pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var u=n[o];if(!zn.call(t,u)||!pn(e[u],t[u]))return!1}return!0}function d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function p(e,t){var n=d(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=d(n)}}function m(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?m(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ft(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ft(e.document)}return t}function w(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 A=en&&"documentMode"in document&&11>=document.documentMode,C=null,N=null,X=null,U=!1;function j(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;U||C==null||C!==ft(o)||(o=C,"selectionStart"in o&&w(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focu
vendor: 18,539 bytes, line 9
9sNode:o.focusNode,focusOffset:o.focusOffset}),X&&l(X,o)||(X=o,o=Ou(N,"onSelect"),0<o.length&&(t=new ho("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=C)))}function q(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var H={animationend:q("Animation","AnimationEnd"),animationiteration:q("Animation","AnimationIteration"),animationstart:q("Animation","AnimationStart"),transitionrun:q("Transition","TransitionRun"),transitionstart:q("Transition","TransitionStart"),transitioncancel:q("Transition","TransitionCancel"),transitionend:q("Transition","TransitionEnd")},k={},B={};en&&(B=document.createElement("div").style,"AnimationEvent"in window||(delete H.animationend.animation,delete H.animationiteration.animation,delete H.animationstart.animation),"TransitionEvent"in window||delete H.transitionend.transition);function I(e){if(k[e])return k[e];if(!H[e])return e;var t=H[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in B)return k[e]=t[n];return e}var J=I("animationend"),Q=I("animationiteration"),ne=I("animationstart"),de=I("transitionrun"),ye=I("transitionstart"),ge=I("transitioncancel"),he=I("transitionend"),Oe=new Map,we="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(" ");we.push("scrollEnd");function pe(e,t){Oe.set(e,t),la(t,[e])}var Ae=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)},Pe=[],We=0,je=0;function Ge(){for(var e=We,t=je=We=0;t<e;){var n=Pe[t];Pe[t++]=null;var o=Pe[t];Pe[t++]=null;var u=Pe[t];Pe[t++]=null;var f=Pe[t];if(Pe[t++]=null,o!==null&&u!==null){var g=o.pending;g===null?u.next=u:(u.next=g.next,g.next=u),o.pending=u}f!==0&&Ra(n,u,f)}}function vt(e,t,n,o){Pe[We++]=e,Pe[We++]=t,Pe[We++]=n,Pe[We++]=o,je|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function mn(e,t,n,o){return vt(e,t,n,o),jr(e)}function ht(e,t){return vt(e,null,null,t),jr(e)}function Ra(e,t,n){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n);for(var u=!1,f=e.return;f!==null;)f.childLanes|=n,o=f.alternate,o!==null&&(o.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-Re(n),e=f.hiddenUpdates,o=e[u],o===null?e[u]=[t]:o.push(t),t.lane=n|536870912),f):null}function jr(e){if(50<tl)throw tl=0,Gf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ao={};function Qv(e,t,n,o){this.tag=e,this.key=n,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(e,t,n,o){return new Qv(e,t,n,o)}function Nc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $a(e,t){var n=e.alternate;return n===null?(n=Un(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Th(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gl(e,t,n,o,u,f){var g=0;if(o=e,typeof e=="function")Nc(e)&&(g=1);else if(typeof e=="string")g=$b(e,n,be.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=Un(31,n,t,u),e.elementType=Ee,e.lanes=f,e;case z:return Li(n.children,u,f,t);case V:g=8,u|=24;break;case te:return e=Un(12,n,t,u|2),e.elementType=te,e.lanes=f,e;case Ce:return e=Un(13,n,t,u),e.elementType=Ce,e.lanes=f,e;case Te:return e=Un(19,n,t,u),e.elementType=Te,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case le:g=10;break e;case fe:g=9;break e;case re:g=11;break e;case ue:g=14;break e;case ce:g=16,o=null;break e}g=29,n=Error(s(130,e===null?"null":typeof e,"")),o=null}return t=Un(g,n,t,u),t.elementType=e,t.type=o,t.lanes=f,t}function Li(e,t,n,o){return e=Un(7,e,o,t),e.lanes=n,e}function Uc(e,t,n){return e=Un(6,e,null,t),e.lanes=n,e}function Rh(e){var t=Un(18,null,null,0);return t.stateNode=e,t}function kc(e,t,n){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xh=new WeakMap;function Zn(e,t){if(typeof e=="object"&&e!==null){var n=xh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Sr(t)},xh.set(e,t),t)}return{value:e,source:t,stack:Sr(t)}}var Co=[],Mo=0,Vl=null,js=0,Fn=[],Jn=0,Nr=null,xa=1,Oa="";function Wa(e,t){Co[Mo++]=js,Co[Mo++]=Vl,Vl=e,js=t}function Oh(e,t,n){Fn[Jn++]=xa,Fn[Jn++]=Oa,Fn[Jn++]=Nr,Nr=e;var o=xa;e=Oa;var u=32-Re(o)-1;o&=~(1<<u),n+=1;var f=32-Re(t)+u;if(30<f){var g=u-u%5;f=(o&(1<<g)-1).toString(32),o>>=g,u-=g,xa=1<<32-Re(t)+u|n<<u|o,Oa=f+e}else xa=1<<f|n<<u|o,Oa=e}function Bc(e){e.return!==null&&(Wa(e,1),Oh(e,1,0))}function qc(e){for(;e===Vl;)Vl=Co[--Mo],Co[Mo]=null,js=Co[--Mo],Co[Mo]=null;for(;e===Nr;)Nr=Fn[--Jn],Fn[Jn]=null,Oa=Fn[--Jn],Fn[Jn]=null,xa=Fn[--Jn],Fn[Jn]=null}function Ah(e,t){Fn[Jn++]=xa,Fn[Jn++]=Oa,Fn[Jn++]=Nr,xa=t.id,Oa=t.overflow,Nr=e}var sn=null,Ct=null,st=!1,Ur=null,$n=!1,Pc=Error(s(519));function kr(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ns(Zn(t,e)),Pc}function Ch(e){var t=e.stateNode,n=e.type,o=e.memoizedProps;switch(t[xt]=e,t[Bt]=o,n){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(n=0;n<al.length;n++)nt(al[n],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":nt("invalid",t),uo(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":nt("invalid",t);break;case"textarea":nt("invalid",t),Ri(t,o.value,o.defaultValue,o.children)}n=o.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||o.suppressHydrationWarning===!0||Xm(t.textContent,n)?(o.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),o.onScroll!=null&&nt("scroll",t),o.onScrollEnd!=null&&nt("scrollend",t),o.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||kr(e,!0)}function Mh(e){for(sn=e.return;sn;)switch(sn.tag){case 5:case 31:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:sn=sn.return}}function Do(e){if(e!==sn)return!1;if(!st)return Mh(e),st=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||id(e.type,e.memoizedProps)),n=!n),n&&Ct&&kr(e),Mh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ct=ty(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ct=ty(e)}else t===27?(t=Ct,Jr(e.type)?(e=cd,cd=null,Ct=e):Ct=t):Ct=sn?ea(e.stateNode.nextSibling):null;return!0}function ji(){Ct=sn=null,st=!1}function Hc(){var e=Ur;return e!==null&&(Cn===null?Cn=e:Cn.push.apply(Cn,e),Ur=null),e}function Ns(e){Ur===null?Ur=[e]:Ur.push(e)}var Kc=K(null),Ni=null,er=null;function Br(e,t,n){Se(Kc,t._currentValue),t._currentValue=n}function tr(e){e._currentValue=Kc.current,ie(Kc)}function Yc(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Gc(e,t,n,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var g=u.child;f=f.firstContext;e:for(;f!==null;){var R=f;f=u;for(var L=0;L<t.length;L++)if(R.context===t[L]){f.lanes|=n,R=f.alternate,R!==null&&(R.lanes|=n),Yc(f.return,n,e),o||(g=null);break e}f=R.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(s(341));g.lanes|=n,f=g.alternate,f!==null&&(f.lanes|=n),Yc(g,n,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function zo(e,t,n,o){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var R=u.type;pn(u.pendingProps.value,g.value)||(e!==null?e.push(R):e=[R])}}else if(u===Qe.current){if(g=u.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ll):e=[ll])}u=u.return}e!==null&&Gc(t,e,n,o),t.flags|=262144}function Xl(e){for(e=e.firstContext;e!==null;){if(!pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ui(e){Ni=e,er=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ln(e){return Dh(Ni,e)}function Ql(e,t){return Ni===null&&Ui(e),Dh(e,t)}function Dh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},er===null){if(e===null)throw Error(s(308));er=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else er=er.next=t;return n}var Iv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Zv=a.unstable_scheduleCallback,Fv=a.unstable_NormalPriority,Gt={$$typeof:le,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vc(){return{controller:new Iv,data:new Map,refCount:0}}function Us(e){e.refCount--,e.refCount===0&&Zv(Fv,function(){e.controller.abort()})}var ks=null,Xc=0,Lo=0,jo=null;function Jv(e,t){if(ks===null){var n=ks=[];Xc=0,Lo=Ff(),jo={status:"pending",value:void 0,then:function(o){n.push(o)}}}return Xc++,t.then(zh,zh),t}function zh(){if(--Xc===0&&ks!==null){jo!==null&&(jo.status="fulfilled");var e=ks;ks=null,Lo=0,jo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $v(e,t){var n=[],o={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(o.status="rejected",o.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),o}var Lh=ee.S;ee.S=function(e,t){ym=$t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Jv(e,t),Lh!==null&&Lh(e,t)};var ki=K(null);function Qc(){var e=ki.current;return e!==null?e:Tt.pooledCache}function Il(e,t){t===null?Se(ki,ki.current):Se(ki,t.pool)}function jh(){var e=Qc();return e===null?null:{parent:Gt._currentValue,pool:e}}var No=Error(s(460)),Ic=Error(s(474)),Zl=Error(s(542)),Fl={then:function(){}};function Nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Uh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Rn,Rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bh(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=Tt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=o}},function(o){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bh(e),e}throw qi=t,No}}function Bi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(qi=n,No):n}}var qi=null;function kh(){if(qi===null)throw Error(s(459));var e=qi;return qi=null,e}function Bh(e){if(e===No||e===Zl)throw Error(s(483))}var Uo=null,Bs=0;function Jl(e){var t=Bs;return Bs+=1,Uo===null&&(Uo=[]),Uh(Uo,e,t)}function qs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function $l(e,t){throw t.$$typeof===O?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qh(e){function t(G,P){if(e){var Z=G.deletions;Z===null?(G.deletions=[P],G.flags|=16):Z.push(P)}}function n(G,P){if(!e)return null;for(;P!==null;)t(G,P),P=P.sibling;return null}function o(G){for(var P=new Map;G!==null;)G.key!==null?P.set(G.key,G):P.set(G.index,G),G=G.sibling;return P}function u(G,P){return G=$a(G,P),G.index=0,G.sibling=null,G}function f(G,P,Z){return G.index=Z,e?(Z=G.alternate,Z!==null?(Z=Z.index,Z<P?(G.flags|=67108866,P):Z):(G.flags|=67108866,P)):(G.flags|=1048576,P)}function g(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function R(G,P,Z,oe){return P===null||P.tag!==6?(P=Uc(Z,G.mode,oe),P.return=G,P):(P=u(P,Z),P.return=G,P)}function L(G,P,Z,oe){var Ne=Z.type;return Ne===z?ae(G,P,Z.props.children,oe,Z.key):P!==null&&(P.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===ce&&Bi(Ne)===P.type)?(P=u(P,Z.props),qs(P,Z),P.return=G,P):(P=Gl(Z.type,Z.key,Z.props,null,G.mode,oe),qs(P,Z),P.return=G,P)}function F(G,P,Z,oe){return P===null||P.tag!==4||P.stateNode.containerInfo!==Z.containerInfo||P.stateNode.implementation!==Z.implementation?(P=kc(Z,G.mode,oe),P.return=G,P):(P=u(P,Z.children||[]),P.return=G,P)}function ae(G,P,Z,oe,Ne){return P===null||P.tag!==7?(P=Li(Z,G.mode,oe,Ne),P.return=G,P):(P=u(P,Z),P.return=G,P)}function se(G,P,Z){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=Uc(""+P,G.mode,Z),P.return=G,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case D:return Z=Gl(P.type,P.key,P.props,null,G.mode,Z),qs(Z,P),Z.return=G,Z;case Y:return P=kc(P,G.mode,Z),P.return=G,P;case ce:return P=Bi(P),se(G,P,Z)}if(Dt(P)||Ue(P))return P=Li(P,G.mode,Z,null),P.return=G,P;if(typeof P.then=="function")return se(G,Jl(P),Z);if(P.$$typeof===le)return se(G,Ql(G,P),Z);$l(G,P)}return null}function $(G,P,Z,oe){var Ne=P!==null?P.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Ne!==null?null:R(G,P,""+Z,oe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case D:return Z.key===Ne?L(G,P,Z,oe):null;case Y:return Z.key===Ne?F(G,P,Z,oe):null;case ce:return Z=Bi(Z),$(G,P,Z,oe)}if(Dt(Z)||Ue(Z))return Ne!==null?null:ae(G,P,Z,oe,null);if(typeof Z.then=="function")return $(G,P,Jl(Z),oe);if(Z.$$typeof===le)return $(G,P,Ql(G,Z),oe);$l(G,Z)}return null}function W(G,P,Z,oe,Ne){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return G=G.get(Z)||null,R(P,G,""+oe,Ne);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case D:return G=G.get(oe.key===null?Z:oe.key)||null,L(P,G,oe,Ne);case Y:return G=G.get(oe.key===null?Z:oe.key)||null,F(P,G,oe,Ne);case ce:return oe=Bi(oe),W(G,P,Z,oe,Ne)}if(Dt(oe)||Ue(oe))return G=G.get(Z)||null,ae(P,G,oe,Ne,null);if(typeof oe.then=="function")return W(G,P,Z,Jl(oe),Ne);if(oe.$$typeof===le)return W(G,P,Z,Ql(P,oe),Ne);$l(P,oe)}return null}function De(G,P,Z,oe){for(var Ne=null,lt=null,ze=P,Fe=P=0,rt=null;ze!==null&&Fe<Z.length;Fe++){ze.index>Fe?(rt=ze,ze=null):rt=ze.sibling;var ut=$(G,ze,Z[Fe],oe);if(ut===null){ze===null&&(ze=rt);break}e&&ze&&ut.alternate===null&&t(G,ze),P=f(ut,P,Fe),lt===null?Ne=ut:lt.sibling=ut,lt=ut,ze=rt}if(Fe===Z.length)return n(G,ze),st&&Wa(G,Fe),Ne;if(ze===null){for(;Fe<Z.length;Fe++)ze=se(G,Z[Fe],oe),ze!==null&&(P=f(ze,P,Fe),lt===null?Ne=ze:lt.sibling=ze,lt=ze);return st&&Wa(G,Fe),Ne}for(ze=o(ze);Fe<Z.length;Fe++)rt=W(ze,G,Fe,Z[Fe],oe),rt!==null&&(e&&rt.alternate!==null&&ze.delete(rt.key===null?Fe:rt.key),P=f(rt,P,Fe),lt===null?Ne=rt:lt.sibling=rt,lt=rt);return e&&ze.forEach(function(ni){return t(G,ni)}),st&&Wa(G,Fe),Ne}function ke(G,P,Z,oe){if(Z==null)throw Error(s(151));for(var Ne=null,lt=null,ze=P,Fe=P=0,rt=null,ut=Z.next();ze!==null&&!ut.done;Fe++,ut=Z.next()){ze.index>Fe?(rt=ze,ze=null):rt=ze.sibling;var ni=$(G,ze,ut.value,oe);if(ni===null){ze===null&&(ze=rt);break}e&&ze&&ni.alternate===null&&t(G,ze),P=f(ni,P,Fe),lt===null?Ne=ni:lt.sibling=ni,lt=ni,ze=rt}if(ut.done)return n(G,ze),st&&Wa(G,Fe),Ne;if(ze===null){for(;!ut.done;Fe++,ut=Z.next())ut=se(G,ut.value,oe),ut!==null&&(P=f(ut,P,Fe),lt===null?Ne=ut:lt.sibling=ut,lt=ut);return st&&Wa(G,Fe),Ne}for(ze=o(ze);!ut.done;Fe++,ut=Z.next())ut=W(ze,G,Fe,ut.value,oe),ut!==null&&(e&&ut.alternate!==null&&ze.delete(ut.key===null?Fe:ut.key),P=f(ut,P,Fe),lt===null?Ne=ut:lt.sibling=ut,lt=ut);return e&&ze.forEach(function(u0){return t(G,u0)}),st&&Wa(G,Fe),Ne}function _t(G,P,Z,oe){if(typeof Z=="object"&&Z!==null&&Z.type===z&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case D:e:{for(var Ne=Z.key;P!==null;){if(P.key===Ne){if(Ne=Z.type,Ne===z){if(P.tag===7){n(G,P.sibling),oe=u(P,Z.props.children),oe.return=G,G=oe;break e}}else if(P.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===ce&&Bi(Ne)===P.type){n(G,P.sibling),oe=u(P,Z.props),qs(oe,Z),oe.return=G,G=oe;break e}n(G,P);break}else t(G,P);P=P.sibling}Z.type===z?(oe=Li(Z.props.children,G.mode,oe,Z.key),oe.return=G,G=oe):(oe=Gl(Z.type,Z.key,Z.props,null,G.mode,oe),qs(oe,Z),oe.return=G,G=oe)}return g(G);case Y:e:{for(Ne=Z.key;P!==null;
vendor: 5,489 bytes, line 9
9){if(P.key===Ne)if(P.tag===4&&P.stateNode.containerInfo===Z.containerInfo&&P.stateNode.implementation===Z.implementation){n(G,P.sibling),oe=u(P,Z.children||[]),oe.return=G,G=oe;break e}else{n(G,P);break}else t(G,P);P=P.sibling}oe=kc(Z,G.mode,oe),oe.return=G,G=oe}return g(G);case ce:return Z=Bi(Z),_t(G,P,Z,oe)}if(Dt(Z))return De(G,P,Z,oe);if(Ue(Z)){if(Ne=Ue(Z),typeof Ne!="function")throw Error(s(150));return Z=Ne.call(Z),ke(G,P,Z,oe)}if(typeof Z.then=="function")return _t(G,P,Jl(Z),oe);if(Z.$$typeof===le)return _t(G,P,Ql(G,Z),oe);$l(G,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,P!==null&&P.tag===6?(n(G,P.sibling),oe=u(P,Z),oe.return=G,G=oe):(n(G,P),oe=Uc(Z,G.mode,oe),oe.return=G,G=oe),g(G)):n(G,P)}return function(G,P,Z,oe){try{Bs=0;var Ne=_t(G,P,Z,oe);return Uo=null,Ne}catch(ze){if(ze===No||ze===Zl)throw ze;var lt=Un(29,ze,null,G.mode);return lt.lanes=oe,lt.return=G,lt}}}var Pi=qh(!0),Ph=qh(!1),qr=!1;function Zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fc(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 Pr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hr(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(dt&2)!==0){var u=o.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),o.pending=t,t=jr(e),Ra(e,null,n),t}return vt(e,o,t,n),jr(e)}function Ps(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Et(e,n)}}function Jc(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var u=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?u=f=g:f=f.next=g,n=n.next}while(n!==null);f===null?u=f=t:f=f.next=t}else u=f=t;n={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var $c=!1;function Hs(){if($c){var e=jo;if(e!==null)throw e}}function Ks(e,t,n,o){$c=!1;var u=e.updateQueue;qr=!1;var f=u.firstBaseUpdate,g=u.lastBaseUpdate,R=u.shared.pending;if(R!==null){u.shared.pending=null;var L=R,F=L.next;L.next=null,g===null?f=F:g.next=F,g=L;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,R=ae.lastBaseUpdate,R!==g&&(R===null?ae.firstBaseUpdate=F:R.next=F,ae.lastBaseUpdate=L))}if(f!==null){var se=u.baseState;g=0,ae=F=L=null,R=f;do{var $=R.lane&-536870913,W=$!==R.lane;if(W?(at&$)===$:(o&$)===$){$!==0&&$===Lo&&($c=!0),ae!==null&&(ae=ae.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var De=e,ke=R;$=t;var _t=n;switch(ke.tag){case 1:if(De=ke.payload,typeof De=="function"){se=De.call(_t,se,$);break e}se=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=ke.payload,$=typeof De=="function"?De.call(_t,se,$):De,$==null)break e;se=E({},se,$);break e;case 2:qr=!0}}$=R.callback,$!==null&&(e.flags|=64,W&&(e.flags|=8192),W=u.callbacks,W===null?u.callbacks=[$]:W.push($))}else W={lane:$,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ae===null?(F=ae=W,L=se):ae=ae.next=W,g|=$;if(R=R.next,R===null){if(R=u.shared.pending,R===null)break;W=R,R=W.next,W.next=null,u.lastBaseUpdate=W,u.shared.pending=null}}while(!0);ae===null&&(L=se),u.baseState=L,u.firstBaseUpdate=F,u.lastBaseUpdate=ae,f===null&&(u.shared.lanes=0),Xr|=g,e.lanes=g,e.memoizedState=se}}function Hh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Kh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Hh(n[e],t)}var ko=K(null),Wl=K(0);function Yh(e,t){e=cr,Se(Wl,e),Se(ko,t),cr=e|t.baseLanes}function Wc(){Se(Wl,cr),Se(ko,ko.current)}function ef(){cr=Wl.current,ie(ko),ie(Wl)}var kn=K(null),Wn=null;function Kr(e){var t=e.alternate;Se(Pt,Pt.current&1),Se(kn,e),Wn===null&&(t===null||ko.current!==null||t.memoizedState!==null)&&(Wn=e)}function tf(e){Se(Pt,Pt.current),Se(kn,e),Wn===null&&(Wn=e)}function Gh(e){e.tag===22?(Se(Pt,Pt.current),Se(kn,e),Wn===null&&(Wn=e)):Yr()}function Yr(){Se(Pt,Pt.current),Se(kn,kn.current)}function Bn(e){ie(kn),Wn===e&&(Wn=null),ie(Pt)}var Pt=K(0);function eu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ld(n)||ud(n)))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 nr=0,Ie=null,bt=null,Vt=null,tu=!1,Bo=!1,Hi=!1,nu=0,Ys=0,qo=null,Wv=0;function Nt(){throw Error(s(321))}function nf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function af(e,t,n,o,u,f){return nr=f,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ee.H=e===null||e.memoizedState===null?Op:bf,Hi=!1,f=n(o,u),Hi=!1,Bo&&(f=Xh(t,n,o,u)),Vh(e),f}function Vh(e){ee.H=Xs;var t=bt!==null&&bt.next!==null;if(nr=0,Vt=bt=Ie=null,tu=!1,Ys=0,qo=null,t)throw Error(s(300));
vendor: 6,809 bytes, line 9
9e===null||Xt||(e=e.dependencies,e!==null&&Xl(e)&&(Xt=!0))}function Xh(e,t,n,o){Ie=e;var u=0;do{if(Bo&&(qo=null),Ys=0,Bo=!1,25<=u)throw Error(s(301));if(u+=1,Vt=bt=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}ee.H=Ap,f=t(n,o)}while(Bo);return f}function eb(){var e=ee.H,t=e.useState()[0];return t=typeof t.then=="function"?Gs(t):t,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(Ie.flags|=1024),t}function rf(){var e=nu!==0;return nu=0,e}function of(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sf(e){if(tu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}tu=!1}nr=0,Vt=bt=Ie=null,Bo=!1,Ys=nu=0,qo=null}function _n(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Ie.memoizedState=Vt=e:Vt=Vt.next=e,Vt}function Ht(){if(bt===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=Vt===null?Ie.memoizedState:Vt.next;if(t!==null)Vt=t,bt=e;else{if(e===null)throw Ie.alternate===null?Error(s(467)):Error(s(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Vt===null?Ie.memoizedState=Vt=e:Vt=Vt.next=e}return Vt}function au(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gs(e){var t=Ys;return Ys+=1,qo===null&&(qo=[]),e=Uh(qo,e,t),t=Ie,(Vt===null?t.memoizedState:Vt.next)===null&&(t=t.alternate,ee.H=t===null||t.memoizedState===null?Op:bf),e}function ru(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Gs(e);if(e.$$typeof===le)return ln(e)}throw Error(s(438,String(e)))}function lf(e){var t=null,n=Ie.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var o=Ie.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=au(),Ie.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),o=0;o<e;o++)n[o]=He;return t.index++,n}function ar(e,t){return typeof t=="function"?t(e):t}function iu(e){var t=Ht();return uf(t,bt,e)}function uf(e,t,n){var o=e.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=n;var u=e.baseQueue,f=o.pending;if(f!==null){if(u!==null){var g=u.next;u.next=f.next,f.next=g}t.baseQueue=u=f,o.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var R=g=null,L=null,F=t,ae=!1;do{var se=F.lane&-536870913;if(se!==F.lane?(at&se)===se:(nr&se)===se){var $=F.revertLane;if($===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),se===Lo&&(ae=!0);else if((nr&$)===$){F=F.next,$===Lo&&(ae=!0);continue}else se={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},L===null?(R=L=se,g=f):L=L.next=se,Ie.lanes|=$,Xr|=$;se=F.action,Hi&&n(f,se),f=F.hasEagerState?F.eagerState:n(f,se)}else $={lane:se,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},L===null?(R=L=$,g=f):L=L.next=$,Ie.lanes|=se,Xr|=se;F=F.next}while(F!==null&&F!==t);if(L===null?g=f:L.next=R,!pn(f,e.memoizedState)&&(Xt=!0,ae&&(n=jo,n!==null)))throw n;e.memoizedState=f,e.baseState=g,e.baseQueue=L,o.lastRenderedState=f}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function cf(e){var t=Ht(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var o=n.dispatch,u=n.pending,f=t.memoizedState;if(u!==null){n.pending=null;var g=u=u.next;do f=e(f,g.action),g=g.next;while(g!==u);pn(f,t.memoizedState)||(Xt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,o]}function Qh(e,t,n){var o=Ie,u=Ht(),f=st;if(f){if(n===void 0)throw Error(s(407));n=n()}else n=t();var g=!pn((bt||u).memoizedState,n);if(g&&(u.memoizedState=n,Xt=!0),u=u.queue,hf(Fh.bind(null,o,u,e),[e]),u.getSnapshot!==t||g||Vt!==null&&Vt.memoizedState.tag&1){if(o.flags|=2048,Po(9,{destroy:void 0},Zh.bind(null,o,u,n,t),null),Tt===null)throw Error(s(349));f||(nr&127)!==0||Ih(o,t,n)}return n}function Ih(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t=au(),Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zh(e,t,n,o){t.value=n,t.getSnapshot=o,Jh(t)&&$h(e)}function Fh(e,t,n){return n(function(){Jh(t)&&$h(e)})}function Jh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function $h(e){var t=ht(e,2);t!==null&&Mn(t,e,2)}function ff(e){var t=_n();if(typeof e=="function"){var n=e;if(e=n(),Hi){rn(!0);try{n()}finally{rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:e},t}function Wh(e,t,n,o){return e.baseState=n,uf(e,bt,typeof o=="function"?o:ar)}function tb(e,t,n,o,u){if(lu(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};ee.T!==null?n(!0):f.isTransition=!1,o(f),n=t.pending,n===null?(f.next=t.pending=f,ep(t,f)):(f.next=n.next,t.pending=n.next=f)}}function ep(e,t){var n=t.action,o=t.payload,u=e.state;if(t.isTransition){var f=ee.T,g={};ee.T=g;try{var R=n(u,o),L=ee.S;L!==null&&L(g,R),tp(e,t,R)}catch(F){df(e,t,F)}finally{f!==null&&g.types!==null&&(f.types=g.types),ee.T=f}}else try{f=n(u,o),tp(e,t,f)}catch(F){df(e,t,F)}}function tp(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(o){np(e,t,o)},function(o){return df(e,t,o)}):np(e,t,n)}function np(e,t,n){t.status="fulfilled",t.value=n,ap(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ep(e,n)))}function df(e,t,n){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=n,ap(t),t=t.next;while(t!==o)}e.action=null}function ap(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rp(e,t){return t}function ip(e,t){if(st){var n=Tt.formState;if(n!==null){e:{var o=Ie;if(st){if(Ct){t:{for(var u=Ct,f=$n;u.nodeType!==8;){if(!f){u=null;break t}if(u=ea(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){Ct=ea(u.nextSibling),o=u.data==="F!";break e}}kr(o)}o=!1}o&&(t=n[0])}}return n=_n(),n.memoizedState=n.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rp,lastRenderedState:t},n.queue=o,n=Tp.bind(null,Ie,o),o.dispatch=n,o=ff(!1),f=vf.bind(null,Ie,!1,o.queue),o=_n(),u={state:t,dispatch:null,action:e,pending:null},o.queue=u,n=tb.bind(null,Ie,u,f,n),u.dispatch=n,o.memoizedState=e,[t,n,!1]}function op(e){var t=Ht();return sp(t,bt,e)}
vendor: 5,690 bytes, line 9
9function sp(e,t,n){if(t=uf(e,t,rp)[0],e=iu(ar)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Gs(t)}catch(g){throw g===No?Zl:g}else o=t;t=Ht();var u=t.queue,f=u.dispatch;return n!==t.memoizedState&&(Ie.flags|=2048,Po(9,{destroy:void 0},nb.bind(null,u,n),null)),[o,f,e]}function nb(e,t){e.action=t}function lp(e){var t=Ht(),n=bt;if(n!==null)return sp(t,n,e);Ht(),t=t.memoizedState,n=Ht();var o=n.queue.dispatch;return n.memoizedState=e,[t,o,!1]}function Po(e,t,n,o){return e={tag:e,create:n,deps:o,inst:t,next:null},t=Ie.updateQueue,t===null&&(t=au(),Ie.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function up(){return Ht().memoizedState}function ou(e,t,n,o){var u=_n();Ie.flags|=e,u.memoizedState=Po(1|t,{destroy:void 0},n,o===void 0?null:o)}function su(e,t,n,o){var u=Ht();o=o===void 0?null:o;var f=u.memoizedState.inst;bt!==null&&o!==null&&nf(o,bt.memoizedState.deps)?u.memoizedState=Po(t,f,n,o):(Ie.flags|=e,u.memoizedState=Po(1|t,f,n,o))}function cp(e,t){ou(8390656,8,e,t)}function hf(e,t){su(2048,8,e,t)}function ab(e){Ie.flags|=4;var t=Ie.updateQueue;if(t===null)t=au(),Ie.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fp(e){var t=Ht().memoizedState;return ab({ref:t,nextImpl:e}),function(){if((dt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function dp(e,t){return su(4,2,e,t)}function hp(e,t){return su(4,4,e,t)}function pp(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function mp(e,t,n){n=n!=null?n.concat([e]):null,su(4,4,pp.bind(null,t,e),n)}function pf(){}function yp(e,t){var n=Ht();t=t===void 0?null:t;var o=n.memoizedState;return t!==null&&nf(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function gp(e,t){var n=Ht();t=t===void 0?null:t;var o=n.memoizedState;if(t!==null&&nf(t,o[1]))return o[0];if(o=e(),Hi){rn(!0);try{e()}finally{rn(!1)}}return n.memoizedState=[o,t],o}function mf(e,t,n){return n===void 0||(nr&1073741824)!==0&&(at&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=vm(),Ie.lanes|=e,Xr|=e,n)}function vp(e,t,n,o){return pn(n,t)?n:ko.current!==null?(e=mf(e,n,o),pn(e,t)||(Xt=!0),e):(nr&42)===0||(nr&1073741824)!==0&&(at&261930)===0?(Xt=!0,e.memoizedState=n):(e=vm(),Ie.lanes|=e,Xr|=e,t)}function bp(e,t,n,o,u){var f=ve.p;ve.p=f!==0&&8>f?f:8;var g=ee.T,R={};ee.T=R,vf(e,!1,t,n);try{var L=u(),F=ee.S;if(F!==null&&F(R,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var ae=$v(L,o);Vs(e,t,ae,Hn(e))}else Vs(e,t,o,Hn(e))}catch(se){Vs(e,t,{then:function(){},status:"rejected",reason:se},Hn())}finally{ve.p=f,g!==null&&R.types!==null&&(g.types=R.types),ee.T=g}}function rb(){}function yf(e,t,n,o){if(e.tag!==5)throw Error(s(476));var u=Sp(e).queue;bp(e,u,t,Le,n===null?rb:function(){return _p(e),n(o)})}function Sp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Le,baseState:Le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:Le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _p(e){var t=Sp(e);t.next===null&&(t=e.alternate.memoizedState),Vs(e,t.next.queue,{},Hn())}function gf(){return ln(ll)}function wp(){return Ht().memoizedState}function Ep(){return Ht().memoizedState}function ib(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Hn();e=Pr(n);var o=Hr(t,e,n);o!==null&&(Mn(o,t,n),Ps(o,t,n)),t={cache:Vc()},e.payload=t;return}t=t.return}}function ob(e,t,n){var o=Hn();n={lane:o,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lu(e)?Rp(t,n):(n=mn(e,t,n,o),n!==null&&(Mn(n,e,o),xp(n,t,o)))}function Tp(e,t,n){var o=Hn();Vs(e,t,n,o)}function Vs(e,t,n,o){var u={lane:o,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lu(e))Rp(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,R=f(g,n);if(u.hasEagerState=!0,u.eagerState=R,pn(R,g))return vt(e,t,u,0),Tt===null&&Ge(),!1}catch{}if(n=mn(e,t,u,o),n!==null)return Mn(n,e,o),xp(n,t,o),!0}return!1}function vf(e,t,n,o){if(o={lane:2,revertLane:Ff(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},lu(e)){if(t)throw Error(s(479))}else t=mn(e,n,o,2),t!==null&&Mn(t,e,2)}function lu(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Rp(e,t){Bo=tu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xp(e,t,n){if((n&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Et(e,n)}}var Xs={readContext:ln,use:ru,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};Xs.useEffectEvent=Nt;var Op={readContext:ln,use:ru,useCallback:function(e,t){return _n().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:cp,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ou(4194308,4,pp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ou(4194308,4,e,t)},useInsertionEffect:function(e,t){ou(4,2,e,t)},useMemo:function(e,t){var n=_n();t=t===void 0?null:t;var o=e();if(Hi){rn(!0);try{e()}finally{rn(!1)}}return n.memoizedState=[o,t],o}
vendor: 4,127 bytes, line 9
9,useReducer:function(e,t,n){var o=_n();if(n!==void 0){var u=n(t);if(Hi){rn(!0);try{n(t)}finally{rn(!1)}}}else u=t;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=ob.bind(null,Ie,e),[o.memoizedState,e]},useRef:function(e){var t=_n();return e={current:e},t.memoizedState=e},useState:function(e){e=ff(e);var t=e.queue,n=Tp.bind(null,Ie,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:pf,useDeferredValue:function(e,t){var n=_n();return mf(n,e,t)},useTransition:function(){var e=ff(!1);return e=bp.bind(null,Ie,e.queue,!0,!1),_n().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Ie,u=_n();if(st){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Tt===null)throw Error(s(349));(at&127)!==0||Ih(o,t,n)}u.memoizedState=n;var f={value:n,getSnapshot:t};return u.queue=f,cp(Fh.bind(null,o,f,e),[e]),o.flags|=2048,Po(9,{destroy:void 0},Zh.bind(null,o,f,n,t),null),n},useId:function(){var e=_n(),t=Tt.identifierPrefix;if(st){var n=Oa,o=xa;n=(o&~(1<<32-Re(o)-1)).toString(32)+n,t="_"+t+"R_"+n,n=nu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Wv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gf,useFormState:ip,useActionState:ip,useOptimistic:function(e){var t=_n();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=vf.bind(null,Ie,!0,n),n.dispatch=t,[e,t]},useMemoCache:lf,useCacheRefresh:function(){return _n().memoizedState=ib.bind(null,Ie)},useEffectEvent:function(e){var t=_n(),n={impl:e};return t.memoizedState=n,function(){if((dt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},bf={readContext:ln,use:ru,useCallback:yp,useContext:ln,useEffect:hf,useImperativeHandle:mp,useInsertionEffect:dp,useLayoutEffect:hp,useMemo:gp,useReducer:iu,useRef:up,useState:function(){return iu(ar)},useDebugValue:pf,useDeferredValue:function(e,t){var n=Ht();return vp(n,bt.memoizedState,e,t)},useTransition:function(){var e=iu(ar)[0],t=Ht().memoizedState;return[typeof e=="boolean"?e:Gs(e),t]},useSyncExternalStore:Qh,useId:wp,useHostTransitionStatus:gf,useFormState:op,useActionState:op,useOptimistic:function(e,t){var n=Ht();return Wh(n,bt,e,t)},useMemoCache:lf,useCacheRefresh:Ep};bf.useEffectEvent=fp;var Ap={readContext:ln,use:ru,useCallback:yp,useContext:ln,useEffect:hf,useImperativeHandle:mp,useInsertionEffect:dp,useLayoutEffect:hp,useMemo:gp,useReducer:cf,useRef:up,useState:function(){return cf(ar)},useDebugValue:pf,useDeferredValue:function(e,t){var n=Ht();return bt===null?mf(n,e,t):vp(n,bt.memoizedState,e,t)},useTransition:function(){var e=cf(ar)[0],t=Ht().memoizedState;return[typeof e=="boolean"?e:Gs(e),t]},useSyncExternalStore:Qh,useId:wp,useHostTransitionStatus:gf,useFormState:lp,useActionState:lp,useOptimistic:function(e,t){var n=Ht();return bt!==null?Wh(n,bt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:lf,useCacheRefresh:Ep};Ap.useEffectEvent=fp;function Sf(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _f={enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Hn(),u=Pr(o);u.payload=t,n!=null&&(u.callback=n),t=Hr(e,u,o),t!==null&&(Mn(t,e,o),Ps(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Hn(),u=Pr(o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Hr(e,u,o),t!==null&&(Mn(t,e,o),Ps(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hn(),o=Pr(n);o.tag=2,t!=null&&(o.callback=t),t=Hr(e,o,n),t!==null&&(Mn(t,e,n),Ps(t,e,n))}};function Cp(e,t,n,o,u,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,g):t.prototype&&t.prototype.isPureReactComponent?!l(n,o)||!l(u,f):!0}function Mp(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&_f.enqueueReplaceState(t,t.state,null)}function Ki(e,t){var n=t;if("ref"in t){n={};
vendor: 4,385 bytes, line 9
9for(var o in t)o!=="ref"&&(n[o]=t[o])}if(e=e.defaultProps){n===t&&(n=E({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Dp(e){Ae(e)}function zp(e){console.error(e)}function Lp(e){Ae(e)}function uu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function jp(e,t,n){try{var o=e.onCaughtError;o(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function wf(e,t,n){return n=Pr(n),n.tag=3,n.payload={element:null},n.callback=function(){uu(e,t)},n}function Np(e){return e=Pr(e),e.tag=3,e}function Up(e,t,n,o){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){jp(t,n,o)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){jp(t,n,o),typeof u!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var R=o.stack;this.componentDidCatch(o.value,{componentStack:R!==null?R:""})})}function sb(e,t,n,o,u){if(n.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=n.alternate,t!==null&&zo(t,n,u,!0),n=kn.current,n!==null){switch(n.tag){case 31:case 13:return Wn===null?_u():n.alternate===null&&Ut===0&&(Ut=3),n.flags&=-257,n.flags|=65536,n.lanes=u,o===Fl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([o]):t.add(o),Qf(e,o,u)),!1;case 22:return n.flags|=65536,o===Fl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([o]):n.add(o)),Qf(e,o,u)),!1}throw Error(s(435,n.tag))}return Qf(e,o,u),_u(),!1}if(st)return t=kn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,o!==Pc&&(e=Error(s(422),{cause:o}),Ns(Zn(e,n)))):(o!==Pc&&(t=Error(s(423),{cause:o}),Ns(Zn(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=Zn(o,n),u=wf(e.stateNode,o,u),Jc(e,u),Ut!==4&&(Ut=2)),!1;var f=Error(s(520),{cause:o});if(f=Zn(f,n),el===null?el=[f]:el.push(f),Ut!==4&&(Ut=2),t===null)return!0;o=Zn(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=wf(n.stateNode,o,e),Jc(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Qr===null||!Qr.has(f))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Np(u),Up(u,e,n,o),Jc(n,u),!1}n=n.return}while(n!==null);return!1}var Ef=Error(s(461)),Xt=!1;function un(e,t,n,o){t.child=e===null?Ph(t,null,n,o):Pi(t,e.child,n,o)}function kp(e,t,n,o,u){n=n.render;var f=t.ref;if("ref"in o){var g={};for(var R in o)R!=="ref"&&(g[R]=o[R])}else g=o;return Ui(t),o=af(e,t,n,g,f,u),R=rf(),e!==null&&!Xt?(of(e,t,u),rr(e,t,u)):(st&&R&&Bc(t),t.flags|=1,un(e,t,o,u),t.child)}function Bp(e,t,n,o,u){if(e===null){var f=n.type;return typeof f=="function"&&!Nc(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,qp(e,t,f,o,u)):(e=Gl(n.type,null,o,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Df(e,u)){var g=f.memoizedProps;if(n=n.compare,n=n!==null?n:l,n(g,o)&&e.ref===t.ref)return rr(e,t,u)}return t.flags|=1,e=$a(f,o),e.ref=t.ref,e.return=t,t.child=e}function qp(e,t,n,o,u){if(e!==null){var f=e.memoizedProps;if(l(f,o)&&e.ref===t.ref)if(Xt=!1,t.pendingProps=o=f,Df(e,u))(e.flags&131072)!==0&&(Xt=!0);else return t.lanes=e.lanes,rr(e,t,u)}return Tf(e,t,n,o,u)}function Pp(e,t,n,o){var u=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|n:n,e!==null){for(o=t.child=e.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~f}else o=0,t.child=null;return Hp(e,t,f,n,o)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Il(t,f!==null?f.cachePool:null),f!==null?Yh(t,f):Wc(),Gh(t);else return o=t.lanes=536870912,Hp(e,t,f!==null?f.baseLanes|n:n,n,o)}else f!==null?(Il(t,f.cachePool),Yh(t,f),Yr(),t.memoizedState=null):(e!==null&&Il(t,null),Wc(),Yr());return un(e,t,u,n),t.child}function Qs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hp(e,t,n,o,u){var f=Qc();
vendor: 4,455 bytes, line 9
9return f=f===null?null:{parent:Gt._currentValue,pool:f},t.memoizedState={baseLanes:n,cachePool:f},e!==null&&Il(t,null),Wc(),Gh(t),e!==null&&zo(e,t,o,!0),t.childLanes=u,null}function cu(e,t){return t=du({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kp(e,t,n){return Pi(t,e.child,null,n),e=cu(t,t.pendingProps),e.flags|=2,Bn(t),t.memoizedState=null,e}function lb(e,t,n){var o=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(st){if(o.mode==="hidden")return e=cu(t,o),t.lanes=536870912,Qs(null,e);if(tf(t),(e=Ct)?(e=ey(e,$n),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nr!==null?{id:xa,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=Rh(e),n.return=t,t.child=n,sn=t,Ct=null)):e=null,e===null)throw kr(t);return t.lanes=536870912,null}return cu(t,o)}var f=e.memoizedState;if(f!==null){var g=f.dehydrated;if(tf(t),u)if(t.flags&256)t.flags&=-257,t=Kp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Xt||zo(e,t,n,!1),u=(n&e.childLanes)!==0,Xt||u){if(o=Tt,o!==null&&(g=kt(o,n),g!==0&&g!==f.retryLane))throw f.retryLane=g,ht(e,g),Mn(o,e,g),Ef;_u(),t=Kp(e,t,n)}else e=f.treeContext,Ct=ea(g.nextSibling),sn=t,st=!0,Ur=null,$n=!1,e!==null&&Ah(t,e),t=cu(t,o),t.flags|=4096;return t}return e=$a(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Tf(e,t,n,o,u){return Ui(t),n=af(e,t,n,o,void 0,u),o=rf(),e!==null&&!Xt?(of(e,t,u),rr(e,t,u)):(st&&o&&Bc(t),t.flags|=1,un(e,t,n,u),t.child)}function Yp(e,t,n,o,u,f){return Ui(t),t.updateQueue=null,n=Xh(t,o,n,u),Vh(e),o=rf(),e!==null&&!Xt?(of(e,t,f),rr(e,t,f)):(st&&o&&Bc(t),t.flags|=1,un(e,t,n,f),t.child)}function Gp(e,t,n,o,u){if(Ui(t),t.stateNode===null){var f=Ao,g=n.contextType;typeof g=="object"&&g!==null&&(f=ln(g)),f=new n(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=_f,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Zc(t),g=n.contextType,f.context=typeof g=="object"&&g!==null?ln(g):Ao,f.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Sf(t,n,g,o),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&_f.enqueueReplaceState(f,f.state,null),Ks(t,o,f,u),Hs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var R=t.memoizedProps,L=Ki(n,R);f.props=L;var F=f.context,ae=n.contextType;g=Ao,typeof ae=="object"&&ae!==null&&(g=ln(ae));var se=n.getDerivedStateFromProps;ae=typeof se=="function"||typeof f.getSnapshotBeforeUpdate=="function",R=t.pendingProps!==R,ae||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(R||F!==g)&&Mp(t,f,o,g),qr=!1;var $=t.memoizedState;f.state=$,Ks(t,o,f,u),Hs(),F=t.memoizedState,R||$!==F||qr?(typeof se=="function"&&(Sf(t,n,se,o),F=t.memoizedState),(L=qr||Cp(t,n,L,o,$,F,g))?(ae||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=F),f.props=o,f.state=F,f.context=g,o=L):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Fc(e,t),g=t.memoizedProps,ae=Ki(n,g),f.props=ae,se=t.pendingProps,$=f.context,F=n.contextType,L=Ao,typeof F=="object"&&F!==null&&(L=ln(F)),R=n.getDerivedStateFromProps,(F=typeof R=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==se||$!==L)&&Mp(t,f,o,L),qr=!1,$=t.memoizedState,f.state=$,Ks(t,o,f,u),Hs();var W=t.memoizedState;
vendor: 5,240 bytes, line 9
9g!==se||$!==W||qr||e!==null&&e.dependencies!==null&&Xl(e.dependencies)?(typeof R=="function"&&(Sf(t,n,R,o),W=t.memoizedState),(ae=qr||Cp(t,n,ae,o,$,W,L)||e!==null&&e.dependencies!==null&&Xl(e.dependencies))?(F||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,W,L),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,W,L)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=W),f.props=o,f.state=W,f.context=L,o=ae):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,fu(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,n=o&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Pi(t,e.child,null,u),t.child=Pi(t,null,n,u)):un(e,t,n,u),t.memoizedState=f.state,e=t.child):e=rr(e,t,u),e}function Vp(e,t,n,o){return ji(),t.flags|=256,un(e,t,n,o),t.child}var Rf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xf(e){return{baseLanes:e,cachePool:jh()}}function Of(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Pn),e}function Xp(e,t,n){var o=t.pendingProps,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(Pt.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(st){if(u?Kr(t):Yr(),(e=Ct)?(e=ey(e,$n),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nr!==null?{id:xa,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=Rh(e),n.return=t,t.child=n,sn=t,Ct=null)):e=null,e===null)throw kr(t);return ud(e)?t.lanes=32:t.lanes=536870912,null}var R=o.children;return o=o.fallback,u?(Yr(),u=t.mode,R=du({mode:"hidden",children:R},u),o=Li(o,u,n,null),R.return=t,o.return=t,R.sibling=o,t.child=R,o=t.child,o.memoizedState=xf(n),o.childLanes=Of(e,g,n),t.memoizedState=Rf,Qs(null,o)):(Kr(t),Af(t,R))}var L=e.memoizedState;if(L!==null&&(R=L.dehydrated,R!==null)){if(f)t.flags&256?(Kr(t),t.flags&=-257,t=Cf(e,t,n)):t.memoizedState!==null?(Yr(),t.child=e.child,t.flags|=128,t=null):(Yr(),R=o.fallback,u=t.mode,o=du({mode:"visible",children:o.children},u),R=Li(R,u,n,null),R.flags|=2,o.return=t,R.return=t,o.sibling=R,t.child=o,Pi(t,e.child,null,n),o=t.child,o.memoizedState=xf(n),o.childLanes=Of(e,g,n),t.memoizedState=Rf,t=Qs(null,o));else if(Kr(t),ud(R)){if(g=R.nextSibling&&R.nextSibling.dataset,g)var F=g.dgst;g=F,o=Error(s(419)),o.stack="",o.digest=g,Ns({value:o,source:null,stack:null}),t=Cf(e,t,n)}else if(Xt||zo(e,t,n,!1),g=(n&e.childLanes)!==0,Xt||g){if(g=Tt,g!==null&&(o=kt(g,n),o!==0&&o!==L.retryLane))throw L.retryLane=o,ht(e,o),Mn(g,e,o),Ef;ld(R)||_u(),t=Cf(e,t,n)}else ld(R)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,Ct=ea(R.nextSibling),sn=t,st=!0,Ur=null,$n=!1,e!==null&&Ah(t,e),t=Af(t,o.children),t.flags|=4096);return t}return u?(Yr(),R=o.fallback,u=t.mode,L=e.child,F=L.sibling,o=$a(L,{mode:"hidden",children:o.children}),o.subtreeFlags=L.subtreeFlags&65011712,F!==null?R=$a(F,R):(R=Li(R,u,n,null),R.flags|=2),R.return=t,o.return=t,o.sibling=R,t.child=o,Qs(null,o),o=t.child,R=e.child.memoizedState,R===null?R=xf(n):(u=R.cachePool,u!==null?(L=Gt._currentValue,u=u.parent!==L?{parent:L,pool:L}:u):u=jh(),R={baseLanes:R.baseLanes|n,cachePool:u}),o.memoizedState=R,o.childLanes=Of(e,g,n),t.memoizedState=Rf,Qs(e.child,o)):(Kr(t),n=e.child,e=n.sibling,n=$a(n,{mode:"visible",children:o.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Af(e,t){return t=du({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function du(e,t){return e=Un(22,e,null,t),e.lanes=0,e}function Cf(e,t,n){return Pi(t,e.child,null,n),e=Af(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qp(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Yc(e.return,t,n)}function Mf(e,t,n,o,u,f){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:u,treeForkCount:f}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=o,g.tail=n,g.tailMode=u,g.treeForkCount=f)}function Ip(e,t,n){var o=t.pendingProps,u=o.revealOrder,f=o.tail;o=o.children;var g=Pt.current,R=(g&2)!==0;if(R?(g=g&1|2,t.flags|=128):g&=1,Se(Pt,g),un(e,t,o,n),o=st?js:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qp(e,n,t);else if(e.tag===19)Qp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&eu(e)===null&&(u=n),n=n.sibling;
vendor: 4,159 bytes, line 9
9n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Mf(t,!1,u,n,f,o);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&eu(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Mf(t,!0,n,null,f,o);break;case"together":Mf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function rr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(zo(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=$a(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$a(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Df(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xl(e)))}function ub(e,t,n){switch(t.tag){case 3:zt(t,t.stateNode.containerInfo),Br(t,Gt,e.memoizedState.cache),ji();break;case 27:case 5:Me(t);break;case 4:zt(t,t.stateNode.containerInfo);break;case 10:Br(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tf(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Kr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Xp(e,t,n):(Kr(t),e=rr(e,t,n),e!==null?e.sibling:null);Kr(t);break;case 19:var u=(e.flags&128)!==0;if(o=(n&t.childLanes)!==0,o||(zo(e,t,n,!1),o=(n&t.childLanes)!==0),u){if(o)return Ip(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Se(Pt,Pt.current),o)break;return null;case 22:return t.lanes=0,Pp(e,t,n,t.pendingProps);case 24:Br(t,Gt,e.memoizedState.cache)}return rr(e,t,n)}function Zp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xt=!0;else{if(!Df(e,n)&&(t.flags&128)===0)return Xt=!1,ub(e,t,n);Xt=(e.flags&131072)!==0}else Xt=!1,st&&(t.flags&1048576)!==0&&Oh(t,js,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Bi(t.elementType),t.type=e,typeof e=="function")Nc(e)?(o=Ki(e,o),t.tag=1,t=Gp(null,t,e,o,n)):(t.tag=0,t=Tf(null,t,e,o,n));else{if(e!=null){var u=e.$$typeof;if(u===re){t.tag=11,t=kp(null,t,e,o,n);break e}else if(u===ue){t.tag=14,t=Bp(null,t,e,o,n);break e}}throw t=Ye(e)||e,Error(s(306,t,""))}}return t;case 0:return Tf(e,t,t.type,t.pendingProps,n);case 1:return o=t.type,u=Ki(o,t.pendingProps),Gp(e,t,o,u,n);case 3:e:{if(zt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));o=t.pendingProps;var f=t.memoizedState;u=f.element,Fc(e,t),Ks(t,o,null,n);var g=t.memoizedState;if(o=g.cache,Br(t,Gt,o),o!==f.cache&&Gc(t,[Gt],n,!0),Hs(),o=g.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Vp(e,t,o,n);break e}else if(o!==u){u=Zn(Error(s(424)),t),Ns(u),t=Vp(e,t,o,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ct=ea(e.firstChild),sn=t,st=!0,Ur=null,$n=!0,n=Ph(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ji(),o===u){t=rr(e,t,n);break e}un(e,t,o,n)}t=t.child}return t;case 26:return fu(e,t),e===null?(n=oy(t.type,null,t.pendingProps,null))?t.memoizedState=n:st||(n=t.type,e=t.pendingProps,o=Au(Ke.current).createElement(n),o[xt]=t,o[Bt]=e,cn(o,n,e),qt(o),t.stateNode=o):t.memoizedState=oy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Me(t),e===null&&st&&(o=t.stateNode=ay(t.type,t.pendingProps,Ke.current),sn=t,$n=!0,u=Ct,Jr(t.type)?(cd=u,Ct=ea(o.firstChild)):Ct=u),un(e,t,t.pendingProps.children,n),fu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&st&&((u=o=Ct)&&(o=qb(o,t.type,t.pendingProps,$n),o!==null?(t.stateNode=o,sn=t,Ct=ea(o.firstChild),$n=!1,u=!0):u=!1),u||kr(t)),Me(t),u=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,o=f.children,id(u,f)?o=null:g!==null&&id(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=af(e,t,eb,null,null,n),ll._currentValue=u),fu(e,t),un(e,t,o,n),t.child;case 6:return e===null&&st&&((e=n=Ct)&&(n=Pb(n,t.pendingProps,$n),n!==null?(t.stateNode=n,sn=t,Ct=null,e=!0):e=!1),e||kr(t)),null;
vendor: 4,020 bytes, line 9
9case 13:return Xp(e,t,n);case 4:return zt(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Pi(t,null,o,n):un(e,t,o,n),t.child;case 11:return kp(e,t,t.type,t.pendingProps,n);case 7:return un(e,t,t.pendingProps,n),t.child;case 8:return un(e,t,t.pendingProps.children,n),t.child;case 12:return un(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Br(t,t.type,o.value),un(e,t,o.children,n),t.child;case 9:return u=t.type._context,o=t.pendingProps.children,Ui(t),u=ln(u),o=o(u),t.flags|=1,un(e,t,o,n),t.child;case 14:return Bp(e,t,t.type,t.pendingProps,n);case 15:return qp(e,t,t.type,t.pendingProps,n);case 19:return Ip(e,t,n);case 31:return lb(e,t,n);case 22:return Pp(e,t,n,t.pendingProps);case 24:return Ui(t),o=ln(Gt),e===null?(u=Qc(),u===null&&(u=Tt,f=Vc(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=n),u=f),t.memoizedState={parent:o,cache:u},Zc(t),Br(t,Gt,u)):((e.lanes&n)!==0&&(Fc(e,t),Ks(t,null,null,n),Hs()),u=e.memoizedState,f=t.memoizedState,u.parent!==o?(u={parent:o,cache:o},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Br(t,Gt,o)):(o=f.cache,Br(t,Gt,o),o!==u.cache&&Gc(t,[Gt],n,!0))),un(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ir(e){e.flags|=4}function zf(e,t,n,o,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(wm())e.flags|=8192;else throw qi=Fl,Ic}else e.flags&=-16777217}function Fp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fy(t))if(wm())e.flags|=8192;else throw qi=Fl,Ic}function hu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Cl():536870912,e.lanes|=t,Go|=t)}function Is(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function cb(e,t,n){var o=t.pendingProps;switch(qc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Mt(t),null;case 3:return n=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),tr(Gt),wt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Do(t)?ir(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hc())),Mt(t),null;case 26:var u=t.type,f=t.memoizedState;return e===null?(ir(t),f!==null?(Mt(t),Fp(t,f)):(Mt(t),zf(t,u,null,o,n))):f?f!==e.memoizedState?(ir(t),Mt(t),Fp(t,f)):(Mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ir(t),Mt(t),zf(t,u,e,o,n)),null;case 27:if(Yn(t),n=Ke.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(!o){if(t.stateNode===null)throw Error(s(166));return Mt(t),null}e=be.current,Do(t)?Ch(t):(e=ay(u,o,n),t.stateNode=e,ir(t))}return Mt(t),null;case 5:if(Yn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(!o){if(t.stateNode===null)throw Error(s(166));return Mt(t),null}if(f=be.current,Do(t))Ch(t);else{var g=Au(Ke.current);switch(f){case 1:f=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:f=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":f=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":f=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":f=g.createElement("div"),f.innerHTML="<script><\/script>
9",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?g.createElement("select",{is:o.is}):g.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?g.createElement(u,{is:o.is}):g.createElement(u)}}f[xt]=t,f[Bt]=o;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=f;e:switch(cn(f,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ir(t)}}return Mt(t),zf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ke.current,Do(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,u=sn,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||o!==null&&o.suppressHydrationWarning===!0||Xm(e.nodeValue,n)),e||kr(t,!0)}else e=Au(e).createTextNode(o),e[xt]=t,t.stateNode=e}return Mt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(o=Do(t),n!==null){if(e===null){if(!o)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[xt]=t}else ji(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),e=!1}else n=Hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bn(t),t):(Bn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Mt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Do(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[xt]=t}else ji(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),u=!1}else u=Hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Bn(t),t):(Bn(t),null)}return Bn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=o!==null,e=e!==null&&e.memoizedState!==null,n&&(o=t.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hu(t,t.updateQueue),Mt(t),null);case 4:return wt(),e===null&&ed(t.stateNode.containerInfo),Mt(t),null;case 10:return tr(t.type),Mt(t),null;case 19:if(ie(Pt),o=t.memoizedState,o===null)return Mt(t),null;if(u=(t.flags&128)!==0,f=o.rendering,f===null)if(u)Is(o,!1);else{if(Ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=eu(e),f!==null){for(t.flags|=128,Is(o,!1),e=f.updateQueue,t.updateQueue=e,hu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Th(n,e),n=n.sibling;return Se(Pt,Pt.current&1|2),st&&Wa(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&$t()>vu&&(t.flags|=128,u=!0,Is(o,!1),t.lanes=4194304)}else{if(!u)if(e=eu(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,hu(t,e),Is(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!st)return Mt(t),null}else 2*$t()-o.renderingStartTime>vu&&n!==536870912&&(t.flags|=128,u=!0,Is(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=$t(),e.sibling=null,n=Pt.current,Se(Pt,u?n&1|2:n&1),st&&Wa(t,o.treeForkCount),e):(Mt(t),null);case 22:case 23:return Bn(t),ef(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(n&536870912)!==0&&(t.flags&128)===0&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),n=t.updateQueue,n!==null&&hu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),e!==null&&ie(ki),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),tr(Gt),Mt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function fb(e,t){switch(qc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tr(Gt),wt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Yn(t),null;case 31:if(t.memoizedState!==null){if(Bn(t),t.alternate===null)throw Error(s(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(Pt),null;case 4:return wt(),null;case 10:return tr(t.type),null;case 22:case 23:return Bn(t),ef(),e!==null&&ie(ki),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tr(Gt),null;case 25:return null;default:return null}}function Jp(e,t){switch(qc(t),t.tag){case 3:tr(Gt),wt();break;case 26:case 27:case 5:Yn(t);break;case 4:wt();break;case 31:t.memoizedState!==null&&Bn(t);break;case 13:Bn(t);break;case 19:ie(Pt);break;case 10:tr(t.type);break;case 22:case 23:Bn(t),ef(),e!==null&&ie(ki);break;case 24:tr(Gt)}}function Zs(e,t){try{var n=t.updateQueue,o=n!==null?n.lastEffect:null;if(o!==null){var u=o.next;n=u;do{if((n.tag&e)===e){o=void 0;var f=n.create,g=n.inst;o=f(),g.destroy=o}n=n.next}while(n!==u)}}catch(R){mt(t,t.return,R)}}function Gr(e,t,n){try{var o=t.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var f=u.next;o=f;do{if((o.tag&e)===e){var g=o.inst,R=g.destroy;if(R!==void 0){g.destroy=void 0,u=t;var L=n,F=R;try{F()}catch(ae){mt(u,L,ae)}}}o=o.next}while(o!==f)}}catch(ae){mt(t,t.return,ae)}}function $p(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Kh(t,n)}catch(o){mt(e,e.return,o)}}}function Wp(e,t,n){n.props=Ki(e.type,e.memoizedProps),n.state=e.memoizedState;
vendor: 15,954 bytes, line 9
9try{n.componentWillUnmount()}catch(o){mt(e,t,o)}}function Fs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof n=="function"?e.refCleanup=n(o):n.current=o}}catch(u){mt(e,t,u)}}function Aa(e,t){var n=e.ref,o=e.refCleanup;if(n!==null)if(typeof o=="function")try{o()}catch(u){mt(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){mt(e,t,u)}else n.current=null}function em(e){var t=e.type,n=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&o.focus();break e;case"img":n.src?o.src=n.src:n.srcSet&&(o.srcset=n.srcSet)}}catch(u){mt(e,e.return,u)}}function Lf(e,t,n){try{var o=e.stateNode;Lb(o,e.type,n,t),o[Bt]=t}catch(u){mt(e,e.return,u)}}function tm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Jr(e.type)||e.tag===4}function jf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tm(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&&Jr(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 Nf(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rn));else if(o!==4&&(o===27&&Jr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nf(e,t,n),e=e.sibling;e!==null;)Nf(e,t,n),e=e.sibling}function pu(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(o===27&&Jr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(pu(e,t,n),e=e.sibling;e!==null;)pu(e,t,n),e=e.sibling}function nm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var o=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);cn(t,o,n),t[xt]=e,t[Bt]=n}catch(f){mt(e,e.return,f)}}var or=!1,Qt=!1,Uf=!1,am=typeof WeakSet=="function"?WeakSet:Set,nn=null;function db(e,t){if(e=e.containerInfo,ad=Nu,e=S(e),w(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var u=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var g=0,R=-1,L=-1,F=0,ae=0,se=e,$=null;t:for(;;){for(var W;se!==n||u!==0&&se.nodeType!==3||(R=g+u),se!==f||o!==0&&se.nodeType!==3||(L=g+o),se.nodeType===3&&(g+=se.nodeValue.length),(W=se.firstChild)!==null;)$=se,se=W;for(;;){if(se===e)break t;if($===n&&++F===u&&(R=g),$===f&&++ae===o&&(L=g),(W=se.nextSibling)!==null)break;se=$,$=se.parentNode}se=W}n=R===-1||L===-1?null:{start:R,end:L}}else n=null}n=n||{start:0,end:0}}else n=null;for(rd={focusedElem:e,selectionRange:n},Nu=!1,nn=t;nn!==null;)if(t=nn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nn=e;else for(;nn!==null;){switch(t=nn,f=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(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,u=f.memoizedProps,f=f.memoizedState,o=n.stateNode;try{var De=Ki(n.type,u);e=o.getSnapshotBeforeUpdate(De,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(ke){mt(n,n.return,ke)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sd(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sd(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,nn=e;break}nn=t.return}}function rm(e,t,n){var o=n.flags;switch(n.tag){case 0:case 11:case 15:lr(e,n),o&4&&Zs(5,n);break;case 1:if(lr(e,n),o&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){mt(n,n.return,g)}else{var u=Ki(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){mt(n,n.return,g)}}o&64&&$p(n),o&512&&Fs(n,n.return);break;case 3:if(lr(e,n),o&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Kh(e,t)}catch(g){mt(n,n.return,g)}}break;case 27:t===null&&o&4&&nm(n);case 26:case 5:lr(e,n),t===null&&o&4&&em(n),o&512&&Fs(n,n.return);break;case 12:lr(e,n);break;case 31:lr(e,n),o&4&&sm(e,n);break;case 13:lr(e,n),o&4&&lm(e,n),o&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_b.bind(null,n),Hb(e,n))));break;case 22:if(o=n.memoizedState!==null||or,!o){t=t!==null&&t.memoizedState!==null||Qt,u=or;var f=Qt;or=o,(Qt=t)&&!f?ur(e,n,(n.subtreeFlags&8772)!==0):lr(e,n),or=u,Qt=f}break;case 30:break;default:lr(e,n)}}function im(e){var t=e.alternate;t!==null&&(e.alternate=null,im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&so(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 Lt=null,xn=!1;function sr(e,t,n){for(n=n.child;n!==null;)om(e,t,n),n=n.sibling}function om(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 26:Qt||Aa(n,t),sr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||Aa(n,t);var o=Lt,u=xn;Jr(n.type)&&(Lt=n.stateNode,xn=!1),sr(e,t,n),il(n.stateNode),Lt=o,xn=u;break;case 5:Qt||Aa(n,t);case 6:if(o=Lt,u=xn,Lt=null,sr(e,t,n),Lt=o,xn=u,Lt!==null)if(xn)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(n.stateNode)}catch(f){mt(n,t,f)}else try{Lt.removeChild(n.stateNode)}catch(f){mt(n,t,f)}break;case 18:Lt!==null&&(xn?(e=Lt,$m(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),$o(e)):$m(Lt,n.stateNode));break;case 4:o=Lt,u=xn,Lt=n.stateNode.containerInfo,xn=!0,sr(e,t,n),Lt=o,xn=u;break;case 0:case 11:case 14:case 15:Gr(2,n,t),Qt||Gr(4,n,t),sr(e,t,n);break;case 1:Qt||(Aa(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"&&Wp(n,t,o)),sr(e,t,n);break;case 21:sr(e,t,n);break;case 22:Qt=(o=Qt)||n.memoizedState!==null,sr(e,t,n),Qt=o;break;default:sr(e,t,n)}}function sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$o(e)}catch(n){mt(t,t.return,n)}}}function lm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$o(e)}catch(n){mt(t,t.return,n)}}function hb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new am),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new am),t;default:throw Error(s(435,e.tag))}}function mu(e,t){var n=hb(e);t.forEach(function(o){if(!n.has(o)){n.add(o);var u=wb.bind(null,e,o);o.then(u,u)}})}function On(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var u=n[o],f=e,g=t,R=g;e:for(;R!==null;){switch(R.tag){case 27:if(Jr(R.type)){Lt=R.stateNode,xn=!1;break e}break;case 5:Lt=R.stateNode,xn=!1;break e;case 3:case 4:Lt=R.stateNode.containerInfo,xn=!0;break e}R=R.return}if(Lt===null)throw Error(s(160));om(f,g,u),Lt=null,xn=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)um(t,e),t=t.sibling}var fa=null;function um(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:On(t,e),An(e),o&4&&(Gr(3,e,e.return),Zs(3,e),Gr(5,e,e.return));break;case 1:On(t,e),An(e),o&512&&(Qt||n===null||Aa(n,n.return)),o&64&&or&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?o:n.concat(o))));break;case 26:var u=fa;if(On(t,e),An(e),o&512&&(Qt||n===null||Aa(n,n.return)),o&4){var f=n!==null?n.memoizedState:null;if(o=e.memoizedState,n===null)if(o===null)if(e.stateNode===null){e:{o=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":f=u.getElementsByTagName("title")[0],(!f||f[Ln]||f[xt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(o),u.head.insertBefore(f,u.querySelector("head > title"))),cn(f,o,n),f[xt]=e,qt(f),o=f;break e;case"link":var g=uy("link","href",u).get(o+(n.href||""));if(g){for(var R=0;R<g.length;R++)if(f=g[R],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(R,1);break t}}f=u.createElement(o),cn(f,o,n),u.head.appendChild(f);break;case"meta":if(g=uy("meta","content",u).get(o+(n.content||""))){for(R=0;R<g.length;R++)if(f=g[R],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(R,1);break t}}f=u.createElement(o),cn(f,o,n),u.head.appendChild(f);break;default:throw Error(s(468,o))}f[xt]=e,qt(f),o=f}e.stateNode=o}else cy(u,e.type,e.stateNode);else e.stateNode=ly(u,o,e.memoizedProps);else f!==o?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,o===null?cy(u,e.type,e.stateNode):ly(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Lf(e,e.memoizedProps,n.memoizedProps)}break;case 27:On(t,e),An(e),o&512&&(Qt||n===null||Aa(n,n.return)),n!==null&&o&4&&Lf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(On(t,e),An(e),o&512&&(Qt||n===null||Aa(n,n.return)),e.flags&32){u=e.stateNode;try{Ka(u,"")}catch(De){mt(e,e.return,De)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,Lf(e,u,n!==null?n.memoizedProps:u)),o&1024&&(Uf=!0);break;case 6:if(On(t,e),An(e),o&4){if(e.stateNode===null)throw Error(s(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(De){mt(e,e.return,De)}}break;case 3:if(Du=null,u=fa,fa=Cu(t.containerInfo),On(t,e),fa=u,An(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{$o(t.containerInfo)}catch(De){mt(e,e.return,De)}Uf&&(Uf=!1,cm(e));break;case 4:o=fa,fa=Cu(e.stateNode.containerInfo),On(t,e),An(e),fa=o;break;case 12:On(t,e),An(e);break;case 31:On(t,e),An(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mu(e,o)));break;case 13:On(t,e),An(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(gu=$t()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mu(e,o)));break;case 22:u=e.memoizedState!==null;var L=n!==null&&n.memoizedState!==null,F=or,ae=Qt;if(or=F||u,Qt=ae||L,On(t,e),Qt=ae,or=F,An(e),o&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||L||or||Qt||Yi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){L=n=t;try{if(f=L.stateNode,u)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{R=L.stateNode;var se=L.memoizedProps.style,$=se!=null&&se.hasOwnProperty("display")?se.display:null;R.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(De){mt(L,L.return,De)}}}else if(t.tag===6){if(n===null){L=t;try{L.stateNode.nodeValue=u?"":L.memoizedProps}catch(De){mt(L,L.return,De)}}}else if(t.tag===18){if(n===null){L=t;try{var W=L.stateNode;u?Wm(W,!0):Wm(L.stateNode,!1)}catch(De){mt(L,L.return,De)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(n=o.retryQueue,n!==null&&(o.retryQueue=null,mu(e,n))));break;case 19:On(t,e),An(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mu(e,o)));break;case 30:break;case 21:break;default:On(t,e),An(e)}}function An(e){var t=e.flags;if(t&2){try{for(var n,o=e.return;o!==null;){if(tm(o)){n=o;break}o=o.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,f=jf(e);pu(e,f,u);break;case 5:var g=n.stateNode;n.flags&32&&(Ka(g,""),n.flags&=-33);var R=jf(e);pu(e,R,g);break;case 3:case 4:var L=n.stateNode.containerInfo,F=jf(e);Nf(e,F,L);break;default:throw Error(s(161))}}catch(ae){mt(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function lr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rm(e,t.alternate,t),t=t.sibling}function Yi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gr(4,t,t.return),Yi(t);break;case 1:Aa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Wp(t,t.return,n),Yi(t);break;case 27:il(t.stateNode);case 26:case 5:Aa(t,t.return),Yi(t);break;case 22:t.memoizedState===null&&Yi(t);break;case 30:Yi(t);break;default:Yi(t)}e=e.sibling}}function ur(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,u=e,f=t,g=f.flags;switch(f.tag){case 0:case 11:case 15:ur(u,f,n),Zs(4,f);break;case 1:if(ur(u,f,n),o=f,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(F){mt(o,o.return,F)}if(o=f,u=o.updateQueue,u!==null){var R=o.stateNode;try{var L=u.shared.hiddenCallbacks;if(L!==null)for(u.shared.hiddenCallbacks=null,u=0;u<L.length;u++)Hh(L[u],R)}catch(F){mt(o,o.return,F)}}n&&g&64&&$p(f),Fs(f,f.return);break;case 27:nm(f);case 26:case 5:ur(u,f,n),n&&o===null&&g&4&&em(f),Fs(f,f.return);break;case 12:ur(u,f,n);break;case 31:ur(u,f,n),n&&g&4&&sm(u,f);break;case 13:ur(u,f,n),n&&g&4&&lm(u,f);break;case 22:f.memoizedState===null&&ur(u,f,n),Fs(f,f.return);break;case 30:break;default:ur(u,f,n)}t=t.sibling}}function kf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Us(n))}function Bf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Us(e))}function da(e,t,n,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fm(e,t,n,o),t=t.sibling}function fm(e,t,n,o){var u=t.flags;switch(t.tag){case 0:case 11:case 15:da(e,t,n,o),u&2048&&Zs(9,t);break;case 1:da(e,t,n,o);break;case 3:da(e,t,n,o),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Us(e)));break;case 12:if(u&2048){da(e,t,n,o),e=t.stateNode;try{var f=t.memoizedProps,g=f.id,R=f.onPostCommit;typeof R=="function"&&R(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(L){mt(t,t.return,L)}}else da(e,t,n,o);break;case 31:da(e,t,n,o);break;case 13:da(e,t,n,o);break;case 23:break;case 22:f=t.stateNode,g=t.alternate,t.memoizedState!==null?f._visibility&2?da(e,t,n,o):Js(e,t):f._visibility&2?da(e,t,n,o):(f._visibility|=2,Ho(e,t,n,o,(t.subtreeFlags&10256)!==0||!1)),u&2048&&kf(g,t);break;case 24:da(e,t,n,o),u&2048&&Bf(t.alternate,t);break;default:da(e,t,n,o)}}function Ho(e,t,n,o,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,g=t,R=n,L=o,F=g.flags;switch(g.tag){case 0:case 11:case 15:Ho(f,g,R,L,u),Zs(8,g);break;case 23:break;case 22:var ae=g.stateNode;g.memoizedState!==null?ae._visibility&2?Ho(f,g,R,L,u):Js(f,g):(ae._visibility|=2,Ho(f,g,R,L,u)),u&&F&2048&&kf(g.alternate,g);break;case 24:Ho(f,g,R,L,u),u&&F&2048&&Bf(g.alternate,g);break;default:Ho(f,g,R,L,u)}
vendor: 6,677 bytes, line 9
9t=t.sibling}}function Js(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,o=t,u=o.flags;switch(o.tag){case 22:Js(n,o),u&2048&&kf(o.alternate,o);break;case 24:Js(n,o),u&2048&&Bf(o.alternate,o);break;default:Js(n,o)}t=t.sibling}}var $s=8192;function Ko(e,t,n){if(e.subtreeFlags&$s)for(e=e.child;e!==null;)dm(e,t,n),e=e.sibling}function dm(e,t,n){switch(e.tag){case 26:Ko(e,t,n),e.flags&$s&&e.memoizedState!==null&&Wb(n,fa,e.memoizedState,e.memoizedProps);break;case 5:Ko(e,t,n);break;case 3:case 4:var o=fa;fa=Cu(e.stateNode.containerInfo),Ko(e,t,n),fa=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=$s,$s=16777216,Ko(e,t,n),$s=o):Ko(e,t,n));break;default:Ko(e,t,n)}}function hm(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 Ws(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var o=t[n];nn=o,mm(o,e)}hm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pm(e),e=e.sibling}function pm(e){switch(e.tag){case 0:case 11:case 15:Ws(e),e.flags&2048&&Gr(9,e,e.return);break;case 3:Ws(e);break;case 12:Ws(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,yu(e)):Ws(e);break;default:Ws(e)}}function yu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var o=t[n];nn=o,mm(o,e)}hm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gr(8,t,t.return),yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,yu(t));break;default:yu(t)}e=e.sibling}}function mm(e,t){for(;nn!==null;){var n=nn;switch(n.tag){case 0:case 11:case 15:Gr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var o=n.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Us(n.memoizedState.cache)}if(o=n.child,o!==null)o.return=n,nn=o;else e:for(n=e;nn!==null;){o=nn;var u=o.sibling,f=o.return;if(im(o),o===n){nn=null;break e}if(u!==null){u.return=f,nn=u;break e}nn=f}}}var pb={getCacheForType:function(e){var t=ln(Gt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ln(Gt).controller.signal}},mb=typeof WeakMap=="function"?WeakMap:Map,dt=0,Tt=null,tt=null,at=0,pt=0,qn=null,Vr=!1,Yo=!1,qf=!1,cr=0,Ut=0,Xr=0,Gi=0,Pf=0,Pn=0,Go=0,el=null,Cn=null,Hf=!1,gu=0,ym=0,vu=1/0,bu=null,Qr=null,It=0,Ir=null,Vo=null,fr=0,Kf=0,Yf=null,gm=null,tl=0,Gf=null;function Hn(){return(dt&2)!==0&&at!==0?at&-at:ee.T!==null?Ff():vi()}function vm(){if(Pn===0)if((at&536870912)===0||st){var e=_r;_r<<=1,(_r&3932160)===0&&(_r=262144),Pn=e}else Pn=536870912;return e=kn.current,e!==null&&(e.flags|=32),Pn}function Mn(e,t,n){(e===Tt&&(pt===2||pt===9)||e.cancelPendingCommit!==null)&&(Xo(e,0),Zr(e,at,Pn,!1)),Gn(e,n),((dt&2)===0||e!==Tt)&&(e===Tt&&((dt&2)===0&&(Gi|=n),Ut===4&&Zr(e,at,Pn,!1)),Ca(e))}function bm(e,t,n){if((dt&6)!==0)throw Error(s(327));var o=!n&&(t&127)===0&&(t&e.expiredLanes)===0||qa(e,t),u=o?vb(e,t):Xf(e,t,!0),f=o;do{if(u===0){Yo&&!o&&Zr(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!yb(n)){u=Xf(e,t,!1),f=!1;continue}if(u===2){if(f=t,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var R=e;u=el;var L=R.current.memoizedState.isDehydrated;if(L&&(Xo(R,g).flags|=256),g=Xf(R,g,!1),g!==2){if(qf&&!L){R.errorRecoveryDisabledLanes|=f,Gi|=f,u=4;break e}f=Cn,Cn=u,f!==null&&(Cn===null?Cn=f:Cn.push.apply(Cn,f))}u=g}if(f=!1,u!==2)continue}}if(u===1){Xo(e,0),Zr(e,t,0,!0);break}e:{switch(o=e,f=u,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Zr(o,t,Pn,!Vr);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=gu+300-$t(),10<u)){if(Zr(o,t,Pn,!Vr),yi(o,0,!0)!==0)break e;fr=t,o.timeoutHandle=Fm(Sm.bind(null,o,n,Cn,bu,Hf,t,Pn,Gi,Go,Vr,f,"Throttled",-0,0),u);break e}Sm(o,n,Cn,bu,Hf,t,Pn,Gi,Go,Vr,f,null,-0,0)}}break}while(!0);Ca(e)}function Sm(e,t,n,o,u,f,g,R,L,F,ae,se,$,W){if(e.timeoutHandle=-1,se=t.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},dm(t,f,se);var De=(f&62914560)===f?gu-$t():(f&4194048)===f?ym-$t():0;if(De=e0(se,De),De!==null){fr=f,e.cancelPendingCommit=De(Am.bind(null,e,t,f,n,o,u,g,R,L,ae,se,null,$,W)),Zr(e,f,g,!F);return}}Am(e,t,f,n,o,u,g,R,L)}function yb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var o=0;o<n.length;o++){var u=n[o],f=u.getSnapshot;u=u.value;try{if(!pn(f(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zr(e,t,n,o){t&=~Pf,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var u=t;0<u;){var f=31-Re(u),g=1<<f;o[f]=-1,u&=~g}n!==0&&gi(e,n,t)}function Su(){return(dt&6)===0?(nl(0),!1):!0}function Vf(){if(tt!==null){if(pt===0)var e=tt.return;else e=tt,er=Ni=null,sf(e),Uo=null,Bs=0,e=tt;for(;e!==null;)Jp(e.alternate,e),e=e.return;tt=null}}function Xo(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ub(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fr=0,Vf(),Tt=e,tt=n=$a(e.current,null),at=t,pt=0,qn=null,Vr=!1,Yo=qa(e,t),qf=!1,Go=Pn=Pf=Gi=Xr=Ut=0,Cn=el=null,Hf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var u=31-Re(o),f=1<<u;t|=e[u],o&=~f}return cr=t,Ge(),n}function _m(e,t){Ie=null,ee.H=Xs,t===No||t===Zl?(t=kh(),pt=3):t===Ic?(t=kh(),pt=4):pt=t===Ef?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qn=t,tt===null&&(Ut=1,uu(e,Zn(t,e.current)))}function wm(){var e=kn.current;return e===null?!0:(at&4194048)===at?Wn===null:(at&62914560)===at||(at&536870912)!==0?e===Wn:!1}function Em(){var e=ee.H;return ee.H=Xs,e===null?Xs:e}function Tm(){var e=ee.A;return ee.A=pb,e}function _u(){Ut=4,Vr||(at&4194048)!==at&&kn.current!==null||(Yo=!0),(Xr&134217727)===0&&(Gi&134217727)===0||Tt===null||Zr(Tt,at,Pn,!1)}function Xf(e,t,n){var o=dt;dt|=2;var u=Em(),f=Tm();(Tt!==e||at!==t)&&(bu=null,Xo(e,t)),t=!1;var g=Ut;e:do try{if(pt!==0&&tt!==null){var R=tt,L=qn;switch(pt){case 8:Vf(),g=6;break e;case 3:case 2:case 9:case 6:kn.current===null&&(t=!0);var F=pt;if(pt=0,qn=null,Qo(e,R,L,F),n&&Yo){g=0;break e}break;default:F=pt,pt=0,qn=null,Qo(e,R,L,F)}}gb(),g=Ut;break}catch(ae){_m(e,ae)}while(!0);
vendor: 4,495 bytes, line 9
9return t&&e.shellSuspendCounter++,er=Ni=null,dt=o,ee.H=u,ee.A=f,tt===null&&(Tt=null,at=0,Ge()),g}function gb(){for(;tt!==null;)Rm(tt)}function vb(e,t){var n=dt;dt|=2;var o=Em(),u=Tm();Tt!==e||at!==t?(bu=null,vu=$t()+500,Xo(e,t)):Yo=qa(e,t);e:do try{if(pt!==0&&tt!==null){t=tt;var f=qn;t:switch(pt){case 1:pt=0,qn=null,Qo(e,t,f,1);break;case 2:case 9:if(Nh(f)){pt=0,qn=null,xm(t);break}t=function(){pt!==2&&pt!==9||Tt!==e||(pt=7),Ca(e)},f.then(t,t);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:Nh(f)?(pt=0,qn=null,xm(t)):(pt=0,qn=null,Qo(e,t,f,7));break;case 5:var g=null;switch(tt.tag){case 26:g=tt.memoizedState;case 5:case 27:var R=tt;if(g?fy(g):R.stateNode.complete){pt=0,qn=null;var L=R.sibling;if(L!==null)tt=L;else{var F=R.return;F!==null?(tt=F,wu(F)):tt=null}break t}}pt=0,qn=null,Qo(e,t,f,5);break;case 6:pt=0,qn=null,Qo(e,t,f,6);break;case 8:Vf(),Ut=6;break e;default:throw Error(s(462))}}bb();break}catch(ae){_m(e,ae)}while(!0);return er=Ni=null,ee.H=o,ee.A=u,dt=n,tt!==null?0:(Tt=null,at=0,Ge(),Ut)}function bb(){for(;tt!==null&&!hi();)Rm(tt)}function Rm(e){var t=Zp(e.alternate,e,cr);e.memoizedProps=e.pendingProps,t===null?wu(e):tt=t}function xm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yp(n,t,t.pendingProps,t.type,void 0,at);break;case 11:t=Yp(n,t,t.pendingProps,t.type.render,t.ref,at);break;case 5:sf(t);default:Jp(n,t),t=tt=Th(t,cr),t=Zp(n,t,cr)}e.memoizedProps=e.pendingProps,t===null?wu(e):tt=t}function Qo(e,t,n,o){er=Ni=null,sf(t),Uo=null,Bs=0;var u=t.return;try{if(sb(e,u,t,n,at)){Ut=1,uu(e,Zn(n,e.current)),tt=null;return}}catch(f){if(u!==null)throw tt=u,f;Ut=1,uu(e,Zn(n,e.current)),tt=null;return}t.flags&32768?(st||o===1?e=!0:Yo||(at&536870912)!==0?e=!1:(Vr=e=!0,(o===2||o===9||o===3||o===6)&&(o=kn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Om(t,e)):wu(t)}function wu(e){var t=e;do{if((t.flags&32768)!==0){Om(t,Vr);return}e=t.return;var n=cb(t.alternate,t,cr);if(n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);Ut===0&&(Ut=5)}function Om(e,t){do{var n=fb(e.alternate,e);if(n!==null){n.flags&=32767,tt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){tt=e;return}tt=e=n}while(e!==null);Ut=6,tt=null}function Am(e,t,n,o,u,f,g,R,L){e.cancelPendingCommit=null;do Eu();while(It!==0);if((dt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=je,ds(e,n,f,g,R,L),e===Tt&&(tt=Tt=null,at=0),Vo=t,Ir=e,fr=n,Kf=f,Yf=u,gm=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Eb(Kt,function(){return Lm(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=ee.T,ee.T=null,u=ve.p,ve.p=2,g=dt,dt|=4;try{db(e,t,n)}finally{dt=g,ve.p=u,ee.T=o}}It=1,Cm(),Mm(),Dm()}}function Cm(){if(It===1){It=0;var e=Ir,t=Vo,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ee.T,ee.T=null;var o=ve.p;ve.p=2;var u=dt;dt|=4;try{um(t,e);var f=rd,g=S(e.containerInfo),R=f.focusedElem,L=f.selectionRange;if(g!==R&&R&&R.ownerDocument&&m(R.ownerDocument.documentElement,R)){if(L!==null&&w(R)){var F=L.start,ae=L.end;if(ae===void 0&&(ae=F),"selectionStart"in R)R.selectionStart=F,R.selectionEnd=Math.min(ae,R.value.length);else{var se=R.ownerDocument||document,$=se&&se.defaultView||window;if($.getSelection){var W=$.getSelection(),De=R.textContent.length,ke=Math.min(L.start,De),_t=L.end===void 0?ke:Math.min(L.end,De);!W.extend&&ke>_t&&(g=_t,_t=ke,ke=g);var G=p(R,ke),P=p(R,_t);if(G&&P&&(W.rangeCount!==1||W.anchorNode!==G.node||W.anchorOffset!==G.offset||W.focusNode!==P.node||W.focusOffset!==P.offset)){var Z=se.createRange();Z.setStart(G.node,G.offset),W.removeAllRanges(),ke>_t?(W.addRange(Z),W.extend(P.node,P.offset)):(Z.setEnd(P.node,P.offset),W.addRange(Z))}}}}for(se=[],W=R;W=W.parentNode;)W.nodeType===1&&se.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<se.length;R++){var oe=se[R];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Nu=!!ad,rd=ad=null}finally{dt=u,ve.p=o,ee.T=n}}e.current=t,It=2}}function Mm(){if(It===2){It=0;var e=Ir,t=Vo,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ee.T,ee.T=null;var o=ve.p;ve.p=2;var u=dt;dt|=4;try{rm(e,t.alternate,t)}finally{dt=u,ve.p=o,ee.T=n}}It=3}}function Dm(){if(It===4||It===3){It=0,Na();var e=Ir,t=Vo,n=fr,o=gm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?It=5:(It=0,Vo=Ir=null,zm(e,e.pen
vendor: 7,298 bytes, line 9
9dingLanes));var u=e.pendingLanes;if(u===0&&(Qr=null),wr(n),t=t.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(ma,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=ee.T,u=ve.p,ve.p=2,ee.T=null;try{for(var f=e.onRecoverableError,g=0;g<o.length;g++){var R=o[g];f(R.value,{componentStack:R.stack})}}finally{ee.T=t,ve.p=u}}(fr&3)!==0&&Eu(),Ca(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Gf?tl++:(tl=0,Gf=e):tl=0,nl(0)}}function zm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Us(t)))}function Eu(){return Cm(),Mm(),Dm(),Lm()}function Lm(){if(It!==5)return!1;var e=Ir,t=Kf;Kf=0;var n=wr(fr),o=ee.T,u=ve.p;try{ve.p=32>n?32:n,ee.T=null,n=Yf,Yf=null;var f=Ir,g=fr;if(It=0,Vo=Ir=null,fr=0,(dt&6)!==0)throw Error(s(331));var R=dt;if(dt|=4,pm(f.current),fm(f,f.current,g,n),dt=R,nl(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(ma,f)}catch{}return!0}finally{ve.p=u,ee.T=o,zm(e,t)}}function jm(e,t,n){t=Zn(n,t),t=wf(e.stateNode,t,2),e=Hr(e,t,2),e!==null&&(Gn(e,2),Ca(e))}function mt(e,t,n){if(e.tag===3)jm(e,e,n);else for(;t!==null;){if(t.tag===3){jm(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Qr===null||!Qr.has(o))){e=Zn(n,e),n=Np(2),o=Hr(t,n,2),o!==null&&(Up(n,o,t,e),Gn(o,2),Ca(o));break}}t=t.return}}function Qf(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new mb;var u=new Set;o.set(t,u)}else u=o.get(t),u===void 0&&(u=new Set,o.set(t,u));u.has(n)||(qf=!0,u.add(n),e=Sb.bind(null,e,t,n),t.then(e,e))}function Sb(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Tt===e&&(at&n)===n&&(Ut===4||Ut===3&&(at&62914560)===at&&300>$t()-gu?(dt&2)===0&&Xo(e,0):Pf|=n,Go===at&&(Go=0)),Ca(e)}function Nm(e,t){t===0&&(t=Cl()),e=ht(e,t),e!==null&&(Gn(e,t),Ca(e))}function _b(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nm(e,n)}function wb(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(t),Nm(e,n)}function Eb(e,t){return ja(e,t)}var Tu=null,Io=null,If=!1,Ru=!1,Zf=!1,Fr=0;function Ca(e){e!==Io&&e.next===null&&(Io===null?Tu=Io=e:Io=Io.next=e),Ru=!0,If||(If=!0,Rb())}function nl(e,t){if(!Zf&&Ru){Zf=!0;do for(var n=!1,o=Tu;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var f=0;else{var g=o.suspendedLanes,R=o.pingedLanes;f=(1<<31-Re(42|e)+1)-1,f&=u&~(g&~R),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,qm(o,f))}else f=at,f=yi(o,o===Tt?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||qa(o,f)||(n=!0,qm(o,f));o=o.next}while(n);Zf=!1}}function Tb(){Um()}function Um(){Ru=If=!1;var e=0;Fr!==0&&Nb()&&(e=Fr);for(var t=$t(),n=null,o=Tu;o!==null;){var u=o.next,f=km(o,t);f===0?(o.next=null,n===null?Tu=u:n.next=u,u===null&&(Io=n)):(n=o,(e!==0||(f&3)!==0)&&(Ru=!0)),o=u}It!==0&&It!==5||nl(e),Fr!==0&&(Fr=0)}function km(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Re(f),R=1<<g,L=u[g];L===-1?((R&n)===0||(R&o)!==0)&&(u[g]=xc(R,t)):L<=t&&(e.expiredLanes|=R),f&=~R}if(t=Tt,n=at,n=yi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,n===0||e===t&&(pt===2||pt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&fn(o),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||qa(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(o!==null&&fn(o),wr(n)){case 2:case 8:n=yt;break;case 32:n=Kt;break;case 268435456:n=ro;break;default:n=Kt}return o=Bm.bind(null,e),n=ja(n,o),e.callbackPriority=t,e.callbackNode=n,t}return o!==null&&o!==null&&fn(o),e.callbackPriority=2,e.callbackNode=null,2}function Bm(e,t){if(It!==0&&It!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Eu()&&e.callbackNode!==n)return null;var o=at;return o=yi(e,e===Tt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(bm(e,o,t),km(e,$t()),e.callbackNode!=null&&e.callbackNode===n?Bm.bind(null,e):null)}function qm(e,t){if(Eu())return null;bm(e,t,!0)}function Rb(){kb(function(){(dt&6)!==0?ja(Ze,Tb):Um()})}function Ff(){if(Fr===0){var e=Lo;e===0&&(e=_e,_e<<=1,(_e&261888)===0&&(_e=256)),Fr=e}return Fr}function Pm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ca(""+e)}function Hm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function xb(e,t,n,o,u){if(t==="submit"&&n&&n.stateNode===u){var f=Pm((u[Bt]||null).action),g=o.submitter;g&&(t=(t=g[Bt]||null)?Pm(t.formAction):g.getAttribute("formAction"),t!==null&&(f=t,g=null));var R=new ho("action","action",null,o,u);e.push({event:R,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Fr!==0){var L=g?Hm(u,g):new FormData(u);yf(n,{pending:!0,data:L,method:u.method,action:f},null,L)}}else typeof f=="function"&&(R.preventDefault(),L=g?Hm(u,g):new FormData(u),yf(n,{pending:!0,data:L,method:u.method,action:f},f,L))},currentTarget:u}]})}}for(var Jf=0;Jf<we.length;Jf++){var $f=we[Jf],Ob=$f.toLowerCase(),Ab=$f[0].toUpperCase()+$f.slice(1);pe(Ob,"on"+Ab)}pe(J,"onAnimationEnd"),pe(Q,"onAnimationIteration"),pe(ne,"onAnimationStart"),pe("dblclick","onDoubleClick"),pe("focusin","onFocus"),pe("focusout","onBlur"),pe(de,"onTransitionRun"),pe(ye,"onTransitionStart"),pe(ge,"onTransitionCancel"),pe(he,"onTransitionEnd"),Sa("onMouseEnter",["mouseout","mouseover"]),Sa("onMouseLeave",["mouseout","mouseover"]),Sa("onPointerEnter",["pointerout","pointerover"]),Sa("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var al="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(" "),Cb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(al));function Km(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],u=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var g=o.length-1;0<=g;g--){var R=o[g],L=R.instance,F=R.currentTarget;if(R=R.listener,L!==f&&u.isPropagationStopped())break e;f=R,u.currentTarget=F;try{f(u)}catch(ae){Ae(ae)}u.currentTarget=null,f=L}else for(g=0;g<o.length;g++){if(R=o[g],L=R.instance,F=R.currentTarget,R=R.listener,L!==f&&u.isPropagationStopped())break e;f=R,u.currentTarget=F;try{f(u)}catch(ae){Ae(ae)}u.currentTarget=null,f=L}}}}function nt(e,t){var n=t[Er];
vendor: 3,585 bytes, line 9
9n===void 0&&(n=t[Er]=new Set);var o=e+"__bubble";n.has(o)||(Ym(t,e,2,!1),n.add(o))}function Wf(e,t,n){var o=0;t&&(o|=4),Ym(n,e,o,t)}var xu="_reactListening"+Math.random().toString(36).slice(2);function ed(e){if(!e[xu]){e[xu]=!0,Pa.forEach(function(n){n!=="selectionchange"&&(Cb.has(n)||Wf(n,!1,e),Wf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xu]||(t[xu]=!0,Wf("selectionchange",!1,t))}}function Ym(e,t,n,o){switch(vy(t)){case 2:var u=a0;break;case 8:u=r0;break;default:u=md}n=u.bind(null,t,n,e),u=void 0,!Ss||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function td(e,t,n,o,u){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var R=o.stateNode.containerInfo;if(R===u)break;if(g===4)for(g=o.return;g!==null;){var L=g.tag;if((L===3||L===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;R!==null;){if(g=ba(R),g===null)return;if(L=g.tag,L===5||L===6||L===26||L===27){o=f=g;continue e}R=R.parentNode}}o=o.return}Rr(function(){var F=f,ae=co(n),se=[];e:{var $=Oe.get(e);if($!==void 0){var W=ho,De=e;switch(e){case"keypress":if(Ar(n)===0)break e;case"keydown":case"keyup":W=So;break;case"focusin":De="focus",W=Cr;break;case"focusout":De="blur",W=Cr;break;case"beforeblur":case"afterblur":W=Cr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=yo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Ll;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Os;break;case J:case Q:case ne:W=jl;break;case he:W=As;break;case"scroll":case"scrollend":W=po;break;case"wheel":W=wo;break;case"copy":case"cut":case"paste":W=Mr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=xs;break;case"toggle":case"beforetoggle":W=kl}var ke=(t&4)!==0,_t=!ke&&(e==="scroll"||e==="scrollend"),G=ke?$!==null?$+"Capture":null:$;ke=[];for(var P=F,Z;P!==null;){var oe=P;if(Z=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||Z===null||G===null||(oe=Va(P,G),oe!=null&&ke.push(rl(P,oe,Z))),_t)break;P=P.return}0<ke.length&&($=new W($,De,null,n,ae),se.push({event:$,listeners:ke}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",$&&n!==Xn&&(De=n.relatedTarget||n.fromElement)&&(ba(De)||De[bn]))break e;if((W||$)&&($=ae.window===ae?ae:($=ae.ownerDocument)?$.defaultView||$.parentWindow:window,W?(De=n.relatedTarget||n.toElement,W=F,De=De?ba(De):null,De!==null&&(_t=h(De),ke=De.tag,De!==_t||ke!==5&&ke!==27&&ke!==6)&&(De=null)):(W=null,De=F),W!==De)){if(ke=yo,oe="onMouseLeave",G="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(ke=xs,oe="onPointerLeave",G="onPointerEnter",P="pointer"),_t=W==null?$:jn(W),Z=De==null?$:jn(De),$=new ke(oe,P+"leave",W,n,ae),$.target=_t,$.relatedTarget=Z,oe=null,ba(ae)===F&&(ke=new ke(G,P+"enter",De,n,ae),ke.target=Z,ke.relatedTarget=_t,oe=ke),_t=oe,W&&De)t:{for(ke=Mb,G=W,P=De,Z=0,oe=G;oe;oe=ke(oe))Z++;oe=0;for(var Ne=P;Ne;Ne=ke(Ne))oe++;for(;0<Z-oe;)G=ke(G),Z--;for(;0<oe-Z;)P=ke(P),oe--;for(;Z--;){if(G===P||P!==null&&G===P.alternate){ke=G;break t}G=ke(G),P=ke(P)}ke=null}else ke=null;W!==null&&Gm(se,$,W,ke,!1),De!==null&&_t!==null&&Gm(se,_t,De,ke,!0)}}
vendor: 3,561 bytes, lines 9-10
9e:{if($=F?jn(F):window,W=$.nodeName&&$.nodeName.toLowerCase(),W==="select"||W==="input"&&$.type==="file")var lt=zi;else if(Ro($))if(In)lt=Lr;else{lt=Ja;var ze=Yl}else W=$.nodeName,!W||W.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?F&&bs(F.elementType)&&(lt=zi):lt=Ls;if(lt&&(lt=lt(e,F))){zs(se,lt,n,ae);break e}ze&&ze(e,$,F),e==="focusout"&&F&&$.type==="number"&&F.memoizedProps.value!=null&&Ti($,"number",$.value)}switch(ze=F?jn(F):window,e){case"focusin":(Ro(ze)||ze.contentEditable==="true")&&(C=ze,N=F,X=null);break;case"focusout":X=N=C=null;break;case"mousedown":U=!0;break;case"contextmenu":case"mouseup":case"dragend":U=!1,j(se,n,ae);break;case"selectionchange":if(A)break;case"keydown":case"keyup":j(se,n,ae)}var Fe;if(Mi)e:{switch(e){case"compositionstart":var rt="onCompositionStart";break e;case"compositionend":rt="onCompositionEnd";break e;case"compositionupdate":rt="onCompositionUpdate";break e}rt=void 0}else Za?Ds(e,n)&&(rt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(rt="onCompositionStart");rt&&(Eo&&n.locale!=="ko"&&(Za||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&Za&&(Fe=Or()):(Qn=ae,fo="value"in Qn?Qn.value:Qn.textContent,Za=!0)),ze=Ou(F,rt),0<ze.length&&(rt=new bo(rt,e,null,n,ae),se.push({event:rt,listeners:ze}),Fe?rt.data=Fe:(Fe=ql(n),Fe!==null&&(rt.data=Fe)))),(Fe=zc?Pl(e,n):Lc(e,n))&&(rt=Ou(F,"onBeforeInput"),0<rt.length&&(ze=new bo("onBeforeInput","beforeinput",null,n,ae),se.push({event:ze,listeners:rt}),ze.data=Fe)),xb(se,e,F,n,ae)}Km(se,t)})}function rl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ou(e,t){for(var n=t+"Capture",o=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=Va(e,n),u!=null&&o.unshift(rl(e,u,f)),u=Va(e,t),u!=null&&o.push(rl(e,u,f))),e.tag===3)return o;e=e.return}return[]}function Mb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gm(e,t,n,o,u){for(var f=t._reactName,g=[];n!==null&&n!==o;){var R=n,L=R.alternate,F=R.stateNode;if(R=R.tag,L!==null&&L===o)break;R!==5&&R!==26&&R!==27||F===null||(L=F,u?(F=Va(n,f),F!=null&&g.unshift(rl(n,F,L))):u||(F=Va(n,f),F!=null&&g.push(rl(n,F,L)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var Db=/\r\n?/g,zb=/\u0000|\uFFFD/g;function Vm(e){return(typeof e=="string"?e:""+e).replace(Db,` 10`).replace(zb,"")}function Xm(e,t){return t=Vm(t),Vm(e)===t}function St(e,t,n,o,u,f){switch(n){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Ka(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Ka(e,""+o);break;case"className":wi(e,"class",o);break;case"tabIndex":wi(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":wi(e,n,o);break;case"style":vs(e,o,f);break;case"data":if(t!=="object"){wi(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(n);break}o=ca(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(n,"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 f=="function"&&(n==="formAction"?(t!=="input"&&St(e,t,"name",u.name,u,null),St(e,t,"formEncType",u.formEncType,u,null),St(e,t,"formMethod",u.formMethod,u,null),St
vendor: 4,451 bytes, line 10
10(e,t,"formTarget",u.formTarget,u,null)):(St(e,t,"encType",u.encType,u,null),St(e,t,"method",u.method,u,null),St(e,t,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(n);break}o=ca(""+o),e.setAttribute(n,o);break;case"onClick":o!=null&&(e.onclick=Rn);break;case"onScroll":o!=null&&nt("scroll",e);break;case"onScrollEnd":o!=null&&nt("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(n=o.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}n=ca(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(n,""+o):e.removeAttribute(n);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":o===!0?e.setAttribute(n,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":nt("beforetoggle",e),nt("toggle",e),$e(e,"popover",o);break;case"xlinkActuate":Vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Vn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Vn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Vn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Vn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":$e(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Cc.get(n)||n,$e(e,n,o))}}function nd(e,t,n,o,u,f){switch(n){case"style":vs(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(n=o.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof o=="string"?Ka(e,o):(typeof o=="number"||typeof o=="bigint")&&Ka(e,""+o);break;case"onScroll":o!=null&&nt("scroll",e);break;case"onScrollEnd":o!=null&&nt("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Si.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),f=e[Bt]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof o=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,u);break e}n in e?e[n]=o:o===!0?e.setAttribute(n,""):$e(e,n,o)}}}function cn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("load",e);var o=!1,u=!1,f;for(f in n)if(n.hasOwnProperty(f)){var g=n[f];
vendor: 5,711 bytes, line 10
10if(g!=null)switch(f){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:St(e,t,f,g,n,null)}}u&&St(e,t,"srcSet",n.srcSet,n,null),o&&St(e,t,"src",n.src,n,null);return;case"input":nt("invalid",e);var R=f=g=u=null,L=null,F=null;for(o in n)if(n.hasOwnProperty(o)){var ae=n[o];if(ae!=null)switch(o){case"name":u=ae;break;case"type":g=ae;break;case"checked":L=ae;break;case"defaultChecked":F=ae;break;case"value":f=ae;break;case"defaultValue":R=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,t));break;default:St(e,t,o,ae,n,null)}}uo(e,f,R,L,F,g,u,!1);return;case"select":nt("invalid",e),o=g=f=null;for(u in n)if(n.hasOwnProperty(u)&&(R=n[u],R!=null))switch(u){case"value":f=R;break;case"defaultValue":g=R;break;case"multiple":o=R;default:St(e,t,u,R,n,null)}t=f,n=g,e.multiple=!!o,t!=null?ua(e,!!o,t,!1):n!=null&&ua(e,!!o,n,!0);return;case"textarea":nt("invalid",e),f=u=o=null;for(g in n)if(n.hasOwnProperty(g)&&(R=n[g],R!=null))switch(g){case"value":o=R;break;case"defaultValue":u=R;break;case"children":f=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(91));break;default:St(e,t,g,R,n,null)}Ri(e,o,u,f);return;case"option":for(L in n)n.hasOwnProperty(L)&&(o=n[L],o!=null)&&(L==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":St(e,t,L,o,n,null));return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(o=0;o<al.length;o++)nt(al[o],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("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(F in n)if(n.hasOwnProperty(F)&&(o=n[F],o!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:St(e,t,F,o,n,null)}return;default:if(bs(t)){for(ae in n)n.hasOwnProperty(ae)&&(o=n[ae],o!==void 0&&nd(e,t,ae,o,n,void 0));return}}for(R in n)n.hasOwnProperty(R)&&(o=n[R],o!=null&&St(e,t,R,o,n,null))}function Lb(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,g=null,R=null,L=null,F=null,ae=null;for(W in n){var se=n[W];if(n.hasOwnProperty(W)&&se!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":L=se;default:o.hasOwnProperty(W)||St(e,t,W,null,o,se)}}for(var $ in o){var W=o[$];if(se=n[$],o.hasOwnProperty($)&&(W!=null||se!=null))switch($){case"type":f=W;break;case"name":u=W;break;case"checked":F=W;break;case"defaultChecked":ae=W;break;case"value":g=W;break;case"defaultValue":R=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(s(137,t));break;default:W!==se&&St(e,t,$,W,o,se)}}_a(e,g,R,L,F,ae,f,u);return;case"select":W=g=R=$=null;for(f in n)if(L=n[f],n.hasOwnProperty(f)&&L!=null)switch(f){case"value":break;case"multiple":W=L;default:o.hasOwnProperty(f)||St(e,t,f,null,o,L)}for(u in o)if(f=o[u],L=n[u],o.hasOwnProperty(u)&&(f!=null||L!=null))switch(u){case"value":$=f;break;case"defaultValue":R=f;break;case"multiple":g=f;default:f!==L&&St(e,t,u,f,o,L)}t=R,n=g,o=W,$!=null?ua(e,!!n,$,!1):!!o!=!!n&&(t!=null?ua(e,!!n,t,!0):ua(e,!!n,n?[]:"",!1));return;case"textarea":W=$=null;for(R in n)if(u=n[R],n.hasOwnProperty(R)&&u!=null&&!o.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:St(e,t,R,null,o,u)}for(g in o)if(u=o[g],f=n[g],o.hasOwnProperty(g)&&(u!=null||f!=null))switch(g){case"value":$=u;break;case"defaultValue":W=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==f&&St(e,t,g,u,o,f)}gs(e,$,W);return;case"option":for(var De in n)$=n[De],n.hasOwnProperty(De)&&$!=null&&!o.hasOwnProperty(De)&&(De==="selected"?e.selected=!1:St(e,t,De,null,o,$));for(L in o)$=o[L],W=n[L],o.hasOwnProperty(L)&&$!==W&&($!=null||W!=null)&&(L==="selected"?e.selected=$&&typeof $!="function"&&typeof $!="symbol":St(e,t,L,$,o,W));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 ke in n)$=n[ke],n.hasOwnProperty(ke)&&$!=null&&!o.hasOwnProperty(ke)&&St(e,t,ke,null,o,$);for(F in o)if($=o[F],W=n[F],o.hasOwnProperty(F)&&$!==W&&($!=null||W!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(s(137,t));break;default:St(e,t,F,$,o,W)}return;default:if(bs(t)){for(var _t in n)$=n[_t],n.hasOwnProperty(_t)&&$!==void 0&&!o.hasOwnProperty(_t)&&nd(e,t,_t,void 0,o,$);for(ae in o)$=o[ae],W=n[ae],!o.hasOwnProperty(ae)||$===W||$===void 0&&W===void 0||nd(e,t,ae,$,o,W);return}}for(var G in n)$=n[G],n.hasOwnProperty(G)&&$!=null&&!o.hasOwnProperty(G)&&St(e,t,G,null,o,$);for(se in o)$=o[se],W=n[se],!o.hasOwnProperty(se)||$===W||$==null&&W==null||St(e,t,se,$,o,W)}function Qm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),o=0;o<n.length;o++){var u=n[o],f=u.transferSize,g=u.initiatorType,R=u.duration;if(f&&R&&Qm(g)){for(g=0,R=u.responseEnd,o+=1;o<n.length;o++){var L=n[o],F=L.startTime;if(F>R)break;var ae=L.transferSize,se=L.initiatorType;ae&&Qm(se)&&(L=L.responseEnd,g+=ae*(L<R?1:(R-F)/(L-F)))}if(--o,t+=8*(f+g)/(u.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 ad=null,rd=null;
vendor: 9,415 bytes, line 10
10function Au(e){return e.nodeType===9?e:e.ownerDocument}function Im(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 Zm(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 id(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 od=null;function Nb(){var e=window.event;return e&&e.type==="popstate"?e===od?!1:(od=e,!0):(od=null,!1)}var Fm=typeof setTimeout=="function"?setTimeout:void 0,Ub=typeof clearTimeout=="function"?clearTimeout:void 0,Jm=typeof Promise=="function"?Promise:void 0,kb=typeof queueMicrotask=="function"?queueMicrotask:typeof Jm<"u"?function(e){return Jm.resolve(null).then(e).catch(Bb)}:Fm;function Bb(e){setTimeout(function(){throw e})}function Jr(e){return e==="head"}function $m(e,t){var n=t,o=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(o===0){e.removeChild(u),$o(t);return}o--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")o++;else if(n==="html")il(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,il(n);for(var f=n.firstChild;f;){var g=f.nextSibling,R=f.nodeName;f[Ln]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&f.rel.toLowerCase()==="stylesheet"||n.removeChild(f),f=g}}else n==="body"&&il(e.ownerDocument.body);n=u}while(n);$o(t)}function Wm(e,t){var n=e;e=0;do{var o=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=o}while(n)}function sd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sd(n),so(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function qb(e,t,n,o){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ln])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=ea(e.nextSibling),e===null)break}return null}function Pb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ea(e.nextSibling),e===null))return null;return e}function ey(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ea(e.nextSibling),e===null))return null;return e}function ld(e){return e.data==="$?"||e.data==="$~"}function ud(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Hb(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var o=function(){t(),n.removeEventListener("DOMContentLoaded",o)};n.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function ea(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 cd=null;function ty(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ea(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ny(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ay(e,t,n){switch(t=Au(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function il(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);so(e)}var ta=new Map,ry=new Set;function Cu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var dr=ve.d;ve.d={f:Kb,r:Yb,D:Gb,C:Vb,L:Xb,m:Qb,X:Zb,S:Ib,M:Fb};function Kb(){var e=dr.f(),t=Su();return e||t}function Yb(e){var t=gt(e);t!==null&&t.tag===5&&t.type==="form"?_p(t):dr.r(e)}var Zo=typeof document>"u"?null:document;function iy(e,t,n){var o=Zo;if(o&&typeof t=="string"&&t){var u=Wt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),ry.has(u)||(ry.add(u),e={rel:e,crossOrigin:n,href:t},o.querySelector(u)===null&&(t=o.createElement("link"),cn(t,"link",e),qt(t),o.head.appendChild(t)))}}function Gb(e){dr.D(e),iy("dns-prefetch",e,null)}function Vb(e,t){dr.C(e,t),iy("preconnect",e,t)}function Xb(e,t,n){dr.L(e,t,n);var o=Zo;if(o&&e&&t){var u='link[rel="preload"][as="'+Wt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Wt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Wt(n.imageSizes)+'"]')):u+='[href="'+Wt(e)+'"]';var f=u;switch(t){case"style":f=Fo(e);break;case"script":f=Jo(e)}ta.has(f)||(e=E({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ta.set(f,e),o.querySelector(u)!==null||t==="style"&&o.querySelector(ol(f))||t==="script"&&o.querySelector(sl(f))||(t=o.createElement("link"),cn(t,"link",e),qt(t),o.head.appendChild(t)))}}function Qb(e,t){dr.m(e,t);var n=Zo;if(n&&e){var o=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Wt(o)+'"][href="'+Wt(e)+'"]',f=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Jo(e)}if(!ta.has(f)&&(e=E({rel:"modulepreload",href:e},t),ta.set(f,e),n.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(sl(f)))return}o=n.createElement("link"),cn(o,"link",e),qt(o),n.head.appendChild(o)}}}function Ib(e,t,n){dr.S(e,t,n);var o=Zo;if(o&&e){var u=dn(o).hoistableStyles,f=Fo(e);t=t||"default";var g=u.get(f);if(!g){var R={loading:0,preload:null};if(g=o.querySelector(ol(f)))R.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ta.get(f))&&fd(e,n);var L=g=o.createElement("link");qt(L),cn(L,"link",e),L._p=new Promise(function(F,ae){L.onload=F,L.onerror=ae}),L.addEventListener("load",function(){R.loading|=1}),L.addEventListener("error",function(){R.loading|=2}),R.loading|=4,Mu(g,t,o)}g={type:"stylesheet",instance:g,count:1,state:R},u.set(f,g)}}}function Zb(e,t){dr.X(e,t);var n=Zo;if(n&&e){var o=dn(n).hoistableScripts,u=Jo(e),f=o.get(u);f||(f=n.querySelector(sl(u)),f||(e=E({src:e,async:!0},t),(t=ta.get(u))&&dd(e,t),f=n.createElement("script"),qt(f),cn(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function Fb(e,t){dr.M(e,t);var n=Zo;if(n&&e){var o=dn(n).hoistableScripts,u=Jo(e),f=o.get(u);f||(f=n.querySelector(sl(u)),f||(e=E({src:e,async:!0,type:"module"},t),(t=ta.get(u))&&dd(e,t),f=n.createElement("script"),qt(f),cn(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function oy(e,t,n,o){var u=(u=Ke.current)?Cu(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Fo(n.href),n=dn(u).hoistableStyles,o=n.get(t),o||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Fo(n.href);var f=dn(u).hoistableStyles,g=f.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=u.querySelector(ol(e)))&&!f._p&&(g.instance=f,g.state.loading=5),ta.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ta.set(e,n),f||Jb(u,e,n,g.state))),t&&o===null)throw Error(s(528,""));return g}if(t&&o!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?
vendor: 4,261 bytes, line 10
10(t=Jo(n),n=dn(u).hoistableScripts,o=n.get(t),o||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Fo(e){return'href="'+Wt(e)+'"'}function ol(e){return'link[rel="stylesheet"]['+e+"]"}function sy(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Jb(e,t,n,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),cn(t,"link",n),qt(t),e.head.appendChild(t))}function Jo(e){return'[src="'+Wt(e)+'"]'}function sl(e){return"script[async]"+e}function ly(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Wt(n.href)+'"]');if(o)return t.instance=o,qt(o),o;var u=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),qt(o),cn(o,"style",u),Mu(o,n.precedence,e),t.instance=o;case"stylesheet":u=Fo(n.href);var f=e.querySelector(ol(u));if(f)return t.state.loading|=4,t.instance=f,qt(f),f;o=sy(n),(u=ta.get(u))&&fd(o,u),f=(e.ownerDocument||e).createElement("link"),qt(f);var g=f;return g._p=new Promise(function(R,L){g.onload=R,g.onerror=L}),cn(f,"link",o),t.state.loading|=4,Mu(f,n.precedence,e),t.instance=f;case"script":return f=Jo(n.src),(u=e.querySelector(sl(f)))?(t.instance=u,qt(u),u):(o=n,(u=ta.get(f))&&(o=E({},n),dd(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),qt(u),cn(u,"link",o),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Mu(o,n.precedence,e));return t.instance}function Mu(e,t,n){for(var o=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,f=u,g=0;g<o.length;g++){var R=o[g];if(R.dataset.precedence===t)f=R;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function fd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function dd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Du=null;function uy(e,t,n){if(Du===null){var o=new Map,u=Du=new Map;u.set(n,o)}else u=Du,o=u.get(n),o||(o=new Map,u.set(n,o));if(o.has(e))return o;for(o.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var f=n[u];if(!(f[Ln]||f[xt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(t)||"";g=e+g;var R=o.get(g);R?R.push(f):o.set(g,[f])}}return o}function cy(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function $b(e,t,n){if(n===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 fy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Wb(e,t,n,o){if(n.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Fo(o.href),f=t.querySelector(ol(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=f,qt(f);return}f=t.ownerDocument||t,o=sy(o),(u=ta.get(u))&&fd(o,u),f=f.createElement("link"),qt(f);var g=f;g._p=new Promise(function(R,L){g.onload=R,g.onerror=L}),cn(f,"link",o),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),
vendor: 10,172 bytes, line 10
10(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=zu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var hd=0;function e0(e,t){return e.stylesheets&&e.count===0&&ju(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var o=setTimeout(function(){if(e.stylesheets&&ju(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&hd===0&&(hd=62500*jb());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ju(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>hd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function zu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Lu=null;function ju(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Lu=new Map,t.forEach(t0,e),Lu=null,zu.call(e))}function t0(e,t){if(!(t.state.loading&4)){var n=Lu.get(e);if(n)var o=n.get(null);else{n=new Map,Lu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var g=u[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),o=g)}o&&n.set(null,o)}u=t.instance,g=u.getAttribute("data-precedence"),f=n.get(g)||o,f===o&&n.set(null,u),n.set(g,u),this.count++,o=zu.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ll={$$typeof:le,Provider:null,Consumer:null,_currentValue:Le,_currentValue2:Le,_threadCount:0};function n0(e,t,n,o,u,f,g,R,L){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=ya(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ya(0),this.hiddenUpdates=ya(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function dy(e,t,n,o,u,f,g,R,L,F,ae,se){return e=new n0(e,t,n,g,L,F,ae,se,R),t=1,f===!0&&(t|=24),f=Un(3,null,null,t),e.current=f,f.stateNode=e,t=Vc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:n,cache:t},Zc(f),e}function hy(e){return e?(e=Ao,e):Ao}function py(e,t,n,o,u,f){u=hy(u),o.context===null?o.context=u:o.pendingContext=u,o=Pr(t),o.payload={element:n},f=f===void 0?null:f,f!==null&&(o.callback=f),n=Hr(e,o,t),n!==null&&(Mn(n,e,t),Ps(n,e,t))}function my(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pd(e,t){my(e,t),(e=e.alternate)&&my(e,t)}function yy(e){if(e.tag===13||e.tag===31){var t=ht(e,67108864);t!==null&&Mn(t,e,67108864),pd(e,67108864)}}function gy(e){if(e.tag===13||e.tag===31){var t=Hn();t=hs(t);var n=ht(e,t);n!==null&&Mn(n,e,t),pd(e,t)}}var Nu=!0;function a0(e,t,n,o){var u=ee.T;ee.T=null;var f=ve.p;try{ve.p=2,md(e,t,n,o)}finally{ve.p=f,ee.T=u}}function r0(e,t,n,o){var u=ee.T;ee.T=null;var f=ve.p;try{ve.p=8,md(e,t,n,o)}finally{ve.p=f,ee.T=u}}function md(e,t,n,o){if(Nu){var u=yd(o);if(u===null)td(e,t,o,Uu,n),by(e,o);else if(o0(u,e,t,n,o))o.stopPropagation();else if(by(e,o),t&4&&-1<i0.indexOf(e)){for(;u!==null;){var f=gt(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=sa(f.pendingLanes);if(g!==0){var R=f;for(R.pendingLanes|=2,R.entangledLanes|=2;g;){var L=1<<31-Re(g);R.entanglements[1]|=L,g&=~L}Ca(f),(dt&6)===0&&(vu=$t()+500,nl(0))}}break;case 31:case 13:R=ht(f,2),R!==null&&Mn(R,f,2),Su(),pd(f,2)}if(f=yd(o),f===null&&td(e,t,o,Uu,n),f===u)break;u=f}u!==null&&o.stopPropagation()}else td(e,t,o,null,n)}}function yd(e){return e=co(e),gd(e)}var Uu=null;function gd(e){if(Uu=null,e=ba(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=y(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Uu=e,null}function vy(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(Ua()){case Ze:return 2;case yt:return 8;case Kt:case pa:return 32;case ro:return 268435456;default:return 32}default:return 32}}var vd=!1,$r=null,Wr=null,ei=null,ul=new Map,cl=new Map,ti=[],i0="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 by(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":ul.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cl.delete(t.pointerId)}}function fl(e,t,n,o,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:f,targetContainers:[u]},t!==null&&(t=gt(t),t!==null&&yy(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function o0(e,t,n,o,u){switch(t){case"focusin":return $r=fl($r,e,t,n,o,u),!0;case"dragenter":return Wr=fl(Wr,e,t,n,o,u),!0;case"mouseover":return ei=fl(ei,e,t,n,o,u),!0;case"pointerover":var f=u.pointerId;return ul.set(f,fl(ul.get(f)||null,e,t,n,o,u)),!0;case"gotpointercapture":return f=u.pointerId,cl.set(f,fl(cl.get(f)||null,e,t,n,o,u)),!0}return!1}function Sy(e){var t=ba(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=y(n),t!==null){e.blockedOn=t,bi(e.priority,function(){gy(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,bi(e.priority,function(){gy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yd(e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);Xn=o,n.target.dispatchEvent(o),Xn=null}else return t=gt(n),t!==null&&yy(t),e.blockedOn=n,!1;t.shift()}return!0}function _y(e,t,n){ku(e)&&n.delete(t)}function s0(){vd=!1,$r!==null&&ku($r)&&($r=null),Wr!==null&&ku(Wr)&&(Wr=null),ei!==null&&ku(ei)&&(ei=null),ul.forEach(_y),cl.forEach(_y)}function Bu(e,t){e.blockedOn===t&&(e.blockedOn=null,vd||(vd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,s0)))}var qu=null;function wy(e){qu!==e&&(qu=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){qu===e&&(qu=null);for(var t=0;t<e.length;t+=3){var n=e[t],o=e[t+1],u=e[t+2];if(typeof o!="function"){if(gd(o||n)===null)continue;break}var f=gt(n);f!==null&&(e.splice(t,3),t-=3,yf(f,{pending:!0,data:u,method:n.method,action:o},o,u))}}))}function $o(e){function t(L){return Bu(L,e)}$r!==null&&Bu($r,e),Wr!==null&&Bu(Wr,e),ei!==null&&Bu(ei,e),ul.forEach(t),cl.forEach(t);for(var n=0;n<ti.length;n++){var o=ti[n];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ti.length&&(n=ti[0],n.blockedOn===null);)Sy(n),n.blockedOn===null&&ti.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(o=0;o<n.length;o+=3){var u=n[o],f=n[o+1],g=u[Bt]||null;if(typeof f=="function")g||wy(n);else if(g){var R=null;if(f&&f.hasAttribute("formAction")){if(u=f,g=f[Bt]||null)R=g.formAction;else if(gd(u)!==null)continue}else R=g.action;typeof R=="function"?n[o+1]=R:(n.splice(o,3),o-=3),wy(n)}}}function Ey(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),o||setTimeout(n,20)}function n(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function bd(e){this._internalRoot=e}Pu.prototype.render=bd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,o=Hn();py(n,o,e,t,null,null)},Pu.prototype.unmount=bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;
10py(e.current,2,null,e,null,null),Su(),t[bn]=null}};function Pu(e){this._internalRoot=e}Pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=vi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ti.length&&t!==0&&t<ti[n].priority;n++);ti.splice(n,0,e),n===0&&Sy(e)}};var Ty=r.version;if(Ty!=="19.2.4")throw Error(s(527,Ty,"19.2.4"));ve.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=_(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var l0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hu.isDisabled&&Hu.supportsFiber)try{ma=Hu.inject(l0),an=Hu}catch{}}return hl.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,o="",u=Dp,f=zp,g=Lp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=dy(e,1,!1,null,null,n,o,null,u,f,g,Ey),e[bn]=t.current,ed(e),new bd(t)},hl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var o=!1,u="",f=Dp,g=zp,R=Lp,L=null;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(R=n.onRecoverableError),n.formState!==void 0&&(L=n.formState)),t=dy(e,1,!0,t,n??null,o,u,L,f,g,R,Ey),t.context=hy(null),n=t.current,o=Hn(),o=hs(o),u=Pr(o),u.callback=null,Hr(n,u,o),n=o,t.current.lanes=n,Gn(t,n),Ca(t),e[bn]=t.current,ed(e),new Pu(t)},hl.version="19.2.4",hl}var jy;function S0(){if(jy)return wd.exports;jy=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),wd.exports=b0(),wd.exports}var _0=S0(),jt=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(jt||{});function Ag({update:a,notify:r,unwatched:i}){return{link:s,unlink:c,propagate:h,checkDirty:y,shallowPropagate:v};function s(_,x,E){const O=x.depsTail;if(O!==void 0&&O.dep===_)return;const D=O!==void 0?O.nextDep:x.deps;if(D!==void 0&&D.dep===_){D.version=E,x.depsTail=D;return}const Y=_.subsTail;if(Y!==void 0&&Y.version===E&&Y.sub===x)return;const z=x.depsTail=_.subsTail={version:E,dep:_,sub:x,prevDep:O,nextDep:D,prevSub:Y,nextSub:void 0};D!==void 0&&(D.prevDep=z),O!==void 0?O.nextDep=z:x.deps=z,Y!==void 0?Y.nextSub=z:_.subs=z}function c(_,x=_.sub){const E=_.dep,O=_.prevDep,D=_.nextDep,Y=_.nextSub,z=_.prevSub;return D!==void 0?D.prevDep=O:x.depsTail=O,O!==void 0?O.nextDep=D:x.deps=D,Y!==void 0?Y.prevSub=z:E.subsTail=z,z!==void 0?z.nextSub=Y:(E.subs=Y)===void 0&&i(E),D}function h(_){let x=_.nextSub,E;e:do{const O=_.sub;let D=O.flags;if(D&60?D&12?D&4?!(D&48)&&b(_,O)?(O.flags=D|40,D&=1):D=0:O.flags=D&-9|32:D=0:O.flags=D|32,D&2&&r(O),D&1){const Y=O.subs;if(Y!==void 0){const z=(_=Y).nextSub;z!==void 0&&(E={value:x,prev:E},x=z);continue}}if((_=x)!==void 0){x=_.nextSub;continue}for(;E!==void 0;)if(_=E.value,E=E.prev,_!==void 0){x=_.nextSub;continue e}break}while(!0)}function y(_,x){let E,O=0,D=!1;e:do{const Y=_.dep,z=Y.flags;if(x.flags&16)D=!0;else if((z&17)===17){if(a(Y)){const V=Y.subs;V.nextSub!==void 0&&v(V),D=!0}}else if((z&33)===33){(_.nextSub!==void 0||_.prevSub!==void 0)&&(E={value:_,prev:E}),_=Y.deps,x=Y,++O;continue}if(!D){const V=_.nextDep;if(V!==void 0){_=V;continue}}for(;O--;){const V=x.subs,te=V.nextSub!==void 0;if(te?(_=E.value,E=E.prev):_=V,D){if(a(x)){te&&v(V),x=_.sub;continue}D=!1}else x.flags&=-33;x=_.sub;const fe=_.nextDep;if(fe!==void 0){_=fe;continue e}}return D}while(!0)}function v(_){do{const x=_.sub,E=x.flags;(E&48)===32&&(x.flags=E|16,(E&6)===2&&r(x))}while((_=_.nextSub)!==void 0)}function b(_,x){let E=x.depsTail;for(;E!==void 0;){if(E===_)return!0;E=E.prevDep}return!1}}let th=0,Vi=0,Sl=0;const pr=[],{link:tR,unlink:Cg,propagate:nR,checkDirty:w0,shallowPropagate:aR}=Ag({update(a){return a.depsTail!==void 0?x0(a):O0(a)},notify(a){let r=Sl,i=r;do if(pr[r++]=a,a.flags&=-3,a=a.subs?.sub,a===void 0||!(a.flags&2))break;while(!0);for(Sl=r;i<--r;){const s=pr[i];pr[i++]=pr[r],pr[r]=s}},unwatched(a){a.flags&1?a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=17,pc(a)):M0.call(a)}});function E0(){return th}function T0(){++th}function R0(){--th||C0()}function x0(a){a.depsTail=void 0,a.flags=5;try{const r=a.value;return r!==(a.value=a.getter(r))}finally{a.flags&=-5,pc(a)}}function O0(a){return a.flags=1,a.currentValue!==(a.currentValue=a.pendingValue)}function A0(a){const r=a.flags;if(r&16||r&32&&w0(a.deps,a)){a.depsTail=void 0,a.flags=6;try{a.fn()}finally{a.flags&=-5,pc(a)}}else a.flags=2}function C0(){try{for(;Vi<Sl;){const a=pr[Vi];pr[Vi++]=void 0,A0(a)}}finally{for(;Vi<Sl;){const a=pr[Vi];pr[Vi++]=void 0,a.flags|=10}Vi=0,Sl=0}}function M0(){this.depsTail=void 0,this.flags=0,pc(this);const a=this.subs;a!==void 0&&Cg(a)}function pc(a){const r=a.depsTail;let i=r!==void 0?r.nextDep:a.deps;for(;i!==void 0;)i=Cg(i,a)}function Mg(a,r,i){const s=typeof a=="object",c=s?a:void 0;
10return{next:(s?a.next:a)?.bind(c),error:(s?a.error:r)?.bind(c),complete:(s?a.complete:i)?.bind(c)}}const Gd=[];let Qu=0;const{link:Ny,unlink:D0,propagate:z0,checkDirty:Dg,shallowPropagate:Uy}=Ag({update(a){return a._update()},notify(a){Gd[Vd++]=a,a.flags&=~jt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=jt.Mutable|jt.Dirty,tc(a))}});let Ku=0,Vd=0,Ma;function tc(a){const r=a.depsTail;let i=r!==void 0?r.nextDep:a.deps;for(;i!==void 0;)i=D0(i,a)}function zg(){if(!(E0()>0)){for(;Ku<Vd;){const a=Gd[Ku];Gd[Ku++]=void 0,a.notify()}Ku=0,Vd=0}}function L0(a,r){const i=typeof a=="function",s=a,c={_snapshot:i?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?jt.None:jt.Mutable,get(){return Ma!==void 0&&Ny(c,Ma,Qu),c._snapshot},subscribe(h){const y=Mg(h),v={current:!1},b=j0(()=>{c.get(),v.current?y.next?.(c._snapshot):v.current=!0});return{unsubscribe:()=>{b.stop()}}},_update(h){const y=Ma,v=Object.is;Ma=c,++Qu,c.depsTail=void 0,i&&(c.flags=jt.Mutable|jt.RecursedCheck);try{const b=c._snapshot,_=typeof h=="function"?h(b):h===void 0&&i?s(b):h;return b===void 0||!v(b,_)?(c._snapshot=_,!0):!1}finally{Ma=y,i&&(c.flags&=~jt.RecursedCheck),tc(c)}}};return i?(c.flags=jt.Mutable|jt.Dirty,c.get=function(){const h=c.flags;if(h&jt.Dirty||h&jt.Pending&&Dg(c.deps,c)){if(c._update()){const y=c.subs;y!==void 0&&Uy(y)}}else h&jt.Pending&&(c.flags=h&~jt.Pending);return Ma!==void 0&&Ny(c,Ma,Qu),c._snapshot}):c.set=function(h){if(c._update(h)){const y=c.subs;y!==void 0&&(z0(y),Uy(y),zg())}},c}function j0(a){const r=()=>{const s=Ma;Ma=i,++Qu,i.depsTail=void 0,i.flags=jt.Watching|jt.RecursedCheck;try{return a()}finally{Ma=s,i.flags&=~jt.RecursedCheck,tc(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:jt.Watching|jt.RecursedCheck,notify(){const s=this.flags;s&jt.Dirty||s&jt.Pending&&Dg(this.deps,this)?r():this.flags=jt.Watching},stop(){this.flags=jt.None,this.depsTail=void 0,tc(this)}};return r(),i}class N0{constructor(r){this.atom=L0(r)}setState(r){this.atom.set(r)}get state(){return this.atom.get()}get(){return this.state}subscribe(r){return this.atom.subscribe(Mg(r))}}function U0(a){try{T0(),a()}finally{R0(),zg()}}const li="__TSR_index",ky="popstate",By="beforeunload";function k0(a){let r=a.getLocation();const i=new Set,s=y=>{r=a.getLocation(),i.forEach(v=>v({location:r,action:y}))},c=y=>{a.notifyOnIndexChange??!0?s(y):r=a.getLocation()},h=async({task:y,navigateOpts:v,...b})=>{if(v?.ignoreBlocker??!1){y();return}const x=a.getBlockers?.()??[],E=b.type==="PUSH"||b.type==="REPLACE";if(typeof document<"u"&&x.length&&E)for(const O of x){const D=nc(b.path,b.state);if(await O.blockerFn({currentLocation:r,nextLocation:D,action:b.type})){a.onBlocked?.();return}}y()};return{get location(){return r},get length(){return a.getLength()},subscribers:i,subscribe:y=>(i.add(y),()=>{i.delete(y)}),push:(y,v,b)=>{const _=r.state[li];v=qy(_+1,v),h({task:()=>{a.pushState(y,v),s({type:"PUSH"})},navigateOpts:b,type:"PUSH",path:y,state:v})},replace:(y,v,b)=>{const _=r.state[li];v=qy(_,v),h({task:()=>{a.replaceState(y,v),s({type:"REPLACE"})},navigateOpts:b,type:"REPLACE",path:y,state:v})},go:(y,v)=>{h({task:()=>{a.go(y),c({type:"GO",index:y})},navigateOpts:v,type:"GO"})},back:y=>{h({task:()=>{a.back(y?.ignoreBlocker??!1),c({type:"BACK"})},navigateOpts:y,type:"BACK"})},forward:y=>{h({task:()=>{a.forward(y?.ignoreBlocker??!1),c({type:"FORWARD"})},navigateOpts:y,type:"FORWARD"})},canGoBack:()=>r.state[li]!==0,createHref:y=>a.createHref(y),block:y=>{if(!a.setBlockers)return()=>{};const v=a.getBlockers?.()??[];return a.setBlockers([...v,y]),()=>{const b=a.getBlockers?.()??[];a.setBlockers?.(b.filter(_=>_!==y))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:s}}function qy(a,r){r||(r={});const i=nh();return{...r,key:i,__TSR_key:i,[li]:a}}function B0(a){const r=typeof document<"u"?window:void 0,i=r.history.pushState,s=r.history.replaceState;let c=[];const h=()=>c,y=ce=>c=ce,v=(ce=>ce),b=(()=>nc(`${r.location.pathname}${r.location.search}${r.location.hash}`,r.history.state));if(!r.history.state?.__TSR_key&&!r.history.state?.key){const ce=nh();r.history.replaceState({[li]:0,key:ce,__TSR_key:ce},"")}let _=b(),x,E=!1,O=!1,D=!1,Y=!1;const z=()=>_;let V,te;const fe=()=>{V&&(ue._ignoreSubscribers=!0,(V.isPush?r.history.pushState:r.history.replaceState)(V.state,"",V.href),ue._ignoreSubscribers=!1,V=void 0,te=void 0,x=void 0)},le=(ce,Ee,He)=>{const Be=v(Ee);te||(x=_),_=nc(Ee,He),V={href:Be,state:He,isPush:V?.isPush||ce==="push"},te||(te=Promise.resolve().then(()=>fe()))},re=ce=>{_=b(),ue.notify({type:ce})},Ce=async()=>
10{if(O){O=!1;return}const ce=b(),Ee=ce.state[li]-_.state[li],He=Ee===1,Be=Ee===-1,Ue=!He&&!Be||E;E=!1;const Xe=Ue?"GO":Be?"BACK":"FORWARD",Ye=Ue?{type:"GO",index:Ee}:{type:Be?"BACK":"FORWARD"};if(D)D=!1;else{const Dt=h();if(typeof document<"u"&&Dt.length){for(const ee of Dt)if(await ee.blockerFn({currentLocation:_,nextLocation:ce,action:Xe})){O=!0,r.history.go(1),ue.notify(Ye);return}}}_=b(),ue.notify(Ye)},Te=ce=>{if(Y){Y=!1;return}let Ee=!1;const He=h();if(typeof document<"u"&&He.length)for(const Be of He){const Ue=Be.enableBeforeUnload??!0;if(Ue===!0){Ee=!0;break}if(typeof Ue=="function"&&Ue()===!0){Ee=!0;break}}if(Ee)return ce.preventDefault(),ce.returnValue=""},ue=k0({getLocation:z,getLength:()=>r.history.length,pushState:(ce,Ee)=>le("push",ce,Ee),replaceState:(ce,Ee)=>le("replace",ce,Ee),back:ce=>(ce&&(D=!0),Y=!0,r.history.back()),forward:ce=>{ce&&(D=!0),Y=!0,r.history.forward()},go:ce=>{E=!0,r.history.go(ce)},createHref:ce=>v(ce),flush:fe,destroy:()=>{r.history.pushState=i,r.history.replaceState=s,r.removeEventListener(By,Te,{capture:!0}),r.removeEventListener(ky,Ce)},onBlocked:()=>{x&&_!==x&&(_=x)},getBlockers:h,setBlockers:y,notifyOnIndexChange:!1});return r.addEventListener(By,Te,{capture:!0}),r.addEventListener(ky,Ce),r.history.pushState=function(...ce){const Ee=i.apply(r.history,ce);return ue._ignoreSubscribers||re("PUSH"),Ee},r.history.replaceState=function(...ce){const Ee=s.apply(r.history,ce);return ue._ignoreSubscribers||re("REPLACE"),Ee},ue}function q0(a){let r=a.replace(/[\x00-\x1f\x7f]/g,"");return r.startsWith("//")&&(r="/"+r.replace(/^\/+/,"")),r}function nc(a,r){const i=q0(a),s=i.indexOf("#"),c=i.indexOf("?"),h=nh();return{href:i,pathname:i.substring(0,s>0?c>0?Math.min(s,c):s:c>0?c:i.length),hash:s>-1?i.substring(s):"",search:c>-1?i.slice(c,s===-1?void 0:s):"",state:r||{[li]:0,key:h,__TSR_key:h}}}function nh(){return(Math.random()+1).toString(36).substring(7)}const P0=!1;function ns(a){let r;return U0(()=>{r=a()}),r}function Tl(a){return a[a.length-1]}function H0(a){return typeof a=="function"}function oi(a,r){return H0(a)?a(r):a}const K0=Object.prototype.hasOwnProperty,Py=Object.prototype.propertyIsEnumerable;function Kn(a,r,i=0){if(a===r)return a;
10if(i>500)return r;const s=r,c=Yy(a)&&Yy(s);if(!c&&!(ac(a)&&ac(s)))return s;const h=c?a:Hy(a);if(!h)return s;const y=c?s:Hy(s);if(!y)return s;const v=h.length,b=y.length,_=c?new Array(b):{};let x=0;for(let E=0;E<b;E++){const O=c?E:y[E],D=a[O],Y=s[O];if(D===Y){_[O]=D,(c?E<v:K0.call(a,O))&&x++;continue}if(D===null||Y===null||typeof D!="object"||typeof Y!="object"){_[O]=Y;continue}const z=Kn(D,Y,i+1);_[O]=z,z===D&&x++}return v===b&&x===v?a:_}function Hy(a){const r=Object.getOwnPropertyNames(a);for(const c of r)if(!Py.call(a,c))return!1;const i=Object.getOwnPropertySymbols(a);if(i.length===0)return r;const s=r;for(const c of i){if(!Py.call(a,c))return!1;s.push(c)}return s}function ac(a){if(!Ky(a))return!1;const r=a.constructor;if(typeof r>"u")return!0;const i=r.prototype;return!(!Ky(i)||!i.hasOwnProperty("isPrototypeOf"))}function Ky(a){return Object.prototype.toString.call(a)==="[object Object]"}function Yy(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Zi(a,r,i){if(a===r)return!0;if(typeof a!=typeof r)return!1;if(Array.isArray(a)&&Array.isArray(r)){if(a.length!==r.length)return!1;for(let s=0,c=a.length;s<c;s++)if(!Zi(a[s],r[s],i))return!1;return!0}if(ac(a)&&ac(r)){const s=i?.ignoreUndefined??!0;if(i?.partial){for(const y in r)if((!s||r[y]!==void 0)&&!Zi(a[y],r[y],i))return!1;return!0}let c=0;if(!s)c=Object.keys(a).length;else for(const y in a)a[y]!==void 0&&c++;let h=0;for(const y in r)if((!s||r[y]!==void 0)&&(h++,h>c||!Zi(a[y],r[y],i)))return!1;return c===h}return!1}function Ji(a){let r,i;const s=new Promise((c,h)=>{r=c,i=h});return s.status="pending",s.resolve=c=>{s.status="resolved",s.value=c,r(c),a?.(c)},s.reject=c=>{s.status="rejected",i(c)},s}function Y0(a){return typeof a?.message!="string"?!1:a.message.startsWith("Failed to fetch dynamically imported module")||a.message.startsWith("error loading dynamically imported module")||a.message.startsWith("Importing a module script failed")}function as(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function G0(a){return a.replace(/[\x00-\x1f\x7f]/g,"")}function Gy(a){let r;try{r=decodeURI(a)}catch{r=a.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return G0(r)}const V0=["http:","https:","mailto:","tel:"];function rc(a,r){if(!a)return!1;try{const i=new URL(a);return!r.has(i.protocol)}catch{return!1}}const X0={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Q0=/[&><\u2028\u2029]/g;function I0(a){return a.replace(Q0,r=>X0[r])}function pl(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const r=/%25|%5C/gi;let i=0,s="",c;for(;(c=r.exec(a))!==null;)s+=Gy(a.slice(i,c.index))+c[0],i=r.lastIndex;s=s+Gy(i?a.slice(i):a);let h=!1;return s.startsWith("//")&&(h=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:h}}function Z0(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}var F0="Invariant failed";function Dn(a,r){if(!a)throw new Error(F0)}function ic(a){const r=new Map;let i,s;const c=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,s&&(s.next=h,h.prev=s)):(h.next.prev=void 0,i=h.next,h.next=void 0,s&&(h.prev=s,s.next=h)),s=h)};return{get(h){const y=r.get(h);if(y)return c(y),y.value},set(h,y){if(r.size>=a&&i){const b=i;r.delete(b.key),b.next&&(i=b.next,b.next.prev=void 0),b===s&&(s=void 0)}const v=r.get(h);if(v)v.value=y,c(v);else{const b={key:h,value:y,prev:s};s&&(s.next=b),s=b,i||(i=b),r.set(h,b)}},clear(){r.clear(),i=void 0,s=void 0}}}const cs=0,$i=1,Wi=2,Rl=3,Xi=4,Lg=5;function J0(a){const r=a.indexOf("{");if(r===-1)return null;const i=a.indexOf("}",r);return i===-1||r+1>=a.length?null:[r,i]}function ah(a,r,i=new Uint16Array(6)){const s=a.indexOf("/",r),c=s===-1?a.length:s,h=a.substring(r,c);if(!h||!h.includes("$"))return i[0]=cs,i[1]=r,i[2]=r,i[3]=c,i[4]=c,i[5]=c,i;if(h==="$"){const v=a.length;return i[0]=Wi,i[1]=r,i[2]=r,i[3]=v,i[4]=v,i[5]=v,i}if(h.charCodeAt(0)===36)return i[0]=$i,i[1]=r,i[2]=r+1,i[3]=c,i[4]=c,i[5]=c,i;const y=J0(h);
10if(y){const[v,b]=y,_=h.charCodeAt(v+1);if(_===45){if(v+2<h.length&&h.charCodeAt(v+2)===36){const x=v+3,E=b;if(x<E)return i[0]=Rl,i[1]=r+v,i[2]=r+x,i[3]=r+E,i[4]=r+b+1,i[5]=c,i}}else if(_===36){const x=v+1,E=v+2;return E===b?(i[0]=Wi,i[1]=r+v,i[2]=r+x,i[3]=r+E,i[4]=r+b+1,i[5]=a.length,i):(i[0]=$i,i[1]=r+v,i[2]=r+E,i[3]=r+b,i[4]=r+b+1,i[5]=c,i)}}return i[0]=cs,i[1]=r,i[2]=r,i[3]=c,i[4]=c,i[5]=c,i}function mc(a,r,i,s,c,h,y){y?.(i);let v=s;{const b=i.fullPath??i.from,_=b.length,x=i.options?.caseSensitive??a,E=!!(i.options?.params?.parse&&i.options?.skipRouteOnParseError?.params);for(;v<_;){const D=ah(b,v,r);let Y;const z=v,V=D[5];switch(v=V+1,h++,D[0]){case cs:{const fe=b.substring(D[2],D[3]);if(x){const le=c.static?.get(fe);if(le)Y=le;else{c.static??=new Map;const re=Qi(i.fullPath??i.from);re.parent=c,re.depth=h,Y=re,c.static.set(fe,re)}}else{const le=fe.toLowerCase(),re=c.staticInsensitive?.get(le);if(re)Y=re;else{c.staticInsensitive??=new Map;const Ce=Qi(i.fullPath??i.from);Ce.parent=c,Ce.depth=h,Y=Ce,c.staticInsensitive.set(le,Ce)}}break}case $i:{const fe=b.substring(z,D[1]),le=b.substring(D[4],V),re=x&&!!(fe||le),Ce=fe?re?fe:fe.toLowerCase():void 0,Te=le?re?le:le.toLowerCase():void 0,ue=!E&&c.dynamic?.find(ce=>!ce.skipOnParamError&&ce.caseSensitive===re&&ce.prefix===Ce&&ce.suffix===Te);if(ue)Y=ue;else{const ce=Od($i,i.fullPath??i.from,re,Ce,Te);Y=ce,ce.depth=h,ce.parent=c,c.dynamic??=[],c.dynamic.push(ce)}break}case Rl:{const fe=b.substring(z,D[1]),le=b.substring(D[4],V),re=x&&!!(fe||le),Ce=fe?re?fe:fe.toLowerCase():void 0,Te=le?re?le:le.toLowerCase():void 0,ue=!E&&c.optional?.find(ce=>!ce.skipOnParamError&&ce.caseSensitive===re&&ce.prefix===Ce&&ce.suffix===Te);if(ue)Y=ue;else{const ce=Od(Rl,i.fullPath??i.from,re,Ce,Te);Y=ce,ce.parent=c,ce.depth=h,c.optional??=[],c.optional.push(ce)}break}case Wi:{const fe=b.substring(z,D[1]),le=b.substring(D[4],V),re=x&&!!(fe||le),Ce=fe?re?fe:fe.toLowerCase():void 0,Te=le?re?le:le.toLowerCase():void 0,ue=Od(Wi,i.fullPath??i.from,re,Ce,Te);Y=ue,ue.parent=c,ue.depth=h,c.wildcard??=[],c.wildcard.push(ue)}}c=Y}if(E&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const D=Qi(i.fullPath??i.from);D.kind=Lg,D.parent=c,h++,D.depth=h,c.pathless??=[],c.pathless.push(D),c=D}const O=(i.path||!i.children)&&!i.isRoot;if(O&&b.endsWith("/")){const D=Qi(i.fullPath??i.from);D.kind=Xi,D.parent=c,h++,D.depth=h,c.index=D,c=D}c.parse=i.options?.params?.parse??null,c.skipOnParamError=E,c.parsingPriority=i.options?.skipRouteOnParseError?.priority??0,O&&!c.route&&(c.route=i,c.fullPath=i.fullPath??i.from)}if(i.children)for(const b of i.children)mc(a,r,b,v,c,h,y)}function xd(a,r){if(a.skipOnParamError&&!r.skipOnParamError)return-1;if(!a.skipOnParamError&&r.skipOnParamError)return 1;if(a.skipOnParamError&&r.skipOnParamError&&(a.parsingPriority||r.parsingPriority))return r.parsingPriority-a.parsingPriority;if(a.prefix&&r.prefix&&a.prefix!==r.prefix){if(a.prefix.startsWith(r.prefix))return-1;if(r.prefix.startsWith(a.prefix))return 1}if(a.suffix&&r.suffix&&a.suffix!==r.suffix){if(a.suffix.endsWith(r.suffix))return-1;if(r.suffix.endsWith(a.suffix))return 1}return a.prefix&&!r.prefix?-1:!a.prefix&&r.prefix?1:a.suffix&&!r.suffix?-1:!a.suffix&&r.suffix?1:a.caseSensitive&&!r.caseSensitive?-1:!a.caseSensitive&&r.caseSensitive?1:0}function ri(a){if(a.pathless)for(const r of a.pathless)ri(r);if(a.static)for(const r of a.static.values())ri(r);if(a.staticInsensitive)for(const r of a.staticInsensitive.values())ri(r);if(a.dynamic?.length){a.dynamic.sort(xd);for(const r of a.dynamic)ri(r)}if(a.optional?.length){a.optional.sort(xd);for(const r of a.optional)ri(r)}if(a.wildcard?.length){a.wildcard.sort(xd);for(const r of a.wildcard)ri(r)}}function Qi(a){return{kind:cs,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Od(a,r,i,s,c){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:r,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:s,suffix:c}}function $0(a,r){const i=Qi("/"),s=new Uint16Array(6);for(const c of a)mc(!1,s,c,1,i,0);ri(i),r.masksTree=i,r.flatCache=ic(1e3)}function W0(a,r){a||="/";const i=r.flatCache.get(a);if(i)return i;const s=rh(a,r.masksTree);return r.flatCache.set(a,s),s}function eS(a,r,i,s,c){a||="/",s||="/";const h=r?`case\0${a}`:a;let y=c.singleCache.get(h);if(!y){y=Qi("/");const v=new Uint16Array(6);mc(r,v,{from:a},1,y,0),c.singleCache.set(h,y)}return rh(s,y,i)}function tS(a,r,i=!1){const s=i?a:`nofuzz\0${a}`,c=r.matchCache.get(s);if(c!==void 0)return c;a||="/";let h;try{h=rh(a,r.segmentTree,i)}catch(y){if(y instanceof URIError)h=null;else throw y}return h&&(h.branch=rS(h.route)),r.matchCache.set(s,h),h}function nS(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function aS(a,r=!1,i){const s=Qi(a.fullPath),c=new Uint16Array(6),h={},y={};let v=0;
10return mc(r,c,a,1,s,0,_=>{if(i?.(_,v),Dn(!(_.id in h),`Duplicate routes found with id: ${String(_.id)}`),h[_.id]=_,v!==0&&_.path){const x=nS(_.fullPath);(!y[x]||_.fullPath.endsWith("/"))&&(y[x]=_)}v++}),ri(s),{processedTree:{segmentTree:s,singleCache:ic(1e3),matchCache:ic(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:y}}function rh(a,r,i=!1){const s=a.split("/"),c=oS(a,s,r,i);if(!c)return null;const[h]=jg(a,s,c);return{route:c.node.route,rawParams:h,parsedParams:c.parsedParams}}function jg(a,r,i){const s=iS(i.node);let c=null;const h={};let y=i.extract?.part??0,v=i.extract?.node??0,b=i.extract?.path??0,_=i.extract?.segment??0;for(;v<s.length;y++,v++,b++,_++){const x=s[v];if(x.kind===Xi)break;if(x.kind===Lg){_--,y--,b--;continue}const E=r[y],O=b;if(E&&(b+=E.length),x.kind===$i){c??=i.node.fullPath.split("/");const D=c[_],Y=x.prefix?.length??0;if(D.charCodeAt(Y)===123){const V=x.suffix?.length??0,te=D.substring(Y+2,D.length-V-1),fe=E.substring(Y,E.length-V);h[te]=decodeURIComponent(fe)}else{const V=D.substring(1);h[V]=decodeURIComponent(E)}}else if(x.kind===Rl){if(i.skipped&1<<v){y--,b=O-1;continue}c??=i.node.fullPath.split("/");const D=c[_],Y=x.prefix?.length??0,z=x.suffix?.length??0,V=D.substring(Y+3,D.length-z-1),te=x.suffix||x.prefix?E.substring(Y,E.length-z):E;te&&(h[V]=decodeURIComponent(te))}else if(x.kind===Wi){const D=x,Y=a.substring(O+(D.prefix?.length??0),a.length-(D.suffix?.length??0)),z=decodeURIComponent(Y);h["*"]=z,h._splat=z;break}}return i.rawParams&&Object.assign(h,i.rawParams),[h,{part:y,node:v,path:b,segment:_}]}function rS(a){const r=[a];for(;a.parentRoute;)a=a.parentRoute,r.push(a);return r.reverse(),r}function iS(a){const r=Array(a.depth+1);do r[a.depth]=a,a=a.parent;while(a);return r}function oS(a,r,i,s){if(a==="/"&&i.index)return{node:i.index,skipped:0};const c=!Tl(r),h=c&&a!=="/",y=r.length-(c?1:0),v=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let b=null,_=null,x=null;for(;v.length;){const E=v.pop(),{node:O,index:D,skipped:Y,depth:z,statics:V,dynamics:te,optionals:fe}=E;let{extract:le,rawParams:re,parsedParams:Ce}=E;if(O.skipOnParamError){if(!Ad(a,r,E))continue;re=E.rawParams,le=E.extract,Ce=E.parsedParams}s&&O.route&&O.kind!==Xi&&ml(_,E)&&(_=E);const Te=D===y;if(Te&&(O.route&&!h&&ml(x,E)&&(x=E),!O.optional&&!O.wildcard&&!O.index&&!O.pathless))continue;const ue=Te?void 0:r[D];let ce;if(Te&&O.index){const Ee={node:O.index,index:D,skipped:Y,depth:z+1,statics:V,dynamics:te,optionals:fe,extract:le,rawParams:re,parsedParams:Ce};let He=!0;if(O.index.skipOnParamError&&(Ad(a,r,Ee)||(He=!1)),He){if(V===y&&!te&&!fe&&!Y)return Ee;ml(x,Ee)&&(x=Ee)}}if(O.wildcard&&ml(b,E))for(const Ee of O.wildcard){const{prefix:He,suffix:Be}=Ee;if(He&&(Te||!(Ee.caseSensitive?ue:ce??=ue.toLowerCase()).startsWith(He)))continue;if(Be){if(Te)continue;const Xe=r.slice(D).join("/").slice(-Be.length);if((Ee.caseSensitive?Xe:Xe.toLowerCase())!==Be)continue}const Ue={node:Ee,index:y,skipped:Y,depth:z,statics:V,dynamics:te,optionals:fe,extract:le,rawParams:re,parsedParams:Ce};if(!(Ee.skipOnParamError&&!Ad(a,r,Ue))){b=Ue;break}}if(O.optional){const Ee=Y|1<<z,He=z+1;for(let Be=O.optional.length-1;Be>=0;Be--){const Ue=O.optional[Be];v.push({node:Ue,index:D,skipped:Ee,depth:He,statics:V,dynamics:te,optionals:fe,extract:le,rawParams:re,parsedParams:Ce})}if(!Te)for(let Be=O.optional.length-1;Be>=0;Be--){const Ue=O.optional[Be],{prefix:Xe,suffix:Ye}=Ue;if(Xe||Ye){const Dt=Ue.caseSensitive?ue:ce??=ue.toLowerCase();if(Xe&&!Dt.startsWith(Xe)||Ye&&!Dt.endsWith(Ye))continue}v.push({node:Ue,index:D+1,skipped:Y,depth:He,statics:V,dynamics:te,optionals:fe+1,extract:le,rawParams:re,parsedParams:Ce})}}if(!Te&&O.dynamic&&ue)for(let Ee=O.dynamic.length-1;Ee>=0;Ee--){const He=O.dynamic[Ee],{prefix:Be,suffix:Ue}=He;if(Be||Ue){const Xe=He.caseSensitive?ue:ce??=ue.toLowerCase();if(Be&&!Xe.startsWith(Be)||Ue&&!Xe.endsWith(Ue))continue}v.push({node:He,index:D+1,skipped:Y,depth:z+1,statics:V,dynamics:te+1,optionals:fe,extract:le,rawParams:re,parsedParams:Ce})}if(!Te&&O.staticInsensitive){const Ee=O.staticInsensitive.get(ce??=ue.toLowerCase());Ee&&v.push({node:Ee,index:D+1,skipped:Y,depth:z+1,statics:V+1,dynamics:te,optionals:fe,extract:le,rawParams:re,parsedParams:Ce})}if(!Te&&O.static){const Ee=O.static.get(ue);Ee&&v.push({node:Ee,index:D+1,skipped:Y,depth:z+1,statics:V+1,dynamics:te,optionals:fe,extract:le,rawParams:re,parsedParams:Ce})}if(O.pathless){const Ee=z+1;for(let He=O.pathless.length-1;He>=0;He--){const Be=O.pathless[He];v.push({node:Be,index:D,skipped:Y,depth:Ee,statics:V,dynamics:te,optionals:fe,extract:le,rawParams:re,parsedParams:Ce})}}}if(x&&b)return ml(b,x)?x:b;
10if(x)return x;if(b)return b;if(s&&_){let E=_.index;for(let D=0;D<_.index;D++)E+=r[D].length;const O=E===a.length?"/":a.slice(E);return _.rawParams??={},_.rawParams["**"]=decodeURIComponent(O),_}return null}function Ad(a,r,i){try{const[s,c]=jg(a,r,i);i.rawParams=s,i.extract=c;const h=i.node.parse(s);return i.parsedParams=Object.assign({},i.parsedParams,h),!0}catch{return null}}function ml(a,r){return a?r.statics>a.statics||r.statics===a.statics&&(r.dynamics>a.dynamics||r.dynamics===a.dynamics&&(r.optionals>a.optionals||r.optionals===a.optionals&&((r.node.kind===Xi)>(a.node.kind===Xi)||r.node.kind===Xi==(a.node.kind===Xi)&&r.depth>a.depth))):!0}function Iu(a){return ih(a.filter(r=>r!==void 0).join("/"))}function ih(a){return a.replace(/\/{2,}/g,"/")}function Ng(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function mr(a){const r=a.length;return r>1&&a[r-1]==="/"?a.replace(/\/{1,}$/,""):a}function Ug(a){return mr(Ng(a))}function oc(a,r){return a?.endsWith("/")&&a!=="/"&&a!==`${r}/`?a.slice(0,-1):a}function sS(a,r,i){return oc(a,i)===oc(r,i)}function lS({base:a,to:r,trailingSlash:i="never",cache:s}){const c=r.startsWith("/"),h=!c&&r===".";let y;if(s){y=c?r:h?a:a+"\0"+r;const E=s.get(y);if(E)return E}let v;if(h)v=a.split("/");else if(c)v=r.split("/");else{for(v=a.split("/");v.length>1&&Tl(v)==="";)v.pop();const E=r.split("/");for(let O=0,D=E.length;O<D;O++){const Y=E[O];Y===""?O?O===D-1&&v.push(Y):v=[Y]:Y===".."?v.pop():Y==="."||v.push(Y)}}v.length>1&&(Tl(v)===""?i==="never"&&v.pop():i==="always"&&v.push(""));let b,_="";for(let E=0;E<v.length;E++){E>0&&(_+="/");const O=v[E];if(!O)continue;b=ah(O,0,b);const D=b[0];if(D===cs){_+=O;continue}const Y=b[5],z=O.substring(0,b[1]),V=O.substring(b[4],Y),te=O.substring(b[2],b[3]);D===$i?_+=z||V?`${z}{$${te}}${V}`:`$${te}`:D===Wi?_+=z||V?`${z}{$}${V}`:"$":_+=`${z}{-$${te}}${V}`}_=ih(_);const x=_||"/";return y&&s&&s.set(y,x),x}function uS(a){const r=new Map(a.map(c=>[encodeURIComponent(c),c])),i=Array.from(r.keys()).map(c=>c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(i,"g");return c=>c.replace(s,h=>r.get(h)??h)}function Cd(a,r,i){const s=r[a];return typeof s!="string"?s:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(c=>Vy(c,i)).join("/"):Vy(s,i)}function Md({path:a,params:r,decoder:i,...s}){let c=!1;const h={};if(!a||a==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:c};if(!a.includes("$"))return{interpolatedPath:a,usedParams:h,isMissingParams:c};const y=a.length;let v=0,b,_="";for(;v<y;){const E=v;b=ah(a,E,b);const O=b[5];if(v=O+1,E===O)continue;const D=b[0];if(D===cs){_+="/"+a.substring(E,O);continue}if(D===Wi){const Y=r._splat;h._splat=Y,h["*"]=Y;const z=a.substring(E,b[1]),V=a.substring(b[4],O);if(!Y){c=!0,(z||V)&&(_+="/"+z+V);continue}const te=Cd("_splat",r,i);_+="/"+z+te+V;continue}if(D===$i){const Y=a.substring(b[2],b[3]);!c&&!(Y in r)&&(c=!0),h[Y]=r[Y];const z=a.substring(E,b[1]),V=a.substring(b[4],O),te=Cd(Y,r,i)??"undefined";_+="/"+z+te+V;continue}if(D===Rl){const Y=a.substring(b[2],b[3]),z=r[Y];if(z==null)continue;h[Y]=z;const V=a.substring(E,b[1]),te=a.substring(b[4],O),fe=Cd(Y,r,i)??"";_+="/"+V+fe+te;continue}}return a.endsWith("/")&&(_+="/"),{usedParams:h,interpolatedPath:_||"/",isMissingParams:c}}function Vy(a,r){const i=encodeURIComponent(a);return r?.(i)??i}function En(a){return!!a?.isNotFound}function cS(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Xd="tsr-scroll-restoration-v1_3",fS=(a,r)=>{let i;return(...s)=>{i||(i=setTimeout(()=>{a(...s),i=null},r))}};function dS(){const a=cS();if(!a)return null;const r=a.getItem(Xd);let i=r?JSON.parse(r):{};return{state:i,set:s=>{i=oi(s,i)||i;try{a.setItem(Xd,JSON.stringify(i))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Yu=dS(),hS=a=>a.state.__TSR_key||a.href;function pS(a){const r=[];let i;for(;i=a.parentNode;)r.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,a)+1})`),a=i;return`${r.reverse().join(" > ")}`.toLowerCase()}let sc=!1;function mS({storageKey:a,key:r,behavior:i,shouldScrollRestoration:s,scrollToTopSelectors:c,location:h}){let y;try{y=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(_){console.error(_);return}const v=r||window.history.state?.__TSR_key,b=y[v];sc=!0;
10e:{if(s&&b&&Object.keys(b).length>0){for(const E in b){const O=b[E];if(E==="window")window.scrollTo({top:O.scrollY,left:O.scrollX,behavior:i});else if(E){const D=document.querySelector(E);D&&(D.scrollLeft=O.scrollX,D.scrollTop=O.scrollY)}}break e}const _=(h??window.location).hash.split("#",2)[1];if(_){const E=window.history.state?.__hashScrollIntoViewOptions??!0;if(E){const O=document.getElementById(_);O&&O.scrollIntoView(E)}break e}const x={top:0,left:0,behavior:i};if(window.scrollTo(x),c)for(const E of c){if(E==="window")continue;const O=typeof E=="function"?E():document.querySelector(E);O&&O.scrollTo(x)}}sc=!1}function yS(a,r){if(!Yu||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup||!Yu))return;a.isScrollRestorationSetup=!0,sc=!1;const s=a.options.getScrollRestorationKey||hS;window.history.scrollRestoration="manual";const c=h=>{if(sc||!a.isScrollRestoring)return;let y="";if(h.target===document||h.target===window)y="window";else{const b=h.target.getAttribute("data-scroll-restoration-id");b?y=`[data-scroll-restoration-id="${b}"]`:y=pS(h.target)}const v=s(a.state.location);Yu.set(b=>{const _=b[v]||={},x=_[y]||={};if(y==="window")x.scrollX=window.scrollX||0,x.scrollY=window.scrollY||0;else if(y){const E=document.querySelector(y);E&&(x.scrollX=E.scrollLeft||0,x.scrollY=E.scrollTop||0)}return b})};typeof document<"u"&&document.addEventListener("scroll",fS(c,100),!0),a.subscribe("onRendered",h=>{const y=s(h.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(mS({storageKey:Xd,key:y,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&Yu.set(v=>(v[y]||={},v)))})}function gS(a){if(typeof document<"u"&&document.querySelector){const r=a.state.location.state.__hashScrollIntoViewOptions??!0;if(r&&a.state.location.hash!==""){const i=document.getElementById(a.state.location.hash);i&&i.scrollIntoView(r)}}}function kg(a,r=String){const i=new URLSearchParams;for(const s in a){const c=a[s];c!==void 0&&i.set(s,r(c))}return i.toString()}function Dd(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function vS(a){const r=new URLSearchParams(a),i={};for(const[s,c]of r.entries()){const h=i[s];h==null?i[s]=Dd(c):Array.isArray(h)?h.push(Dd(c)):i[s]=[h,Dd(c)]}return i}const bS=_S(JSON.parse),SS=wS(JSON.stringify,JSON.parse);function _S(a){return r=>{r[0]==="?"&&(r=r.substring(1));const i=vS(r);for(const s in i){const c=i[s];if(typeof c=="string")try{i[s]=a(c)}catch{}}return i}}function wS(a,r){const i=typeof r=="function";function s(c){if(typeof c=="object"&&c!==null)try{return a(c)}catch{}else if(i&&typeof c=="string")try{return r(c),a(c)}catch{}return c}return c=>{const h=kg(c,s);return h?`?${h}`:""}}const na="__root__";function Bg(a){if(a.statusCode=a.statusCode||a.code||307,!a._builtLocation&&!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const r=new Headers(a.headers);a.href&&r.get("Location")===null&&r.set("Location",a.href);const i=new Response(null,{status:a.statusCode,headers:r});if(i.options=a,a.throw)throw i;return i}function aa(a){return a instanceof Response&&!!a.options}function ES(a){if(a!==null&&typeof a=="object"&&a.isSerializedRedirect)return Bg(a)}const Zu=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},yc=(a,r)=>!!(a.preload&&!a.router.state.matches.some(i=>i.id===r)),rs=(a,r,i=!0)=>{const s={...a.router.options.context??{}},c=i?r:r-1;for(let h=0;h<=c;h++){const y=a.matches[h];if(!y)continue;const v=a.router.getMatch(y.id);v&&Object.assign(s,v.__routeContext,v.__beforeLoadContext)}return s},qg=(a,r,i)=>{const s=a.router.routesById[r.routeId??""]??a.router.routeTree;!s.options.notFoundComponent&&a.router.options?.defaultNotFoundComponent&&(s.options.notFoundComponent=a.router.options.defaultNotFoundComponent);const c=i==="BEFORE_LOAD"&&s.parentRoute;c||Dn(s.options.notFoundComponent);const h=a.matches.find(y=>y.routeId===s.id);Dn(h,"Could not find match for route: "+s.id),a.updateMatch(h.id,y=>({...y,status:"notFound",error:r,isFetching:!1})),c&&(r.routeId=s.parentRoute.id,qg(a,r,i))},si=(a,r,i,s)=>{if(!(!aa(i)&&!En(i))){if(aa(i)&&i.redirectHandled&&!i.options.reloadDocument)throw i;if(r){r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.loaderPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,r._nonReactive.loaderPromise=void 0;const c=aa(i)?"redirected":"notFound";
10r._nonReactive.error=i,a.updateMatch(r.id,h=>({...h,status:c,context:rs(a,r.index),isFetching:!1,error:i})),En(i)&&!i.routeId&&(i.routeId=r.routeId),r._nonReactive.loadPromise?.resolve()}throw aa(i)?(a.rendered=!0,i.options._fromLocation=a.location,i.redirectHandled=!0,i=a.router.resolveRedirect(i),i):(qg(a,i,s),i)}},Pg=(a,r)=>!!a.router.getMatch(r)._nonReactive.dehydrated,yl=(a,r,i,s)=>{const{id:c,routeId:h}=a.matches[r],y=a.router.looseRoutesById[h];if(i instanceof Promise)throw i;i.routerCode=s,a.firstBadMatchIndex??=r,si(a,a.router.getMatch(c),i,s);try{y.options.onError?.(i)}catch(v){i=v,si(a,a.router.getMatch(c),i,s)}a.updateMatch(c,v=>(v._nonReactive.beforeLoadPromise?.resolve(),v._nonReactive.beforeLoadPromise=void 0,v._nonReactive.loadPromise?.resolve(),{...v,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},Hg=(a,r,i,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const c=i.options.pendingMs??a.router.options.defaultPendingMs;if(!!(a.onReady&&!yc(a,r)&&(i.options.loader||i.options.beforeLoad||Gg(i))&&typeof c=="number"&&c!==1/0&&(i.options.pendingComponent??a.router.options?.defaultPendingComponent))){const y=setTimeout(()=>{Zu(a)},c);s._nonReactive.pendingTimeout=y}},TS=(a,r,i)=>{const s=a.router.getMatch(r);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;Hg(a,r,i,s);const c=()=>{const h=a.router.getMatch(r);h.preload&&(h.status==="redirected"||h.status==="notFound")&&si(a,h,h.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(c):c()},RS=(a,r,i,s)=>{const c=a.router.getMatch(r),h=c._nonReactive.loadPromise;c._nonReactive.loadPromise=Ji(()=>{h?.resolve()});const{paramsError:y,searchError:v}=c;y&&yl(a,i,y,"PARSE_PARAMS"),v&&yl(a,i,v,"VALIDATE_SEARCH"),Hg(a,r,s,c);const b=new AbortController;let _=!1;const x=()=>{_||(_=!0,a.updateMatch(r,re=>({...re,isFetching:"beforeLoad",fetchCount:re.fetchCount+1,abortController:b})))},E=()=>{c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,a.updateMatch(r,re=>({...re,isFetching:!1}))};if(!s.options.beforeLoad){ns(()=>{x(),E()});return}c._nonReactive.beforeLoadPromise=Ji();const O={...rs(a,i,!1),...c.__routeContext},{search:D,params:Y,cause:z}=c,V=yc(a,r),te={search:D,abortController:b,params:Y,preload:V,context:O,location:a.location,navigate:re=>a.router.navigate({...re,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:V?"preload":z,matches:a.matches,routeId:s.id,...a.router.options.additionalContext},fe=re=>{if(re===void 0){ns(()=>{x(),E()});return}(aa(re)||En(re))&&(x(),yl(a,i,re,"BEFORE_LOAD")),ns(()=>{x(),a.updateMatch(r,Ce=>({...Ce,__beforeLoadContext:re})),E()})};let le;try{if(le=s.options.beforeLoad(te),as(le))return x(),le.catch(re=>{yl(a,i,re,"BEFORE_LOAD")}).then(fe)}catch(re){x(),yl(a,i,re,"BEFORE_LOAD")}fe(le)},xS=(a,r)=>{const{id:i,routeId:s}=a.matches[r],c=a.router.looseRoutesById[s],h=()=>v(),y=()=>RS(a,i,r,c),v=()=>{if(Pg(a,i))return;const b=TS(a,i,c);return as(b)?b.then(y):y()};return h()},OS=(a,r,i)=>{const s=a.router.getMatch(r);if(!s||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const c={ssr:a.router.options.ssr,matches:a.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([i.options.head?.(c),i.options.scripts?.(c),i.options.headers?.(c)]).then(([h,y,v])=>{const b=h?.meta,_=h?.links,x=h?.scripts,E=h?.styles;return{meta:b,links:_,headScripts:x,headers:v,scripts:y,styles:E}})},Kg=(a,r,i,s)=>{const c=a.matchPromises[i-1],{params:h,loaderDeps:y,abortController:v,cause:b}=a.router.getMatch(r),_=rs(a,i),x=yc(a,r);return{params:h,deps:y,preload:!!x,parentMatchPromise:c,abortController:v,context:_,location:a.location,navigate:E=>a.router.navigate({...E,_fromLocation:a.location}),cause:x?"preload":b,route:s,...a.router.options.additionalContext}},Xy=async(a,r,i,s)=>{try{const c=a.router.getMatch(r);try{(!(P0??a.router.isServer)||c.ssr===!0)&&Yg(s);const h=s.options.loader?.(Kg(a,r,i,s)),y=s.options.loader&&as(h);if((y||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||c._nonReactive.minPendingPromise)&&a.updateMatch(r,_=>({..._,isFetching:"loader"})),s.options.loader){const _=y?await h:h;si(a,a.router.getMatch(r),_),_!==void 0&&a.updateMatch(r,x=>({...x,loaderData:_}))}s._lazyPromise&&await s._lazyPromise;const b=c._nonReactive.minPendingPromise;b&&await b,s._componentsPromise&&await s._componentsPromise,a.updateMatch(r,_=>({..._,error:void 0,context:rs(a,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(h){let y=h;if(y?.name==="AbortError"){if(c.abortController.signal.aborted){c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loaderPromise=void 0;return}a.updateMatch(r,b=>({...b,status:b.status==="pending"?"success":b.status,isFetching:!1,context:rs(a,i)}));return}const v=c._nonReactive.minPendingPromise;v&&await v,En(h)&&await s.options.notFoundComponent?.preload?.(),si(a,a.router.getMatch(r),h);try{s.options.onError?.(h)}catch(b){y=b,si(a,a.router.getMatch(r),b)}a.updateMatch(r,b=>({...b,error:y,context:rs(a,i),status:"error",isFetching:!1}))}}catch(c){const h=a.router.getMatch(r);h&&(h._nonReactive.loaderPromise=void 0),si(a,h,c)}},AS=async(a,r)=>{async function i(x,E,O,D){const Y=Date.now()-E.updatedAt,z=x?D.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:D.options.staleTime??a.router.options.defaultStaleTime??0,V=D.options.shouldReload,te=typeof V=="function"?V(Kg(a,s,r,D)):V,{status:fe,invali
10d:le}=O;h=fe==="success"&&(le||(te??Y>z)),x&&D.options.preload===!1||(h&&!a.sync?(y=!0,(async()=>{try{await Xy(a,s,r,D);const re=a.router.getMatch(s);re._nonReactive.loaderPromise?.resolve(),re._nonReactive.loadPromise?.resolve(),re._nonReactive.loaderPromise=void 0}catch(re){aa(re)&&await a.router.navigate(re.options)}})()):(fe!=="success"||h&&a.sync)&&await Xy(a,s,r,D))}const{id:s,routeId:c}=a.matches[r];let h=!1,y=!1;const v=a.router.looseRoutesById[c];if(!Pg(a,s)){const x=a.router.getMatch(s),E=yc(a,s);if(x._nonReactive.loaderPromise){if(x.status==="success"&&!a.sync&&!x.preload)return x;await x._nonReactive.loaderPromise;const O=a.router.getMatch(s),D=O._nonReactive.error||O.error;D&&si(a,O,D),O.status==="pending"&&await i(E,x,O,v)}else{const O=E&&!a.router.state.matches.some(Y=>Y.id===s),D=a.router.getMatch(s);D._nonReactive.loaderPromise=Ji(),O!==D.preload&&a.updateMatch(s,Y=>({...Y,preload:O})),await i(E,x,D,v)}}const b=a.router.getMatch(s);y||(b._nonReactive.loaderPromise?.resolve(),b._nonReactive.loadPromise?.resolve()),clearTimeout(b._nonReactive.pendingTimeout),b._nonReactive.pendingTimeout=void 0,y||(b._nonReactive.loaderPromise=void 0),b._nonReactive.dehydrated=void 0;const _=y?b.isFetching:!1;return _!==b.isFetching||b.invalid!==!1?(a.updateMatch(s,x=>({...x,isFetching:_,invalid:!1})),a.router.getMatch(s)):b};async function Qy(a){const r=Object.assign(a,{matchPromises:[]});r.router.state.matches.some(i=>i._forcePending)&&Zu(r);try{for(let v=0;v<r.matches.length;v++){const b=xS(r,v);as(b)&&await b}const i=r.firstBadMatchIndex??r.matches.length;for(let v=0;v<i;v++)r.matchPromises.push(AS(r,v));const c=(await Promise.allSettled(r.matchPromises)).filter(v=>v.status==="rejected").map(v=>v.reason);let h;for(const v of c){if(aa(v))throw v;!h&&En(v)&&(h=v)}for(const v of r.matches){const{id:b,routeId:_}=v,x=r.router.looseRoutesById[_];try{const E=OS(r,b,x);if(E){const O=await E;r.updateMatch(b,D=>({...D,...O}))}}catch(E){console.error(`Error executing head for route ${_}:`,E)}}if(h)throw h;const y=Zu(r);as(y)&&await y}catch(i){if(En(i)&&!r.preload){const s=Zu(r);throw as(s)&&await s,i}if(aa(i))throw i}return r.matches}async function Yg(a){if(!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(r=>{const{id:i,...s}=r.options;Object.assign(a.options,s),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0),!a._componentsLoaded&&a._componentsPromise===void 0){const r=()=>{const i=[];for(const s of Vg){const c=a.options[s]?.preload;c&&i.push(c())}if(i.length)return Promise.all(i).then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0});a._componentsLoaded=!0,a._componentsPromise=void 0};a._componentsPromise=a._lazyPromise?a._lazyPromise.then(r):r()}return a._componentsPromise}function Gg(a){for(const r of Vg)if(a.options[r]?.preload)return!0;return!1}const Vg=["component","errorComponent","pendingComponent","notFoundComponent"];function CS(a){return{input:({url:r})=>{for(const i of a)r=Qd(i,r);return r},output:({url:r})=>{for(let i=a.length-1;i>=0;i--)r=Xg(a[i],r);return r}}}function MS(a){const r=Ug(a.basepath),i=`/${r}`,s=`${i}/`,c=a.caseSensitive?i:i.toLowerCase(),h=a.caseSensitive?s:s.toLowerCase();return{input:({url:y})=>{const v=a.caseSensitive?y.pathname:y.pathname.toLowerCase();return v===c?y.pathname="/":v.startsWith(h)&&(y.pathname=y.pathname.slice(i.length)),y},output:({url:y})=>(y.pathname=Iu(["/",r,y.pathname]),y)}}function Qd(a,r){const i=a?.input?.({url:r});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return r}function Xg(a,r){const i=a?.output?.({url:r});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return r}function DS(a){return a instanceof Error?{name:a.name,message:a.message}:{data:a}}function Fi(a){const r=a.resolvedLocation,i=a.location,s=r?.pathname!==i.pathname,c=r?.href!==i.href,h=r?.hash!==i.hash;return{fromLocation:r,toLocation:i,pathChanged:s,hrefChanged:c,hashChanged:h}}function zS(a){const r=a.filter(i=>i.status!=="redirected");return r.length===a.length?a:r}class LS{constructor(r){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{i.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const s=this.options,c=this.basepath??s?.basepath??"/",h=this.basepath===void 0,y=s?.rewrite;if(this.options={...s,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=uS(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=B0()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let O;this.resolvePathCache=ic(1e3),O=this.buildRouteTree(),this.setRoutes(O)}!this.__store&&this.latestLocation&&(this.__store=new N0(NS(this.latestLocation)),yS(this));let v=!1;const b=this.options.basepath??"/",_=this.options.rewrite;if(h||c!==b||y!==_){this.basepath=b;const O=[],D=Ug(b);D&&D!=="/"&&O.push(MS({basepath:b})),_&&O.push(_),this.rewrite=O.length===0?void 0:O.length===1?O[0]:CS(O),this.history&&this.updateLatestLocation(),v=!0}v&&this.__store&&this.__store.setState(O=>({...O,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>
10{const i=aS(this.routeTree,this.options.caseSensitive,(s,c)=>{s.init({originalIndex:c})});return this.options.routeMasks&&$0(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,s)=>{const c={eventType:i,fn:s};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=i=>{this.subscribers.forEach(s=>{s.eventType===i.type&&s.fn(i)})},this.parseLocation=(i,s)=>{const c=({pathname:b,search:_,hash:x,href:E,state:O})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(b)){const fe=this.options.parseSearch(_),le=this.options.stringifySearch(fe);return{href:b+le+x,publicHref:E,pathname:pl(b).path,external:!1,searchStr:le,search:Kn(s?.search,fe),hash:pl(x.slice(1)).path,state:Kn(s?.state,O)}}const D=new URL(E,this.origin),Y=Qd(this.rewrite,D),z=this.options.parseSearch(Y.search),V=this.options.stringifySearch(z);return Y.search=V,{href:Y.href.replace(Y.origin,""),publicHref:E,pathname:pl(Y.pathname).path,external:!!this.rewrite&&Y.origin!==this.origin,searchStr:V,search:Kn(s?.search,z),hash:pl(Y.hash.slice(1)).path,state:Kn(s?.state,O)}},h=c(i),{__tempLocation:y,__tempKey:v}=h.state;if(y&&(!v||v===this.tempLocationKey)){const b=c(y);return b.state.key=h.state.key,b.state.__TSR_key=h.state.__TSR_key,delete b.state.__tempLocation,{...b,maskedLocation:h}}return h},this.resolvePathWithBase=(i,s)=>lS({base:i,to:ih(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,s,c)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:s},c):this.matchRoutesInternal(i,s),this.getMatchedRoutes=i=>US({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const s=this.getMatch(i);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const i=this.state.matches.filter(h=>h.status==="pending"),s=this.state.matches.filter(h=>h.isFetching==="loader");new Set([...this.state.pendingMatches??[],...i,...s]).forEach(h=>{this.cancelMatch(h.id)})},this.buildLocation=i=>{const s=(h={})=>{const y=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,v=this.matchRoutesLightweight(y);h.from;const b=h.unsafeRelative==="path"?y.pathname:h.from??v.fullPath,_=this.resolvePathWithBase(b,"."),x=v.search,E={...v.params},O=h.to?this.resolvePathWithBase(_,`${h.to}`):this.resolvePathWithBase(_,"."),D=h.params===!1||h.params===null?{}:(h.params??!0)===!0?E:Object.assign(E,oi(h.params,E)),Y=Md({path:O,params:D,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,z=this.getMatchedRoutes(Y);let V=z.matchedRoutes;(z.foundRoute?z.foundRoute.path!=="/"&&z.routeParams["**"]:mr(Y))&&this.options.notFoundRoute&&(V=[...V,this.options.notFoundRoute]);let fe=!1;if(Object.keys(D).length>0)for(const Xe of V){const Ye=Xe.options.params?.stringify??Xe.options.stringifyParams;Ye&&(fe=!0,Object.assign(D,Ye(D)))}const le=i.leaveParams?O:pl(fe?Md({path:O,params:D,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:Y).path;let re=x;if(i._includeValidateSearch&&this.options.search?.strict){const Xe={};V.forEach(Ye=>{if(Ye.options.validateSearch)try{Object.assign(Xe,Fu(Ye.options.validateSearch,{...Xe,...re}))}catch{}}),re=Xe}re=kS({search:re,dest:h,destRoutes:V,_includeValidateSearch:i._includeValidateSearch}),re=Kn(x,re);const Ce=this.options.stringifySearch(re),Te=h.hash===!0?y.hash:h.hash?oi(h.hash,y.hash):void 0,ue=Te?`#${Te}`:"";let ce=h.state===!0?y.state:h.state?oi(h.state,y.state):{};ce=Kn(y.state,ce);const Ee=`${le}${Ce}${ue}`;let He,Be,Ue=!1;if(this.rewrite){const Xe=new URL(Ee,this.origin),Ye=Xg(this.rewrite,Xe);He=Xe.href.replace(Xe.origin,""),Ye.origin!==this.origin?(Be=Ye.href,Ue=!0):Be=Ye.pathname+Ye.search+Ye.hash}else He=Z0(Ee),Be=He;return{publicHref:Be,href:He,pathname:le,search:re,searchStr:Ce,state:ce,hash:Te??"",external:Ue,unmaskOnReload:h.unmaskOnReload}},c=(h={},y)=>{const v=s(h);let b=y?s(y):void 0;if(!b){const _={};if(this.options.routeMasks){const x=W0(v.pathname,this.processedTree);if(x){Object.assign(_,x.rawParams);const{from:E,params:O,...D}=x.route,Y=O===!1||O===null?{}:(O??!0)===!0?_:Object.assign(_,oi(O,_));y={from:i.from,...D,params:Y},b=s(y)}}}return b&&(v.maskedLocation=b),v};return i.mask?c(i,{from:i.from,...i.mask}):c(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:s,...c})=>{const h=()=>{const b=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];b.forEach(x=>{c.state[x]=this.latestLocation.state[x]});const _=Zi(c.state,this.latestLocation.state);return b.forEach(x=>{delete c.state[x]}),_},y=mr(this.latestLocation.href)===mr(c.href),v=this.commitLocationPromise;if(this.commitLocationPromise=Ji(()=>{v?.resolve()}),y&&h())this.load();else{let{maskedLocation:b,hashScrollIntoView:_,...x}=c;b&&(x={...b,state:{...b.state,__tempKey:void 0,__tempLocation:{...x,search:x.searchStr,state:{...x.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(x.unmaskOnReload??this.options.unmaskOnReload??!1)&&(x.state.__tempKey=this.tempLocationKey)),x.state.__hashScrollIntoViewOptions=_??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[c.replace?"replace":"push"](x.publicHref,x.state,{ignoreBlocker:s})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:s,hashScrollIntoView:c,viewTransition:h,ignoreBlocker:y,href:v,...b}={})=>
10{if(v){const E=this.history.location.state.__TSR_index,O=nc(v,{__TSR_index:i?E:E+1}),D=new URL(O.pathname,this.origin),Y=Qd(this.rewrite,D);b.to=Y.pathname,b.search=this.options.parseSearch(O.search),b.hash=O.hash.slice(1)}const _=this.buildLocation({...b,_includeValidateSearch:!0});this.pendingBuiltLocation=_;const x=this.commitLocation({..._,viewTransition:h,replace:i,resetScroll:s,hashScrollIntoView:c,ignoreBlocker:y});return Promise.resolve().then(()=>{this.pendingBuiltLocation===_&&(this.pendingBuiltLocation=void 0)}),x},this.navigate=async({to:i,reloadDocument:s,href:c,publicHref:h,...y})=>{let v=!1;if(c)try{new URL(`${c}`),v=!0}catch{}if(v&&!s&&(s=!0),s){if(i!==void 0||!c){const _=this.buildLocation({to:i,...y});c=c??_.publicHref,h=h??_.publicHref}const b=!v&&h?h:c;if(rc(b,this.protocolAllowlist))return Promise.resolve();if(!y.ignoreBlocker){const x=this.history.getBlockers?.()??[];for(const E of x)if(E?.blockerFn&&await E.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return y.replace?window.location.replace(b):window.location.href=b,Promise.resolve()}return this.buildAndCommitLocation({...y,href:c,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation);this.__store.setState(s=>({...s,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:i,cachedMatches:s.cachedMatches.filter(c=>!i.some(h=>h.id===c.id))}))},this.load=async i=>{let s,c,h;for(h=new Promise(v=>{this.startTransition(async()=>{try{this.beforeLoad();const b=this.latestLocation,_=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Fi({resolvedLocation:_,location:b})}),this.emit({type:"onBeforeLoad",...Fi({resolvedLocation:_,location:b})}),await Qy({router:this,sync:i?.sync,matches:this.state.pendingMatches,location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let x=[],E=[],O=[];ns(()=>{this.__store.setState(D=>{const Y=D.matches,z=D.pendingMatches||D.matches;return x=Y.filter(V=>!z.some(te=>te.id===V.id)),E=z.filter(V=>!Y.some(te=>te.id===V.id)),O=z.filter(V=>Y.some(te=>te.id===V.id)),{...D,isLoading:!1,loadedAt:Date.now(),matches:z,pendingMatches:void 0,cachedMatches:[...D.cachedMatches,...x.filter(V=>V.status!=="error"&&V.status!=="notFound"&&V.status!=="redirected")]}}),this.clearExpiredCache()}),[[x,"onLeave"],[E,"onEnter"],[O,"onStay"]].forEach(([D,Y])=>{D.forEach(z=>{this.looseRoutesById[z.routeId].options[Y]?.(z)})})})})}})}catch(b){aa(b)?(s=b,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):En(b)&&(c=b),this.__store.setState(_=>({..._,statusCode:s?s.status:c?404:_.matches.some(x=>x.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),v()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.__store.state.matches.some(v=>v.status==="error")&&(y=500),y!==void 0&&this.__store.setState(v=>({...v,statusCode:y}))},this.startViewTransition=i=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,y=this.state.resolvedLocation,v=typeof s.types=="function"?s.types(Fi({resolvedLocation:y,location:h})):s.types;if(v===!1){i();return}c={update:i,types:v}}else c=i;document.startViewTransition(c)}else i()},this.updateMatch=(i,s)=>{this.startTransition(()=>{const c=this.state.pendingMatches?.some(h=>h.id===i)?"pendingMatches":this.state.matches.some(h=>h.id===i)?"matches":this.state.cachedMatches.some(h=>h.id===i)?"cachedMatches":"";c&&(c==="cachedMatches"?this.__store.setState(h=>
10({...h,cachedMatches:zS(h.cachedMatches.map(y=>y.id===i?s(y):y))})):this.__store.setState(h=>({...h,[c]:h[c]?.map(y=>y.id===i?s(y):y)})))})},this.getMatch=i=>{const s=c=>c.id===i;return this.state.cachedMatches.find(s)??this.state.pendingMatches?.find(s)??this.state.matches.find(s)},this.invalidate=i=>{const s=c=>i?.filter?.(c)??!0?{...c,invalid:!0,...i?.forcePending||c.status==="error"||c.status==="notFound"?{status:"pending",error:void 0}:void 0}:c;return this.__store.setState(c=>({...c,matches:c.matches.map(s),cachedMatches:c.cachedMatches.map(s),pendingMatches:c.pendingMatches?.map(s)})),this.shouldViewTransition=!1,this.load({sync:i?.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const s=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const c=i.options._builtLocation??this.buildLocation(i.options),h=this.getParsedLocationHref(c);i.options.href=h,i.headers.set("Location",h)}else if(s)try{const c=new URL(s);if(this.origin&&c.origin===this.origin){const h=c.pathname+c.search+c.hash;i.options.href=h,i.headers.set("Location",h)}}catch{}if(i.options.href&&!i.options._builtLocation&&rc(i.options.href,this.protocolAllowlist))throw new Error(`Redirect blocked: unsafe protocol in href "${i.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const s=i?.filter;s!==void 0?this.__store.setState(c=>({...c,cachedMatches:c.cachedMatches.filter(h=>!s(h))})):this.__store.setState(c=>({...c,cachedMatches:[]}))},this.clearExpiredCache=()=>{const i=s=>{const c=this.looseRoutesById[s.routeId];if(!c.options.loader)return!0;const h=(s.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:Date.now()-s.updatedAt>=h};this.clearCache({filter:i})},this.loadRouteChunk=Yg,this.preloadRoute=async i=>{const s=i._builtLocation??this.buildLocation(i);let c=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:i});const h=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(v=>v.id)),y=new Set([...h,...this.state.cachedMatches.map(v=>v.id)]);ns(()=>{c.forEach(v=>{y.has(v.id)||this.__store.setState(b=>({...b,cachedMatches:[...b.cachedMatches,v]}))})});try{return c=await Qy({router:this,matches:c,location:s,preload:!0,updateMatch:(v,b)=>{h.has(v)?c=c.map(_=>_.id===v?b(_):_):this.updateMatch(v,b)}}),c}catch(v){if(aa(v))return v.options.reloadDocument?void 0:await this.preloadRoute({...v.options,_fromLocation:s});En(v)||console.error(v);return}},this.matchRoute=(i,s)=>{const c={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},h=this.buildLocation(c);if(s?.pending&&this.state.status!=="pending")return!1;const v=(s?.pending===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,b=eS(h.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,v.pathname,this.processedTree);return!b||i.params&&!Zi(b.rawParams,i.params,{partial:!0})?!1:s?.includeSearch??!0?Zi(v.search,h.search,{partial:!0})?b.rawParams:!1:b.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(i=>i.status==="notFound"||i.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...r,caseSensitive:r.caseSensitive??!1,notFoundMode:r.notFoundMode??"fuzzy",stringifySearch:r.stringifySearch??SS,parseSearch:r.parseSearch??bS,protocolAllowlist:r.protocolAllowlist??V0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:r,routesByPath:i,processedTree:s}){this.routesById=r,this.routesByPath=i,this.processedTree=s;const c=this.options.notFoundRoute;c&&(c.init({originalIndex:99999999999}),this.routesById[c.id]=c)}get looseRoutesById(){return this.routesById}getParentContext(r){return r?.id?r.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(r,i){const s=this.getMatchedRoutes(r.pathname),{foundRoute:c,routeParam
10s:h,parsedParams:y}=s;let{matchedRoutes:v}=s,b=!1;(c?c.path!=="/"&&h["**"]:mr(r.pathname))&&(this.options.notFoundRoute?v=[...v,this.options.notFoundRoute]:b=!0);const _=b?qS(this.options.notFoundMode,v):void 0,x=new Array(v.length),E=new Map(this.state.matches.map(O=>[O.routeId,O]));for(let O=0;O<v.length;O++){const D=v[O],Y=x[O-1];let z,V,te;{const Ye=Y?.search??r.search,Dt=Y?._strictSearch??void 0;try{const ee=Fu(D.options.validateSearch,{...Ye})??void 0;z={...Ye,...ee},V={...Dt,...ee},te=void 0}catch(ee){let ve=ee;if(ee instanceof lc||(ve=new lc(ee.message,{cause:ee})),i?.throwOnError)throw ve;z=Ye,V={},te=ve}}const fe=D.options.loaderDeps?.({search:z})??"",le=fe?JSON.stringify(fe):"",{interpolatedPath:re,usedParams:Ce}=Md({path:D.fullPath,params:h,decoder:this.pathParamsDecoder,server:this.isServer}),Te=D.id+re+le,ue=this.getMatch(Te),ce=E.get(D.id),Ee=ue?._strictParams??Ce;let He;if(!ue)try{Iy(D,Ce,y,Ee)}catch(Ye){if(En(Ye)||aa(Ye)?He=Ye:He=new jS(Ye.message,{cause:Ye}),i?.throwOnError)throw He}Object.assign(h,Ee);const Be=ce?"stay":"enter";let Ue;if(ue)Ue={...ue,cause:Be,params:ce?.params??h,_strictParams:Ee,search:Kn(ce?ce.search:ue.search,z),_strictSearch:V};else{const Ye=D.options.loader||D.options.beforeLoad||D.lazyFn||Gg(D)?"pending":"success";Ue={id:Te,ssr:D.options.ssr,index:O,routeId:D.id,params:ce?.params??h,_strictParams:Ee,pathname:re,updatedAt:Date.now(),search:ce?Kn(ce.search,z):z,_strictSearch:V,searchError:void 0,status:Ye,isFetching:!1,error:void 0,paramsError:He,__routeContext:void 0,_nonReactive:{loadPromise:Ji()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:Be,loaderDeps:ce?Kn(ce.loaderDeps,fe):fe,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:D.options.staticData||{},fullPath:D.fullPath}}i?.preload||(Ue.globalNotFound=_===D.id),Ue.searchError=te;const Xe=this.getParentContext(Y);Ue.context={...Xe,...Ue.__routeContext,...Ue.__beforeLoadContext},x[O]=Ue}for(let O=0;O<x.length;O++){const D=x[O],Y=this.looseRoutesById[D.routeId],z=this.getMatch(D.id),V=E.get(D.routeId);if(D.params=V?Kn(V.params,h):h,!z){const te=x[O-1],fe=this.getParentContext(te);if(Y.options.context){const le={deps:D.loaderDeps,params:D.params,context:fe??{},location:r,navigate:re=>this.navigate({...re,_fromLocation:r}),buildLocation:this.buildLocation,cause:D.cause,abortController:D.abortController,preload:!!D.preload,matches:x,routeId:Y.id};D.__routeContext=Y.options.context(le)??void 0}D.context={...fe,...D.__routeContext,...D.__beforeLoadContext}}}return x}matchRoutesLightweight(r){const{matchedRoutes:i,routeParams:s,parsedParams:c}=this.getMatchedRoutes(r.pathname),h=Tl(i),y={...r.search};for(const x of i)try{Object.assign(y,Fu(x.options.validateSearch,y))}catch{}const v=Tl(this.state.matches),b=v&&v.routeId===h.id&&r.pathname===this.state.location.pathname;let _;if(b)_=v.params;else{const x={...s};for(const E of i)try{Iy(E,s,c??{},x)}catch{}_=x}return{matchedRoutes:i,fullPath:h.fullPath,search:y,params:_}}}class lc extends Error{}class jS extends Error{}function NS(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Fu(a,r){if(a==null)return{};if("~standard"in a){const i=a["~standard"].validate(r);if(i instanceof Promise)throw new lc("Async validation not supported");if(i.issues)throw new lc(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in a?a.parse(r):typeof a=="function"?a(r):{}}function US({pathname:a,routesById:r,processedTree:i}){const s={},c=mr(a);let h,y;const v=tS(c,i,!0);return v&&(h=v.route,Object.assign(s,v.rawParams),y=Object.assign({},v.parsedParams)),{matchedRoutes:v?.branch||[r[na]],routeParams:s,foundRoute:h,parsedParams:y}}function kS({search:a,dest:r,destRoutes:i,_includeValidateSearch:s}){return BS(i)(a,r,s??!1)}function BS(a){const r={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const c of a){if("search"in c.options)c.options.search?.middlewares&&r.middlewares.push(...c.options.search.middlewares);else if(c.options.preSearchFilters||c.options.postSearchFilters){const h=({search:y,next:v})=>{let b=y;
10"preSearchFilters"in c.options&&c.options.preSearchFilters&&(b=c.options.preSearchFilters.reduce((x,E)=>E(x),y));const _=v(b);return"postSearchFilters"in c.options&&c.options.postSearchFilters?c.options.postSearchFilters.reduce((x,E)=>E(x),_):_};r.middlewares.push(h)}if(c.options.validateSearch){const h=({search:y,next:v})=>{const b=v(y);if(!r._includeValidateSearch)return b;try{return{...b,...Fu(c.options.validateSearch,b)??void 0}}catch{return b}};r.middlewares.push(h)}}const i=({search:c})=>{const h=r.dest;return h.search?h.search===!0?c:oi(h.search,c):{}};r.middlewares.push(i);const s=(c,h,y)=>{if(c>=y.length)return h;const v=y[c];return v({search:h,next:_=>s(c+1,_,y)})};return function(h,y,v){return r.dest=y,r._includeValidateSearch=v,s(0,h,r.middlewares)}}function qS(a,r){if(a!=="root")for(let i=r.length-1;i>=0;i--){const s=r[i];if(s.children)return s.id}return na}function Iy(a,r,i,s){const c=a.options.params?.parse??a.options.parseParams;if(c)if(a.options.skipRouteOnParseError)for(const h in r)h in i&&(s[h]=i[h]);else{const h=c(s);Object.assign(s,h)}}const Da=Symbol.for("TSR_DEFERRED_PROMISE");function PS(a,r){const i=a;return i[Da]||(i[Da]={status:"pending"},i.then(s=>{i[Da].status="success",i[Da].data=s}).catch(s=>{i[Da].status="error",i[Da].error={data:DS(s),__isServerError:!0}})),i}const HS="Error preloading route! âï¸";class Qg{constructor(r){if(this.init=i=>{this.originalIndex=i.originalIndex;const s=this.options,c=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=na:this.parentRoute||Dn(!1);let h=c?na:s?.path;h&&h!=="/"&&(h=Ng(h));const y=s?.id||h;let v=c?na:Iu([this.parentRoute.id===na?"":this.parentRoute.id,y]);h===na&&(h="/"),v!==na&&(v=Iu(["/",v]));const b=v===na?"/":Iu([this.parentRoute.fullPath,h]);this._path=h,this._id=v,this._fullPath=b,this._to=mr(b)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>Bg({from:this.fullPath,...i}),this.options=r||{},this.isRoot=!r?.getParentRoute,r?.id&&r?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class KS extends Qg{constructor(r){super(r)}}var YS=(a=>(a[a.AggregateError=1]="AggregateError",a[a.ArrowFunction=2]="ArrowFunction",a[a.ErrorPrototypeStack=4]="ErrorPrototypeStack",a[a.ObjectAssign=8]="ObjectAssign",a[a.BigIntTypedArray=16]="BigIntTypedArray",a[a.RegExp=32]="RegExp",a))(YS||{}),yr=Symbol.asyncIterator,Ig=Symbol.hasInstance,is=Symbol.isConcatSpreadable,gr=Symbol.iterator,Zg=Symbol.match,Fg=Symbol.matchAll,Jg=Symbol.replace,$g=Symbol.search,Wg=Symbol.species,ev=Symbol.split,tv=Symbol.toPrimitive,os=Symbol.toStringTag,nv=Symbol.unscopables,av={[yr]:0,[Ig]:1,[is]:2,[gr]:3,[Zg]:4,[Fg]:5,[Jg]:6,[$g]:7,[Wg]:8,[ev]:9,[tv]:10,[os]:11,[nv]:12},GS={0:yr,1:Ig,2:is,3:gr,4:Zg,5:Fg,6:Jg,7:$g,8:Wg,9:ev,10:tv,11:os,12:nv},M=void 0,VS={2:!0,3:!1,1:M,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},XS={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},QS={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function ct(a,r,i,s,c,h,y,v,b,_,x,E){return{t:a,i:r,s:i,c:s,m:c,p:h,e:y,a:v,f:b,b:_,o:x,l:E}}function ci(a){return ct(2,M,a,M,M,M,M,M,M,M,M,M)}var rv=ci(2),iv=ci(3),IS=ci(1),ZS=ci(0),FS=ci(4),JS=ci(5),$S=ci(6),WS=ci(7);function e_(a){switch(a){case'"':return'\\"';case"\\":return"\\\\";case` 11`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return M}}function fi(a){let r="",i=0,s;for(let c=0,h=a.length;c<h;c++)s=e_(a[c]),s&&(r+=a.slice(i,c)+s,i=c+1);return i===0?r=a:r+=a.slice(i),r}function t_(a){switch(a){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 12`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return a}}function no(a){return a.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,t_)}var Gu="__SEROVAL_REFS__",ov=new Map,ts=new Map;function sv(a){return ov.has(a)}function n_(a){return ts.has(a)}function a_(a){if(sv(a))return ov.get(a);throw new j_(a)}function r_(a){if(n_(a))return ts.get(a);throw new N_(a)}typeof globalThis<"u"?Object.defineProperty(globalThis,Gu,{value:ts,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Gu,{value:ts,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Gu,{value:ts,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Gu,{value:ts,configurable:!0,writable:!1,enumerable:!1});function oh(a){return a instanceof EvalError?1:a instanceof RangeError?2:a instanceof ReferenceError?3:a instanceof SyntaxError?4:a instanceof TypeError?5:a instanceof URIError?6:0}function i_(a){let r=XS[oh(a)];return a.name!==r?{name:a.name}:a.constructor.name!==r?{name:a.constructor.name}:{}}function lv(a,r){let i=i_(a),s=Object.getOwnPropertyNames(a);for(let c=0,h=s.length,y;c<h;c++)y=s[c],y!=="name"&&y!=="message"&&(y==="stack"?r&4&&(i=i||{},i[y]=a[y]):(i=i||{},i[y]=a[y]));return i}function uv(a){return Object.isFrozen(a)?3:Object.isSealed(a)?2:Object.isExtensible(a)?0:1}function o_(a){switch(a){case Number.POSITIVE_INFINITY:return JS;case Number.NEGATIVE_INFINITY:return $S}return a!==a?WS:Object.is(a,-0)?FS:ct(0,M,a,M,M,M,M,M,M,M,M,M)}function cv(a){return ct(1,M,fi(a),M,M,M,M,M,M,M,M,M)}function s_(a){return ct(3,M,""+a,M,M,M,M,M,M,M,M,M)}function l_(a){return ct(4,a,M,M,M,M,M,M,M,M,M,M)}function u_(a,r){let i=r.valueOf();return ct(5,a,i!==i?"":r.toISOString(),M,M,M,M,M,M,M,M,M)}function c_(a,r){return ct(6,a,M,fi(r.source),r.flags,M,M,M,M,M,M,M)}function f_(a,r){return ct(17,a,av[r],M,M,M,M,M,M,M,M,M)}function d_(a,r){return ct(18,a,fi(a_(r)),M,M,M,M,M,M,M,M,M)}function h_(a,r,i){return ct(25,a,i,fi(r),M,M,M,M,M,M,M,M)}function p_(a,r,i){return ct(9,a,M,M,M,M,M,i,M,M,uv(r),M)}function m_(a,r){return ct(21,a,M,M,M,M,M,M,r,M,M,M)}function y_(a,r,i){return ct(15,a,M,r.constructor.name,M,M,M,M,i,r.byteOffset,M,r.length)}function g_(a,r,i){return ct(16,a,M,r.constructor.name,M,M,M,M,i,r.byteOffset,M,r.byteLength)}function v_(a,r,i){return ct(20,a,M,M,M,M,M,M,i,r.byteOffset,M,r.byteLength)}function b_(a,r,i){return ct(13,a,oh(r),M,fi(r.message),i,M,M,M,M,M,M)}function S_(a,r,i){return ct(14,a,oh(r),M,fi(r.message),i,M,M,M,M,M,M)}function __(a,r){return ct(7,a,M,M,M,M,M,r,M,M,M,M)}function w_(a,r){return ct(28,M,M,M,M,M,M,[a,r],M,M,M,M)}function E_(a,r){return ct(30,M,M,M,M,M,M,[a,r],M,M,M,M)}function T_(a,r,i){return ct(31,a,M,M,M,M,M,i,r,M,M,M)}function R_(a,r){return ct(32,a,M,M,M,M,M,M,r,M,M,M)}function x_(a,r){return ct(33,a,M,M,M,M,M,M,r,M,M,M)}function O_(a,r){return ct(34,a,M,M,M,M,M,M,r,M,M,M)}function A_(a,r,i,s){return ct(35,a,i,M,M,M,M,r,M,M,M,s)}
12var C_={parsing:1,serialization:2,deserialization:3};function M_(a){return`Seroval Error (step: ${C_[a]})`}var D_=(a,r)=>M_(a),fv=class extends Error{constructor(a,r){super(D_(a)),this.cause=r}},Zy=class extends fv{constructor(a){super("parsing",a)}},z_=class extends fv{constructor(a){super("deserialization",a)}};function vr(a){return`Seroval Error (specific: ${a})`}var gc=class extends Error{constructor(r){super(vr(1)),this.value=r}},dv=class extends Error{constructor(r){super(vr(2))}},L_=class extends Error{constructor(a){super(vr(3))}},Ol=class extends Error{constructor(a){super(vr(4))}},j_=class extends Error{constructor(a){super(vr(5)),this.value=a}},N_=class extends Error{constructor(a){super(vr(6))}},U_=class extends Error{constructor(a){super(vr(7))}},di=class extends Error{constructor(a){super(vr(8))}},k_=class extends Error{constructor(r){super(vr(9))}},B_=class{constructor(a,r){this.value=a,this.replacement=r}},vc=()=>{let a={p:0,s:0,f:0};return a.p=new Promise((r,i)=>{a.s=r,a.f=i}),a},q_=(a,r)=>{a.s(r),a.p.s=1,a.p.v=r},P_=(a,r)=>{a.f(r),a.p.s=2,a.p.v=r};vc.toString();q_.toString();P_.toString();var H_=()=>{let a=[],r=[],i=!0,s=!1,c=0,h=(b,_,x)=>{for(x=0;x<c;x++)r[x]&&r[x][_](b)},y=(b,_,x,E)=>{for(_=0,x=a.length;_<x;_++)E=a[_],!i&&_===x-1?b[s?"return":"throw"](E):b.next(E)},v=(b,_)=>(i&&(_=c++,r[_]=b),y(b),()=>{i&&(r[_]=r[c],r[c--]=void 0)});return{__SEROVAL_STREAM__:!0,on:b=>v(b),next:b=>{i&&(a.push(b),h(b,"next"))},throw:b=>{i&&(a.push(b),h(b,"throw"),i=!1,s=!1,r.length=0)},return:b=>{i&&(a.push(b),h(b,"return"),i=!1,s=!0,r.length=0)}}},K_=a=>r=>()=>{let i=0,s={[a]:()=>s,next:()=>{if(i>r.d)return{done:!0,value:void 0};let c=i++,h=r.v[c];if(c===r.t)throw h;return{done:c===r.d,value:h}}};return s},Y_=(a,r)=>i=>()=>{let s=0,c=-1,h=!1,y=[],v=[],b=(x=0,E=v.length)=>{for(;x<E;x++)v[x].s({done:!0,value:void 0})};i.on({next:x=>{let E=v.shift();E&&E.s({done:!1,value:x}),y.push(x)},throw:x=>{let E=v.shift();E&&E.f(x),b(),c=y.length,h=!0,y.push(x)},return:x=>{let E=v.shift();E&&E.s({done:!0,value:x}),b(),c=y.length,y.push(x)}});let _={[a]:()=>_,next:()=>{if(c===-1){let O=s++;if(O>=y.length){let D=r();return v.push(D),D.p}return{done:!1,value:y[O]}}if(s>c)return{done:!0,value:void 0};let x=s++,E=y[x];if(x!==c)return{done:!1,value:E};if(h)throw E;return{done:!0,value:E}}};return _},hv=a=>{let r=atob(a),i=r.length,s=new Uint8Array(i);for(let c=0;c<i;c++)s[c]=r.charCodeAt(c);return s.buffer};hv.toString();function G_(a){return"__SEROVAL_SEQUENCE__"in a}function pv(a,r,i){return{__SEROVAL_SEQUENCE__:!0,v:a,t:r,d:i}}function V_(a){let r=[],i=-1,s=-1,c=a[gr]();for(;;)try{let h=c.next();if(r.push(h.value),h.done){s=r.length-1;break}}catch(h){i=r.length,r.push(h)}return pv(r,i,s)}var X_=K_(gr);function Q_(a){return X_(a)}var I_={},Z_={},F_={0:{},1:{},2:{},3:{},4:{},5:{}};function bc(a){return"__SEROVAL_STREAM__"in a}function ao(){return H_()}function J_(a){let r=ao(),i=a[yr]();async function s(){try{let c=await i.next();c.done?r.return(c.value):(r.next(c.value),await s())}catch(c){r.throw(c)}}return s().catch(()=>{}),r}var $_=Y_(yr,vc);function W_(a){return $_(a)}async function ew(a){try{return[1,await a]}catch(r){return[0,r]}}function tw(a,r){return{plugins:r.plugins,mode:a,marked:new Set,features:63^(r.disabledFeatures||0),refs:r.refs||new Map,depthLimit:r.depthLimit||1e3}}function Ju(a,r){a.marked.add(r)}function nw(a,r){let i=a.refs.size;return a.refs.set(r,i),i}function Sc(a,r){let i=a.refs.get(r);return i!=null?(Ju(a,i),{type:1,value:l_(i)}):{type:0,value:nw(a,r)}}function sh(a,r){let i=Sc(a,r);return i.type===1?i:sv(r)?{type:2,value:d_(i.value,r)}:i}function Ii(a,r){let i=sh(a,r);if(i.type!==0)return i.value;if(r in av)return f_(i.value,r);throw new gc(r)}function _c(a,r){let i=Sc(a,F_[r]);return i.type===1?i.value:ct(26,i.value,r,M,M,M,M,M,M,M,M,M)}function aw(a){let r=Sc(a,I_);return r.type===1?r.value:ct(27,r.value,M,M,M,M,M,M,Ii(a,gr),M,M,M)}function rw(a){let r=Sc(a,Z_);return r.type===1?r.value:ct(29,r.value,M,M,M,M,M,[_c(a,1),Ii(a,yr)],M,M,M,M)}function iw(a,r,i,s){return ct(i?11:10,a,M,M,M,s,M,M,M,M,uv(r),M)}function ow(a,r,i,s){return ct(8,r,M,M,M,M,{k:i,v:s},M,_c(a,0),M,M,M)}function sw(a,r,i){let s=new Uint8Array(i),c="";for(let h=0,y=s.length;h<y;h++)c+=String.fromCharCode(s[h]);return ct(19,r,fi(btoa(c)),M,M,M,M,M,_c(a,5),M,M,M)}function lw(a,r){return{base:tw(a,r),child:void 0}}var uw=class{constructor(a,r){this._p=a,this.depth=r}parse(a){return Ft(this._p,this.depth,a)}};async function cw(a,r,i){let s=[];for(let c=0,h=i.length;c<h;c++)c in i?s[c]=await Ft(a,r,i[c]):s[c]=0;return s}async function fw(a,r,i,s){return p_(i,s,await cw(a,r,s))}async function lh(a,r,i){let s=Object.entries(i),c=[],h=[];for(let y=0,v=s.length;y<v;y++)c.push(fi(s[y][0])),h.push(await Ft(a,r,s[y][1]));return gr in i&&(c.push(Ii(a.base,gr)),h.push(w_(aw(a.base),await Ft(a,r,V_(i))))),yr in i&&(c.push(Ii(a.base,yr)),h.push(E_(rw(a.base),await Ft(a,r,J_(i))))),os in i&&(c.push(Ii(a.base,os)),h.push(cv(i[os]))),is in i&&(c.push(Ii(a.base,is)),h.push(i[is]?rv:iv)),{k:c,v:h}}async function zd(a,r,i,s,c){return iw(i,s,c,await lh(a,r,s))}async function dw(a,r,i,s){return m_(i,await Ft(a,r,s.valueOf()))}async function hw(a,r,i,s){return y_(i,s,await Ft(a,r,s.buffer))}async function pw(a,r,i,s){return g_(i,s,await Ft(a,r,s.buffer))}async function mw(a,r,i,s){return v_(i,s,await Ft(a,r,s.buffer))}async function Fy(a,r,i,s){let c=lv(s,a.base.features);return b_(i,s,c?await lh(a,r,c):M)}async function yw(a,r,i,s){let c=lv(s,a.base.features);return S_(i,s,c?await lh(a,r,c):M)}async function gw(a,r,i,s){let c=[],h=[];for(let[y,v]of s.entries())c.push(await Ft(a,r,y)),h.push(await Ft(a,r,v));return ow(a.base,i,c,h)}async function vw(a,r,i,s){let c=[];for(let h of s.keys())c.push(await Ft(a,r,h));return __(i,c)}async function mv(a,r,i,s){let c=a.base.plugins;if(c)for(let h=0,y=c.length;h<y;h++){let v=c[h];if(v.parse.async&&v.test(s))return h_(i,v.tag,await v.parse.async(s,new uw(a,r),{id:i}))}return M}async function bw(a,r,i,s){let[c,h]=await ew(s);return ct(12,i,c,M,M,M,M,M,await Ft(a,r,h),M,M,M)}function Sw(a,r,i,s,c){let h=[],y=i.on({next:v=>{Ju(this.base,r),Ft(this,a,v).then(b=>{h.push(R_(r,b))},b=>{c(b),y()})},throw:v=>{Ju(this.base,r),Ft(this,a,v).then(b=>{h.push(x_(r,b)),s(h),y()},b=>{c(b),y()})},return:v=>{Ju(this.base,r),Ft(this,a,v).then(b=>{h.push(O_(r,b)),s(h),y()},b=>{c(b),y()})}})}async function _w(a,r,i,s){return T_(i,_c(a.base,4),await new Promise(Sw.bind(a,r,i,s)))}async function ww(a,r,i,s){let c=[];for(let h=0,y=s.v.length;h<y;
12h++)c[h]=await Ft(a,r,s.v[h]);return A_(i,c,s.t,s.d)}async function Ew(a,r,i,s){if(Array.isArray(s))return fw(a,r,i,s);if(bc(s))return _w(a,r,i,s);if(G_(s))return ww(a,r,i,s);let c=s.constructor;if(c===B_)return Ft(a,r,s.replacement);let h=await mv(a,r,i,s);if(h)return h;switch(c){case Object:return zd(a,r,i,s,!1);case M:return zd(a,r,i,s,!0);case Date:return u_(i,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Fy(a,r,i,s);case Number:case Boolean:case String:case BigInt:return dw(a,r,i,s);case ArrayBuffer:return sw(a.base,i,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return hw(a,r,i,s);case DataView:return mw(a,r,i,s);case Map:return gw(a,r,i,s);case Set:return vw(a,r,i,s)}if(c===Promise||s instanceof Promise)return bw(a,r,i,s);let y=a.base.features;if(y&32&&c===RegExp)return c_(i,s);if(y&16)switch(c){case BigInt64Array:case BigUint64Array:return pw(a,r,i,s)}if(y&1&&typeof AggregateError<"u"&&(c===AggregateError||s instanceof AggregateError))return yw(a,r,i,s);if(s instanceof Error)return Fy(a,r,i,s);if(gr in s||yr in s)return zd(a,r,i,s,!!c);throw new gc(s)}async function Tw(a,r,i){let s=sh(a.base,i);if(s.type!==0)return s.value;let c=await mv(a,r,s.value,i);if(c)return c;throw new gc(i)}async function Ft(a,r,i){switch(typeof i){case"boolean":return i?rv:iv;case"undefined":return IS;case"string":return cv(i);case"number":return o_(i);case"bigint":return s_(i);case"object":{if(i){let s=sh(a.base,i);return s.type===0?await Ew(a,r+1,s.value,i):s.value}return ZS}case"symbol":return Ii(a.base,i);case"function":return Tw(a,r,i);default:throw new gc(i)}}async function Rw(a,r){try{return await Ft(a,0,r)}catch(i){throw i instanceof Zy?i:new Zy(i)}}var xw=(a=>(a[a.Vanilla=1]="Vanilla",a[a.Cross=2]="Cross",a))(xw||{});function yv(a,r){for(let i=0,s=r.length;i<s;i++){let c=r[i];a.has(c)||(a.add(c),c.extends&&yv(a,c.extends))}}function gv(a){if(a){let r=new Set;return yv(r,a),[...r]}}function Ow(a){switch(a){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new U_(a)}}var Aw=1e6,Cw=1e4,Mw=2e4;function vv(a,r){switch(r){case 3:return Object.freeze(a);case 1:return Object.preventExtensions(a);case 2:return Object.seal(a);default:return a}}var Dw=1e3;function zw(a,r){var i;return{mode:a,plugins:r.plugins,refs:r.refs||new Map,features:(i=r.features)!=null?i:63^(r.disabledFeatures||0),depthLimit:r.depthLimit||Dw}}function Lw(a){return{mode:2,base:zw(2,a),child:M}}var jw=class{constructor(a,r){this._p=a,this.depth=r}deserialize(a){return Rt(this._p,this.depth,a)}};function bv(a,r){if(r<0||!Number.isFinite(r)||!Number.isInteger(r))throw new di({t:4,i:r});if(a.refs.has(r))throw new Error("Conflicted ref id: "+r)}function Nw(a,r,i){return bv(a.base,r),a.state.marked.has(r)&&a.base.refs.set(r,i),i}function Uw(a,r,i){return bv(a.base,r),a.base.refs.set(r,i),i}function Jt(a,r,i){return a.mode===1?Nw(a,r,i):Uw(a,r,i)}function Id(a,r,i){if(Object.hasOwn(r,i))return r[i];throw new di(a)}function kw(a,r){return Jt(a,r.i,r_(no(r.s)))}function Bw(a,r,i){let s=i.a,c=s.length,h=Jt(a,i.i,new Array(c));for(let y=0,v;y<c;y++)v=s[y],v&&(h[y]=Rt(a,r,v));return vv(h,i.o),h}function qw(a){switch(a){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function Pw(a){switch(a){case yr:case is:case os:case gr:return!0;default:return!1}}function Jy(a,r,i){qw(r)?a[r]=i:Object.defineProperty(a,r,{value:i,configurable:!0,enumerable:!0,writable:!0})}function Hw(a,r,i,s,c){if(typeof s=="string")Jy(i,s,Rt(a,r,c));else{let h=Rt(a,r,s);switch(typeof h){case"string":Jy(i,h,Rt(a,r,c));break;case"symbol":Pw(h)&&(i[h]=Rt(a,r,c));break;default:throw new di(s)}}}function Sv(a,r,i,s){let c=i.k;if(c.length>0)for(let h=0,y=i.v,v=c.length;h<v;h++)Hw(a,r,s,c[h],y[h]);return s}function Kw(a,r,i){let s=Jt(a,i.i,i.t===10?{}:Object.create(null));return Sv(a,r,i.p,s),vv(s,i.o),s}function Yw(a,r){return Jt(a,r.i,new Date(r.s))}function Gw(a,r){if(a.base.features&32){let i=no(r.c);if(i.length>Mw)throw new di(r);return Jt(a,r.i,new RegExp(i,r.m))}throw new dv(r)}function Vw(a,r,i){let s=Jt(a,i.i,new Set);for(let c=0,h=i.a,y=h.length;c<y;c++)s.add(Rt(a,r,h[c]));return s}function Xw(a,r,i){let s=Jt(a,i.i,new Map);for(let c=0,h=i.e.k,y=i.e.v,v=h.length;c<v;c++)s.set(Rt(a,r,h[c]),Rt(a,r,y[c]));return s}function Qw(a,r){if(r.s.length>Aw)throw new di(r);return Jt(a,r.i,hv(no(r.s)))}function Iw(a,r,i){var s;
12let c=Ow(i.c),h=Rt(a,r,i.f),y=(s=i.b)!=null?s:0;if(y<0||y>h.byteLength)throw new di(i);return Jt(a,i.i,new c(h,y,i.l))}function Zw(a,r,i){var s;let c=Rt(a,r,i.f),h=(s=i.b)!=null?s:0;if(h<0||h>c.byteLength)throw new di(i);return Jt(a,i.i,new DataView(c,h,i.l))}function _v(a,r,i,s){if(i.p){let c=Sv(a,r,i.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(c))}return s}function Fw(a,r,i){let s=Jt(a,i.i,new AggregateError([],no(i.m)));return _v(a,r,i,s)}function Jw(a,r,i){let s=Id(i,QS,i.s),c=Jt(a,i.i,new s(no(i.m)));return _v(a,r,i,c)}function $w(a,r,i){let s=vc(),c=Jt(a,i.i,s.p),h=Rt(a,r,i.f);return i.s?s.s(h):s.f(h),c}function Ww(a,r,i){return Jt(a,i.i,Object(Rt(a,r,i.f)))}function e1(a,r,i){let s=a.base.plugins;if(s){let c=no(i.c);for(let h=0,y=s.length;h<y;h++){let v=s[h];if(v.tag===c)return Jt(a,i.i,v.deserialize(i.s,new jw(a,r),{id:i.i}))}}throw new L_(i.c)}function t1(a,r){return Jt(a,r.i,Jt(a,r.s,vc()).p)}function n1(a,r,i){let s=a.base.refs.get(i.i);if(s)return s.s(Rt(a,r,i.a[1])),M;throw new Ol("Promise")}function a1(a,r,i){let s=a.base.refs.get(i.i);if(s)return s.f(Rt(a,r,i.a[1])),M;throw new Ol("Promise")}function r1(a,r,i){Rt(a,r,i.a[0]);let s=Rt(a,r,i.a[1]);return Q_(s)}function i1(a,r,i){Rt(a,r,i.a[0]);let s=Rt(a,r,i.a[1]);return W_(s)}function o1(a,r,i){let s=Jt(a,i.i,ao()),c=i.a,h=c.length;if(h)for(let y=0;y<h;y++)Rt(a,r,c[y]);return s}function s1(a,r,i){let s=a.base.refs.get(i.i);if(s&&bc(s))return s.next(Rt(a,r,i.f)),M;throw new Ol("Stream")}function l1(a,r,i){let s=a.base.refs.get(i.i);if(s&&bc(s))return s.throw(Rt(a,r,i.f)),M;throw new Ol("Stream")}function u1(a,r,i){let s=a.base.refs.get(i.i);if(s&&bc(s))return s.return(Rt(a,r,i.f)),M;throw new Ol("Stream")}function c1(a,r,i){return Rt(a,r,i.f),M}function f1(a,r,i){return Rt(a,r,i.a[1]),M}function d1(a,r,i){let s=Jt(a,i.i,pv([],i.s,i.l));for(let c=0,h=i.a.length;c<h;c++)s.v[c]=Rt(a,r,i.a[c]);return s}function Rt(a,r,i){if(r>a.base.depthLimit)throw new k_(a.base.depthLimit);switch(r+=1,i.t){case 2:return Id(i,VS,i.s);case 0:return Number(i.s);case 1:return no(String(i.s));case 3:if(String(i.s).length>Cw)throw new di(i);return BigInt(i.s);case 4:return a.base.refs.get(i.i);case 18:return kw(a,i);case 9:return Bw(a,r,i);case 10:case 11:return Kw(a,r,i);case 5:return Yw(a,i);case 6:return Gw(a,i);case 7:return Vw(a,r,i);case 8:return Xw(a,r,i);case 19:return Qw(a,i);case 16:case 15:return Iw(a,r,i);case 20:return Zw(a,r,i);case 14:return Fw(a,r,i);case 13:return Jw(a,r,i);case 12:return $w(a,r,i);case 17:return Id(i,GS,i.s);case 21:return Ww(a,r,i);case 25:return e1(a,r,i);case 22:return t1(a,i);case 23:return n1(a,r,i);case 24:return a1(a,r,i);case 28:return r1(a,r,i);case 30:return i1(a,r,i);case 31:return o1(a,r,i);case 32:return s1(a,r,i);case 33:return l1(a,r,i);case 34:return u1(a,r,i);case 27:return c1(a,r,i);case 29:return f1(a,r,i);case 35:return d1(a,r,i);default:throw new dv(i)}}function h1(a,r){try{return Rt(a,0,r)}catch(i){throw new z_(i)}}var p1=()=>T;p1.toString();function Ld(a,r){let i=gv(r.plugins),s=Lw({plugins:i,refs:r.refs,features:r.features,disabledFeatures:r.disabledFeatures});return h1(s,a)}async function m1(a,r={}){let i=gv(r.plugins),s=lw(1,{plugins:i,disabledFeatures:r.disabledFeatures});return{t:await Rw(s,a),f:s.base.features,m:Array.from(s.base.marked)}}function y1(a){return{tag:"$TSR/t/"+a.key,test:a.test,parse:{sync(r,i){return i.parse(a.toSerializable(r))},async async(r,i){return await i.parse(a.toSerializable(r))},stream(r,i){return i.parse(a.toSerializable(r))}},serialize:void 0,deserialize(r,i){return a.fromSerializable(i.deserialize(r))}}}var ii={},wv=a=>new ReadableStream({start:r=>{a.on({next:i=>{try{r.enqueue(i)}catch{}},throw:i=>{r.error(i)},return:()=>{try{r.close()}catch{}}})}}),g1={tag:"seroval-plugins/web/ReadableStreamFactory",test(a){return a===ii},parse:{sync(){return ii},async async(){return await Promise.resolve(ii)},stream(){return ii}},serialize(){return wv.toString()},deserialize(){return ii}};function $y(a){let r=ao(),i=a.getReader();async function s(){try{let c=await i.read();c.done?r.return(c.value):(r.next(c.value),await s())}catch(c){r.throw(c)}}return s().catch(()=>{}),r}var v1={tag:"seroval/plugins/web/ReadableStream",extends:[g1],test(a){return typeof ReadableStream>"u"?!1:a instanceof ReadableStream},parse:{sync(a,r){return{factory:r.parse(ii),stream:r.parse(ao())}},async async(a,r){return{factory:await r.parse(ii),stream:await r.parse($y(a))}},stream(a,r){return{factory:r.parse(ii),stream:r.parse($y(a))}}},serialize(a,r){return"("+r.serialize(a.factory)+")("+r.serialize(a.stream)+")"},deserialize(a,r){let i=r.deserialize(a.stream);return wv(i)}},b1=v1;const S1={tag:"$TSR/Error",test(a){return a instanceof Error},parse:{sync(a,r){return{message:r.parse(a.message)}},async async(a,r){return{message:await r.parse(a.message)}},stream(a,r){return{message:r.parse(a.message)}}},serialize(a,r){return"new Error("+r.serialize(a.message)+")"},deserialize(a,r){return new Error(r.deserialize(a.message))}};class _1{constructor(r,i){this.stream=r,this.hint=i?.hint??"binary"}}const uc=globalThis.Buffer,Ev=!!uc&&typeof uc.from=="function";function Tv(a){if(a.length===0)return"";if(Ev)return uc.from(a).toString("base64");const r=32768,i=[];for(let s=0;s<a.length;s+=r){const c=a.subarray(s,s+r);i.push(String.fromCharCode.apply(null,c))}return btoa(i.join(""))}function Rv(a){if(a.length===0)return new Uint8Array(0);if(Ev){const s=uc.from(a,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}const r=atob(a),i=new Uint8Array(r.length);for(let s=0;s<r.length;s++)i[s]=r.charCodeAt(s);return i}const _l=Object.create(null),wl=Object.create(null),w1=a=>new ReadableStream({start(r){a.on({next(i){try{r.enqueue(Rv(i))}catch{}},throw(i){r.error(i)},return(){try{r.close()}catch{}}})}}),E1=new TextEncoder,T1=a=>new ReadableStream({start(r){a.on({next(i){try{typeof i=="string"?r.enqueue(E1.encode(i)):r.enqueue(Rv(i.$b64))}catch{}},throw(i){r.error(i)},return(){try{r.close()}catch{}}})}}),R1="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;
12i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",x1="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function Wy(a){const r=ao(),i=a.getReader();return(async()=>{try{for(;;){const{done:s,value:c}=await i.read();if(s){r.return(void 0);break}r.next(Tv(c))}}catch(s){r.throw(s)}finally{i.releaseLock()}})(),r}function eg(a){const r=ao(),i=a.getReader(),s=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:c,value:h}=await i.read();if(c){try{const y=s.decode();y.length>0&&r.next(y)}catch{}r.return(void 0);break}try{const y=s.decode(h,{stream:!0});y.length>0&&r.next(y)}catch{r.next({$b64:Tv(h)})}}}catch(c){r.throw(c)}finally{i.releaseLock()}})(),r}const O1={tag:"tss/RawStreamFactory",test(a){return a===_l},parse:{sync(){},async(){return Promise.resolve(void 0)},stream(){}},serialize(){return R1},deserialize(){return _l}},A1={tag:"tss/RawStreamFactoryText",test(a){return a===wl},parse:{sync(){},async(){return Promise.resolve(void 0)},stream(){}},serialize(){return x1},deserialize(){return wl}},C1={tag:"tss/RawStream",extends:[O1,A1],test(a){return a instanceof _1},parse:{sync(a,r){const i=a.hint==="text"?wl:_l;return{hint:a.hint,factory:r.parse(i),stream:r.parse(ao())}},async async(a,r){const i=a.hint==="text"?wl:_l,s=a.hint==="text"?eg(a.stream):Wy(a.stream);return{hint:a.hint,factory:await r.parse(i),stream:await r.parse(s)}},stream(a,r){const i=a.hint==="text"?wl:_l,s=a.hint==="text"?eg(a.stream):Wy(a.stream);return{hint:a.hint,factory:r.parse(i),stream:r.parse(s)}}},serialize(a,r){return"("+r.serialize(a.factory)+")("+r.serialize(a.stream)+")"},deserialize(a,r){const i=r.deserialize(a.stream);return a.hint==="text"?T1(i):w1(i)}};function M1(a){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(r){return a(r.streamId)}}}const D1=[S1,C1,b1],z1="use",cc=m0[z1],Vu=typeof window<"u"?xe.useLayoutEffect:xe.useEffect;function jd(a){const r=xe.useRef({value:a,prev:null}),i=r.current.value;return a!==i&&(r.current={value:a,prev:i}),r.current.prev}function L1(a,r,i={},s={}){xe.useEffect(()=>{if(!a.current||s.disabled||typeof IntersectionObserver!="function")return;const c=new IntersectionObserver(([h])=>{r(h)},i);return c.observe(a.current),()=>{c.disconnect()}},[r,i,s.disabled,a])}function j1(a){const r=xe.useRef(null);return xe.useImperativeHandle(a,()=>r.current,[]),r}function N1({promise:a}){if(cc)return cc(a);const r=PS(a);if(r[Da].status==="pending")throw r;if(r[Da].status==="error")throw r[Da].error;return r[Da].data}function U1(a){const r=me.jsx(k1,{...a});return a.fallback?me.jsx(xe.Suspense,{fallback:a.fallback,children:r}):r}function k1(a){const r=N1(a);return a.children(r)}function uh(a){const r=a.errorComponent??ch;return me.jsx(B1,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:i,reset:s})=>i?xe.createElement(r,{error:i,reset:s}):a.children})}class B1 extends xe.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(r){return{resetKey:r.getResetKey()}}static getDerivedStateFromError(r){return{error:r}}reset(){this.setState({error:null})}componentDidUpdate(r,i){i.error&&i.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(r,i){this.props.onCatch&&this.props.onCatch(r,i)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function ch({error:a}){const[r,i]=xe.useState(!1);return me.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[me.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[me.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),me.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(s=>!s),children:r?"Hide Error":"Show Error"})]}),me.jsx("div",{style:{height:".25rem"}}),r?me.jsx("div",{children:me.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?me.jsx("code",{children:a.message}):null})}):null]})}function q1({children:a,fallback:r=null}){return fh()?me.jsx(us.Fragment,{children:a}):me.jsx(us.Fragment,{children:r})}function fh(){return us.useSyncExternalStore(P1,()=>!0,()=>!1)}function P1(){return()=>{}}var Nd={exports:{}},Ud={},kd={exports:{}},Bd={};var tg;function H1(){if(tg)return Bd;tg=1;var a=xl();function r(E,O){return E===O&&(E!==0||1/E===1/O)||E!==E&&O!==O}
12var i=typeof Object.is=="function"?Object.is:r,s=a.useState,c=a.useEffect,h=a.useLayoutEffect,y=a.useDebugValue;function v(E,O){var D=O(),Y=s({inst:{value:D,getSnapshot:O}}),z=Y[0].inst,V=Y[1];return h(function(){z.value=D,z.getSnapshot=O,b(z)&&V({inst:z})},[E,D,O]),c(function(){return b(z)&&V({inst:z}),E(function(){b(z)&&V({inst:z})})},[E]),y(D),D}function b(E){var O=E.getSnapshot;E=E.value;try{var D=O();return!i(E,D)}catch{return!0}}function _(E,O){return O()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_:v;return Bd.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:x,Bd}var ng;function K1(){return ng||(ng=1,kd.exports=H1()),kd.exports}var ag;function Y1(){if(ag)return Ud;ag=1;var a=xl(),r=K1();function i(_,x){return _===x&&(_!==0||1/_===1/x)||_!==_&&x!==x}var s=typeof Object.is=="function"?Object.is:i,c=r.useSyncExternalStore,h=a.useRef,y=a.useEffect,v=a.useMemo,b=a.useDebugValue;return Ud.useSyncExternalStoreWithSelector=function(_,x,E,O,D){var Y=h(null);if(Y.current===null){var z={hasValue:!1,value:null};Y.current=z}else z=Y.current;Y=v(function(){function te(Te){if(!fe){if(fe=!0,le=Te,Te=O(Te),D!==void 0&&z.hasValue){var ue=z.value;if(D(ue,Te))return re=ue}return re=Te}if(ue=re,s(le,Te))return ue;var ce=O(Te);return D!==void 0&&D(ue,ce)?(le=Te,ue):(le=Te,re=ce)}var fe=!1,le,re,Ce=E===void 0?null:E;return[function(){return te(x())},Ce===null?void 0:function(){return te(Ce())}]},[x,E,O,D]);var V=c(_,Y[0],Y[1]);return y(function(){z.hasValue=!0,z.value=V},[V]),b(V),V},Ud}var rg;function G1(){return rg||(rg=1,Nd.exports=Y1()),Nd.exports}var V1=G1();function X1(a,r){return a===r}function Q1(a,r,i=X1){const s=xe.useCallback(y=>{if(!a)return()=>{};const{unsubscribe:v}=a.subscribe(y);return v},[a]),c=xe.useCallback(()=>a?.get(),[a]);return V1.useSyncExternalStoreWithSelector(s,c,c,r,i)}const qd=xe.createContext(null);function xv(){return typeof document>"u"?qd:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=qd,qd)}function vn(a){const r=xe.useContext(xv());return a?.warn,r}function Zt(a){const r=vn({warn:a?.router===void 0}),i=a?.router||r,s=xe.useRef(void 0);return Q1(i.__store,c=>{if(a?.select){if(a.structuralSharing??i.options.defaultStructuralSharing){const h=Kn(s.current,a.select(c));return s.current=h,h}return a.select(c)}return c})}const wc=xe.createContext(void 0),I1=xe.createContext(void 0);function za(a){const r=xe.useContext(a.from?I1:wc);return Zt({select:s=>{const c=s.matches.find(h=>a.from?a.from===h.routeId:h.id===r);if(Dn(!((a.shouldThrow??!0)&&!c),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),c!==void 0)return a.select?a.select(c):c},structuralSharing:a.structuralSharing})}function dh(a){return za({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:r=>a.select?a.select(r.loaderData):r.loaderData})}function hh(a){const{select:r,...i}=a;return za({...i,select:s=>r?r(s.loaderDeps):s.loaderDeps})}function ph(a){return za({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:r=>{const i=a.strict===!1?r.params:r._strictParams;return a.select?a.select(i):i}})}function mh(a){return za({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:r=>a.select?a.select(r.search):r.search})}function yh(a){const r=vn();return xe.useCallback(i=>r.navigate({...i,from:i.from??a?.from}),[a?.from,r])}var Z1=Og();function F1(a,r){const i=vn(),s=j1(r),{activeProps:c,inactiveProps:h,activeOptions:y,to:v,preload:b,preloadDelay:_,hashScrollIntoView:x,replace:E,startTransition:O,resetScroll:D,viewTransition:Y,children:z,target:V,disabled:te,style:fe,className:le,onClick:re,onFocus:Ce,onMouseEnter:Te,onMouseLeave:ue,onTouchStart:ce,ignoreBlocker:Ee,params:He,search:Be,hash:Ue,state:Xe,mask:Ye,reloadDocument:Dt,unsafeRelative:ee,from:ve,_fromLocation:Le,...et}=a,Je=fh(),K=Zt({select:Ze=>{const yt=Ze.matches[Ze.matches.length-1];return{search:yt?.search,hash:Ze.location.hash,path:yt?.pathname}},structuralSharing:!0}),ie=a.from,Se=xe.useMemo(()=>({...a,from:ie}),[i,K,ie,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),be=xe.useMemo(()=>i.buildLocation({...Se}),[i,Se]),qe=be.maskedLocation?be.maskedLocation.publicHref:be.publicHref,Ke=be.maskedLocation?be.maskedLocation.external:be.external,Qe=xe.useMemo(()=>nE(qe,Ke,i.history,te),[te,Ke,qe,i.history]),zt=xe.useMemo(()=>
12{if(Qe?.external)return rc(Qe.href,i.protocolAllowlist)?void 0:Qe.href;if(!aE(v)&&!(typeof v!="string"||v.indexOf(":")===-1))try{return new URL(v),rc(v,i.protocolAllowlist)?void 0:v}catch{}},[v,Qe,i.protocolAllowlist]),wt=Zt({select:Ze=>{if(zt)return!1;if(y?.exact){if(!sS(Ze.location.pathname,be.pathname,i.basepath))return!1}else{const yt=oc(Ze.location.pathname,i.basepath),Kt=oc(be.pathname,i.basepath);if(!(yt.startsWith(Kt)&&(yt.length===Kt.length||yt[Kt.length]==="/")))return!1}return(y?.includeSearch??!0)&&!Zi(Ze.location.search,be.search,{partial:!y?.exact,ignoreUndefined:!y?.explicitUndefined})?!1:y?.includeHash?Je&&Ze.location.hash===be.hash:!0}}),Me=wt?oi(c,{})??J1:Pd,Yn=wt?Pd:oi(h,{})??Pd,it=[le,Me.className,Yn.className].filter(Boolean).join(" "),ia=(fe||Me.style||Yn.style)&&{...fe,...Me.style,...Yn.style},[oa,Tn]=xe.useState(!1),br=xe.useRef(!1),ha=a.reloadDocument||zt?!1:b??i.options.defaultPreload,Sr=_??i.options.defaultPreloadDelay??0,zn=xe.useCallback(()=>{i.preloadRoute({...Se,_builtLocation:be}).catch(Ze=>{console.warn(Ze),console.warn(HS)})},[i,Se,be]),ja=xe.useCallback(Ze=>{Ze?.isIntersecting&&zn()},[zn]);L1(s,ja,tE,{disabled:!!te||ha!=="viewport"}),xe.useEffect(()=>{br.current||!te&&ha==="render"&&(zn(),br.current=!0)},[te,zn,ha]);const fn=Ze=>{const yt=Ze.currentTarget.getAttribute("target"),Kt=V!==void 0?V:yt;if(!te&&!rE(Ze)&&!Ze.defaultPrevented&&(!Kt||Kt==="_self")&&Ze.button===0){Ze.preventDefault(),Z1.flushSync(()=>{Tn(!0)});const pa=i.subscribe("onResolved",()=>{pa(),Tn(!1)});i.navigate({...Se,replace:E,resetScroll:D,hashScrollIntoView:x,startTransition:O,viewTransition:Y,ignoreBlocker:Ee})}};if(zt)return{...et,ref:s,href:zt,...z&&{children:z},...V&&{target:V},...te&&{disabled:te},...fe&&{style:fe},...le&&{className:le},...re&&{onClick:re},...Ce&&{onFocus:Ce},...Te&&{onMouseEnter:Te},...ue&&{onMouseLeave:ue},...ce&&{onTouchStart:ce}};const hi=Ze=>{te||ha&&zn()},Na=hi,$t=Ze=>{if(!(te||!ha))if(!Sr)zn();else{const yt=Ze.target;if(gl.has(yt))return;const Kt=setTimeout(()=>{gl.delete(yt),zn()},Sr);gl.set(yt,Kt)}},Ua=Ze=>{if(te||!ha||!Sr)return;const yt=Ze.target,Kt=gl.get(yt);Kt&&(clearTimeout(Kt),gl.delete(yt))};return{...et,...Me,...Yn,href:Qe?.href,ref:s,onClick:vl([re,fn]),onFocus:vl([Ce,hi]),onMouseEnter:vl([Te,$t]),onMouseLeave:vl([ue,Ua]),onTouchStart:vl([ce,Na]),disabled:!!te,target:V,...ia&&{style:ia},...it&&{className:it},...te&&$1,...wt&&W1,...Je&&oa&&eE}}const Pd={},J1={className:"active"},$1={role:"link","aria-disabled":!0},W1={"data-status":"active","aria-current":"page"},eE={"data-transitioning":"transitioning"},gl=new WeakMap,tE={rootMargin:"100px"},vl=a=>r=>{for(const i of a)if(i){if(r.defaultPrevented)return;i(r)}};function nE(a,r,i,s){if(!s)return r?{href:a,external:!0}:{href:i.createHref(a)||"/",external:!1}}function aE(a){if(typeof a!="string")return!1;const r=a.charCodeAt(0);return r===47?a.charCodeAt(1)!==47:r===46}const gh=xe.forwardRef((a,r)=>{const{_asChild:i,...s}=a,{type:c,...h}=F1(s,r),y=typeof s.children=="function"?s.children({isActive:h["data-status"]==="active"}):s.children;if(!i){const{disabled:v,...b}=h;return xe.createElement("a",b,y)}return xe.createElement(i,h,y)});function rE(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}let iE=class extends Qg{constructor(r){super(r),this.useMatch=i=>za({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>za({...i,from:this.id,select:s=>i?.select?i.select(s.context):s.context}),this.useSearch=i=>mh({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>ph({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>hh({...i,from:this.id}),this.useLoaderData=i=>dh({...i,from:this.id}),this.useNavigate=()=>yh({from:this.fullPath}),this.Link=us.forwardRef((i,s)=>me.jsx(gh,{ref:s,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}};function oE(a){return new iE(a)}class sE extends KS{constructor(r){super(r),this.useMatch=i=>za({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>za({...i,from:this.id,select:s=>i?.select?i.select(s.context):s.context}),this.useSearch=i=>mh({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>ph({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>hh({...i,from:this.id}),this.useLoaderData=i=>dh({...i,from:this.id}),this.useNavigate=()=>yh({from:this.fullPath}),this.Link=us.forwardRef((i,s)=>me.jsx(gh,{ref:s,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}}function lE(a){return new sE(a)}function eo(a){return typeof a=="object"?new ig(a,{silent:!0}).createRoute(a):new ig(a,{silent:!0}).createRoute}class ig{constructor(r,i){this.path=r,this.createRoute=s=>{this.silent;const c=oE(s);return c.isRoot=!1,c},this.silent=i?.silent}}class og{constructor(r){this.useMatch=i=>za({select:i?.select,from:this.options.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>za({from:this.options.id,select:s=>i?.select?i.select(s.context):s.context}),this.useSearch=i=>mh({select:i?.select,structuralSharing:i?.structuralSharing,from:this.options.id}),this.useParams=i=>ph({select:i?.select,structuralSharing:i?.structuralSharing,from:this.options.id}),this.useLoaderDeps=i=>hh({...i,from:this.options.id}),this.useLoaderData=i=>dh({...i,from:this.options.id}),this.useNavigate=()=>{const i=vn();return yh({from:i.routesById[this.options.id].fullPath})},this.options=r,this.$$typeof=Symbol.for("react.memo")}}function sg(a){return typeof a=="object"?new og(a):r=>new og({id:a,...r})}function Al(a,r){let i,s,c,h;const y=()=>(i||(i=a().then(b=>{i=void 0,s=b[r]}).catch(b=>{if(c=b,Y0(c)&&c instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const _=`tanstack_router_reload:${c.message}`;sessionStorage.getItem(_)||(sessionStorage.setItem(_,"1"),h=!0)}})),i),v=function(_){if(h)throw window.location.reload(),new Promise(()=>{});if(c)throw c;if(!s)if(cc)cc(y());else throw y();return xe.createElement(s,_)};return v.preload=y,v}function uE(){const a=vn(),r=xe.useRef({router:a,mounted:!1}),[i,s]=xe.useState(!1),{hasPendingMatches:c,isLoading:h}=Zt({select:E=>({isLoading:E.isLoading,hasPendingMatches:E.matches.some(O=>O.status==="pending")}),structuralSharing:!0}),y=jd(h),v=h||i||c,b=jd(v),_=h||c,x=jd(_);return a.startTransition=E=>{s(!0),xe.startTransition(()=>{E(),s(!1)})},xe.useEffect(()=>{const E=a.history.subscribe(a.load),O=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return mr(a.latestLocation.publicHref)!==mr(O.publicHref)&&a.commitLocation({...O,replace:!0}),()=>{E()}},[a,a.history]),Vu(()=>{if(typeof window<"u"&&a.ssr||r.current.router===a&&r.current.mounted)return;r.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(O){console.error(O)}})()},[a]),Vu(()=>{y&&!h&&a.emit({type:"onLoad",...Fi(a.state)})},[y,a,h]),Vu(()=>{x&&!_&&a.emit({type:"onBeforeRouteMount",...Fi(a.state)})},[_,x,a]),Vu(()=>{if(b&&!v){const E=Fi(a.state);
12a.emit({type:"onResolved",...E}),a.__store.setState(O=>({...O,status:"idle",resolvedLocation:O.location})),E.hrefChanged&&gS(a)}},[v,b,a]),null}function cE(a){const r=Zt({select:i=>`not-found-${i.location.pathname}-${i.status}`});return me.jsx(uh,{getResetKey:()=>r,onCatch:(i,s)=>{if(En(i))a.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(En(i))return a.fallback?.(i);throw i},children:a.children})}function fE(){return me.jsx("p",{children:"Not Found"})}function es(a){return me.jsx(me.Fragment,{children:a.children})}function Ov(a,r,i){return r.options.notFoundComponent?me.jsx(r.options.notFoundComponent,{...i}):a.options.defaultNotFoundComponent?me.jsx(a.options.defaultNotFoundComponent,{...i}):me.jsx(fE,{})}function dE(){return vn().isScrollRestoring,null}const Av=xe.memo(function({matchId:r}){const i=vn(),s=Zt({select:z=>{const V=z.matches.findIndex(fe=>fe.id===r),te=z.matches[V];return Dn(te),{routeId:te.routeId,ssr:te.ssr,_displayPending:te._displayPending,resetKey:z.loadedAt,parentRouteId:z.matches[V-1]?.routeId}},structuralSharing:!0}),c=i.routesById[s.routeId],h=c.options.pendingComponent??i.options.defaultPendingComponent,y=h?me.jsx(h,{}):null,v=c.options.errorComponent??i.options.defaultErrorComponent,b=c.options.onCatch??i.options.defaultOnCatch,_=c.isRoot?c.options.notFoundComponent??i.options.notFoundRoute?.options.component:c.options.notFoundComponent,x=s.ssr===!1||s.ssr==="data-only",E=(!c.isRoot||c.options.wrapInSuspense||x)&&(c.options.wrapInSuspense??h??(c.options.errorComponent?.preload||x))?xe.Suspense:es,O=v?uh:es,D=_?cE:es,Y=c.isRoot?c.options.shellComponent??es:es;return me.jsxs(Y,{children:[me.jsx(wc.Provider,{value:r,children:me.jsx(E,{fallback:y,children:me.jsx(O,{getResetKey:()=>s.resetKey,errorComponent:v||ch,onCatch:(z,V)=>{if(En(z))throw z;b?.(z,V)},children:me.jsx(D,{fallback:z=>{if(!_||z.routeId&&z.routeId!==s.routeId||!z.routeId&&!c.isRoot)throw z;return xe.createElement(_,z)},children:x||s._displayPending?me.jsx(q1,{fallback:y,children:me.jsx(lg,{matchId:r})}):me.jsx(lg,{matchId:r})})})})}),s.parentRouteId===na&&i.options.scrollRestoration?me.jsxs(me.Fragment,{children:[me.jsx(hE,{}),me.jsx(dE,{})]}):null]})});function hE(){const a=vn(),r=xe.useRef(void 0);return me.jsx("script",{suppressHydrationWarning:!0,ref:i=>{i&&(r.current===void 0||r.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...Fi(a.state)}),r.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}const lg=xe.memo(function({matchId:r}){const i=vn(),{match:s,key:c,routeId:h}=Zt({select:b=>{const _=b.matches.find(Y=>Y.id===r),x=_.routeId,O=(i.routesById[x].options.remountDeps??i.options.defaultRemountDeps)?.({routeId:x,loaderDeps:_.loaderDeps,params:_._strictParams,search:_._strictSearch});return{key:O?JSON.stringify(O):void 0,routeId:x,match:{id:_.id,status:_.status,error:_.error,invalid:_.invalid,_forcePending:_._forcePending,_displayPending:_._displayPending}}},structuralSharing:!0}),y=i.routesById[h],v=xe.useMemo(()=>{const b=y.options.component??i.options.defaultComponent;return b?me.jsx(b,{},c):me.jsx(Cv,{})},[c,y.options.component,i.options.defaultComponent]);if(s._displayPending)throw i.getMatch(s.id)?._nonReactive.displayPendingPromise;if(s._forcePending)throw i.getMatch(s.id)?._nonReactive.minPendingPromise;if(s.status==="pending"){const b=y.options.pendingMinMs??i.options.defaultPendingMinMs;if(b){const _=i.getMatch(s.id);if(_&&!_._nonReactive.minPendingPromise){const x=Ji();_._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),_._nonReactive.minPendingPromise=void 0},b)}}throw i.getMatch(s.id)?._nonReactive.loadPromise}if(s.status==="notFound")return Dn(En(s.error)),Ov(i,y,s.error);if(s.status==="redirected")throw Dn(aa(s.error)),i.getMatch(s.id)?._nonReactive.loadPromise;if(s.status==="error")throw s.error;return v}),Cv=xe.memo(function(){const r=vn(),i=xe.useContext(wc),s=Zt({select:_=>_.matches.find(x=>x.id===i)?.routeId}),c=r.routesById[s],h=Zt({select:_=>{const E=_.matches.find(O=>O.id===i);return Dn(E),E.globalNotFound}}),y=Zt({select:_=>{const x=_.matches,E=x.findIndex(O=>O.id===i);return x[E+1]?.id}}),v=r.options.defaultPendingComponent?me.jsx(r.options.defaultPendingComponent,{}):null;if(h)return Ov(r,c,void 0);if(!y)return null;const b=me.jsx(Av,{matchId:y});return s===na?me.jsx(xe.Suspense,{fallback:v,children:b}):b});function pE(){const a=vn(),i=a.routesById[na].options.pendingComponent??a.options.defaultPendingComponent,s=i?me.jsx(i,{}):null,c=typeof document<"u"&&a.ssr?es:xe.Suspense,h=me.jsxs(c,{fallback:s,children:[me.jsx(uE,{}),me.jsx(mE,{})]});return a.options.InnerWrap?me.jsx(a.options.InnerWrap,{children:h}):h}function mE(){const a=vn(),r=Zt({select:c=>c.matches[0]?.id}),i=Zt({select:c=>c.loadedAt}),s=r?me.jsx(Av,{matchId:r}):null;return me.jsx(wc.Provider,{value:r,children:a.options.disableGlobalCatchBoundary?s:me.jsx(uh,{getResetKey:()=>i,errorComponent:ch,onCatch:c=>{c.message||c.toString()},children:s})})}const yE=a=>new gE(a);class gE extends LS{constructor(r){super(r)}}typeof globalThis<"u"?(globalThis.createFileRoute=eo,globalThis.createLazyFileRoute=sg):typeof window<"u"&&(window.createFileRoute=eo,window.createLazyFileRoute=sg);function vE({router:a,children:r,...i}){Object.keys(i).length>0&&a.update({...a.options,...i,context:{...a.options.context,...i.context}});const s=xv(),c=me.jsx(s.Provider,{value:a,children:r});return a.options.Wrap?me.jsx(a.options.Wrap,{children:c}):c}function bE({router:a,...r}){return me.jsx(vE,{router:a,...r,children:me.jsx(pE,{})})}function Mv({tag:a,attrs:r,children:i,nonce:s}){switch(a){case"title":return me.jsx("title",{...r,suppressHydrationWarning:!0,children:i});case"meta":return me.jsx("meta",{...r,suppressHydrationWarning:!0});case"link":return me.jsx("link",{...r,nonce:s,suppressHydrationWarning:!0});case"style":return me.jsx("style",{...r,dangerouslySetInnerHTML:{__html:i},nonce:s});case"script":return me.jsx(SE,{attrs:r,children:i});default:return null}}function SE({attrs:a,children:r}){vn();const i=fh(),s=typeof a?.type=="string"&&a.type!==""&&a.type!=="text/javascript"&&a.type!=="module";if(xe.useEffect(()=>{if(!s){if(a?.src){const c=(()=>{try{const v=document.baseURI||window.location.href;return new URL(a.src,v).href}catch{return a.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(v=>v.src===c))return;const y=document.createElement("script");for(const[v,b]of Object.entries(a))v!=="suppressHydrationWarning"&&b!==void 0&&b!==!1&&y.setAttribute(v,typeof b=="boolean"?"":String(b));return document.head.appendChild(y),()=>{y.parentNode&&y.parentNode.removeChild(y)}}if(typeof r=="string"){const c=typeof a?.type=="string"?a.type:"text/javascript",h=typeof a?.nonce=="string"?a.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(b=>{if(!(b instanceof HTMLScriptElement))return!1;const _=b.getAttribute("type")??"text/javascript",x=b.getAttribute("nonce")??void 0;return b.textContent===r&&_===c&&x===h}))return;const v=document.createElement("script");
12if(v.textContent=r,a)for(const[b,_]of Object.entries(a))b!=="suppressHydrationWarning"&&_!==void 0&&_!==!1&&v.setAttribute(b,typeof _=="boolean"?"":String(_));return document.head.appendChild(v),()=>{v.parentNode&&v.parentNode.removeChild(v)}}}},[a,r,s]),s&&typeof r=="string")return me.jsx("script",{...a,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r}});if(!i){if(a?.src)return me.jsx("script",{...a,suppressHydrationWarning:!0});if(typeof r=="string")return me.jsx("script",{...a,dangerouslySetInnerHTML:{__html:r},suppressHydrationWarning:!0})}return null}const _E=()=>{const a=vn(),r=a.options.ssr?.nonce,i=Zt({select:b=>b.matches.map(_=>_.meta).filter(Boolean)}),s=xe.useMemo(()=>{const b=[],_={};let x;for(let E=i.length-1;E>=0;E--){const O=i[E];for(let D=O.length-1;D>=0;D--){const Y=O[D];if(Y)if(Y.title)x||(x={tag:"title",children:Y.title});else if("script:ld+json"in Y)try{const z=JSON.stringify(Y["script:ld+json"]);b.push({tag:"script",attrs:{type:"application/ld+json"},children:I0(z)})}catch{}else{const z=Y.name??Y.property;if(z){if(_[z])continue;_[z]=!0}b.push({tag:"meta",attrs:{...Y,nonce:r}})}}}return x&&b.push(x),r&&b.push({tag:"meta",attrs:{property:"csp-nonce",content:r}}),b.reverse(),b},[i,r]),c=Zt({select:b=>{const _=b.matches.map(O=>O.links).filter(Boolean).flat(1).map(O=>({tag:"link",attrs:{...O,nonce:r}})),x=a.ssr?.manifest,E=b.matches.map(O=>x?.routes[O.routeId]?.assets??[]).filter(Boolean).flat(1).filter(O=>O.tag==="link").map(O=>({tag:"link",attrs:{...O.attrs,suppressHydrationWarning:!0,nonce:r}}));return[..._,...E]},structuralSharing:!0}),h=Zt({select:b=>{const _=[];return b.matches.map(x=>a.looseRoutesById[x.routeId]).forEach(x=>a.ssr?.manifest?.routes[x.id]?.preloads?.filter(Boolean).forEach(E=>{_.push({tag:"link",attrs:{rel:"modulepreload",href:E,nonce:r}})})),_},structuralSharing:!0}),y=Zt({select:b=>b.matches.map(_=>_.styles).flat(1).filter(Boolean).map(({children:_,...x})=>({tag:"style",attrs:{...x,nonce:r},children:_})),structuralSharing:!0}),v=Zt({select:b=>b.matches.map(_=>_.headScripts).flat(1).filter(Boolean).map(({children:_,...x})=>({tag:"script",attrs:{...x,nonce:r},children:_})),structuralSharing:!0});return wE([...s,...h,...c,...y,...v],b=>JSON.stringify(b))};function wE(a,r){const i=new Set;return a.filter(s=>{const c=r(s);return i.has(c)?!1:(i.add(c),!0)})}function EE(){const a=_E(),i=vn().options.ssr?.nonce;return me.jsx(me.Fragment,{children:a.map(s=>xe.createElement(Mv,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:i}))})}const TE=()=>{const a=vn(),r=a.options.ssr?.nonce,i=Zt({select:y=>{const v=[],b=a.ssr?.manifest;return b?(y.matches.map(_=>a.looseRoutesById[_.routeId]).forEach(_=>b.routes[_.id]?.assets?.filter(x=>x.tag==="script").forEach(x=>{v.push({tag:"script",attrs:{...x.attrs,nonce:r},children:x.children})})),v):[]},structuralSharing:!0}),{scripts:s}=Zt({select:y=>({scripts:y.matches.map(v=>v.scripts).flat(1).filter(Boolean).map(({children:v,...b})=>({tag:"script",attrs:{...b,suppressHydrationWarning:!0,nonce:r},children:v}))}),structuralSharing:!0});let c;a.serverSsr&&(c=a.serverSsr.takeBufferedScripts());const h=[...s,...i];return c&&h.unshift(c),me.jsx(me.Fragment,{children:h.map((y,v)=>xe.createElement(Mv,{...y,key:`tsr-scripts-${y.tag}-${v}`}))})};function RE(a,r){a.id=r.i,a.__beforeLoadContext=r.b,a.loaderData=r.l,a.status=r.s,a.ssr=r.ssr,a.updatedAt=r.u,a.error=r.e}async function xE(a){Dn(window.$_TSR);const r=a.options.serializationAdapters;if(r?.length){const z=new Map;r.forEach(V=>{z.set(V.key,V.fromSerializable)}),window.$_TSR.t=z,window.$_TSR.buffer.forEach(V=>V())}window.$_TSR.initialized=!0,Dn(window.$_TSR.router);const{manifest:i,dehydratedData:s,lastMatchId:c}=window.$_TSR.router;a.ssr={manifest:i};const y=document.querySelector('meta[property="csp-nonce"]')?.content;a.options.ssr={nonce:y};const v=a.matchRoutes(a.state.location),b=Promise.all(v.map(z=>{const V=a.looseRoutesById[z.routeId];return a.loadRouteChunk(V)}));function _(z){const te=a.looseRoutesById[z.routeId].options.pendingMinMs??a.options.defaultPendingMinMs;if(te){const fe=Ji();z._nonReactive.minPendingPromise=fe,z._forcePending=!0,setTimeout(()=>{fe.resolve(),a.updateMatch(z.id,le=>(le._nonReactive.minPendingPromise=void 0,{...le,_forcePending:void 0}))},te)}}function x(z){const V=a.looseRoutesById[z.routeId];V&&(V.options.ssr=z.ssr)}
12let E;v.forEach(z=>{const V=window.$_TSR.router.matches.find(te=>te.i===z.id);if(!V){z._nonReactive.dehydrated=!1,z.ssr=!1,x(z);return}RE(z,V),x(z),z._nonReactive.dehydrated=z.ssr!==!1,(z.ssr==="data-only"||z.ssr===!1)&&E===void 0&&(E=z.index,_(z))}),a.__store.setState(z=>({...z,matches:v})),await a.options.hydrate?.(s),await Promise.all(a.state.matches.map(async z=>{try{const V=a.looseRoutesById[z.routeId],fe=a.state.matches[z.index-1]?.context??a.options.context;if(V.options.context){const Te={deps:z.loaderDeps,params:z.params,context:fe??{},location:a.state.location,navigate:ue=>a.navigate({...ue,_fromLocation:a.state.location}),buildLocation:a.buildLocation,cause:z.cause,abortController:z.abortController,preload:!1,matches:v,routeId:V.id};z.__routeContext=V.options.context(Te)??void 0}z.context={...fe,...z.__routeContext,...z.__beforeLoadContext};const le={ssr:a.options.ssr,matches:a.state.matches,match:z,params:z.params,loaderData:z.loaderData},re=await V.options.head?.(le),Ce=await V.options.scripts?.(le);z.meta=re?.meta,z.links=re?.links,z.headScripts=re?.scripts,z.styles=re?.styles,z.scripts=Ce}catch(V){if(En(V))z.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${z.routeId}`,V);else throw z.error=V,console.error(`Error during hydration for route ${z.routeId}:`,V),V}}));const O=v[v.length-1].id!==c;if(!v.some(z=>z.ssr===!1)&&!O)return v.forEach(z=>{z._nonReactive.dehydrated=void 0}),b;const Y=Promise.resolve().then(()=>a.load()).catch(z=>{console.error("Error during router hydration:",z)});if(O){const z=v[1];Dn(z),_(z),z._displayPending=!0,z._nonReactive.displayPendingPromise=Y,Y.then(()=>{ns(()=>{a.__store.state.status==="pending"&&a.__store.setState(V=>({...V,status:"idle",resolvedLocation:V.location})),a.updateMatch(z.id,V=>({...V,_displayPending:void 0,displayPendingPromise:void 0}))})})}return b}const OE="__TSS_CONTEXT",Zd=Symbol.for("TSS_SERVER_FUNCTION"),AE="x-tss-serialized",CE="x-tss-raw",Dv="application/x-tss-framed",hr={JSON:0,CHUNK:1,END:2,ERROR:3},Wo=9,ug=1,ME=/;\s*v=(\d+)/;function DE(a){const r=a.match(ME);return r?parseInt(r[1],10):void 0}function zE(a){const r=DE(a);if(r!==void 0&&r!==ug)throw new Error(`Incompatible framed protocol version: server=${r}, client=${ug}. Please ensure client and server are using compatible versions.`)}const zv=()=>window.__TSS_START_OPTIONS__;function LE(){return[...zv()?.serializationAdapters?.map(y1)??[],...D1]}const cg=new TextDecoder,jE=new Uint8Array(0),fg=16*1024*1024,dg=32*1024*1024,hg=1024,pg=1e5;function NE(a){const r=new Map,i=new Map,s=new Set;let c=!1,h=null,y=0,v;const b=new ReadableStream({start(E){v=E},cancel(){c=!0;try{h?.cancel()}catch{}r.forEach(E=>{try{E.error(new Error("Framed response cancelled"))}catch{}}),r.clear(),i.clear(),s.clear()}});function _(E){const O=i.get(E);if(O)return O;if(s.has(E))return new ReadableStream({start(Y){Y.close()}});if(i.size>=hg)throw new Error(`Too many raw streams in framed response (max ${hg})`);const D=new ReadableStream({start(Y){r.set(E,Y)},cancel(){s.add(E),r.delete(E),i.delete(E)}});return i.set(E,D),D}function x(E){return _(E),r.get(E)}return(async()=>{const E=a.getReader();h=E;const O=[];let D=0;function Y(){if(D<Wo)return null;const V=O[0];if(V.length>=Wo){const ue=V[0],ce=(V[1]<<24|V[2]<<16|V[3]<<8|V[4])>>>0,Ee=(V[5]<<24|V[6]<<16|V[7]<<8|V[8])>>>0;return{type:ue,streamId:ce,length:Ee}}const te=new Uint8Array(Wo);let fe=0,le=Wo;for(let ue=0;ue<O.length&&le>0;ue++){const ce=O[ue],Ee=Math.min(ce.length,le);te.set(ce.subarray(0,Ee),fe),fe+=Ee,le-=Ee}const re=te[0],Ce=(te[1]<<24|te[2]<<16|te[3]<<8|te[4])>>>0,Te=(te[5]<<24|te[6]<<16|te[7]<<8|te[8])>>>0;return{type:re,streamId:Ce,length:Te}}function z(V){if(V===0)return jE;const te=new Uint8Array(V);let fe=0,le=V;for(;le>0&&O.length>0;){const re=O[0];if(!re)break;const Ce=Math.min(re.length,le);te.set(re.subarray(0,Ce),fe),fe+=Ce,le-=Ce,Ce===re.length?O.shift():O[0]=re.subarray(Ce)}return D-=V,te}try{for(;;){const{done:V,value:te}=await E.read();if(c||V)break;if(te){if(D+te.length>dg)throw new Error(`Framed response buffer exceeded ${dg} bytes`);for(O.push(te),D+=te.length;;){const fe=Y();if(!fe)break;const{type:le,streamId:re,length:Ce}=fe;if(le!==hr.JSON&&le!==hr.CHUNK&&le!==hr.END&&le!==hr.ERROR)throw new Error(`Unknown frame type: ${le}`);
12if(le===hr.JSON){if(re!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(re===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(Ce>fg)throw new Error(`Frame payload too large: ${Ce} bytes (max ${fg})`);const Te=Wo+Ce;if(D<Te)break;if(++y>pg)throw new Error(`Too many frames in framed response (max ${pg})`);z(Wo);const ue=z(Ce);switch(le){case hr.JSON:{try{v.enqueue(cg.decode(ue))}catch{}break}case hr.CHUNK:{const ce=x(re);ce&&ce.enqueue(ue);break}case hr.END:{const ce=x(re);if(s.add(re),ce){try{ce.close()}catch{}r.delete(re)}break}case hr.ERROR:{const ce=x(re);if(s.add(re),ce){const Ee=cg.decode(ue);ce.error(new Error(Ee)),r.delete(re)}break}}}}}if(D!==0)throw new Error("Incomplete frame at end of framed response");try{v.close()}catch{}r.forEach(V=>{try{V.close()}catch{}}),r.clear()}catch(V){try{v.error(V)}catch{}r.forEach(te=>{try{te.error(V)}catch{}}),r.clear()}finally{try{E.releaseLock()}catch{}h=null}})(),{getOrCreateStream:_,jsonChunks:b}}let ss=null;const UE=Object.prototype.hasOwnProperty;function Lv(a){for(const r in a)if(UE.call(a,r))return!0;return!1}async function kE(a,r,i){ss||(ss=LE());const c=r[0],h=c.fetch??i,y=c.data instanceof FormData?"formData":"payload",v=c.headers?new Headers(c.headers):new Headers;if(v.set("x-tsr-serverFn","true"),y==="payload"&&v.set("accept",`${Dv}, application/x-ndjson, application/json`),c.method==="GET"){if(y==="formData")throw new Error("FormData is not supported with GET requests");const _=await jv(c);if(_!==void 0){const x=kg({payload:_});a.includes("?")?a+=`&${x}`:a+=`?${x}`}}let b;if(c.method==="POST"){const _=await BE(c);_?.contentType&&v.set("content-type",_.contentType),b=_?.body}return await qE(async()=>h(a,{method:c.method,headers:v,signal:c.signal,body:b}))}async function jv(a){let r=!1;const i={};if(a.data!==void 0&&(r=!0,i.data=a.data),a.context&&Lv(a.context)&&(r=!0,i.context=a.context),r)return Nv(i)}async function Nv(a){return JSON.stringify(await Promise.resolve(m1(a,{plugins:ss})))}async function BE(a){if(a.data instanceof FormData){let i;return a.context&&Lv(a.context)&&(i=await Nv(a.context)),i!==void 0&&a.data.set(OE,i),{body:a.data}}const r=await jv(a);if(r)return{body:r,contentType:"application/json"}}async function qE(a){let r;try{r=await a()}catch(c){if(c instanceof Response)r=c;else throw console.log(c),c}if(r.headers.get(CE)==="true")return r;const i=r.headers.get("content-type");if(Dn(i),!!r.headers.get(AE)){let c;if(i.includes(Dv)){if(zE(i),!r.body)throw new Error("No response body for framed response");const{getOrCreateStream:h,jsonChunks:y}=NE(r.body),b=[M1(h),...ss||[]],_=new Map;c=await HE({jsonStream:y,onMessage:x=>Ld(x,{refs:_,plugins:b}),onError(x,E){console.error(x,E)}})}else if(i.includes("application/x-ndjson")){const h=new Map;c=await PE({response:r,onMessage:y=>Ld(y,{refs:h,plugins:ss}),onError(y,v){console.error(y,v)}})}else if(i.includes("application/json")){const h=await r.json();c=Ld(h,{plugins:ss})}if(Dn(c),c instanceof Error)throw c;return c}if(i.includes("application/json")){const c=await r.json(),h=ES(c);if(h)throw h;if(En(c))throw c;return c}if(!r.ok)throw new Error(await r.text());return r}async function PE({response:a,onMessage:r,onError:i}){if(!a.body)throw new Error("No response body");const s=a.body.pipeThrough(new TextDecoderStream).getReader();let c="",h=!1,y;for(;!h;){const{value:v,done:b}=await s.read();if(v&&(c+=v),c.length===0&&b)throw new Error("Stream ended before first object");if(c.endsWith(` 13`)){const _=c.split(` 14`).filter(Boolean),x=_[0];if(!x)throw new Error("No JSON line in the first chunk");y=JSON.parse(x),h=!0,c=_.slice(1).join(` 15`)}else{const _=c.indexOf(` 16`);if(_>=0){const x=c.slice(0,_).trim();c=c.slice(_+1),x.length>0&&(y=JSON.parse(x),h=!0)}}}return(async()=>{try{for(;;){const{value:v,done:b}=await s.read();v&&(c+=v);const _=c.lastIndexOf(` 17`);if(_>=0){const x=c.slice(0,_);c=c.slice(_+1);const E=x.split(` 18`).filter(Boolean);for(const O of E)try{r(JSON.parse(O))}catch(D){i?.(`Invalid JSON line: ${O}`,D)}}if(b)break}}catch(v){i?.("Stream processing error:",v)}})(),r(y)}async function HE({jsonStream:a,onMessage:r,onError:i}){const s=a.getReader(),{value:c,done:h}=await s.read();if(h||!c)throw new Error("Stream ended before first object");const y=JSON.parse(c);return(async()=>{try{for(;;){const{value:v,done:b}=await s.read();if(b)break;
18if(v)try{r(JSON.parse(v))}catch(_){i?.(`Invalid JSON: ${v}`,_)}}}catch(v){i?.("Stream processing error:",v)}})(),r(y)}function KE(a){const r="/_serverFn/"+a;return Object.assign((...c)=>{const h=zv()?.serverFns?.fetch;return kE(r,c,h??fetch)},{url:r,serverFnMeta:{id:a},[Zd]:!0})}const YE={key:"$TSS/serverfn",test:a=>typeof a!="function"||!(Zd in a)?!1:!!a[Zd],toSerializable:({serverFnMeta:a})=>({functionId:a.id}),fromSerializable:({functionId:a})=>KE(a)},GE="modulepreload",VE=function(a){return"/"+a},mg={},ui=function(r,i,s){let c=Promise.resolve();if(i&&i.length>0){let b=function(_){return Promise.all(_.map(x=>Promise.resolve(x).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),v=y?.nonce||y?.getAttribute("nonce");c=b(i.map(_=>{if(_=VE(_),_ in mg)return;mg[_]=!0;const x=_.endsWith(".css"),E=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${_}"]${E}`))return;const O=document.createElement("link");if(O.rel=x?"stylesheet":GE,x||(O.as="script"),O.crossOrigin="",O.href=_,v&&O.setAttribute("nonce",v),document.head.appendChild(O),x)return new Promise((D,Y)=>{O.addEventListener("load",D),O.addEventListener("error",()=>Y(new Error(`Unable to preload CSS for ${_}`)))})}))}function h(y){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=y,window.dispatchEvent(v),!v.defaultPrevented)throw y}return c.then(y=>{for(const v of y||[])v.status==="rejected"&&h(v.reason);return r().catch(h)})};function XE(a={}){const{immediate:r=!1,onNeedRefresh:i,onOfflineReady:s,onRegistered:c,onRegisteredSW:h,onRegisterError:y}=a;let v,b;const _=async(E=!0)=>{await b};async function x(){if("serviceWorker"in navigator){if(v=await ui(async()=>{const{Workbox:E}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:E}},[]).then(({Workbox:E})=>new E("/sw.js",{scope:"/",type:"classic"})).catch(E=>{y?.(E)}),!v)return;v.addEventListener("activated",E=>{(E.isUpdate||E.isExternal)&&window.location.reload()}),v.addEventListener("installed",E=>{E.isUpdate||s?.()}),v.register({immediate:r}).then(E=>{h?h("/sw.js",E):c?.(E)}).catch(E=>{y?.(E)})}}return b=x(),_}const vh="toodoo.locale",yg={en:{"language.switcher.ariaLabel":"Language switcher","language.option.en":"English","language.option.es":"Spanish","settings.title":"Settings","settings.preferences.title":"Preferences","settings.hideCompleted":"Hide completed","settings.language.title":"Language","settings.notifications.title":"Daily notifications","settings.notifications.description":"Receive a system notification with todayâs pending tasks.","settings.notifications.dailyTime":"Daily at","settings.notifications.test":"Send test","settings.notifications.iosInstall":"Add Toodoo to your Home Screen first, then open it from there.","settings.notifications.unsupported":"Notifications are not available in this browser.","settings.notifications.denied":"Notifications are blocked. Enable them in your device or browser settings.","settings.notifications.error":"Notifications could not be updated. Check your connection and try again.","settings.storage.title":"Storage","settings.storage.localFirst.label":"Local-first","settings.storage.localFirst.description":"Stores data on this device, keeps working offline, and syncs when you reconnect.","settings.storage.sync.label":"Sync","settings.storage.sync.description":"Real-time cloud mode. This option does not work offline.","settings.storage.syncHealth.title":"Sync health","settings.storage.syncHealth.lastPull":"Last successful pull","settings.storage.syncHealth.lastPush":"Last successful push","settings.storage.syncHealth.lastError":"Last error","settings.storage.syncHealth.noError":"No recent errors","settings.storage.syncHealth.never":"Never","settings.storage.syncHealth.retry":"Retry sync","settings.storage.syncHealth.retrying":"Retrying...","settings.theme.title":"Theme","settings.theme.light":"Light","settings.theme.dark":"Dark","settings.theme.system":"System","settings.accentColor.title":"Accent color","settings.customColor":"Custom color","settings.recurring.title":"Recurring tasks","settings.recurring.empty":"No recurring tasks","settings.recurring.edit":"Edit recurrence","settings.signOut":"Sign out","syncBadge.local":"Local","syncBadge.offline":"Offline","syncBadge.error":"Sync error","syncBadge.syncing":"Syncing","syncBadge.synced":"Sync","landing.header.login":"Log in","landing.hero.titlePrefix":"Task management that","landing.hero.titleHighlight":"works offline","landing.hero.description":"Your tasks live on your device first. No internet? No problem. Everything works instantly and syncs when you're back online.","landing.hero.badge.offline":"Works offline","landing.hero.badge.device":"Stored on your device","landing.hero.badge.sync":"Syncs automatically","landing.cta.register":"Get started free","landing.cta.login":"Log in","landing.demo.caption":"Try it. Add tasks, change priorities, check them off","landing.demo.reset":"Reset","landing.demo.empty":"No tasks","landing.demo.addPlaceholder":"Add a task...","landing.footer.websiteAria":"Personal website","landing.footer.xAria":"X profile","nav.today":"Today","nav.previousDay":"Previous day","nav.nextDay":"Next day","nav.previousDays":"Previous {count} days","nav.nextDays":"Next {count} days","nav.openCalendar":"Open calendar","nav.openSettings":"Open settings","someday.title":"Someday","someday.newList":"+ New List","someday.listNamePlaceholder":"List name...","someday.emptyLists":"No lists yet. Create one to organize tasks without a date.","someday.emptyLists
18Mobile":"No lists yet.","someday.emptyListsMobileTap":'Tap "+ New List" to create one.',"someday.deleteList":"Delete list","someday.deleteListConfirm":'Delete "{name}" and all its tasks?',"someday.emptyTasks":"No tasks yet. Add one below.","someday.addToList":"Add to list...","someday.taskCount":"{count} task","someday.taskCountPlural":"{count} tasks","someday.empty":"empty","collaboration.share":"Share list","collaboration.shared":"Shared","collaboration.permission":"Permission","collaboration.editor":"Can edit","collaboration.viewer":"View only","collaboration.generateLink":"Generate invitation link","collaboration.copy":"Copy link","collaboration.members":"Members","collaboration.noMembers":"No members yet","collaboration.remove":"Remove member","collaboration.error":"Could not complete the request. Try again.","collaboration.inviteTitle":"List invitation","collaboration.inviteDescription":"You have been invited to collaborate on a Toodoo list.","collaboration.accept":"Accept invitation","collaboration.accepting":"Accepting...","collaboration.accepted":"Invitation accepted. Opening the list...","collaboration.signInFirst":"Sign in or create an account to accept this invitation.","collaboration.invalidInvite":"This invitation is invalid, expired, or has already been used.","task.tomorrow":"Tomorrow","task.delete":"Delete","task.moveTo":"Move to...","task.setRecurring":"Set recurring","task.setReminder":"Set reminder","task.actions":"Task actions","task.removeReminder":"Remove","reminder.title":"Task reminder","reminder.date":"Date","reminder.time":"Time","reminder.repeatDaily":"Repeat every day at this time","reminder.saveError":"The reminder could not be saved. Check your connection and try again.","task.recurring":"Recurring","task.deleteTask":"Delete task","task.deleteConfirm":'Delete "{text}"?',"task.addPlaceholder":"Add a task...","task.priority":"Priority: {priority}","moveTo.title":"Move to...","moveTo.cancel":"Cancel","moveTo.day":"Day","moveTo.list":"List","recurring.title":"Recurring Task","recurring.frequency":"Frequency","recurring.every":"Every","recurring.daily":"Daily","recurring.weekly":"Weekly","recurring.monthly":"Monthly","recurring.yearly":"Yearly","recurring.day":"day","recurring.days":"days","recurring.week":"week","recurring.weeks":"weeks","recurring.month":"month","recurring.months":"months","recurring.year":"year","recurring.years":"years","recurring.remove":"Remove recurrence","recurring.cancel":"Cancel","recurring.save":"Save","recurring.everyDay":"Every day","recurring.everyWeek":"Every week","recurring.everyMonth":"Every month","recurring.everyYear":"Every year","recurring.everyN":"Every {interval} {unit}","confirm.confirm":"Confirm","confirm.cancel":"Cancel","auth.email":"Email","auth.password":"Password","auth.loading":"Loading...","auth.signIn":"Sign In","auth.createAccount":"Create Account","auth.signInSubtitle":"Sign in to your account","auth.createSubtitle":"Create your account","auth.noAccount":"Don't have an account?","auth.hasAccount":"Already have an account?","auth.signUpLink":"Sign up","auth.signInLink":"Sign in","auth.genericError":"Something went wrong","confirm.switchToSync":"You have {count} pending local change. Switching to Sync will clear local data on this device. Continue?","confirm.switchToSyncPlural":"You have {count} pending local changes. Switching to Sync will clear local data on this device. Continue?","confirm.signOut":"You have {count} unsynced change. Are you sure you want to sign out? Unsynced changes will be lost.","confirm.signOutPlural":"You have {count} unsynced changes. Are you sure you want to sign out? Unsynced changes will be lost.","weekday.mo":"Mo","weekday.tu":"Tu","weekday.we":"We","weekday.th":"Th","weekday.fr":"Fr","weekday.sa":"Sa","weekday.su":"Su","error.title":"Something went wrong","error.description":"An unexpected error occurred.","error.reload":"Reload app","notFound.title":"Page not found","notFound.link":"Go to Toodoo","app.loading":"Loading..."},es:{"language.switcher.ariaLabel":"Selector de idioma","language.option.en":"Inglés","language.option.es":"Español","settings.title":"Ajustes","settings.preferences.title":"Preferencias","settings.hideCompleted":"Ocultar completadas","settings.language.title":"Idioma","settings.notifications.title":"Notificaciones diarias","settings.notifications.description":"Recibe una notificación del sistema con las tareas pen
18dientes de hoy.","settings.notifications.dailyTime":"Cada dÃa a las","settings.notifications.test":"Enviar prueba","settings.notifications.iosInstall":"Primero añade Toodoo a la pantalla de inicio y ábrela desde allÃ.","settings.notifications.unsupported":"Las notificaciones no están disponibles en este navegador.","settings.notifications.denied":"Las notificaciones están bloqueadas. ActÃvalas en los ajustes del dispositivo o navegador.","settings.notifications.error":"No se pudieron actualizar las notificaciones. Revisa la conexión e inténtalo de nuevo.","settings.storage.title":"Datos","settings.storage.localFirst.label":"Local-first","settings.storage.localFirst.description":"Guarda los datos en este dispositivo, sigue funcionando sin conexión y sincroniza cuando vuelves a conectarte.","settings.storage.sync.label":"Sync","settings.storage.sync.description":"Modo en tiempo real con la nube. Esta opción no funciona sin conexión.","settings.storage.syncHealth.title":"Estado de sync","settings.storage.syncHealth.lastPull":"Ãltimo pull correcto","settings.storage.syncHealth.lastPush":"Ãltimo push correcto","settings.storage.syncHealth.lastError":"Ãltimo error","settings.storage.syncHealth.noError":"Sin errores recientes","settings.storage.syncHealth.never":"Nunca","settings.storage.syncHealth.retry":"Reintentar sync","settings.storage.syncHealth.retrying":"Reintentando...","settings.theme.title":"Tema","settings.theme.light":"Claro","settings.theme.dark":"Oscuro","settings.theme.system":"Sistema","settings.accentColor.title":"Color de acento","settings.customColor":"Color personalizado","settings.recurring.title":"Tareas recurrentes","settings.recurring.empty":"Sin tareas recurrentes","settings.recurring.edit":"Editar recurrencia","settings.signOut":"Cerrar sesión","syncBadge.local":"Local","syncBadge.offline":"Sin conexión","syncBadge.error":"Error de sincronización","syncBadge.syncing":"Sincronizando","syncBadge.synced":"Sync","landing.header.login":"Entrar","landing.hero.titlePrefix":"Gestión de tareas que","landing.hero.titleHighlight":"funciona sin conexión","landing.hero.description":"Tus tareas viven primero en tu dispositivo. ¿No hay internet? No pasa nada. Todo funciona al instante y se sincroniza cuando vuelves a estar online.","landing.hero.badge.offline":"Funciona offline","landing.hero.badge.device":"Guardado en tu dispositivo","landing.hero.badge.sync":"Se sincroniza automáticamente","landing.cta.register":"Empieza gratis","landing.cta.login":"Entrar","landing.demo.caption":"Pruébalo. Añade tareas, cambia prioridades y márcalas como hechas","landing.demo.reset":"Reiniciar","landing.demo.empty":"Sin tareas","landing.demo.addPlaceholder":"Añade una tarea...","landing.footer.websiteAria":"Web personal","landing.footer.xAria":"Perfil de X","nav.today":"Hoy","nav.previousDay":"DÃa anterior","nav.nextDay":"DÃa siguiente","nav.previousDays":"{count} dÃas antes","nav.nextDays":"{count} dÃas después","nav.openCalendar":"Abrir calendario","nav.openSettings":"Abrir ajustes","someday.title":"Algún dÃa","someday.newList":"+ Nueva lista","someday.listNamePlaceholder":"Nombre de la lista...","someday.emptyLists":"Sin listas aún. Crea una para organizar tareas sin fecha.","someday.emptyListsMobile":"Sin listas aún.","someday.emptyListsMobileTap":'Pulsa "+ Nueva lista" para crear una.',"someday.deleteList":"Eliminar lista","someday.deleteListConfirm":'¿Eliminar "{name}" y todas sus tareas?',"someday.emptyTasks":"Sin tareas aún. Añade una abajo.","someday.addToList":"Añadir a la lista...","someday.taskCount":"{count} tarea","someday.taskCountPlural":"{count} tareas","someday.empty":"vacÃa","collaboration.share":"Compartir lista","collaboration.shared":"Compartida","collaboration.permission":"Permiso","collaboration.editor":"Puede editar","collaboration.viewer":"Solo lectura","collaboration.generateLink":"Generar enlace de invitación","collaboration.copy":"Copiar enlace","collaboration.members":"Miembros","collaboration.noMembers":"TodavÃa no hay miembros","collaboration.remove":"Eliminar miembro","collaboration.error":"No se pudo completar la solicitud. Inténtalo de nuevo.","collaboration.inviteTitle":"Invitación a una lista","collaboration.inviteDescription":"Te han invitado a colaborar en una lista de Toodoo.","collaboration.accept":"Aceptar invitación","collaboration.accepting":"Aceptando...","collaboration.accepted":"Invitación aceptada. Abriendo la lista...","collaboration.signInFirst":"Inicia sesión o crea una cuenta para aceptar esta invitación.","collaboration.invalidInvite":"La invitación no es válida, ha caducado o ya se ha utilizado.","task.tomorrow":"Mañana","task.delete":"Eliminar","task.moveTo":"Mover a...","task.setRecurring":"Repetir","task.setReminder":"Añadir recordatorio","task.actions":"Acciones de la tarea","task.removeReminder":"Quitar","reminder.title":"Recordatorio de tarea","reminder.date":"Fecha","reminder.time":"Hora","reminder.repeatDaily":"Repetir cada dÃa a esta hora","reminder.saveError":"No se pudo guardar el recordatorio. Revisa la conexión e inténtalo de nuevo.","task.recurring":"Recurrente","task.deleteTask":"Eliminar tarea","task.deleteConfirm":'¿Eliminar "{text}"?',"task.addPlaceholder":"Añade una tarea...","task.priority":"Prioridad: {priority}","moveTo.title":"Mover a...","moveTo.cancel":"Cancelar","moveTo.day":"DÃa","moveTo.list":"Lista","recurring.title":"Tarea recurrente","recurring.frequency":"Frecuencia","re
18curring.every":"Cada","recurring.daily":"Diaria","recurring.weekly":"Semanal","recurring.monthly":"Mensual","recurring.yearly":"Anual","recurring.day":"dÃa","recurring.days":"dÃas","recurring.week":"semana","recurring.weeks":"semanas","recurring.month":"mes","recurring.months":"meses","recurring.year":"año","recurring.years":"años","recurring.remove":"Quitar recurrencia","recurring.cancel":"Cancelar","recurring.save":"Guardar","recurring.everyDay":"Cada dÃa","recurring.everyWeek":"Cada semana","recurring.everyMonth":"Cada mes","recurring.everyYear":"Cada año","recurring.everyN":"Cada {interval} {unit}","confirm.confirm":"Confirmar","confirm.cancel":"Cancelar","auth.email":"Correo electrónico","auth.password":"Contraseña","auth.loading":"Cargando...","auth.signIn":"Iniciar sesión","auth.createAccount":"Crear cuenta","auth.signInSubtitle":"Inicia sesión en tu cuenta","auth.createSubtitle":"Crea tu cuenta","auth.noAccount":"¿No tienes cuenta?","auth.hasAccount":"¿Ya tienes cuenta?","auth.signUpLink":"RegÃstrate","auth.signInLink":"Inicia sesión","auth.genericError":"Algo salió mal","confirm.switchToSync":"Tienes {count} cambio local pendiente. Cambiar a Sync borrará los datos locales de este dispositivo. ¿Continuar?","confirm.switchToSyncPlural":"Tienes {count} cambios locales pendientes. Cambiar a Sync borrará los datos locales de este dispositivo. ¿Continuar?","confirm.signOut":"Tienes {count} cambio sin sincronizar. ¿Seguro que quieres cerrar sesión? Los cambios sin sincronizar se perderán.","confirm.signOutPlural":"Tienes {count} cambios sin sincronizar. ¿Seguro que quieres cerrar sesión? Los cambios sin sincronizar se perderán.","weekday.mo":"Lu","weekday.tu":"Ma","weekday.we":"Mi","weekday.th":"Ju","weekday.fr":"Vi","weekday.sa":"Sá","weekday.su":"Do","error.title":"Algo salió mal","error.description":"Ocurrió un error inesperado.","error.reload":"Recargar app","notFound.title":"Página no encontrada","notFound.link":"Ir a Toodoo","app.loading":"Cargando..."}},Fd=new Set;let to="en",gg=!1;function Ec(a){return a?.trim().toLowerCase().split("-")[0]==="es"?"es":"en"}function QE(){if(!(typeof document>"u"))return document.documentElement.lang||void 0}function Uv(){if(!(typeof navigator>"u"))return navigator.languages?.[0]||navigator.language||void 0}function kv(){if(!(typeof window>"u"))return window.localStorage.getItem(vh)||void 0}function fc(a){typeof document>"u"||(document.documentElement.lang=a)}function IE(){return Ec(kv()??QE()??Uv())}function bh(){gg||(to=IE(),fc(to),gg=!0)}function Bv(){Fd.forEach(a=>a())}function Tc(){return bh(),to}function qv(a){bh();const r=Ec(a);if(r===to){fc(r);return}to=r,typeof window<"u"&&window.localStorage.setItem(vh,r),fc(r),Bv()}function ZE(a){bh(),Fd.add(a);const r=()=>{if(kv())return;const i=Ec(Uv());i!==to&&(to=i,fc(i),Bv())};return typeof window<"u"&&window.addEventListener("languagechange",r),()=>{Fd.delete(a),typeof window<"u"&&window.removeEventListener("languagechange",r)}}function FE(){return"en"}function El(a,r){const i=Ec(r??Tc());return yg[i][a]??yg.en[a]}function JE(a){return(a??Tc())==="es"?"es-ES":"en-US"}function $E(){return` 19 try { 20 var savedLocale = localStorage.getItem('${vh}'); 21 var rawLocale = savedLocale || (navigator.languages && navigator.languages[0]) || navigator.language || 'en'; 22 var locale = rawLocale.toLowerCase().split('-')[0] === 'es' ? 'es' : 'en'; 23 document.documentElement.lang = locale; 24 } catch (_) { 25 document.documentElement.lang = 'en'; 26 } 27 `}function WE(){const a=xe.useSyncExternalStore(ZE,Tc,FE);return{locale:a,setLocale:qv,t:(r,i)=>{let s=El(r,a);if(i)for(const[c,h]of Object.entries(i))s=s.replace(`{${c}}`,String(h));return s},dateLocale:JE(a)}}class eT extends xe.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,i){console.error("[ErrorBoundary]",r,i.componentStack)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:me.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center bg-slate-50 dark:bg-slate-900 px-4",children:[me.jsx("h1",{className:"text-2xl font-bold text-slate-800 dark:text-slate-200 mb-2",children:El("error.title")}),me.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400 mb-6 text-center max-w-md",children:this.state.error?.message||El("error.description")}),me.jsx("button",{onClick:()=>window.location.reload(),className:"px-5 py-2.5 text-sm font-medium text-white bg-[var(--accent-500)] hover:bg-[var(--accent-600)] rounded-lg transition-colors",children:El("error.reload")})]}):this.props.children}}
27class wn extends Error{constructor(r){super("ClientResponseError"),this.url="",this.status=0,this.response={},this.isAbort=!1,this.originalError=null,Object.setPrototypeOf(this,wn.prototype),r!==null&&typeof r=="object"&&(this.originalError=r.originalError,this.url=typeof r.url=="string"?r.url:"",this.status=typeof r.status=="number"?r.status:0,this.isAbort=!!r.isAbort||r.name==="AbortError"||r.message==="Aborted",r.response!==null&&typeof r.response=="object"?this.response=r.response:r.data!==null&&typeof r.data=="object"?this.response=r.data:this.response={}),this.originalError||r instanceof wn||(this.originalError=r),this.name="ClientResponseError "+this.status,this.message=this.response?.message,this.message||(this.isAbort?this.message="The request was aborted (most likely autocancelled; you can find more info in https://github.com/pocketbase/js-sdk#auto-cancellation).":this.originalError?.cause?.message?.includes("ECONNREFUSED ::1")?this.message="Failed to connect to the PocketBase server. Try changing the SDK URL from localhost to 127.0.0.1 (https://github.com/pocketbase/js-sdk/issues/21).":this.message="Something went wrong."),this.cause=this.originalError}get data(){return this.response}toJSON(){return{...this}}}const Xu=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function tT(a,r){const i={};if(typeof a!="string")return i;const s=Object.assign({},{}).decode||nT;let c=0;for(;c<a.length;){const h=a.indexOf("=",c);if(h===-1)break;let y=a.indexOf(";",c);if(y===-1)y=a.length;else if(y<h){c=a.lastIndexOf(";",h-1)+1;continue}const v=a.slice(c,h).trim();if(i[v]===void 0){let b=a.slice(h+1,y).trim();b.charCodeAt(0)===34&&(b=b.slice(1,-1));try{i[v]=s(b)}catch{i[v]=b}}c=y+1}return i}function vg(a,r,i){const s=Object.assign({},i||{}),c=s.encode||aT;if(!Xu.test(a))throw new TypeError("argument name is invalid");const h=c(r);if(h&&!Xu.test(h))throw new TypeError("argument val is invalid");let y=a+"="+h;if(s.maxAge!=null){const v=s.maxAge-0;if(isNaN(v)||!isFinite(v))throw new TypeError("option maxAge is invalid");y+="; Max-Age="+Math.floor(v)}if(s.domain){if(!Xu.test(s.domain))throw new TypeError("option domain is invalid");y+="; Domain="+s.domain}if(s.path){if(!Xu.test(s.path))throw new TypeError("option path is invalid");y+="; Path="+s.path}if(s.expires){if(!(function(b){return Object.prototype.toString.call(b)==="[object Date]"||b instanceof Date})(s.expires)||isNaN(s.expires.valueOf()))throw new TypeError("option expires is invali
27d");y+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(y+="; HttpOnly"),s.secure&&(y+="; Secure"),s.priority)switch(typeof s.priority=="string"?s.priority.toLowerCase():s.priority){case"low":y+="; Priority=Low";break;case"medium":y+="; Priority=Medium";break;case"high":y+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(s.sameSite)switch(typeof s.sameSite=="string"?s.sameSite.toLowerCase():s.sameSite){case!0:y+="; SameSite=Strict";break;case"lax":y+="; SameSite=Lax";break;case"strict":y+="; SameSite=Strict";break;case"none":y+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return y}function nT(a){return a.indexOf("%")!==-1?decodeURIComponent(a):a}function aT(a){return encodeURIComponent(a)}const rT=typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal;let Pv;function ls(a){if(a)try{const r=decodeURIComponent(Pv(a.split(".")[1]).split("").map((function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(r)||{}}catch{}return{}}function Hv(a,r=0){let i=ls(a);return!(Object.keys(i).length>0&&(!i.exp||i.exp-r>Date.now()/1e3))}Pv=typeof atob!="function"||rT?a=>{let r=String(a).replace(/=+$/,"");if(r.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,s,c=0,h=0,y="";s=r.charAt(h++);~s&&(i=c%4?64*i+s:s,c++%4)?y+=String.fromCharCode(255&i>>(-2*c&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return y}:atob;const bg="pb_auth";class Sh{constructor(){this.baseToken="",this.baseModel=null,this._onChangeCallbacks=[]}get token(){return this.baseToken}get record(){return this.baseModel}get model(){return this.baseModel}get isValid(){return!Hv(this.token)}get isSuperuser(){let r=ls(this.token);return r.type=="auth"&&(this.record?.collectionName=="_superusers"||!this.record?.collectionName&&r.collectionId=="pbc_3142635823")}get isAdmin(){return console.warn("Please replace pb.authStore.isAdmin with pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),this.isSuperuser}get isAuthRecord(){return console.warn("Please replace pb.authStore.isAuthRecord with !pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),ls(this.token).type=="auth"&&!this.isSuperuser}save(r,i){this.baseToken=r||"",this.baseModel=i||null,this.triggerChange()}clear(){this.baseToken="",this.baseModel=null,this.triggerChange()}loadFromCookie(r,i=bg){const s=tT(r||"")[i]||"";let c={};try{c=JSON.parse(s),(typeof c===null||typeof c!="object"||Array.isArray(c))&&(c={})}catch{}this.save(c.token||"",c.record||c.model||null)}exportToCookie(r,i=bg){const s={secure:!0,sameSite:!0,httpOnly:!0,path:"/"},c=ls(this.token);s.expires=c?.exp?new Date(1e3*c.exp):new Date("1970-01-01"),r=Object.assign({},s,r);const h={token:this.token,record:this.record?JSON.parse(JSON.stringify(this.record)):null};let y=vg(i,JSON.stringify(h),r);const v=typeof Blob<"u"?new Blob([y]).size:y.length;if(h.record&&v>4096){h.record={id:h.record?.id,email:h.record?.email};const b=["collectionId","collectionName","verified"];for(const _ in this.record)b.includes(_)&&(h.record[_]=this.record[_]);y=vg(i,JSON.stringify(h),r)}return y}onChange(r,i=!1){return this._onChangeCallbacks.push(r),i&&r(this.token,this.record),()=>{for(let s=this._onChangeCallbacks.length-1;s>=0;s--)if(this._onChangeCallbacks[s]==r)return delete this._onChangeCallbacks[s],void this._onChangeCallbacks.splice(s,1)}}triggerChange(){for(const r of this._onChangeCallbacks)r&&r(this.token,this.record)}}class iT extends Sh{constructor(r="pocketbase_auth"){super(),this.storageFallback={},this.storageKey=r,this._bindStorageEvent()}get token(){return(this._storageGet(this.storageKey)||{}).token||""}get record(){const r=this._storageGet(this.storageKey)||{};return r.record||r.model||null}get model(){return this.record}save(r,i){this._storageSet(this.storageKey,{token:r,record:i}),super.save(r,i)}clear(){this._storageRemove(this.storageKey),super.clear()}_storageGet(r){if(typeof window<"u"&&window?.localStorage){const i=window.localStorage.getItem(r)||"";try{return JSON.parse(i)}catch{return i}}return this.storageFallback[r]}_storageSet(r,i){if(typeof window<"u"&&window?.localStorage){let s=i;
vendor: 23,481 bytes, line 27
27typeof i!="string"&&(s=JSON.stringify(i)),window.localStorage.setItem(r,s)}else this.storageFallback[r]=i}_storageRemove(r){typeof window<"u"&&window?.localStorage&&window.localStorage?.removeItem(r),delete this.storageFallback[r]}_bindStorageEvent(){typeof window<"u"&&window?.localStorage&&window.addEventListener&&window.addEventListener("storage",(r=>{if(r.key!=this.storageKey)return;const i=this._storageGet(this.storageKey)||{};super.save(i.token||"",i.record||i.model||null)}))}}class La{constructor(r){this.client=r}}class oT extends La{async getAll(r){return r=Object.assign({method:"GET"},r),this.client.send("/api/settings",r)}async update(r,i){return i=Object.assign({method:"PATCH",body:r},i),this.client.send("/api/settings",i)}async testS3(r="storage",i){return i=Object.assign({method:"POST",body:{filesystem:r}},i),this.client.send("/api/settings/test/s3",i).then((()=>!0))}async testEmail(r,i,s,c){return c=Object.assign({method:"POST",body:{email:i,template:s,collection:r}},c),this.client.send("/api/settings/test/email",c).then((()=>!0))}async generateAppleClientSecret(r,i,s,c,h,y){return y=Object.assign({method:"POST",body:{clientId:r,teamId:i,keyId:s,privateKey:c,duration:h}},y),this.client.send("/api/settings/apple/generate-client-secret",y)}}const sT=["requestKey","$cancelKey","$autoCancel","fetch","headers","body","query","params","cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","signal","window"];function _h(a){if(a){a.query=a.query||{};for(let r in a)sT.includes(r)||(a.query[r]=a[r],delete a[r])}}function wh(a){const r=[];for(const i in a){const s=encodeURIComponent(i),c=Array.isArray(a[i])?a[i]:[a[i]];for(let h of c)h=lT(h),h!==null&&r.push(s+"="+h)}return r.join("&")}function lT(a){return a==null?null:a instanceof Date?encodeURIComponent(a.toISOString().replace("T"," ")):encodeURIComponent(typeof a=="object"?JSON.stringify(a):a)}class Kv extends La{constructor(){super(...arguments),this.clientId="",this.eventSource=null,this.subscriptions={},this.lastSentSubscriptions=[],this.maxConnectTimeout=15e3,this.reconnectAttempts=0,this.maxReconnectAttempts=1/0,this.predefinedReconnectIntervals=[200,300,500,1e3,1200,1500,2e3],this.pendingConnects=[],this.pendingSubmits=[],this.isProcessingPendingSubmits=!1}get isConnected(){return!!this.eventSource&&!!this.clientId&&!this.pendingConnects.length}async subscribe(r,i,s){if(!r)throw new Error("topic must be set.");let c=r;if(s){_h(s=Object.assign({},s));const y="options="+encodeURIComponent(JSON.stringify({query:s.query,headers:s.headers}));c+=(c.includes("?")?"&":"?")+y}const h=function(y){const v=y;let b;try{b=JSON.parse(v?.data)}catch{}i(b||{})};return this.subscriptions[c]||(this.subscriptions[c]=[]),this.subscriptions[c].push(h),this.isConnected?this.subscriptions[c].length===1?await this.submitSubscriptions():this.eventSource?.addEventListener(c,h):await this.connect(),async()=>this.unsubscribeByTopicAndListener(r,h)}async unsubscribe(r){if(r){const i=this.getSubscriptionsByTopic(r);for(let s in i)if(this.hasSubscriptionListeners(s)){for(let c of this.subscriptions[s])this.eventSource?.removeEventListener(s,c);delete this.subscriptions[s]}}else this.subscriptions={};await this.submitSubscriptions()}async unsubscribeByPrefix(r){let i=!1;for(let s in this.subscriptions)if((s+"?").startsWith(r)){i=!0;for(let c of this.subscriptions[s])this.eventSource?.removeEventListener(s,c);delete this.subscriptions[s]}i&&await this.submitSubscriptions()}async unsubscribeByTopicAndListener(r,i){const s=this.getSubscriptionsByTopic(r);for(let c in s){if(!Array.isArray(this.subscriptions[c])||!this.subscriptions[c].length)continue;let h=!1;for(let y=this.subscriptions[c].length-1;y>=0;y--)this.subscriptions[c][y]===i&&(h=!0,delete this.subscriptions[c][y],this.subscriptions[c].splice(y,1),this.eventSource?.removeEventListener(c,i));h&&(this.subscriptions[c].length||delete this.subscriptions[c])}await this.submitSubscriptions()}hasSubscriptionListeners(r){if(this.subscriptions=this.subscriptions||{},r)return!!this.subscriptions[r]?.length;for(let i in this.subscriptions)if(this.subscriptions[i]?.length)return!0;return!1}async submitSubscriptions(){return new Promise(((r,i)=>{this.pendingSubmits.push({resolve:r,reject:i}),this.pendingSubmits.length==1&&queueMicrotask((()=>this.finalizePendingSubscriptions()))}))}async finalizePendingSubscriptions(){if(this.isProcessingPendingSubmits||!this.pendingSubmits.length)return;const r=this.pendingSubmits.slice();this.pendingSubmits=[],this.isProcessingPendingSubmits=!0;try{await this.sendSubscriptions();for(let i of r)i.resolve()}catch(i){for(let s of r)i?s.reject(i):s.resolve()}finally{this.isProcessingPendingSubmits=!1,this.pendingSubmits.length>0&&await this.finalizePendingSubscriptions()}}getSubscriptionsCancelKey(){return"realtime_"+this.clientId}getSubscriptionsByTopic(r){const i={};r=r.includes("?")?r:r+"?";for(let s in this.subscriptions)(s+"?").startsWith(r)&&(i[s]=this.subscriptions[s]);return i}getNonEmptySubscriptionKeys(){const r=[];for(let i in this.subscriptions)this.subscriptions[i].length&&r.push(i);return r}hasUnsentSubscriptions(){const r=this.getNonEmptySubscriptionKeys();if(r.length!=this.lastSentSubscriptions.length)return!0;for(const i of r)if(!this.lastSentSubscriptions.includes(i))return!0;return!1}async sendSubscriptions(){if(this.clientId){if(!this.hasSubscriptionListeners())return this.disconnect();if(this.hasUnsentSubscriptions())return this.addAllSubscriptionListeners(),this.lastSentSubscriptions=this.getNonEmptySubscriptionKeys(),this.client.send("/api/realtime",{method:"POST",body:{clientId:this.clientId,subscriptions:this.lastSentSubscriptions},requestKey:this.getSubscriptionsCancelKey()}).catch((r=>{if(!r?.isAbort)throw r}))}}addAllSubscriptionListeners(){if(this.eventSource){this.removeAllSubscriptionListeners();for(let r in this.subscriptions)for(let i of this.subscriptions[r])this.eventSource.addEventListener(r,i)}}removeAllSubscriptionListeners(){if(this.eventSource)for(let r in this.subscriptions)for(let i of this.subscriptions[r])this.eventSource.removeEventListener(r,i)}async connect(){if(!(this.reconnectAttempts>0))return new Promise(((r,i)=>{this.pendingConnects.push({resolve:r,reject:i}),this.pendingConnects.length==1&&queueMicrotask((()=>this.initConnect()))}))}initConnect(){this.disconnect(!0),clearTimeout(this.connectTimeoutId),this.connectTimeoutId=setTimeout((()=>{this.connectErrorHandler(new Error("EventSource connect took too long."))}),this.maxConnectTimeout),this.eventSource=new EventSource(this.client.buildURL("/api/realtime")),this.eventSource.onerror=r=>{this.connectErrorHandler(new Error("Failed to establish realtime connection."))},this.eventSource.addEventListener("PB_CONNECT",(r=>{const i=r;this.clientId=i?.lastEventId,this.lastSentSubscriptions=[],this.submitSubscriptions().then((async()=>{let s=3;for(;this.hasUnsentSubscriptions()&&s>0;)s--,await this.submitSubscriptions();for(let h of this.pendingConnects)h.resolve();this.pendingConnects=[],this.reconnectAttempts=0,clearTimeout(this.reconnectTimeoutId),clearTimeout(this.connectTimeoutId);const c=this.getSubscriptionsByTopic("PB_CONNECT");for(let h in c)for(let y of c[h])y(r);this.hasUnsentSubscriptions()&&await this.submitSubscriptions()})).catch((s=>{this.clientId="",this.lastSentSubscriptions=[],this.connectErrorHandler(s)}))}))}connectErrorHandler(r){if(clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),!this.clientId&&!this.reconnectAttempts||this.reconnectAttempts>this.maxReconnectAttempts){for(let s of this.pendingConnects)s.reject(new wn(r));return this.pendingConnects=[],void this.disconnect()}this.disconnect(!0);const i=this.predefinedReconnectIntervals[this.reconnectAttempts]||this.predefinedReconnectIntervals[this.predefinedReconnectIntervals.length-1];this.reconnectAttempts++,this.reconnectTimeoutId=setTimeout((()=>{this.initConnect()}),i)}disconnect(r=!1){if(this.clientId&&this.onDisconnect&&this.onDisconnect(Object.keys(this.subscriptions)),clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),this.removeAllSubscriptionListeners(),this.client.cancelRequest(this.getSubscriptionsCancelKey()),this.eventSource?.close(),this.eventSource=null,this.clientId="",this.lastSentSubscriptions=[],!r){this.reconnectAttempts=0;for(let i of this.pendingConnects)i.resolve();this.pendingConnects=[]}}}class Yv extends La{decode(r){return r}async getFullList(r,i){if(typeof r=="number")return this._getFullList(r,i);let s=1e3;return(i=Object.assign({},r,i)).batch&&(s=i.batch,delete i.batch),this._getFullList(s,i)}async getList(r=1,i=30,s){return(s=Object.assign({method:"GET"},s)).query=Object.assign({page:r,perPage:i},s.query),this.client.send(this.baseCrudPath,s).then((c=>(c.items=c.items?.map((h=>this.decode(h)))||[],c)))}async getFirstListItem(r,i){return(i=Object.assign({requestKey:"one_by_filter_"+this.baseCrudPath+"_"+r},i)).query=Object.assign({filter:r,skipTotal:1},i.query),this.getList(1,1,i).then((s=>{if(!s?.items?.length)throw new wn({status:404,response:{code:404,message:"The requested resource wasn't found.",data:{}}});return s.items[0]}))}async getOne(r,i){if(!r)throw new wn({url:this.client.buildURL(this.baseCrudPath+"/"),status:404,response:{code:404,message:"Missing required record id.",data:{}}});return i=Object.assign({method:"GET"},i),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(r),i).then((s=>this.decode(s)))}async create(r,i){return i=Object.assign({method:"POST",body:r},i),this.client.send(this.baseCrudPath,i).then((s=>this.decode(s)))}async update(r,i,s){return s=Object.assign({method:"PATCH",body:i},s),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(r),s).then((c=>this.decode(c)))}async delete(r,i){return i=Object.assign({method:"DELETE"},i),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(r),i).then((()=>!0))}_getFullList(r=1e3,i){(i=i||{}).query=Object.assign({skipTotal:1},i.query);let s=[],c=async h=>this.getList(h,r||1e3,i).then((y=>{const v=y.items;return s=s.concat(v),v.length==y.perPage?c(h+1):s}));return c(1)}}function ai(a,r,i,s){const c=s!==void 0;return c||i!==void 0?c?(console.warn(a),r.body=Object.assign({},r.body,i),r.query=Object.assign({},r.query,s),r):Object.assign(r,i):r}function Hd(a){a._resetAutoRefresh?.()}class uT extends Yv{constructor(r,i){super(r),this.collectionIdOrName=i}get baseCrudPath(){return this.baseCollectionPath+"/records"}get baseCollectionPath(){return"/api/collections/"+encodeURIComponent(this.collectionIdOrName)}get isSuperusers(){return this.collectionIdOrName=="_superusers"||this.collectionIdOrName=="_pbc_2773867675"}async subscribe(r,i,s){if(!r)throw new Error("Missing topic.");if(!i)throw new Error("Missing subscription callback.");return this.client.realtime.subscribe(this.collectionIdOrName+"/"+r,i,s)}async unsubscribe(r){return r?this.client.realtime.unsubscribe(this.collectionIdOrName+"/"+r):this.client.realtime.unsubscribeByPrefix(this.collectionIdOrName)}async getFullList(r,i){if(typeof r=="number")return super.getFullList(r,i);const s=Object.assign({},r,i);return super.getFullList(s)}async getList(r=1,i=30,s){return super.getList(r,i,s)}async getFirstListItem(r,i){return super.getFirstListItem(r,i)}async getOne(r,i){return super.getOne(r,i)}async create(r,i){return super.create(r,i)}async update(r,i,s){return super.update(r,i,s).then((c=>{if(this.client.authStore.record?.id===c?.id&&(this.client.authStore.record?.collectionId===this.collectionIdOrName||this.client.authStore.record?.collectionName===this.collectionIdOrName)){let h=Object.assign({},this.client.authStore.record.expand),y=Object.assign({},this.client.authStore.record,c);h&&(y.expand=Object.assign(h,c.expand)),this.client.authStore.save(this.client.authStore.token,y)}return c}))}async delete(r,i){return super.delete(r,i).then((s=>(!s||this.client.authStore.record?.id!==r||this.client.authStore.record?.collectionId!==this.collectionIdOrName&&this.client.authStore.record?.collectionName!==this.collectionIdOrName||this.client.authStore.clear(),s)))}authResponse(r){const i=this.decode(r?.record||{});return this.client.authStore.save(r?.token,i),Object.assign({},r,{token:r?.token||"",record:i})}async listAuthMethods(r){return r=Object.assign({method:"GET",fields:"mfa,otp,password,oauth2"},r),this.client.send(this.baseCollectionPath+"/auth-methods",r)}async authWithPassword(r,i,s){let c;s=Object.assign({method:"POST",body:{identity:r,password:i}},s),this.isSuperusers&&(c=s.autoRefreshThreshold,delete s.autoRefreshThreshold,s.autoRefresh||Hd(this.client));let h=await this.client.send(this.baseCollectionPath+"/auth-with-password",s);return h=this.authResponse(h),c&&this.isSuperusers&&(function(v,b,_,x){Hd(v);const E=v.beforeSend,O=v.authStore.record,D=v.authStore.onChange(((Y,z)=>{(!Y||z?.id!=O?.id||(z?.collectionId||O?.collectionId)&&z?.collectionId!=O?.collectionId)&&Hd(v)}));v._resetAutoRefresh=function(){D(),v.beforeSend=E,delete v._resetAutoRefresh},v.beforeSend=async(Y,z)=>{const V=v.authStore.token;if(z.query?.autoRefresh)return E?E(Y,z):{url:Y,sendOptions:z};let te=v.authStore.isValid;if(te&&Hv(v.authStore.token,b))try{await _()}catch{te=!1}te||await x();const fe=z.headers||{};for(let le in fe)if(le.toLowerCase()=="authorization"&&V==fe[le]&&v.authStore.token){fe[le]=v.authStore.token;break}return z.headers=fe,E?E(Y,z):{url:Y,sendOptions:z}}})(this.client,c,(()=>this.authRefresh({autoRefresh:!0})),(()=>this.authWithPassword(r,i,Object.assign({autoRefresh:!0},s)))),h}async authWithOAuth2Code(r,i,s,c,h,y,v){let b={method:"POST",body:{provider:r,code:i,codeVerifier:s,redirectURL:c,createData:h}};return b=ai("This form of authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, body?, query?) is deprecated. Consider replacing it with authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, options?).",b,y,v),this.client.send(this.baseCollectionPath+"/auth-with-oauth2",b).then((_=>this.authResponse(_)))}authWithOAuth2(...r){if(r.length>1||typeof r?.[0]=="string")return console.warn("PocketBase: This form of authWithOAuth2() is deprecated and may get removed in the future. Please replace with authWithOAuth2Code() OR use the authWithOAuth2() realtime form as shown in https://pocketbase.io/docs/authentication/#oauth2-integration."),this.authWithOAuth2Code(r?.[0]||"",r?.[1]||"",r?.[2]||"",r?.[3]||"",r?.[4]||{},r?.[5]||{},r?.[6]||{});const i=r?.[0]||{};let s=null;i.urlCallback||(s=Sg(void 0));const c=new Kv(this.client);function h(){s?.close(),c.unsubscribe()}const y={},v=i.requestKey;return v&&(y.requestKey=v),this.listAuthMethods(y).then((b=>{const _=b.oauth2.providers.find((E=>E.name===i.provider));if(!_)throw new wn(new Error(`Missing or invalid provider "${i.provider}".`));const x=this.client.buildURL("/api/oauth2-redirect");return new Promise((async(E,O)=>{const D=v?this.client.cancelControllers?.[v]:void 0;D&&(D.signal.onabort=()=>{h(),O(new wn({isAbort:!0,message:"manually cancelled"}))}),c.onDisconnect=Y=>{Y.length&&O&&(h(),O(new wn(new Error("realtime connection interrupted"))))};try{await c.subscribe("@oauth2",(async te=>{const fe=c.clientId;try{if(!te.state||fe!==te.state)throw new Error("State parameters don't match.");if(te.error||!te.code)throw new Error("OAuth2 redirect error or missing code: "+te.error);const le=Object.assign({},i);delete le.provider,delete le.scopes,delete le.createData,delete le.urlCallback,D?.signal?.onabort&&(D.signal.onabort=null);const re=await this.authWithOAuth2Code(_.name,te.code,_.codeVerifier,x,i.createData,le);E(re)}catch(le){O(new wn(le))}h()}));const Y={state:c.clientId};i.scopes?.length&&(Y.scope=i.scopes.join(" "));const z=this._replaceQueryParams(_.authURL+x,Y);await(i.urlCallback||function(te){s?s.location.href=te:s=Sg(te)})(z)}catch(Y){D?.signal?.onabort&&(D.signal.onabort=null),h(),O(new wn(Y))}}))})).catch((b=>{throw h(),b}))}async authRefresh(r,i){let s={method:"POST"};return s=ai("This form of authRefresh(body?, query?) is deprecated. Consider replacing it with authRefresh(options?).",s,r,i),this.client.send(this.baseCollectionPath+"/auth-refresh",s).then((c=>this.authResponse(c)))}async requestPasswordReset(r,i,s){let c={method:"POST",body:{email:r}};return c=ai("This form of requestPasswordReset(email, body?, query?) is deprecated. Consider replacing it with requestPasswordReset(email, options?).",c,i,s),this.client.send(this.baseCollectionPath+"/request-password-reset",c).then((()=>!0))}async confirmPasswordReset(r,i,s,c,h){let y={method:"POST",body:{token:r,password:i,passwordConfirm:s}};return y=ai("This form of confirmPasswordReset(token, password, passwordConfirm, body?, query?) is deprecated. Consider replacing it with confirmPasswordReset(token, password, passwordConfirm, options?).",y,c,h),this.client.send(this.baseCollectionPath+"/confirm-password-reset",y).then((()=>!0))}async requestVerification(r,i,s){let c={method:"POST",body:{email:r}};return c=ai("This form of requestVerification(email, body?, query?) is deprecated. Consider replacing it with requestVerification(email, options?).",c,i,s),this.client.send(this.baseCollectionPath+"/request-verification",c).then((()=>!0))}async confirmVerification(r,i,s){let c={method:"POST",body:{token:r}};return c=ai("This form of confirmVerification(token, body?, query?) is deprecated. Consider replacing it with confirmVerification(token, options?).",c,i,s),this.client.send(this.baseCollectionPath+"/confirm-verification",c).then((()=>{const h=ls(r),y=this.client.authStore.record;return y&&!y.verified&&y.id===h.id&&y.collectionId===h.collectionId&&(y.verified=!0,this.client.authStore.save(this.client.authStore.token,y)),!0}))}async requestEmailChange(r,i,s){let c={method:"POST",body:{newEmail:r}};return c=ai("This form of requestEmailChange(newEmail, body?, query?) is deprecated. Consider replacing it with requestEmailChange(newEmail, options?).",c,i,s),this.client.send(this.baseCollectionPath+"/request-email-change",c).then((()=>!0))}async confirmEmailChange(r,i,s,c){let h={method:"POST",body:{token:r,password:i}};return h=ai("This form of confirmEmailChange(token, password, body?, query?) is deprecated. Consider replacing it with confirmEmailChange(token, password, options?).",h,s,c),this.client.send(this.baseCollectionPath+"/confirm-email-change",h).then((()=>{const y=ls(r),v=this.client.authStore.record;return v&&v.id===y.id&&v.collectionId===y.collectionId&&this.client.authStore.clear(),!0}))}async listExternalAuths(r,i){return this.client.collection("_externalAuths").getFullList(Object.assign({},i,{filter:this.client.filter("recordRef = {:id}",{id:r})}))}async unlinkExternalAuth(r,i,s){const c=await this.client.collection("_externalAuths").getFirstListItem(this.client.filter("recordRef = {:recordId} && provider = {:provider}",{recordId:r,provider:i}));return this.client.collection("_externalAuths").delete(c.id,s).then((()=>!0))}async requestOTP(r,i){return i=Object.assign({method:"POST",body:{email:r}},i),this.client.send(this.baseCollectionPath+"/request-otp",i)}async authWithOTP(r,i,s){return s=Object.assign({method:"POST",body:{otpId:r,password:i}},s),this.client.send(this.baseCollectionPath+"/auth-with-otp",s).then((c=>this.authResponse(c)))}async impersonate(r,i,s){(s=Object.assign({method:"POST",body:{duration:i}},s)).headers=s.headers||{},s.headers.Authorization||(s.headers.Authorization=this.client.authStore.token);const c=new Eh(this.client.baseURL,new Sh,this.client.lang),h=await c.send(this.baseCollectionPath+"/impersonate/"+encodeURIComponent(r),s);return c.authStore.save(h?.token,this.decode(h?.record||{})),c}_replaceQueryParams(r,i={}){let s=r,c="";r.indexOf("?")>=0&&(s=r.substring(0,r.indexOf("?")),c=r.substring(r.indexOf("?")+1));const h={},y=c.split("&");for(const v of y){if(v=="")continue;const b=v.split("=");h[decodeURIComponent(b[0].replace(/\+/g," "))]=decodeURIComponent((b[1]||"").replace(/\+/g," "))}for(let v in i)i.hasOwnProperty(v)&&(i[v]==null?delete h[v]:h[v]=i[v]);c="";for(let v in h)h.hasOwnProperty(v)&&(c!=""&&(c+="&"),c+=encodeURIComponent(v.replace(/%20/g,"+"))+"="+encodeURIComponent(h[v].replace(/%20/g,"+")));return c!=""?s+"?"+c:s}}function Sg(a){if(typeof window>"u"||!window?.open)throw new wn(new Error("Not in a browser context - please pass a custom urlCallback function."));let r=1024,i=768,s=window.innerWidth,c=window.innerHeight;r=r>s?s:r,i=i>c?c:i;let h=s/2-r/2,y=c/2-i/2;return window.open(a,"popup_window","width="+r+",height="+i+",top="+y+",left="+h+",resizable,menubar=no")}class cT extends Yv{get baseCrudPath(){return"/api/collections"}async import(r,i=!1,s){return s=Object.assign({method:"PUT",body:{collections:r,deleteMissing:i}},s),this.client.send(this.baseCrudPath+"/import",s).then((()=>!0))}async truncate(r,i){return i=Object.assign({method:"DELETE"},i),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(r)+"/truncate",i).then((()=>!0))}async getScaffolds(r){return r=Object.assign({method:"GET"},r),this.client.send(this.baseCrudPath+"/meta/scaffolds",r)}async getAllOAuth2Providers(r){return r=Object.assign({method:"GET"},r),this.client.send(this.baseCrudPath+"/meta/oauth2-providers",r)}async dryRunViewQuery(r,i){return i=Object.assign({method:"POST",body:{query:r}},i),this.client.send(this.baseCrudPath+"/meta/dry-run-view",i)}}class fT extends La{async getList(r=1,i=30,s){return(s=Object.assign({method:"GET"},s)).query=Object.assign({page:r,perPage:i},s.query),this.client.send("/api/logs",s)}async getOne(r,i){if(!r)throw new wn({url:this.client.buildURL("/api/logs/"),status:404,response:{code:404,message:"Missing required log id.",data:{}}});return i=Object.assign({method:"GET"},i),this.client.send("/api/logs/"+encodeURIComponent(r),i)}async getStats(r){return r=Object.assign({method:"GET"},r),this.client.send("/api/logs/stats",r)}async truncate(r){return r=Object.assign({method:"DELETE"},r),this.client.send("/api/logs",r).then((()=>!0))}}class dT extends La{async check(r){return r=Object.assign({method:"GET"},r),this.client.send("/api/health",r)}}class hT extends La{getUrl(r,i,s={}){return console.warn("Please replace pb.files.getUrl() with pb.files.getURL()"),this.getURL(r,i,s)}getURL(r,i,s={}){if(!i||!r?.id||!r?.collectionId&&!r?.collectionName)return"";const c=[];c.push("api"),c.push("files"),c.push(encodeURIComponent(r.collectionId||r.collectionName)),c.push(encodeURIComponent(r.id)),c.push(encodeURIComponent(i));let h=this.client.buildURL(c.join("/"));s.download===!1&&delete s.download;const y=wh(s);return y&&(h+=(h.includes("?")?"&":"?")+y),h}async getToken(r){return r=Object.assign({method:"POST"},r),this.client.send("/api/files/token",r).then((i=>i?.token||""))}}class pT extends La{async getFullList(r){return r=Object.assign({method:"GET"},r),this.client.send("/api/backups",r)}async create(r,i){return i=Object.assign({method:"POST",body:{name:r}},i),this.client.send("/api/backups",i).then((()=>!0))}async upload(r,i){return i=Object.assign({method:"POST",body:r},i),this.client.send("/api/backups/upload",i).then((()=>!0))}async delete(r,i){return i=Object.assign({method:"DELETE"},i),this.client.send(`/api/backups/${encodeURIComponent(r)}`,i).then((()=>!0))}async restore(r,i){return i=Object.assign({method:"POST"},i),this.client.send(`/api/backups/${encodeURIComponent(r)}/restore`,i).then((()=>!0))}getDownloadUrl(r,i){return console.warn("Please replace pb.backups.getDownloadUrl(
27) with pb.backups.getDownloadURL()"),this.getDownloadURL(r,i)}getDownloadURL(r,i){return this.client.buildURL(`/api/backups/${encodeURIComponent(i)}?token=${encodeURIComponent(r)}`)}}class mT extends La{async getFullList(r){return r=Object.assign({method:"GET"},r),this.client.send("/api/crons",r)}async run(r,i){return i=Object.assign({method:"POST"},i),this.client.send(`/api/crons/${encodeURIComponent(r)}`,i).then((()=>!0))}}class yT extends La{async run(r,i){return i=Object.assign({method:"POST",body:{query:r}},i),this.client.send("/api/sql",i)}}function Jd(a){return typeof Blob<"u"&&a instanceof Blob||typeof File<"u"&&a instanceof File||a!==null&&typeof a=="object"&&a.uri&&(typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal)}function $d(a){return a&&(a.constructor?.name==="FormData"||typeof FormData<"u"&&a instanceof FormData)}function _g(a){for(const r in a){const i=Array.isArray(a[r])?a[r]:[a[r]];for(const s of i)if(Jd(s))return!0}return!1}const gT=/^[\-\.\d]+$/;function wg(a){if(typeof a!="string")return a;
27if(a=="true")return!0;if(a=="false")return!1;if((a[0]==="-"||a[0]>="0"&&a[0]<="9")&&gT.test(a)){let r=+a;if(""+r===a)return r}return a}class vT extends La{constructor(){super(...arguments),this.requests=[],this.subs={}}collection(r){return this.subs[r]||(this.subs[r]=new bT(this.requests,r)),this.subs[r]}async send(r){const i=new FormData,s=[];for(let c=0;c<this.requests.length;c++){const h=this.requests[c];if(s.push({method:h.method,url:h.url,headers:h.headers,body:h.json}),h.files)for(let y in h.files){const v=h.files[y]||[];for(let b of v)i.append("requests."+c+"."+y,b)}}return i.append("@jsonPayload",JSON.stringify({requests:s})),r=Object.assign({method:"POST",body:i},r),this.client.send("/api/batch",r)}}class bT{constructor(r,i){this.requests=[],this.requests=r,this.collectionIdOrName=i}upsert(r,i){i=Object.assign({body:r||{}},i);const s={method:"PUT",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(s,i),this.requests.push(s)}create(r,i){i=Object.assign({body:r||{}},i);const s={method:"POST",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(s,i),this.requests.push(s)}update(r,i,s){s=Object.assign({body:i||{}},s);const c={method:"PATCH",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(r)};this.prepareRequest(c,s),this.requests.push(c)}delete(r,i){i=Object.assign({},i);const s={method:"DELETE",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(r)};this.prepareRequest(s,i),this.requests.push(s)}prepareRequest(r,i){if(_h(i),r.headers=i.headers,r.json={},r.files={},i.query!==void 0){const c=wh(i.query);c&&(r.url+=(r.url.includes("?")?"&":"?")+c)}let s=i.body;$d(s)&&(s=(function(h){let y={};return h.forEach(((v,b)=>{if(b==="@jsonPayload"&&typeof v=="string")try{let _=JSON.parse(v);Object.assign(y,_)}catch(_){console.warn("@jsonPayload error:",_)}else y[b]!==void 0?(Array.isArray(y[b])||(y[b]=[y[b]]),y[b].push(wg(v))):y[b]=wg(v)})),y})(s));for(const c in s){const h=s[c];if(Jd(h))r.files[c]=r.files[c]||[],r.files[c].push(h);else if(Array.isArray(h)){const y=[],v=[];for(const b of h)Jd(b)?y.push(b):v.push(b);if(y.length>0&&y.length==h.length){r.files[c]=r.files[c]||[];for(let b of y)r.files[c].push(b)}else if(r.json[c]=v,y.length>0){let b=c;c.startsWith("+")||c.endsWith("+")||(b+="+"),r.files[b]=r.files[b]||[];for(let _ of y)r.files[b].push(_)}}else r.json[c]=h}}}class Eh{get baseUrl(){return this.baseURL}set baseUrl(r){this.baseURL=r}constructor(r="/",i,s="en-US"){this.cancelControllers={},this.recordServices={},this.enableAutoCancellation=!0,this.baseURL=r,this.lang=s,i?this.authStore=i:typeof window<"u"&&window.Deno?this.authStore=new Sh:this.authStore=new iT,this.collections=new cT(this),this.files=new hT(this),this.logs=new fT(this),this.settings=new oT(this),this.realtime=new Kv(this),this.health=new dT(this),this.backups=new pT(this),this.crons=new mT(this),this.sql=new yT(this)}get admins(){return this.collection("_superusers")}createBatch(){return new vT(this)}collection(r){return this.recordServices[r]||(this.recordServices[r]=new uT(this,r)),this.recordServices[r]}autoCancellation(r){return this.enableAutoCancellation=!!r,this}cancelRequest(r){return this.cancelControllers[r]&&(this.cancelControllers[r].abort(),delete this.cancelControllers[r]),this}cancelAllRequests(){for(let r in this.cancelControllers)this.cancelControllers[r].abort();return this.cancelControllers={},this}filter(r,i){if(!i)return r;function s(c){switch(typeof c){case"boolean":case"number":return""+c;case"string":return JSON.stringify(c);default:if(c==null)return"null";if(c instanceof Date)return JSON.stringify(c.toISOString().replace("T"," "));{const h=JSON.stringify(c);return h.startsWith("[")||h.startsWith("{")?JSON.stringify(h):h}}}for(let c in i)r=r.replaceAll("{:"+c+"}",s(i[c]));return r}getFileUrl(r,i,s={}){return console.warn("Please replace pb.getFileUrl() with pb.files.getURL()"),this.files.getURL(r,i,s)}buildUrl(r){return console.warn("Please replace pb.buildUrl() with pb.buildURL()"),this.buildURL(r)}buildURL(r){let i=this.baseURL;return typeof window>"u"||!window.location||i.startsWith("https://")||i.startsWith("http://")||(i=window.location.origin?.endsWith("/")?window.location.origin.substring(0,window.location.origin.length-1):window.location.origin||"",this.baseURL.startsWith("/")||(i+=window.location.pathname||"/",i+=i.endsWith("/")?"":"/"),i+=this.baseURL),r&&(i+=i.endsWith("/")?"":"/",i+=r.startsWith("/")?r.substring(1):r),i}async send(r,i){i=this.initSendOptions(r,i);let s=this.buildURL(r);if(this.beforeSend){const c=Object.assign({},await this.beforeSend(s,i));c.url!==void 0||c.options!==void 0?(s=c.url||s,i=c.options||i):Object.keys(c).length&&(i=c,console?.warn&&console.warn("Deprecated format of beforeSend return: please use `return { url, options }`, instead of `return options`."))}if(i.query!==void 0){const c=wh(i.query);c&&(s+=(s.includes("?")?"&":"?")+c),delete i.query}return this.getHeader(i.headers,"Content-Type")=="application/json"&&i.body&&typeof i.body!="string"&&(i.body=JSON.stringify(i.body)),(i.fetch||fetch)(s,i).then((async c=>{let h={};try{h=await c.json()}catch(y){if(i.signal?.aborted||y?.name=="AbortError"||y?.message=="Aborted")throw y}
27if(this.afterSend&&(h=await this.afterSend(c,h,i)),c.status>=400)throw new wn({url:c.url,status:c.status,data:h});return h})).catch((c=>{throw new wn(c)}))}initSendOptions(r,i){if((i=Object.assign({method:"GET"},i)).body=(function(c){if(typeof FormData>"u"||c===void 0||typeof c!="object"||c===null||$d(c)||!_g(c))return c;const h=new FormData;for(const y in c){const v=c[y];if(v!==void 0)if(typeof v!="object"||_g({data:v})){const b=Array.isArray(v)?v:[v];for(let _ of b)h.append(y,_)}else{let b={};b[y]=v,h.append("@jsonPayload",JSON.stringify(b))}}return h})(i.body),_h(i),i.query=Object.assign({},i.params,i.query),i.requestKey===void 0&&(i.$autoCancel===!1||i.query.$autoCancel===!1?i.requestKey=null:(i.$cancelKey||i.query.$cancelKey)&&(i.requestKey=i.$cancelKey||i.query.$cancelKey)),delete i.$autoCancel,delete i.query.$autoCancel,delete i.$cancelKey,delete i.query.$cancelKey,this.getHeader(i.headers,"Content-Type")!==null||$d(i.body)||(i.headers=Object.assign({},i.headers,{"Content-Type":"application/json"})),this.getHeader(i.headers,"Accept-Language")===null&&(i.headers=Object.assign({},i.headers,{"Accept-Language":this.lang})),this.authStore.token&&this.getHeader(i.headers,"Authorization")===null&&(i.headers=Object.assign({},i.headers,{Authorization:this.authStore.token})),this.enableAutoCancellation&&i.requestKey!==null){const s=i.requestKey||(i.method||"GET")+r;delete i.requestKey,this.cancelRequest(s);const c=new AbortController;this.cancelControllers[s]=c,i.signal=c.signal}return i}getHeader(r,i){r=r||{},i=i.toLowerCase();for(let s in r)if(s.toLowerCase()==i)return r[s];return null}}const Gv=typeof window<"u"?"https://toodoobackend.up.railway.app":"http://127.0.0.1:8090",gn=new Eh(Gv);gn.autoCancellation(!1);function lR(){const a=new Eh(Gv,gn.authStore);return a.autoCancellation(!1),a}function uR(a){const r=a;return r.status===400&&r.response?.message==="Invalid realtime client."}var $u={exports:{}},ST=$u.exports,Eg;function _T(){return Eg||(Eg=1,(function(a,r){((i,s)=>{a.exports=s()})(ST,function(){var i=function(l,d){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(p,m){p.__proto__=m}:function(p,m){for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(p[S]=m[S])}))(l,d)},s=function(){return(s=Object.assign||function(l){for(var d,p=1,m=arguments.length;p<m;p++)for(var S in d=arguments[p])Object.prototype.hasOwnProperty.call(d,S)&&(l[S]=d[S]);return l}).apply(this,arguments)};function c(l,d,p){for(var m,S=0,w=d.length;S<w;S++)!m&&S in d||((m=m||Array.prototype.slice.call(d,0,S))[S]=d[S]);return l.concat(m||Array.prototype.slice.call(d))}var h=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:f0,y=Object.keys,v=Array.isArray;function b(l,d){return typeof d=="object"&&y(d).forEach(function(p){l[p]=d[p]}),l}typeof Promise>"u"||h.Promise||(h.Promise=Promise);var _=Object.getPrototypeOf,x={}.hasOwnProperty;function E(l,d){return x.call(l,d)}function O(l,d){typeof d=="function"&&(d=d(_(l))),(typeof Reflect>"u"?y:Reflect.ownKeys)(d).forEach(function(p){Y(l,p,d[p])})}var D=Object.defineProperty;function Y(l,d,p,m){D(l,d,b(p&&E(p,"get")&&typeof p.get=="function"?{get:p.get,set:p.set,configurable:!0}:{value:p,configurable:!0,writable:!0},m))}function z(l){return{from:function(d){return l.prototype=Object.create(d.prototype),Y(l.prototype,"constructor",l),{extend:O.bind(null,l.prototype)}}}}var V=Object.getOwnPropertyDescriptor,te=[].slice;function fe(l,d,p){return te.call(l,d,p)}function le(l,d){return d(l)}function re(l){if(!l)throw new Error("Assertion Failed")}function Ce(l){h.setImmediate?setImmediate(l):setTimeout(l,0)}function Te(l,d){if(typeof d=="string"&&E(l,d))return l[d];if(!d)return l;if(typeof d!="string"){for(var p=[],m=0,S=d.length;m<S;++m){var w=Te(l,d[m]);p.push(w)}return p}var A,C=d.indexOf(".");return C===-1||(A=l[d.substr(0,C)])==null?void 0:Te(A,d.substr(C+1))}function ue(l,d,p){if(l&&d!==void 0&&!("isFrozen"in Object&&Object.isFrozen(l)))if(typeof d!="string"&&"length"in d){re(typeof p!="string"&&"length"in p);for(var m=0,S=d.length;m<S;++m)ue(l,d[m],p[m])}else{var w,A,C=d.indexOf(".");C!==-1?(w=d.substr(0,C),(C=d.substr(C+1))===""?p===void 0?v(l)&&!isNaN(parseInt(w))?l.splice(w,1):delete l[w]:l[w]=p:ue(A=(A=l[w])&&E(l,w)?A:l[w]={},C,p)):p===void 0?v(l)&&!isNaN(parseInt(d))?l.splice(d,1):delete l[d]:l[d]=p}}function ce(l){var d,p={};for(d in l)E(l,d)&&(p[d]=l[d]);return p}var Ee=[].concat;function He(l){return Ee.apply([],l)}var ie="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(He([8,16,32,64].map(function(l){return["Int","Uint","Float"].map(function(d){return d+l+"Array"})}))).filter(function(l){return h[l]}),Be=new Set(ie.map(function(l){return h[l]})),Ue=null;function Xe(l){return Ue=new WeakMap,l=(function d(p){if(!p||typeof p!="object")return p;var m=Ue.get(p);if(m)return m;if(v(p)){m=[],Ue.set(p,m);for(var S=0,w=p.length;S<w;++S)m.push(d(p[S]))}else if(Be.has(p.constructor))m=p;else{var A,C=_(p);for(A in m=C===Object.prototype?{}:Object.create(C),Ue.set(p,m),p)E(p,A)&&(m[A]=d(p[A]))}return m})(l),Ue=null,l}var Ye={}.toString;function Dt(l){return Ye.call(l).slice(8,-1)}var ee=typeof Symbol<"u"?Symbol.iterator:"@@iterator",ve=typeof ee=="symbol"?function(l){var d;return l!=null&&(d=l[ee])&&d.apply(l)}:function(){return null};function Le(l,d){d=l.indexOf(d),0<=d&&l.splice(d,1)}var et={};function Je(l){var d,p,m,S;if(arguments.length===1){if(v(l))return l.slice();if(this===et&&typeof l=="string")return[l];if(S=ve(l))for(p=[];!(m=S.next()).done;)p.push(m.value);else{if(l==null)return[l];if(typeof(d=l.length)!="number")return[l];for(p=new Array(d);d--;)p[d]=l[d]}}else for(d=arguments.length,p=new Array(d);d--;)p[d]=arguments[d];return p}var K=typeof Symbol<"u"?function(l){return l[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},ie=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Ze=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ie),Se={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function be(l,d){this.name=l,this.message=d}function qe(l,d){return l+". Errors: "+Object.keys(d).map(function(p){return d[p].toString()}).filter(function(p,m,S){return S.indexOf(p)===m}).join(` 28`)}function Ke(l,d,p,m){this.failures=d,this.failedKeys=m,this.successCount=p,this.message=qe(l,d)}function Qe(l,d){this.name="BulkError",this.failures=Object.keys(d).map(function(p){return d[p]}),this.failuresByPos=d,this.message=qe(l,this.failures)}z(be).from(Error).extend({toString:function(){return this.name+": "+this.message}}),z(Ke).from(be),z(Qe).from(be);var zt=Ze.reduce(function(l,d){return l[d]=d+"Error",l},{}),wt=be,Me=Ze.reduce(function(l,d){var p=d+"Error";function m(S,w){this.name=p,S?typeof S=="string"?(this.message="".concat(S).concat(w?` 29 `+w:""),this.inner=w||null):typeof S=="object"&&(this.message="".concat(S.name," ").concat(S.message),this.inner=S):(this.message=Se[d]||p,this.inner=null)}return z(m).from(wt),l[d]=m,l},{}),Yn=(Me.Syntax=SyntaxError,Me.Type=TypeError,Me.Range=RangeError,ie.reduce(function(l,d){return l[d+"Error"]=Me[d],l},{}));ie=Ze.reduce(function(l,d){return["Syntax","Type","Range"].indexOf(d)===-1&&(l[d+"Error"]=Me[d]),l},{});function it(){}function ia(l){return l}function oa(l,d){return l==null||l===ia?d:function(p){return d(l(p))}}function Tn(l,d){return function(){l.apply(this,arguments),d.apply(this,arguments)}}function br(l,d){return l===it?d:function(){var p=l.apply(this,arguments),m=(p!==void 0&&(arguments[0]=p),this.onsuccess),S=this.onerror,w=(this.onsuccess=null,this.onerror=null,d.apply(this,arguments));return m&&(this.onsuccess=this.onsuccess?Tn(m,this.onsuccess):m),S&&(this.onerror=this.onerror?Tn(S,this.onerror):S),w!==void 0?w:p}}function ha(l,d){return l===it?d:function(){l.apply(this,arguments);var p=this.onsuccess,m=this.onerror;this.onsuccess=this.onerror=null,d.apply(this,arguments),p&&(this.onsuccess=this.onsuccess?Tn(p,this.onsuccess):p),m&&(this.onerror=this.onerror?Tn(m,this.onerror):m)}}function Sr(l,d){return l===it?d:function(S){var m=l.apply(this,arguments),S=(b(S,m),this.onsuccess),w=this.onerror,A=(this.onsuccess=null,this.onerror=null,d.apply(this,arguments));return S&&(this.onsuccess=this.onsuccess?Tn(S,this.onsuccess):S),w&&(this.onerror=this.onerror?Tn(w,this.onerror):w),m===void 0?A===void 0?void 0:A:b(m,A)}}function zn(l,d){return l===it?d:function(){return d.apply(this,arguments)!==!1&&l.apply(this,arguments)}}function ja(l,d){return l===it?d:function(){var p=l.apply(this,arguments);if(p&&typeof p.then=="function"){for(var m=this,S=arguments.length,w=new Array(S);S--;)w[S]=arguments[S];return p.then(function(){return d.apply(m,w)})}return d.apply(this,arguments)}}ie.ModifyError=Ke,ie.DexieError=be,ie.BulkError=Qe;var fn=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function hi(l){fn=l}var Na={}
vendor: 56,039 bytes, line 29
29,$t=100,Ua=typeof Promise>"u"?[]:(Ze=Promise.resolve(),typeof crypto<"u"&&crypto.subtle?[Ua=crypto.subtle.digest("SHA-512",new Uint8Array([0])),_(Ua),Ze]:[Ze,_(Ze),Ze]),Ze=Ua[0],Fa=Ua[1],Fa=Fa&&Fa.then,yt=Ze&&Ze.constructor,Kt=!!Ua[2],pa=function(l,d){pi.push([l,d]),io&&(queueMicrotask(Cl),io=!1)},ro=!0,io=!0,ka=[],ma=[],an=ia,rn={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:it,pgp:!1,env:{},finalize:it},Re=rn,pi=[],Ba=0,oo=[];function _e(l){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var d=this._PSD=Re;if(typeof l!="function"){if(l!==Na)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&sa(this,this._value)}else this._state=null,this._value=null,++d.ref,(function p(m,S){try{S(function(w){if(m._state===null){if(w===m)throw new TypeError("A promise cannot be resolved with itself.");var A=m._lib&&ya();w&&typeof w.then=="function"?p(m,function(C,N){w instanceof _e?w._then(C,N):w.then(C,N)}):(m._state=!0,m._value=w,yi(m)),A&&Gn()}},sa.bind(null,m))}catch(w){sa(m,w)}})(this,l)}var _r={get:function(){var l=Re,d=bi;function p(m,S){var w=this,A=!l.global&&(l!==Re||d!==bi),C=A&&!bn(),N=new _e(function(X,U){qa(w,new mi(so(m,l,A,C),so(S,l,A,C),X,U,l))});return this._consoleTask&&(N._consoleTask=this._consoleTask),N}return p.prototype=Na,p},set:function(l){Y(this,"then",l&&l.prototype===Na?_r:{get:function(){return l},set:_r.set})}};function mi(l,d,p,m,S){this.onFulfilled=typeof l=="function"?l:null,this.onRejected=typeof d=="function"?d:null,this.resolve=p,this.reject=m,this.psd=S}function sa(l,d){var p,m;ma.push(d),l._state===null&&(p=l._lib&&ya(),d=an(d),l._state=!1,l._value=d,m=l,ka.some(function(S){return S._value===m._value})||ka.push(m),yi(l),p)&&Gn()}function yi(l){var d=l._listeners;l._listeners=[];for(var p=0,m=d.length;p<m;++p)qa(l,d[p]);var S=l._PSD;--S.ref||S.finalize(),Ba===0&&(++Ba,pa(function(){--Ba==0&&ds()},[]))}function qa(l,d){if(l._state===null)l._listeners.push(d);else{var p=l._state?d.onFulfilled:d.onRejected;if(p===null)return(l._state?d.resolve:d.reject)(l._value);++d.psd.ref,++Ba,pa(xc,[p,l,d])}}function xc(l,d,p){try{var m,S=d._value;!d._state&&ma.length&&(ma=[]),m=fn&&d._consoleTask?d._consoleTask.run(function(){return l(S)}):l(S),d._state||ma.indexOf(S)!==-1||(w=>{for(var A=ka.length;A;)if(ka[--A]._value===w._value)return ka.splice(A,1)})(d),p.resolve(m)}catch(w){p.reject(w)}finally{--Ba==0&&ds(),--p.psd.ref||p.psd.finalize()}}function Cl(){Ln(rn,function(){ya()&&Gn()})}function ya(){var l=ro;return io=ro=!1,l}function Gn(){var l,d,p;do for(;0<pi.length;)for(l=pi,pi=[],p=l.length,d=0;d<p;++d){var m=l[d];m[0].apply(null,m[1])}while(0<pi.length);io=ro=!0}function ds(){for(var l=ka,d=(ka=[],l.forEach(function(m){m._PSD.onunhandled.call(null,m._value,m)}),oo.slice(0)),p=d.length;p;)d[--p]()}function gi(l){return new _e(Na,!1,l)}function Et(l,d){var p=Re;return function(){var m=ya(),S=Re;try{return va(p,!0),l.apply(this,arguments)}catch(w){d&&d(w)}finally{va(S,!1),m&&Gn()}}}O(_e.prototype,{then:_r,_then:function(l,d){qa(this,new mi(null,null,l,d,Re))},catch:function(l){var d,p;return arguments.length===1?this.then(null,l):(d=l,p=arguments[1],typeof d=="function"?this.then(null,function(m){return(m instanceof d?p:gi)(m)}):this.then(null,function(m){return(m&&m.name===d?p:gi)(m)}))},finally:function(l){return this.then(function(d){return _e.resolve(l()).then(function(){return d})},function(d){return _e.resolve(l()).then(function(){return gi(d)})})},timeout:function(l,d){var p=this;return l<1/0?new _e(function(m,S){var w=setTimeout(function(){return S(new Me.Timeout(d))},l);p.then(m,S).finally(clearTimeout.bind(null,w))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&Y(_e.prototype,Symbol.toStringTag,"Dexie.Promise"),rn.env=ps(),O(_e,{all:function(){var l=Je.apply(null,arguments).map(Er);return new _e(function(d,p){l.length===0&&d([]);var m=l.length;l.forEach(function(S,w){return _e.resolve(S).then(function(A){l[w]=A,--m||d(l)},p)})})},resolve:function(l){return l instanceof _e?l:l&&typeof l.then=="function"?new _e(function(d,p){l.then(d,p)}):new _e(Na,!0,l)},reject:gi,race:function(){var l=Je.apply(null,arguments).map(Er);return new _e(function(d,p){l.map(function(m){return _e.resolve(m).then(d,p)})})},PSD:{get:function(){return Re},set:function(l){return Re=l}},totalEchoes:{get:function(){return bi}},newPSD:xt,usePSD:Ln,scheduler:{get:function(){return pa},set:function(l){pa=l}},rejectionMapper:{get:function(){return an},set:function(l){an=l}},follow:function(l,d){return new _e(function(p,m){return xt(function(S,w){var A=Re;A.unhandleds=[],A.onunhandled=w,A.finalize=Tn(function(){var C,N=this;C=function(){N.unhandleds.length===0?S():w(N.unhandleds[0])},oo.push(function X(){C(),oo.splice(oo.indexOf(X),1)}),++Ba,pa(function(){--Ba==0&&ds()},[])},A.finalize),l()},d,p,m)})}}),yt&&(yt.allSettled&&Y(_e,"allSettled",function(){var l=Je.apply(null,arguments).map(Er);return new _e(function(d){l.length===0&&d([]);var p=l.length,m=new Array(p);l.forEach(function(S,w){return _e.resolve(S).then(function(A){return m[w]={status:"fulfilled",value:A}},function(A){return m[w]={status:"rejected",reason:A}}).then(function(){return--p||d(m)})})})}),yt.any&&typeof AggregateError<"u"&&Y(_e,"any",function(){var l=Je.apply(null,arguments).map(Er);return new _e(function(d,p){l.length===0&&p(new AggregateError([]));var m=l.length,S=new Array(m);l.forEach(function(w,A){return _e.resolve(w).then(function(C){return d(C)},function(C){S[A]=C,--m||p(new AggregateError(S))})})})}),yt.withResolvers)&&(_e.withResolvers=yt.withResolvers);var kt={awaits:0,echoes:0,id:0},hs=0,wr=[],vi=0,bi=0,ga=0;function xt(l,A,p,m){var S=Re,w=Object.create(S),A=(w.parent=S,w.ref=0,w.global=!1,w.id=++ga,rn.env,w.env=Kt?{Promise:_e,PromiseProp:{value:_e,configurable:!0,writable:!0},all:_e.all,race:_e.race,allSettled:_e.allSettled,any:_e.any,resolve:_e.resolve,reject:_e.reject}:{},A&&b(w,A),++S.ref,w.finalize=function(){--this.parent.ref||this.parent.finalize()},Ln(w,l,p,m));return w.ref===0&&w.finalize(),A}function Bt(){return kt.id||(kt.id=++hs),++kt.awaits,kt.echoes+=$t,kt.id}function bn(){return!!kt.awaits&&(--kt.awaits==0&&(kt.id=0),kt.echoes=kt.awaits*$t,!0)}function Er(l){return kt.echoes&&l&&l.constructor===yt?(Bt(),l.then(function(d){return bn(),d},function(d){return bn(),gt(d)})):l}function Oc(){var l=wr[wr.length-1];wr.pop(),va(l,!1)}function va(l,d){var p,m,S=Re;(d?!kt.echoes||vi++&&l===Re:!vi||--vi&&l===Re)||queueMicrotask(d?(function(w){++bi,kt.echoes&&--kt.echoes!=0||(kt.echoes=kt.awaits=kt.id=0),wr.push(Re),va(w,!0)}).bind(null,l):Oc),l!==Re&&(Re=l,S===rn&&(rn.env=ps()),Kt)&&(p=rn.env.Promise,m=l.env,S.global||l.global)&&(Object.defineProperty(h,"Promise",m.PromiseProp),p.all=m.all,p.race=m.race,p.resolve=m.resolve,p.reject=m.reject,m.allSettled&&(p.allSettled=m.allSettled),m.any)&&(p.any=m.any)}function ps(){var l=h.Promise;return Kt?{Promise:l,PromiseProp:Object.getOwnPropertyDescriptor(h,"Promise"),all:l.all,race:l.race,allSettled:l.allSettled,any:l.any,resolve:l.resolve,reject:l.reject}:{}}function Ln(l,d,p,m,S){var w=Re;try{return va(l,!0),d(p,m,S)}finally{va(w,!1)}}function so(l,d,p,m){return typeof l!="function"?l:function(){var S=Re;p&&Bt(),va(d,!0);try{return l.apply(this,arguments)}finally{va(S,!1),m&&queueMicrotask(bn)}}}function ba(l){Promise===yt&&kt.echoes===0?vi===0?l():enqueueNativeMicroTask(l):setTimeout(l,0)}(""+Fa).indexOf("[native code]")===-1&&(Bt=bn=it);var gt=_e.reject,jn="ï¿¿",dn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",qt="String expected.",Pa=[],Si="__dbnames",la="readonly",Sa="readwrite";function Ha(l,d){return l?d?function(){return l.apply(this,arguments)&&d.apply(this,arguments)}:l:d}var ms={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function _i(l){return typeof l!="string"||/\./.test(l)?function(d){return d}:function(d){return d[l]===void 0&&l in d&&delete(d=Xe(d))[l],d}}function Ml(){throw Me.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function $e(l,d){try{var p=wi(l),m=wi(d);if(p!==m)return p==="Array"?1:m==="Array"?-1:p==="binary"?1:m==="binary"?-1:p==="string"?1:m==="string"?-1:p==="Date"?1:m!=="Date"?NaN:-1;switch(p){case"number":case"Date":case"string":return d<l?1:l<d?-1:0;case"binary":for(var S=Vn(l),w=Vn(d),A=S.length,C=w.length,N=A<C?A:C,X=0;X<N;++X)if(S[X]!==w[X])return S[X]<w[X]?-1:1;return A===C?0:A<C?-1:1;case"Array":for(var U=l,j=d,q=U.length,H=j.length,k=q<H?q:H,B=0;B<k;++B){var I=$e(U[B],j[B]);if(I!==0)return I}return q===H?0:q<H?-1:1}}catch{}return NaN}function wi(l){var d=typeof l;return d=="object"&&(ArrayBuffer.isView(l)||(d=Dt(l))==="ArrayBuffer")?"binary":d}function Vn(l){return l instanceof Uint8Array?l:ArrayBuffer.isView(l)?new Uint8Array(l.buffer,l.byteOffset,l.byteLength):new Uint8Array(l)}function on(l,d,p){var m=l.schema.yProps;return m?(d&&0<p.numFailures&&(d=d.filter(function(S,w){return!p.failures[w]})),Promise.all(m.map(function(S){return S=S.updatesTable,d?l.db.table(S).where("k").anyOf(d).delete():l.db.table(S).clear()})).then(function(){return p})):p}Dl.prototype.execute=function(l){var d=this["@@propmod"];if(d.add!==void 0){var p=d.add;if(v(p))return c(c([],v(l)?l:[],!0),p).sort();if(typeof p=="number")return(Number(l)||0)+p;if(typeof p=="bigint")try{return BigInt(l)+p}catch{return BigInt(0)+p}throw new TypeError("Invalid term ".concat(p))}if(d.remove!==void 0){var m=d.remove;if(v(m))return v(l)?l.filter(function(S){return!m.includes(S)}).sort():[];if(typeof m=="number")return Number(l)-m;if(typeof m=="bigint")try{return BigInt(l)-m}catch{return BigInt(0)-m}throw new TypeError("Invalid subtrahend ".concat(m))}return p=(p=d.replacePrefix)==null?void 0:p[0],p&&typeof l=="string"&&l.startsWith(p)?d.replacePrefix[1]+l.substring(p.length):l};var Tr=Dl;function Dl(l){this["@@propmod"]=l}function lo(l,d){for(var p=y(d),m=p.length,S=!1,w=0;w<m;++w){var A=p[w],C=d[A],N=Te(l,A);C instanceof Tr?(ue(l,A,C.execute(N)),S=!0):N!==C&&(ue(l,A,C),S=!0)}return S}ft.prototype._trans=function(l,d,p){var m=this._tx||Re.trans,S=this.name,w=fn&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(l==="readonly"?"read":"write"," ").concat(this.name));function A(X,U,j){if(j.schema[S])return d(j.idbtrans,j);throw new Me.NotFound("Table "+S+" not part of transaction")}var C=ya();try{var N=m&&m.db._novip===this.db._novip?m===Re.trans?m._promise(l,A,p):xt(function(){return m._promise(l,A,p)},{trans:m,transless:Re.transless||Re}):(function X(U,j,q,H){if(U.idbdb&&(U._state.openComplete||Re.letThrough||U._vip)){var k=U._createTransaction(j,q,U._dbSchema);try{k.create(),U._state.PR1398_maxLoop=3}catch(B){return B.name===zt.InvalidState&&U.isOpen()&&0<--U._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),U.close({disableAutoOpen:!1}),U.open().then(function(){return X(U,j,q,H)})):gt(B)}return k._promise(j,function(B,I){return xt(function(){return Re.trans=k,H(B,I,k)})}).then(function(B){if(j==="readwrite")try{k.idbtrans.commit()}catch{}return j==="readonly"?B:k._completion.then(function(){return B})})}if(U._state.openComplete)return gt(new Me.DatabaseClosed(U._state.dbOpenError));if(!U._state.isBeingOpened){if(!U._state.autoOpen)return gt(new Me.DatabaseClosed);U.open().catch(it)}return U._state.dbReadyPromise.then(function(){return X(U,j,q,H)})})(this.db,l,[this.name],A);return w&&(N._consoleTask=w,N=N.catch(function(X){return console.trace(X),gt(X)})),N}finally{C&&Gn()}},ft.prototype.get=function(l,d){var p=this;return l&&l.constructor===Object?this.where(l).first(d):l==null?gt(new Me.Type("Invalid argument to Table.get()")):this._trans("readonly",function(m){return p.core.get({trans:m,key:l}).then(function(S){return p.hook.reading.fire(S)})}).then(d)},ft.prototype.where=function(l){if(typeof l=="string")return new this.db.WhereClause(this,l);if(v(l))return new this.db.WhereClause(this,"[".concat(l.join("+"),"]"));var d=y(l);if(d.length===1)return this.where(d[0]).equals(l[d[0]]);var p=this.schema.indexes.concat(this.schema.primKey).filter(function(C){if(C.compound&&d.every(function(X){return 0<=C.keyPath.indexOf(X)})){for(var N=0;N<d.length;++N)if(d.indexOf(C.keyPath[N])===-1)return!1;return!0}return!1}).sort(function(C,N){return C.keyPath.length-N.keyPath.length})[0];if(p&&this.db._maxKey!==jn)return A=p.keyPath.slice(0,d.length),this.where(A).equals(A.map(function(C){return l[C]}));!p&&fn&&console.warn("The query ".concat(JSON.stringify(l)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(d.join("+"),"]"));var m=this.schema.idxByName;function S(C,N){return $e(C,N)===0}var A=d.reduce(function(U,N){var X=U[0],U=U[1],j=m[N],q=l[N];return[X||j,X||!j?Ha(U,j&&j.multi?function(H){return H=Te(H,N),v(H)&&H.some(function(k){return S(q,k)})}:function(H){return S(q,Te(H,N))}):U]},[null,null]),w=A[0],A=A[1];return w?this.where(w.name).equals(l[w.keyPath]).filter(A):p?this.filter(A):this.where(d).equals("")},ft.prototype.filter=function(l){return this.toCollection().and(l)},ft.prototype.count=function(l){return this.toCollection().count(l)},ft.prototype.offset=function(l){return this.toCollection().offset(l)},ft.prototype.limit=function(l){return this.toCollection().limit(l)},ft.prototype.each=function(l){return this.toCollection().each(l)},ft.prototype.toArray=function(l){return this.toCollection().toArray(l)},ft.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},ft.prototype.orderBy=function(l){return new this.db.Collection(new this.db.WhereClause(this,v(l)?"[".concat(l.join("+"),"]"):l))},ft.prototype.reverse=function(){return this.toCollection().reverse()},ft.prototype.mapToClass=function(l){for(var d=this.db,p=this.name,m=((this.schema.mappedClass=l).prototype instanceof Ml&&(l=(A=>{var C=U,N=A;if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function X(){this.constructor=C}function U(){return A!==null&&A.apply(this,arguments)||this}return i(C,N),C.prototype=N===null?Object.create(N):(X.prototype=N.prototype,new X),Object.defineProperty(U.prototype,"db",{get:function(){return d},enumerable:!1,configurable:!0}),U.prototype.table=function(){return p},U})(l)),new Set),S=l.prototype;S;S=_(S))Object.getOwnPropertyNames(S).forEach(function(A){return m.add(A)});function w(A){if(!A)return A;var C,N=Object.create(l.prototype);for(C in A)if(!m.has(C))try{N[C]=A[C]}catch{}return N}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=w,this.hook("reading",w),l},ft.prototype.defineClass=function(){return this.mapToClass(function(l){b(this,l)})},ft.prototype.add=function(l,d){var p=this,m=this.schema.primKey,S=m.auto,w=m.keyPath,A=l;return w&&S&&(A=_i(w)(l)),this._trans("readwrite",function(C){return p.core.mutate({trans:C,type:"add",keys:d!=null?[d]:null,values:[A]})}).then(function(C){return C.numFailures?_e.reject(C.failures[0]):C.lastResult}).then(function(C){if(w)try{ue(l,w,C)}catch{}return C})},ft.prototype.upsert=function(l,d){var p=this,m=this.schema.primKey.keyPath;return this._trans("readwrite",function(S){return p.core.get({trans:S,key:l}).then(function(w){var A=w??{};return lo(A,d),m&&ue(A,m,l),p.core.mutate({trans:S,type:"put",values:[A],keys:[l],upsert:!0,updates:{keys:[l],changeSpecs:[d]}}).then(function(C){return C.numFailures?_e.reject(C.failures[0]):!!w})})})},ft.prototype.update=function(l,d){return typeof l!="object"||v(l)?this.where(":id").equals(l).modify(d):(l=Te(l,this.schema.primKey.keyPath))===void 0?gt(new Me.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(l).modify(d)},ft.prototype.put=function(l,d){var p=this,m=this.schema.primKey,S=m.auto,w=m.keyPath,A=l;return w&&S&&(A=_i(w)(l)),this._trans("readwrite",function(C){return p.core.mutate({trans:C,type:"put",values:[A],keys:d!=null?[d]:null})}).then(function(C){return C.numFailures?_e.reject(C.failures[0]):C.lastResult}).then(function(C){if(w)try{ue(l,w,C)}catch{}return C})},ft.prototype.delete=function(l){var d=this;return this._trans("readwrite",function(p){return d.core.mutate({trans:p,type:"delete",keys:[l]}).then(function(m){return on(d,[l],m)}).then(function(m){return m.numFailures?_e.reject(m.failures[0]):void 0})})},ft.prototype.clear=function(){var l=this;return this._trans("readwrite",function(d){return l.core.mutate({trans:d,type:"deleteRange",range:ms}).then(function(p){return on(l,null,p)})}).then(function(d){return d.numFailures?_e.reject(d.failures[0]):void 0})},ft.prototype.bulkGet=function(l){var d=this;return this._trans("readonly",function(p){return d.core.getMany({keys:l,trans:p}).then(function(m){return m.map(function(S){return d.hook.reading.fire(S)})})})},ft.prototype.bulkAdd=function(l,d,p){var m=this,S=Array.isArray(d)?d:void 0,w=(p=p||(S?void 0:d))?p.allKeys:void 0;return this._trans("readwrite",function(A){var C=m.schema.primKey,X=C.auto,C=C.keyPath;if(C&&S)throw new Me.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(S&&S.length!==l.length)throw new Me.InvalidArgument("Arguments objects and keys must have the same length");var N=l.length,X=C&&X?l.map(_i(C)):l;return m.core.mutate({trans:A,type:"add",keys:S,values:X,wantResults:w}).then(function(U){var j=U.numFailures,q=U.failures;if(j===0)return w?U.results:U.lastResult;throw new Qe("".concat(m.name,".bulkAdd(): ").concat(j," of ").concat(N," operations failed"),q)})})},ft.prototype.bulkPut=function(l,d,p){var m=this,S=Array.isArray(d)?d:void 0,w=(p=p||(S?void 0:d))?p.allKeys:void 0;return this._trans("readwrite",function(A){var C=m.schema.primKey,X=C.auto,C=C.keyPath;if(C&&S)throw new Me.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(S&&S.length!==l.length)throw new Me.InvalidArgument("Arguments objects and keys must have the same length");var N=l.length,X=C&&X?l.map(_i(C)):l;return m.core.mutate({trans:A,type:"put",keys:S,values:X,wantResults:w}).then(function(U){var j=U.numFailures,q=U.failures;if(j===0)return w?U.results:U.lastResult;throw new Qe("".concat(m.name,".bulkPut(): ").concat(j," of ").concat(N," operations failed"),q)})})},ft.prototype.bulkUpdate=function(l){var d=this,p=this.core,m=l.map(function(A){return A.key}),S=l.map(function(A){return A.changes}),w=[];return this._trans("readwrite",function(A){return p.getMany({trans:A,keys:m,cache:"clone"}).then(function(C){var N=[],X=[],U=(l.forEach(function(j,q){var H=j.key,k=j.changes,B=C[q];if(B){for(var I=0,J=Object.keys(k);I<J.length;I++){var Q=J[I],ne=k[Q];if(Q===d.schema.primKey.keyPath){if($e(ne,H)!==0)throw new Me.Constraint("Cannot update primary key in bulkUpdate()")}else ue(B,Q,ne)}w.push(q),N.push(H),X.push(B)}}),N.length);return p.mutate({trans:A,type:"put",keys:N,values:X,updates:{keys:m,changeSpecs:S}}).then(function(j){var q=j.numFailures,H=j.failures;if(q===0)return U;for(var k=0,B=Object.keys(H);k<B.length;k++){var I,J=B[k],Q=w[Number(J)];Q!=null&&(I=H[J],delete H[J],H[Q]=I)}throw new Qe("".concat(d.name,".bulkUpdate(): ").concat(q," of ").concat(U," operations failed"),H)})})})},ft.prototype.bulkDelete=function(l){var d=this,p=l.length;return this._trans("readwrite",function(m){return d.core.mutate({trans:m,type:"delete",keys:l}).then(function(S){return on(d,l,S)})}).then(function(m){var S=m.numFailures,w=m.failures;if(S===0)return m.lastResult;throw new Qe("".concat(d.name,".bulkDelete(): ").concat(S," of ").concat(p," operations failed"),w)})};var ys=ft;function ft(){}function Ei(l){function d(A,C){if(C){for(var N=arguments.length,X=new Array(N-1);--N;)X[N-1]=arguments[N];return p[A].subscribe.apply(null,X),l}if(typeof A=="string")return p[A]}var p={};d.addEventType=w;for(var m=1,S=arguments.length;m<S;++m)w(arguments[m]);return d;function w(A,C,N){var X,U;if(typeof A!="object")return C=C||zn,U={subscribers:[],fire:N=N||it,subscribe:function(j){U.subscribers.indexOf(j)===-1&&(U.subscribers.push(j),U.fire=C(U.fire,j))},unsubscribe:function(j){U.subscribers=U.subscribers.filter(function(q){return q!==j}),U.fire=U.subscribers.reduce(C,N)}},p[A]=d[A]=U;y(X=A).forEach(function(j){var q=X[j];if(v(q))w(j,X[j][0],X[j][1]);else{if(q!=="asap")throw new Me.InvalidArgument("Invalid event config");var H=w(j,ia,function(){for(var k=arguments.length,B=new Array(k);k--;)B[k]=arguments[k];H.subscribers.forEach(function(I){Ce(function(){I.apply(null,B)})})})}})}}function Wt(l,d){return z(d).from({prototype:l}),d}function _a(l,d){return!(l.filter||l.algorithm||l.or)&&(d?l.justLimit:!l.replayFilter)}function uo(l,d){l.filter=Ha(l.filter,d)}function Ti(l,d,p){var m=l.replayFilter;l.replayFilter=m?function(){return Ha(m(),d())}:d,l.justLimit=p&&!m}function ua(l,d){if(l.isPrimKey)return d.primaryKey;var p=d.getIndexByKeyPath(l.index);if(p)return p;throw new Me.Schema("KeyPath "+l.index+" on object store "+d.name+" is not indexed")}function gs(l,d,p){var m=ua(l,d.schema);return d.openCursor({trans:p,values:!l.keysOnly,reverse:l.dir==="prev",unique:!!l.unique,query:{index:m,range:l.range}})}function Ri(l,d,p,m){var S,w,A=l.replayFilter?Ha(l.filter,l.replayFilter()):l.filter;return l.or?(S={},w=function(C,N,X){var U,j;A&&!A(N,X,function(q){return N.stop(q)},function(q){return N.fail(q)})||((j=""+(U=N.primaryKey))=="[object ArrayBuffer]"&&(j=""+new Uint8Array(U)),E(S,j))||(S[j]=!0,d(C,N,X))},Promise.all([l.or._iterate(w,p),Ka(gs(l,m,p),l.algorithm,w,!l.keysOnly&&l.valueMapper)])):Ka(gs(l,m,p),Ha(l.algorithm,A),d,!l.keysOnly&&l.valueMapper)}function Ka(l,d,p,m){var S=Et(m?function(w,A,C){return p(m(w),A,C)}:p);return l.then(function(w){if(w)return w.start(function(){var A=function(){return w.continue()};d&&!d(w,function(C){return A=C},function(C){w.stop(C),A=it},function(C){w.fail(C),A=it})||S(w.value,w,function(C){return A=C}),A()})})}ot.prototype._read=function(l,d){var p=this._ctx;return p.error?p.table._trans(null,gt.bind(null,p.error)):p.table._trans("readonly",l).then(d)},ot.prototype._write=function(l){var d=this._ctx;return d.error?d.table._trans(null,gt.bind(null,d.error)):d.table._trans("readwrite",l,"locked")},ot.prototype._addAlgorithm=function(l){var d=this._ctx;d.algorithm=Ha(d.algorithm,l)},ot.prototype._iterate=function(l,d){return Ri(this._ctx,l,d,this._ctx.table.core)},ot.prototype.clone=function(l){var d=Object.create(this.constructor.prototype),p=Object.create(this._ctx);return l&&b(p,l),d._ctx=p,d},ot.prototype.raw=function(){return this._ctx.valueMapper=null,this},ot.prototype.each=function(l){var d=this._ctx;return this._read(function(p){return Ri(d,l,p,d.table.core)})},ot.prototype.count=function(l){var d=this;return this._read(function(p){var m,S=d._ctx,w=S.table.core;return _a(S,!0)?w.count({trans:p,query:{index:ua(S,w.schema),range:S.range}}).then(function(A){return Math.min(A,S.limit)}):(m=0,Ri(S,function(){return++m,!1},p,w).then(function(){return m}))}).then(l)},ot.prototype.sortBy=function(l,d){var p=l.split(".").reverse(),m=p[0],S=p.length-1;function w(N,X){return X?w(N[p[X]],X-1):N[m]}var A=this._ctx.dir==="next"?1:-1;function C(N,X){return $e(w(N,S),w(X,S))*A}return this.toArray(function(N){return N.sort(C)}).then(d)},ot.prototype.toArray=function(l){var d=this;return this._read(function(p){var m,S,w,A=d._ctx;return A.dir==="next"&&_a(A,!0)&&0<A.limit?(m=A.valueMapper,S=ua(A,A.table.core.schema),A.table.core.query({trans:p,limit:A.limit,values:!0,query:{index:S,range:A.range}}).then(function(C){return C=C.result,m?C.map(m):C})):(w=[],Ri(A,function(C){return w.push(C)},p,A.table.core).then(function(){return w}))},l)},ot.prototype.offset=function(l){var d=this._ctx;return l<=0||(d.offset+=l,_a(d)?Ti(d,function(){var p=l;return function(m,S){return p===0||(p===1?--p:S(function(){m.advance(p),p=0}),!1)}}):Ti(d,function(){var p=l;return function(){return--p<0}})),this},ot.prototype.limit=function(l){return this._ctx.limit=Math.min(this._ctx.limit,l),Ti(this._ctx,function(){var d=l;return function(p,m,S){return--d<=0&&m(S),0<=d}},!0),this},ot.prototype.until=function(l,d){return uo(this._ctx,function(p,m,S){return!l(p.value)||(m(S),d)}),this},ot.prototype.first=function(l){return this.limit(1).toArray(function(d){return d[0]}).then(l)},ot.prototype.last=function(l){return this.reverse().first(l)},ot.prototype.filter=function(l){var d;return uo(this._ctx,function(p){return l(p.value)}),(d=this._ctx).isMatch=Ha(d.isMatch,l),this},ot.prototype.and=function(l){return this.filter(l)},ot.prototype.or=function(l){return new this.db.WhereClause(this._ctx.table,l,this)},ot.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},ot.prototype.desc=function(){return this.reverse()},ot.prototype.eachKey=function(l){var d=this._ctx;return d.keysOnly=!d.isMatch,this.each(function(p,m){l(m.key,m)})},ot.prototype.eachUniqueKey=function(l){return this._ctx.unique="unique",this.eachKey(l)},ot.prototype.eachPrimaryKey=function(l){var d=this._ctx;return d.keysOnly=!d.isMatch,this.each(function(p,m){l(m.primaryKey,m)})},ot.prototype.keys=function(l){var d=this._ctx,p=(d.keysOnly=!d.isMatch,[]);return this.each(function(m,S){p.push(S.key)}).then(function(){return p}).then(l)},ot.prototype.primaryKeys=function(l){var d=this._ctx;if(d.dir==="next"&&_a(d,!0)&&0<d.limit)return this._read(function(m){var S=ua(d,d.table.core.schema);return d.table.core.query({trans:m,values:!1,limit:d.limit,query:{index:S,range:d.range}})}).then(function(m){return m.result}).then(l);d.keysOnly=!d.isMatch;var p=[];return this.each(function(m,S){p.push(S.primaryKey)}).then(function(){return p}).then(l)},ot.prototype.uniqueKeys=function(l){return this._ctx.unique="unique",this.keys(l)},ot.prototype.firstKey=function(l){return this.limit(1).keys(function(d){return d[0]}).then(l)},ot.prototype.lastKey=function(l){return this.reverse().firstKey(l)},ot.prototype.distinct=function(){var l,d=this._ctx,d=d.index&&d.table.schema.idxByName[d.index];return d&&d.multi&&(l={},uo(this._ctx,function(m){var m=m.primaryKey.toString(),S=E(l,m);return l[m]=!0,!S})),this},ot.prototype.modify=function(l){var d=this,p=this._ctx;return this._write(function(m){function S(B,I){var J=I.failures;q+=B-I.numFailures;for(var Q=0,ne=y(J);Q<ne.length;Q++){var de=ne[Q];j.push(J[de])}}var w=typeof l=="function"?l:function(B){return lo(B,l)},A=p.table.core,U=A.schema.primaryKey,C=U.outbound,N=U.extractKey,X=200,U=d.db._options.modifyChunkSize,j=(U&&(X=typeof U=="object"?U[A.name]||U["*"]||200:U),[]),q=0,H=[],k=l===vs;return d.clone().primaryKeys().then(function(B){function I(Q){var ne=Math.min(X,B.length-Q),de=B.slice(Q,Q+ne);return(k?Promise.resolve([]):A.getMany({trans:m,keys:de,cache:"immutable"})).then(function(ye){var ge=[],he=[],Oe=C?[]:null,we=k?de:[];if(!k)for(var pe=0;pe<ne;++pe){var Ae=ye[pe],Pe={value:Xe(Ae),primKey:B[Q+pe]};w.call(Pe,Pe.value,Pe)!==!1&&(Pe.value==null?we.push(B[Q+pe]):C||$e(N(Ae),N(Pe.value))===0?(he.push(Pe.value),C&&Oe.push(B[Q+pe])):(we.push(B[Q+pe]),ge.push(Pe.value)))}return Promise.resolve(0<ge.length&&A.mutate({trans:m,type:"add",values:ge}).then(function(We){for(var je in We.failures)we.splice(parseInt(je),1);S(ge.length,We)})).then(function(){return(0<he.length||J&&typeof l=="object")&&A.mutate({trans:m,type:"put",keys:Oe,values:he,criteria:J,changeSpec:typeof l!="function"&&l,isAdditionalChunk:0<Q}).then(function(We){return S(he.length,We)})}).then(function(){return(0<we.length||J&&k)&&A.mutate({trans:m,type:"delete",keys:we,criteria:J,isAdditionalChunk:0<Q}).then(function(We){return on(p.table,we,We)}).then(function(We){return S(we.length,We)})}).then(function(){return B.length>Q+ne&&I(Q+X)})})}var J=_a(p)&&p.limit===1/0&&(typeof l!="function"||k)&&{index:p.index,range:p.range};return I(0).then(function(){if(0<j.length)throw new Ke("Error modifying one or more objects",j,q,H);return B.length})})})},ot.prototype.delete=function(){var l=this._ctx,d=l.range;return!_a(l)||l.table.schema.yProps||!l.isPrimKey&&d.type!==3?this.modify(vs):this._write(function(p){var m=l.table.core.schema.primaryKey,S=d;return l.table.core.count({trans:p,query:{index:m,range:S}}).then(function(w){return l.table.core.mutate({trans:p,type:"deleteRange",range:S}).then(function(N){var C=N.failures,N=N.numFailures;if(N)throw new Ke("Could not delete some values",Object.keys(C).map(function(X){return C[X]}),w-N);return w-N})})})};var Ac=ot;function ot(){}var vs=function(l,d){return d.value=null};function bs(l,d){return l<d?-1:l===d?0:1}function Cc(l,d){return d<l?-1:l===d?0:1}function Sn(l,d,p){return l=l instanceof Ya?new l.Collection(l):l,l._ctx.error=new(p||TypeError)(d),l}function ca(l){return new l.Collection(l,function(){return co("")}).limit(0)}function Rn(H,d,p,m){var S,w,A,C,N,X,U,j=p.length;if(!p.every(function(B){return typeof B=="string"}))return Sn(H,qt);function q(B){S=B==="next"?function(J){return J.toUpperCase()}:function(J){return J.toLowerCase()},w=B==="next"?function(J){return J.toLowerCase()}:function(J){return J.toUpperCase()},A=B==="next"?bs:Cc;var I=p.map(function(J){return{lower:w(J),upper:S(J)}}).sort(function(J,Q){return A(J.lower,Q.lower)});C=I.map(function(J){return J.upper}),N=I.map(function(J){return J.lower}),U=(X=B)==="next"?"":m}q("next");var H=new H.Collection(H,function(){return Xn(C[0],N[j-1]+m)}),k=(H._ondirectionchange=function(B){q(B)},0);return H._addAlgorithm(function(B,I,J){var Q=B.key;if(typeof Q=="string"){var ne=w(Q);if(d(ne,N,k))return!0;for(var de=null,ye=k;ye<j;++ye){var ge=((he,Oe,we,pe,Ae,Pe)=>{for(var We=Math.min(he.length,pe.length),je=-1,Ge=0;Ge<We;++Ge){var vt=Oe[Ge];if(vt!==pe[Ge])return Ae(he[Ge],we[Ge])<0?he.substr(0,Ge)+we[Ge]+we.substr(Ge+1):Ae(he[Ge],pe[Ge])<0?he.substr(0,Ge)+pe[Ge]+we.substr(Ge+1):0<=je?he.substr(0,je)+Oe[je]+we.substr(je+1):null;Ae(he[Ge],vt)<0&&(je=Ge)}return We<pe.length&&Pe==="next"?he+we.substr(he.length):We<he.length&&Pe==="prev"?he.substr(0,we.length):je<0?null:he.substr(0,je)+pe[je]+we.substr(je+1)})(Q,ne,C[ye],N[ye],A,X);ge===null&&de===null?k=ye+1:(de===null||0<A(de,ge))&&(de=ge)}I(de!==null?function(){B.continue(de+U)}:J)}return!1}),H}function Xn(l,d,p,m){return{type:2,lower:l,upper:d,lowerOpen:p,upperOpen:m}}function co(l){return{type:1,lower:l,upper:l}}Object.defineProperty(Ot.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Ot.prototype.between=function(l,d,p,m){p=p!==!1,m=m===!0;try{return 0<this._cmp(l,d)||this._cmp(l,d)===0&&(p||m)&&(!p||!m)?ca(this):new this.Collection(this,function(){return Xn(l,d,!p,!m)})}catch{return Sn(this,dn)}},Ot.prototype.equals=function(l){return l==null?Sn(this,dn):new this.Collection(this,function(){return co(l)})},Ot.prototype.above=function(l){return l==null?Sn(this,dn):new this.Collection(this,function(){return Xn(l,void 0,!0)})},Ot.prototype.aboveOrEqual=function(l){return l==null?Sn(this,dn):new this.Collection(this,function(){return Xn(l,void 0,!1)})},Ot.prototype.below=function(l){return l==null?Sn(this,dn):new this.Collection(this,function(){return Xn(void 0,l,!1,!0)})},Ot.prototype.belowOrEqual=function(l){return l==null?Sn(this,dn):new this.Collection(this,function(){return Xn(void 0,l)})},Ot.prototype.startsWith=function(l){return typeof l!="string"?Sn(this,qt):this.between(l,l+jn,!0,!0)},Ot.prototype.startsWithIgnoreCase=function(l){return l===""?this.startsWith(l):Rn(this,function(d,p){return d.indexOf(p[0])===0},[l],jn)},Ot.prototype.equalsIgnoreCase=function(l){return Rn(this,function(d,p){return d===p[0]},[l],"")},Ot.prototype.anyOfIgnoreCase=function(){var l=Je.apply(et,arguments);return l.length===0?ca(this):Rn(this,function(d,p){return p.indexOf(d)!==-1},l,"")},Ot.prototype.startsWithAnyOfIgnoreCase=function(){var l=Je.apply(et,arguments);return l.length===0?ca(this):Rn(this,function(d,p){return p.some(function(m){return d.indexOf(m)===0})},l,jn)},Ot.prototype.anyOf=function(){var l,d,p=this,m=Je.apply(et,arguments),S=this._cmp;try{m.sort(S)}catch{return Sn(this,dn)}return m.length===0?ca(this):((l=new this.Collection(this,function(){return Xn(m[0],m[m.length-1])}))._ondirectionchange=function(w){S=w==="next"?p._ascending:p._descending,m.sort(S)},d=0,l._addAlgorithm(function(w,A,C){for(var N=w.key;0<S(N,m[d]);)if(++d===m.length)return A(C),!1;return S(N,m[d])===0||(A(function(){w.continue(m[d])}),!1)}),l)},Ot.prototype.notEqual=function(l){return this.inAnyRange([[-1/0,l],[l,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Ot.prototype.noneOf=function(){var l=Je.apply(et,arguments);if(l.length===0)return new this.Collection(this);try{l.sort(this._ascending)}catch{return Sn(this,dn)}var d=l.reduce(function(p,m){return p?p.concat([[p[p.length-1][1],m]]):[[-1/0,m]]},null);return d.push([l[l.length-1],this.db._maxKey]),this.inAnyRange(d,{includeLowers:!1,includeUppers:!1})},Ot.prototype.inAnyRange=function(l,J){var p=this,m=this._cmp,S=this._ascending,w=this._descending,A=this._min,C=this._max;if(l.length===0)return ca(this);if(!l.every(function(Q){return Q[0]!==void 0&&Q[1]!==void 0&&S(Q[0],Q[1])<=0}))return Sn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Me.InvalidArgument);var N=!J||J.includeLowers!==!1,X=J&&J.includeUppers===!0,U,j=S;function q(Q,ne){return j(Q[0],ne[0])}try{(U=l.reduce(function(Q,ne){for(var de=0,ye=Q.length;de<ye;++de){var ge=Q[de];if(m(ne[0],ge[1])<0&&0<m(ne[1],ge[0])){ge[0]=A(ge[0],ne[0]),ge[1]=C(ge[1],ne[1]);break}}return de===ye&&Q.push(ne),Q},[])).sort(q)}catch{return Sn(this,dn)}var H=0,k=X?function(Q){return 0<S(Q,U[H][1])}:function(Q){return 0<=S(Q,U[H][1])},B=N?function(Q){return 0<w(Q,U[H][0])}:function(Q){return 0<=w(Q,U[H][0])},I=k,J=new this.Collection(this,function(){return Xn(U[0][0],U[U.length-1][1],!N,!X)});return J._ondirectionchange=function(Q){j=Q==="next"?(I=k,S):(I=B,w),U.sort(q)},J._addAlgorithm(function(Q,ne,de){for(var ye,ge=Q.key;I(ge);)if(++H===U.length)return ne(de),!1;return!k(ye=ge)&&!B(ye)||(p._cmp(ge,U[H][1])===0||p._cmp(ge,U[H][0])===0||ne(function(){j===S?Q.continue(U[H][0]):Q.continue(U[H][1])}),!1)}),J},Ot.prototype.startsWithAnyOf=function(){var l=Je.apply(et,arguments);return l.every(function(d){return typeof d=="string"})?l.length===0?ca(this):this.inAnyRange(l.map(function(d){return[d,d+jn]})):Sn(this,"startsWithAnyOf() only works with strings")};var Ya=Ot;function Ot(){}function Nn(l){return Et(function(d){return Ga(d),l(d.target.error),!1})}function Ga(l){l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault()}var Rr="storagemutated",Va="x-storagemutated-1",en=Ei(null,Rr),Ss=(hn.prototype._lock=function(){return re(!Re.global),++this._reculock,this._reculock!==1||Re.global||(Re.lockOwnerFor=this),this},hn.prototype._unlock=function(){if(re(!Re.global),--this._reculock==0)for(Re.global||(Re.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var l=this._blockedFuncs.shift();try{Ln(l[1],l[0])}catch{}}return this},hn.prototype._locked=function(){return this._reculock&&Re.lockOwnerFor!==this},hn.prototype.create=function(l){var d=this;if(this.mode){var p=this.db.idbdb,m=this.db._state.dbOpenError;if(re(!this.idbtrans),!l&&!p)switch(m&&m.name){case"DatabaseClosedError":throw new Me.DatabaseClosed(m);case"MissingAPIError":throw new Me.MissingAPI(m.message,m);default:throw new Me.OpenFailed(m)}if(!this.active)throw new Me.TransactionInactive;re(this._completion._state===null),(l=this.idbtrans=l||(this.db.core||p).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Et(function(S){Ga(S),d._reject(l.error)}),l.onabort=Et(function(S){Ga(S),d.active&&d._reject(new Me.Abort(l.error)),d.active=!1,d.on("abort").fire(S)}),l.oncomplete=Et(function(){d.active=!1,d._resolve(),"mutatedParts"in l&&en.storagemutated.fire(l.mutatedParts)})}return this},hn.prototype._promise=function(l,d,p){var m,S=this;return l==="readwrite"&&this.mode!=="readwrite"?gt(new Me.ReadOnly("Transaction is readonly")):this.active?this._locked()?new _e(function(w,A){S._blockedFuncs.push([function(){S._promise(l,d,p).then(w,A)},Re])}):p?xt(function(){var w=new _e(function(A,C){S._lock();var N=d(A,C,S);N&&N.then&&N.then(A,C)});return w.finally(function(){return S._unlock()}),w._lib=!0,w}):((m=new _e(function(w,A){var C=d(w,A,S);C&&C.then&&C.then(w,A)}))._lib=!0,m):gt(new Me.TransactionInactive)},hn.prototype._root=function(){return this.parent?this.parent._root():this},hn.prototype.waitFor=function(l){var d,p=this._root(),m=_e.resolve(l),S=(p._waitingFor?p._waitingFor=p._waitingFor.then(function(){return m}):(p._waitingFor=m,p._waitingQueue=[],d=p.idbtrans.objectStore(p.storeNames[0]),(function w(){for(++p._spinCount;p._waitingQueue.length;)p._waitingQueue.shift()();p._waitingFor&&(d.get(-1/0).onsuccess=w)})()),p._waitingFor);return new _e(function(w,A){m.then(function(C){return p._waitingQueue.push(Et(w.bind(null,C)))},function(C){return p._waitingQueue.push(Et(A.bind(null,C)))}).finally(function(){p._waitingFor===S&&(p._waitingFor=null)})})},hn.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Me.Abort))},hn.prototype.table=function(l){var d=this._memoizedTables||(this._memoizedTables={});if(E(d,l))return d[l];var p=this.schema[l];if(p)return(p=new this.db.Table(l,p,this)).core=this.db.core.table(l),d[l]=p;throw new Me.NotFound("Table "+l+" not part of transaction")},hn);function hn(){}function Qn(l,d,p,m,S,w,A,C){return{name:l,keyPath:d,unique:p,multi:m,auto:S,compound:w,src:(p&&!A?"&":"")+(m?"*":"")+(S?"++":"")+fo(d),type:C}}function fo(l){return typeof l=="string"?l:l?"["+[].join.call(l,"+")+"]":""}function xr(l,d,p){return{name:l,primKey:d,indexes:p,mappedClass:null,idxByName:(m=function(S){return[S.name,S]},p.reduce(function(S,w,A){return w=m(w,A),w&&(S[w[0]]=w[1]),S},{}))};var m}var Or=function(l){try{return l.only([[]]),Or=function(){return[[]]},[[]]}catch{return Or=function(){return jn},jn}};function Ar(l){return l==null?function(){}:typeof l=="string"?(d=l).split(".").length===1?function(p){return p[d]}:function(p){return Te(p,d)}:function(p){return Te(p,l)};var d}function xi(l){return[].slice.call(l)}var zl=0;function Yt(l){return l==null?":id":typeof l=="string"?l:"[".concat(l.join("+"),"]")}function Xa(l,d,N){function m(k){if(k.type===3)return null;if(k.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var j=k.lower,q=k.upper,H=k.lowerOpen,k=k.upperOpen;return j===void 0?q===void 0?null:d.upperBound(q,!!k):q===void 0?d.lowerBound(j,!!H):d.bound(j,q,!!H,!!k)}function S(U){var j,q=U.name;return{name:q,schema:U,mutate:function(H){var k=H.trans,B=H.type,I=H.keys,J=H.values,Q=H.range;return new Promise(function(ne,de){ne=Et(ne);var ye=k.objectStore(q),ge=ye.keyPath==null,he=B==="put"||B==="add";if(!he&&B!=="delete"&&B!=="deleteRange")throw new Error("Invalid operation type: "+B);var Oe,we=(I||J||{length:1}).length;if(I&&J&&I.length!==J.length)throw new Error("Given keys array must have same length as given values array.");if(we===0)return ne({numFailures:0,failures:{},results:[],lastResult:void 0});function pe(ht){++We,Ga(ht)}var Ae=[],Pe=[],We=0;if(B==="deleteRange"){if(Q.type===4)return ne({numFailures:We,failures:Pe,results:[],lastResult:void 0});Q.type===3?Ae.push(Oe=ye.clear()):Ae.push(Oe=ye.delete(m(Q)))}else{var ge=he?ge?[J,I]:[J,null]:[I,null],je=ge[0],Ge=ge[1];if(he)for(var vt=0;vt<we;++vt)Ae.push(Oe=Ge&&Ge[vt]!==void 0?ye[B](je[vt],Ge[vt]):ye[B](je[vt])),Oe.onerror=pe;else for(vt=0;vt<we;++vt)Ae.push(Oe=ye[B](je[vt])),Oe.onerror=pe}function mn(ht){ht=ht.target.result,Ae.forEach(function(Ra,jr){return Ra.error!=null&&(Pe[jr]=Ra.error)}),ne({numFailures:We,failures:Pe,results:B==="delete"?I:Ae.map(function(Ra){return Ra.result}),lastResult:ht})}Oe.onerror=function(ht){pe(ht),mn(ht)},Oe.onsuccess=mn})},getMany:function(H){var k=H.trans,B=H.keys;return new Promise(function(I,J){I=Et(I);for(var Q,ne=k.objectStore(q),de=B.length,ye=new Array(de),ge=0,he=0,Oe=function(Ae){Ae=Ae.target,ye[Ae._pos]=Ae.result,++he===ge&&I(ye)},we=Nn(J),pe=0;pe<de;++pe)B[pe]!=null&&((Q=ne.get(B[pe]))._pos=pe,Q.onsuccess=Oe,Q.onerror=we,++ge);ge===0&&I(ye)})},get:function(H){var k=H.trans,B=H.key;return new Promise(function(I,J){I=Et(I);var Q=k.objectStore(q).get(B);Q.onsuccess=function(ne){return I(ne.target.result)},Q.onerror=Nn(J)})},query:(j=C,function(H){return new Promise(function(k,B){k=Et(k);var I,J,Q,he=H.trans,ne=H.values,de=H.limit,ge=H.query,ye=de===1/0?void 0:de,Oe=ge.index,ge=ge.range,he=he.objectStore(q),he=Oe.isPrimaryKey?he:he.index(Oe.name),Oe=m(ge);if(de===0)return k({result:[]});j?((ge=ne?he.getAll(Oe,ye):he.getAllKeys(Oe,ye)).onsuccess=function(we){return k({result:we.target.result})},ge.onerror=Nn(B)):(I=0,J=!ne&&"openKeyCursor"in he?he.openKeyCursor(Oe):he.openCursor(Oe),Q=[],J.onsuccess=function(we){var pe=J.result;return!pe||(Q.push(ne?pe.value:pe.primaryKey),++I===de)?k({result:Q}):void pe.continue()},J.onerror=Nn(B))})}),openCursor:function(H){var k=H.trans,B=H.values,I=H.query,J=H.reverse,Q=H.unique;return new Promise(function(ne,de){ne=Et(ne);var he=I.index,ye=I.range,ge=k.objectStore(q),ge=he.isPrimaryKey?ge:ge.index(he.name),he=J?Q?"prevunique":"prev":Q?"nextunique":"next",Oe=!B&&"openKeyCursor"in ge?ge.openKeyCursor(m(ye),he):ge.openCursor(m(ye),he);Oe.onerror=Nn(de),Oe.onsuccess=Et(function(we){var pe,Ae,Pe,We,je=Oe.result;je?(je.___id=++zl,je.done=!1,pe=je.continue.bind(je),Ae=(Ae=je.continuePrimaryKey)&&Ae.bind(je),Pe=je.advance.bind(je),We=function(){throw new Error("Cursor not stopped")},je.trans=k,je.stop=je.continue=je.continuePrimaryKey=je.advance=function(){throw new Error("Cursor not started")},je.fail=Et(de),je.next=function(){var Ge=this,vt=1;return this.start(function(){return vt--?Ge.continue():Ge.stop()}).then(function(){return Ge})},je.start=function(Ge){function vt(){if(Oe.result)try{Ge()}catch(ht){je.fail(ht)}else je.done=!0,je.start=function(){throw new Error("Cursor behind last entry")},je.stop()}var mn=new Promise(function(ht,Ra){ht=Et(ht),Oe.onerror=Nn(Ra),je.fail=Ra,je.stop=function(jr){je.stop=je.continue=je.continuePrimaryKey=je.advance=We,ht(jr)}});return Oe.onsuccess=Et(function(ht){Oe.onsuccess=vt,vt()}),je.continue=pe,je.continuePrimaryKey=Ae,je.advance=Pe,vt(),mn},ne(je)):ne(null)},de)})},count:function(H){var k=H.query,B=H.trans,I=k.index,J=k.range;return new Promise(function(Q,ne){var de=B.objectStore(q),de=I.isPrimaryKey?de:de.index(I.name),ye=m(J),ye=ye?de.count(ye):de.count();ye.onsuccess=Et(function(ge){return Q(ge.target.result)}),ye.onerror=Nn(ne)})}}}w=N,A=xi((N=l).objectStoreNames);var w,N={schema:{name:N.name,tables:A.map(function(U){return w.objectStore(U)}).map(function(U){var j=U.keyPath,q=U.autoIncrement,k=v(j),H={},k={name:U.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:j==null,compound:k,keyPath:j,autoIncrement:q,unique:!0,extractKey:Ar(j)},indexes:xi(U.indexNames).map(function(B){return U.index(B)}).map(function(Q){var ne=Q.name,I=Q.unique,J=Q.multiEntry,Q=Q.keyPath,ne={name:ne,compound:v(Q),keyPath:Q,unique:I,multiEntry:J,extractKey:Ar(Q)};return H[Yt(Q)]=ne}),getIndexByKeyPath:function(B){return H[Yt(B)]}};return H[":id"]=k.primaryKey,j!=null&&(H[Yt(j)]=k.primaryKey),k})},hasGetAll:0<A.length&&"getAll"in w.objectStore(A[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)},A=N.schema,C=N.hasGetAll,N=A.tables.map(S),X={};return N.forEach(function(U){return X[U.name]=U}),{stack:"dbcore",transaction:l.transaction.bind(l),table:function(U){if(X[U])return X[U];throw new Error("Table '".concat(U,"' not found"))},MIN_KEY:-1/0,MAX_KEY:Or(d),schema:A}}function ho(l,d,p,m){return p=p.IDBKeyRange,d=Xa(d,p,m),{dbcore:l.dbcore.reduce(function(S,w){return w=w.create,s(s({},S),w(S))},d)}}function wa(l,d){var p=d.db,p=ho(l._middlewares,p,l._deps,d);l.core=p.dbcore,l.tables.forEach(function(m){var S=m.name;l.core.schema.tables.some(function(w){return w.name===S})&&(m.core=l.core.table(S),l[S]instanceof l.Table)&&(l[S].core=m.core)})}function po(l,d,p,m){p.forEach(function(S){var w=m[S];d.forEach(function(A){var C=(function N(X,U){return V(X,U)||(X=_(X))&&N(X,U)})(A,S);(!C||"value"in C&&C.value===void 0)&&(A===l.Transaction.prototype||A instanceof l.Transaction?Y(A,S,{get:function(){return this.table(S)},set:function(N){D(this,S,{value:N,writable:!0,configurable:!0,enumerable:!0})}}):A[S]=new l.Table(S,w))})})}function Oi(l,d){d.forEach(function(p){for(var m in p)p[m]instanceof l.Table&&delete p[m]})}function _s(l,d){return l._cfg.version-d._cfg.version}function Ai(l,d,p,m){var S=l._dbSchema,w=(p.objectStoreNames.contains("$meta")&&!S.$meta&&(S.$meta=xr("$meta",jl("")[0],[]),l._storeNames.push("$meta")),l._createTransaction("readwrite",l._storeNames,S)),A=(w.create(p),w._completion.catch(m),w._reject.bind(w)),C=Re.transless||Re;xt(function(){if(Re.trans=w,Re.transless=C,d!==0)return wa(l,p),X=d,((N=w).storeNames.includes("$meta")?N.table("$meta").get("version").then(function(U){return U??X}):_e.resolve(X)).then(function(I){var j=l,q=I,H=w,k=p,B=[],I=j._versions,J=j._dbSchema=Cr(0,j.idbdb,k);return(I=I.filter(function(Q){return Q._cfg.version>=q})).length===0?_e.resolve():(I.forEach(function(Q){B.push(function(){var ne,de,ye,ge=J,he=Q._cfg.dbschema,Oe=(vo(j,ge,k),vo(j,he,k),J=j._dbSchema=he,yo(ge,he)),we=(Oe.add.forEach(function(pe){ws(k,pe[0],pe[1].primKey,pe[1].indexes)}),Oe.change.forEach(function(pe){if(pe.recreate)throw new Me.Upgrade("Not yet support for changing primary key");var Ae=k.objectStore(pe.name);pe.add.forEach(function(Pe){return go(Ae,Pe)}),pe.change.forEach(function(Pe){Ae.deleteIndex(Pe.name),go(Ae,Pe)}),pe.del.forEach(function(Pe){return Ae.deleteIndex(Pe)})}),Q._cfg.contentUpgrade);if(we&&Q._cfg.version>q)return wa(j,k),H._memoizedTables={},ne=ce(he),Oe.del.forEach(function(pe){ne[pe]=ge[pe]}),Oi(j,[j.Transaction.prototype]),po(j,[j.Transaction.prototype],y(ne),ne),H.schema=ne,(de=K(we))&&Bt(),he=_e.follow(function(){var pe;(ye=we(H))&&de&&(pe=bn.bind(null,null),ye.then(pe,pe))}),ye&&typeof ye.then=="function"?_e.resolve(ye):he.then(function(){return ye})}),B.push(function(ne){var de,ye,ge=Q._cfg.dbschema;de=ge,ye=ne,[].slice.call(ye.db.objectStoreNames).forEach(function(he){return de[he]==null&&ye.db.deleteObjectStore(he)}),Oi(j,[j.Transaction.prototype]),po(j,[j.Transaction.prototype],j._storeNames,j._dbSchema),H.schema=j._dbSchema}),B.push(function(ne){j.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(j.idbdb.version/10)===Q._cfg.version?(j.idbdb.deleteObjectStore("$meta"),delete j._dbSchema.$meta,j._storeNames=j._storeNames.filter(function(de){return de!=="$meta"})):ne.objectStore("$meta").put(Q._cfg.version,"version"))})}),(function Q(){return B.length?_e.resolve(B.shift()(H.idbtrans)).then(Q):_e.resolve()})().then(function(){Ll(J,k)}))}).catch(A);var N,X;y(S).forEach(function(U){ws(p,U,S[U].primKey,S[U].indexes)}),wa(l,p),_e.follow(function(){return l.on.populate.fire(w)}).catch(A)})}function mo(l,d){Ll(l._dbSchema,d),d.db.version%10!=0||d.objectStoreNames.contains("$meta")||d.db.createObjectStore("$meta").add(Math.ceil(d.db.version/10-1),"version");var p=Cr(0,l.idbdb,d);vo(l,l._dbSchema,d);for(var m=0,S=yo(p,l._dbSchema).change;m<S.length;m++){var w=(A=>{if(A.change.length||A.recreate)return console.warn("Unable to patch indexes of table ".concat(A.name," because it has changes on the type of index or primary key.")),{value:void 0};var C=d.objectStore(A.name);A.add.forEach(function(N){fn&&console.debug("Dexie upgrade patch: Creating missing index ".concat(A.name,".").concat(N.src)),go(C,N)})})(S[m]);if(typeof w=="object")return w.value}}function yo(l,d){var p,m={del:[],add:[],change:[]};for(p in l)d[p]||m.del.push(p);for(p in d){var S=l[p],w=d[p];if(S){var A={name:p,def:w,recreate:!1,del:[],add:[],change:[]};if(""+(S.primKey.keyPath||"")!=""+(w.primKey.keyPath||"")||S.primKey.auto!==w.primKey.auto)A.recreate=!0,m.change.push(A);else{var C=S.idxByName,N=w.idxByName,X=void 0;for(X in C)N[X]||A.del.push(X);for(X in N){var U=C[X],j=N[X];U?U.src!==j.src&&A.change.push(j):A.add.push(j)}(0<A.del.length||0<A.add.length||0<A.change.length)&&m.change.push(A)}}else m.add.push([p,w])}return m}function ws(l,d,p,m){var S=l.db.createObjectStore(d,p.keyPath?{keyPath:p.keyPath,autoIncrement:p.auto}:{autoIncrement:p.auto});m.forEach(function(w){return go(S,w)})}function Ll(l,d){y(l).forEach(function(p){d.db.objectStoreNames.contains(p)||(fn&&console.debug("Dexie: Creating missing table",p),ws(d,p,l[p].primKey,l[p].indexes))})}function go(l,d){l.createIndex(d.name,d.keyPath,{unique:d.unique,multiEntry:d.multi})}function Cr(l,d,p){var m={};return fe(d.objectStoreNames,0).forEach(function(S){for(var w=p.objectStore(S),A=Qn(fo(X=w.keyPath),X||"",!0,!1,!!w.autoIncrement,X&&typeof X!="string",!0),C=[],N=0;N<w.indexNames.length;++N){var U=w.index(w.indexNames[N]),X=U.keyPath,U=Qn(U.name,X,!!U.unique,!!U.multiEntry,!1,X&&typeof X!="string",!1);C.push(U)}m[S]=xr(S,A,C)}),m}function vo(l,d,p){for(var m=p.db.objectStoreNames,S=0;S<m.length;++S){var w=m[S],A=p.objectStore(w);l._hasGetAll="getAll"in A;for(var C=0;C<A.indexNames.length;++C){var N,X=A.indexNames[C],U=A.index(X).keyPath,U=typeof U=="string"?U:"["+fe(U).join("+")+"]";d[w]&&(N=d[w].idxByName[U])&&(N.name=X,delete d[w].idxByName[U],d[w].idxByName[X]=N)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&h.WorkerGlobalScope&&h instanceof h.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(l._hasGetAll=!1)}function jl(l){return l.split(",").map(function(d,p){var S=d.split(":"),m=(m=S[1])==null?void 0:m.trim(),S=(d=S[0].trim()).replace(/([&*]|\+\+)/g,""),w=/^\[/.test(S)?S.match(/^\[(.*)\]$/)[1].split("+"):S;return Qn(S,w||null,/\&/.test(d),/\*/.test(d),/\+\+/.test(d),v(w),p===0,m)})}Mr.prototype._createTableSchema=xr,Mr.prototype._parseIndexSyntax=jl,Mr.prototype._parseStoresSpec=function(l,d){var p=this;y(l).forEach(function(m){if(l[m]!==null){var S=p._parseIndexSyntax(l[m]),w=S.shift();if(!w)throw new Me.Schema("Invalid schema for table "+m+": "+l[m]);if(w.unique=!0,w.multi)throw new Me.Schema("Primary key cannot be multiEntry*");S.forEach(function(A){if(A.auto)throw new Me.Schema("Only primary key can be marked as autoIncrement (++)");if(!A.keyPath)throw new Me.Schema("Index must have a name and cannot be an empty string")}),w=p._createTableSchema(m,w,S),d[m]=w}})},Mr.prototype.stores=function(p){var d=this.db,p=(this._cfg.storesSource=this._cfg.storesSource?b(this._cfg.storesSource,p):p,d._versions),m={},S={};return p.forEach(function(w){b(m,w._cfg.storesSource),S=w._cfg.dbschema={},w._parseStoresSpec(m,S)}),d._dbSchema=S,Oi(d,[d._allTables,d,d.Transaction.prototype]),po(d,[d._allTables,d,d.Transaction.prototype,this._cfg.tables],y(S),S),d._storeNames=y(S),this},Mr.prototype.upgrade=function(l){return this._cfg.contentUpgrade=ja(this._cfg.contentUpgrade||it,l),this};var Mc=Mr;function Mr(){}function Es(l,d){var p=l._dbNamesDB;return p||(p=l._dbNamesDB=new In(Si,{addons:[],indexedDB:l,IDBKeyRange:d})).version(1).stores({dbnames:"name"}),p.table("dbnames")}function bo(l){return l&&typeof l.databases=="function"}function Ts(l){return xt(function(){return Re.letThrough=!0,l()})}function Rs(l){return!("from"in l)}var tn=function(l,d){var p;if(!this)return p=new tn,l&&"d"in l&&b(p,l),p;b(this,arguments.length?{d:1,from:l,to:1<arguments.length?d:l}:{d:0})};function Ci(l,d,p){var m=$e(d,p);if(!isNaN(m)){if(0<m)throw RangeError();if(Rs(l))return b(l,{from:d,to:p,d:1});var m=l.l,S=l.r;if($e(p,l.from)<0)return m?Ci(m,d,p):l.l={from:d,to:p,d:1,l:null,r:null},Ul(l);if(0<$e(d,l.to))return S?Ci(S,d,p):l.r={from:d,to:p,d:1,l:null,r:null},Ul(l);$e(d,l.from)<0&&(l.from=d,l.l=null,l.d=S?S.d+1:1),0<$e(p,l.to)&&(l.to=p,l.r=null,l.d=l.l?l.l.d+1:1),d=!l.r,m&&!l.l&&Qa(l,m),S&&d&&Qa(l,S)}}function Qa(l,d){Rs(d)||(function p(m,S){var w=S.from,A=S.l,C=S.r;Ci(m,w,S.to),A&&p(m,A),C&&p(m,C)})(l,d)}function Nl(l,d){var p=So(d),m=p.next();if(!m.done)for(var S=m.value,w=So(l),A=w.next(S.from),C=A.value;!m.done&&!A.done;){if($e(C.from,S.to)<=0&&0<=$e(C.to,S.from))return!0;$e(S.from,C.from)<0?S=(m=p.next(C.from)).value:C=(A=w.next(S.from)).value}return!1}function So(l){var d=Rs(l)?null:{s:0,n:l};return{next:function(p){for(var m=0<arguments.length;d;)switch(d.s){case 0:if(d.s=1,m)for(;d.n.l&&$e(p,d.n.from)<0;)d={up:d,n:d.n.l,s:1};else for(;d.n.l;)d={up:d,n:d.n.l,s:1};case 1:if(d.s=2,!m||$e(p,d.n.to)<=0)return{value:d.n,done:!1};case 2:if(d.n.r){d.s=3,d={up:d,n:d.n.r,s:0};continue}case 3:d=d.up}return{done:!0}}}}function Ul(l){var d,p,m,S=(((S=l.r)==null?void 0:S.d)||0)-(((S=l.l)==null?void 0:S.d)||0),S=1<S?"r":S<-1?"l":"";S&&(d=S=="r"?"l":"r",p=s({},l),m=l[S],l.from=m.from,l.to=m.to,l[S]=m[S],p[S]=m[d],(l[d]=p).d=xs(p)),l.d=xs(l)}function xs(p){var d=p.r,p=p.l;return(d?p?Math.max(d.d,p.d):d.d:p?p.d:0)+1}function _o(l,d){return y(d).forEach(function(p){l[p]?Qa(l[p],d[p]):l[p]=(function m(S){var w,A,C={};for(w in S)E(S,w)&&(A=S[w],C[w]=!A||typeof A!="object"||Be.has(A.constructor)?A:m(A));return C})(d[p])}),l}function Os(l,d){return l.all||d.all||Object.keys(l).some(function(p){return d[p]&&Nl(d[p],l[p])})}O(tn.prototype,((Ze={add:function(l){return Qa(this,l),this},addKey:function(l){return Ci(this,l,l),this},addKeys:function(l){var d=this;return l.forEach(function(p){return Ci(d,p,p)}),this},hasKey:function(l){var d=So(this).next(l).value;return d&&$e(d.from,l)<=0&&0<=$e(d.to,l)}})[ee]=function(){return So(this)},Ze));var Ia={},As={},Cs=!1;function wo(l){_o(As,l),Cs||(Cs=!0,setTimeout(function(){Cs=!1,Ms(As,!(As={}))},0))}function Ms(l,d){d===void 0&&(d=!1);var p=new Set;if(l.all)for(var m=0,S=Object.values(Ia);m<S.length;m++)kl(C=S[m],l,p,d);else for(var w in l){var A,C,w=/^idb\:\/\/(.*)\/(.*)\//.exec(w);w&&(A=w[1],w=w[2],C=Ia["idb://".concat(A,"/").concat(w)])&&kl(C,l,p,d)}p.forEach(function(N){return N()})}function kl(l,d,p,m){for(var S=[],w=0,A=Object.entries(l.queries.query);w<A.length;w++){for(var C=A[w],N=C[0],X=[],U=0,j=C[1];U<j.length;U++){var q=j[U];Os(d,q.obsSet)?q.subscribers.forEach(function(I){return p.add(I)}):m&&X.push(q)}m&&S.push([N,X])}if(m)for(var H=0,k=S;H<k.length;H++){var B=k[H],N=B[0],X=B[1];l.queries.query[N]=X}}function Dc(l){var d=l._state,p=l._deps.indexedDB;if(d.isBeingOpened||l.idbdb)return d.dbReadyPromise.then(function(){return d.dbOpenError?gt(d.dbOpenError):l});d.isBeingOpened=!0,d.dbOpenError=null,d.openComplete=!1;var m=d.openCanceller,S=Math.round(10*l.verno),w=!1;function A(){if(d.openCanceller!==m)throw new Me.DatabaseClosed("db.open() was cancelled")}function C(){return new _e(function(q,H){if(A(),!p)throw new Me.MissingAPI;var k=l.name,B=d.autoSchema||!S?p.open(k):p.open(k,S);if(!B)throw new Me.MissingAPI;B.onerror=Nn(H),B.onblocked=Et(l._fireOnBlocked),B.onupgradeneeded=Et(function(I){var J;U=B.transaction,d.autoSchema&&!l._options.allowEmptyDB?(B.onerror=Ga,U.abort(),B.result.close(),(J=p.deleteDatabase(k)).onsuccess=J.onerror=Et(function(){H(new Me.NoSuchDatabase("Database ".concat(k," doesnt exist")))})):(U.onerror=Nn(H),J=I.oldVersion>Math.pow(2,62)?0:I.oldVersion,j=J<1,l.idbdb=B.result,w&&mo(l,U),Ai(l,J/10,U,H))},H),B.onsuccess=Et(function(){U=null;var I,J,Q,ne,de,ye,ge=l.idbdb=B.result,he=fe(ge.objectStoreNames);if(0<he.length)try{var Oe=ge.transaction((de=he).length===1?de[0]:de,"readonly");if(d.autoSchema)ye=ge,ne=Oe,(Q=l).verno=ye.version/10,ne=Q._dbSchema=Cr(0,ye,ne),Q._storeNames=fe(ye.objectStoreNames,0),po(Q,[Q._allTables],y(ne),ne);else if(vo(l,l._dbSchema,Oe),J=Oe,((J=yo(Cr(0,(I=l).idbdb,J),I._dbSchema)).add.length||J.change.some(function(we){return we.add.length||we.change.length}))&&!w)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.ver
29sion(). Dexie will add missing parts and increment native version number to workaround this."),ge.close(),S=ge.version+1,w=!0,q(C());wa(l,Oe)}catch{}Pa.push(l),ge.onversionchange=Et(function(we){d.vcFired=!0,l.on("versionchange").fire(we)}),ge.onclose=Et(function(){l.close({disableAutoOpen:!1})}),j&&(he=l._deps,de=k,bo(ye=he.indexedDB)||de===Si||Es(ye,he.IDBKeyRange).put({name:de}).catch(it)),q()},H)}).catch(function(q){switch(q?.name){case"UnknownError":if(0<d.PR1398_maxLoop)return d.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),C();break;case"VersionError":if(0<S)return S=0,C()}return _e.reject(q)})}var N,X=d.dbReadyResolve,U=null,j=!1;return _e.race([m,(typeof navigator>"u"?_e.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(q){function H(){return indexedDB.databases().finally(q)}N=setInterval(H,100),H()}).finally(function(){return clearInterval(N)}):Promise.resolve()).then(C)]).then(function(){return A(),d.onReadyBeingFired=[],_e.resolve(Ts(function(){return l.on.ready.fire(l.vip)})).then(function q(){var H;if(0<d.onReadyBeingFired.length)return H=d.onReadyBeingFired.reduce(ja,it),d.onReadyBeingFired=[],_e.resolve(Ts(function(){return H(l.vip)})).then(q)})}).finally(function(){d.openCanceller===m&&(d.onReadyBeingFired=null,d.isBeingOpened=!1)}).catch(function(q){d.dbOpenError=q;try{U&&U.abort()}catch{}return m===d.openCanceller&&l._close(),gt(q)}).finally(function(){d.openComplete=!0,X()}).then(function(){var q;return j&&(q={},l.tables.forEach(function(H){H.schema.indexes.forEach(function(k){k.name&&(q["idb://".concat(l.name,"/").concat(H.name,"/").concat(k.name)]=new tn(-1/0,[[[]]]))}),q["idb://".concat(l.name,"/").concat(H.name,"/")]=q["idb://".concat(l.name,"/").concat(H.name,"/:dels")]=new tn(-1/0,[[[]]])}),en(Rr).fire(q),Ms(q,!0)),l})}function Mi(l){function d(w){return l.next(w)}var p=S(d),m=S(function(w){return l.throw(w)});function S(w){return function(C){var C=w(C),N=C.value;return C.done?N:N&&typeof N.then=="function"?N.then(p,m):v(N)?Promise.all(N).then(p,m):p(N)}}return S(d)()}function Ea(l,d,p){for(var m=v(l)?l.slice():[l],S=0;S<p;++S)m.push(d);return m}var zc={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(l){return s(s({},l),{table:function(m){var p=l.table(m),m=p.schema,S={},w=[];function A(q,H,k){var Q=Yt(q),B=S[Q]=S[Q]||[],I=q==null?0:typeof q=="string"?1:q.length,J=0<H,Q=s(s({},k),{name:J?"".concat(Q,"(virtual-from:").concat(k.name,")"):k.name,lowLevelIndex:k,isVirtual:J,keyTail:H,keyLength:I,extractKey:Ar(q),unique:!J&&k.unique});return B.push(Q),Q.isPrimaryKey||w.push(Q),1<I&&A(I===2?q[0]:q.slice(0,I-1),H+1,k),B.sort(function(ne,de){return ne.keyTail-de.keyTail}),Q}var C=A(m.primaryKey.keyPath,0,m.primaryKey);S[":id"]=[C];for(var N=0,X=m.indexes;N<X.length;N++){var U=X[N];A(U.keyPath,0,U)}function j(q){var H,k=q.query.index;return k.isVirtual?s(s({},q),{query:{index:k.lowLevelIndex,range:(H=q.query.range,k=k.keyTail,{type:H.type===1?2:H.type,lower:Ea(H.lower,H.lowerOpen?l.MAX_KEY:l.MIN_KEY,k),lowerOpen:!0,upper:Ea(H.upper,H.upperOpen?l.MIN_KEY:l.MAX_KEY,k),upperOpen:!0})}}):q}return s(s({},p),{schema:s(s({},m),{primaryKey:C,indexes:w,getIndexByKeyPath:function(q){return(q=S[Yt(q)])&&q[0]}}),count:function(q){return p.count(j(q))},query:function(q){return p.query(j(q))},openCursor:function(q){var H=q.query.index,k=H.keyTail,B=H.keyLength;return H.isVirtual?p.openCursor(j(q)).then(function(J){return J&&I(J)}):p.openCursor(q);function I(J){return Object.create(J,{continue:{value:function(Q){Q!=null?J.continue(Ea(Q,q.reverse?l.MAX_KEY:l.MIN_KEY,k)):q.unique?J.continue(J.key.slice(0,B).concat(q.reverse?l.MIN_KEY:l.MAX_KEY,k)):J.continue()}},continuePrimaryKey:{value:function(Q,ne){J.continuePrimaryKey(Ea(Q,l.MAX_KEY,k),ne)}},primaryKey:{get:function(){return J.primaryKey}},key:{get:function(){var Q=J.key;return B===1?Q[0]:Q.slice(0,B)}},value:{get:function(){return J.value}}})}}})}})}};function Eo(l,d,p,m){return p=p||{},m=m||"",y(l).forEach(function(S){var w,A,C;E(d,S)?(w=l[S],A=d[S],typeof w=="object"&&typeof A=="object"&&w&&A?(C=Dt(w))!==Dt(A)?p[m+S]=d[S]:C==="Object"?Eo(w,A,p,m+S+"."):w!==A&&(p[m
vendor: 23,233 bytes, line 29
29+S]=d[S]):w!==A&&(p[m+S]=d[S])):p[m+S]=void 0}),y(d).forEach(function(S){E(l,S)||(p[m+S]=d[S])}),p}function To(l,d){return d.type==="delete"?d.keys:d.keys||d.values.map(l.extractKey)}var Bl={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(l){return s(s({},l),{table:function(d){var p=l.table(d),m=p.schema.primaryKey;return s(s({},p),{mutate:function(S){var w=Re.trans,A=w.table(d).hook,C=A.deleting,N=A.creating,X=A.updating;switch(S.type){case"add":if(N.fire===it)break;return w._promise("readwrite",function(){return U(S)},!0);case"put":if(N.fire===it&&X.fire===it)break;return w._promise("readwrite",function(){return U(S)},!0);case"delete":if(C.fire===it)break;return w._promise("readwrite",function(){return U(S)},!0);case"deleteRange":if(C.fire===it)break;return w._promise("readwrite",function(){return(function j(q,H,k){return p.query({trans:q,values:!1,query:{index:m,range:H},limit:k}).then(function(B){var I=B.result;return U({type:"delete",keys:I,trans:q}).then(function(J){return 0<J.numFailures?Promise.reject(J.failures[0]):I.length<k?{failures:[],numFailures:0,lastResult:void 0}:j(q,s(s({},H),{lower:I[I.length-1],lowerOpen:!0}),k)})})})(S.trans,S.range,1e4)},!0)}return p.mutate(S);function U(j){var q,H,k,B=Re.trans,I=j.keys||To(m,j);if(I)return(j=j.type==="add"||j.type==="put"?s(s({},j),{keys:I}):s({},j)).type!=="delete"&&(j.values=c([],j.values)),j.keys&&(j.keys=c([],j.keys)),q=p,k=I,((H=j).type==="add"?Promise.resolve([]):q.getMany({trans:H.trans,keys:k,cache:"immutable"})).then(function(J){var Q=I.map(function(ne,de){var ye,ge,he,Oe=J[de],we={onerror:null,onsuccess:null};return j.type==="delete"?C.fire.call(we,ne,Oe,B):j.type==="add"||Oe===void 0?(ye=N.fire.call(we,ne,j.values[de],B),ne==null&&ye!=null&&(j.keys[de]=ne=ye,m.outbound||ue(j.values[de],m.keyPath,ne))):(ye=Eo(Oe,j.values[de]),(ge=X.fire.call(we,ye,ne,Oe,B))&&(he=j.values[de],Object.keys(ge).forEach(function(pe){E(he,pe)?he[pe]=ge[pe]:ue(he,pe,ge[pe])}))),we});return p.mutate(j).then(function(ne){for(var de=ne.failures,ye=ne.results,ge=ne.numFailures,ne=ne.lastResult,he=0;he<I.length;++he){var Oe=(ye||I)[he],we=Q[he];Oe==null?we.onerror&&we.onerror(de[he]):we.onsuccess&&we.onsuccess(j.type==="put"&&J[he]?j.values[he]:Oe)}return{failures:de,results:ye,numFailures:ge,lastResult:ne}}).catch(function(ne){return Q.forEach(function(de){return de.onerror&&de.onerror(ne)}),Promise.reject(ne)})});throw new Error("Keys missing")}}})}})}};function Ds(l,d,p){try{if(!d||d.keys.length<l.length)return null;for(var m=[],S=0,w=0;S<d.keys.length&&w<l.length;++S)$e(d.keys[S],l[w])===0&&(m.push(p?Xe(d.values[S]):d.values[S]),++w);return m.length===l.length?m:null}catch{return null}}var ql={stack:"dbcore",level:-1,create:function(l){return{table:function(d){var p=l.table(d);return s(s({},p),{getMany:function(m){var S;return m.cache?(S=Ds(m.keys,m.trans._cache,m.cache==="clone"))?_e.resolve(S):p.getMany(m).then(function(w){return m.trans._cache={keys:m.keys,values:m.cache==="clone"?Xe(w):w},w}):p.getMany(m)},mutate:function(m){return m.type!=="add"&&(m.trans._cache=null),p.mutate(m)}})}}}};function Za(l,d){return l.trans.mode==="readonly"&&!!l.subscr&&!l.trans.explicit&&l.trans.db._options.cache!=="disabled"&&!d.schema.primaryKey.outbound}function Pl(l,d){switch(l){case"query":return d.values&&!d.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var Lc={stack:"dbcore",level:0,name:"Observability",create:function(l){var d=l.schema.name,p=new tn(l.MIN_KEY,l.MAX_KEY);return s(s({},l),{transaction:function(m,S,w){if(Re.subscr&&S!=="readonly")throw new Me.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Re.querier));return l.transaction(m,S,w)},table:function(m){function S(I){var B,I=I.query;return[B=I.index,new tn((B=(I=I.range).lower)!=null?B:l.MIN_KEY,(B=I.upper)!=null?B:l.MAX_KEY)]}var w=l.table(m),A=w.schema,C=A.primaryKey,N=A.indexes,X=C.extractKey,U=C.outbound,j=C.autoIncrement&&N.filter(function(k){return k.compound&&k.keyPath.includes(C.keyPath)}),q=s(s({},w),{mutate:function(k){function B(Ae){return Ae="idb://".concat(d,"/").concat(m,"/").concat(Ae),de[Ae]||(de[Ae]=new tn)}var I,J,Q,ne=k.trans,de=k.mutatedParts||(k.mutatedParts={}),ye=B(""),ge=B(":dels"),he=k.type,we=k.type==="deleteRange"?[k.range]:k.type==="delete"?[k.keys]:k.values.length<50?[To(C,k).filter(function(Ae){return Ae}),k.values]:[],Oe=we[0],we=we[1],pe=k.trans._cache;return v(Oe)?(ye.addKeys(Oe),(he=he==="delete"||Oe.length===we.length?Ds(Oe,pe):null)||ge.addKeys(Oe),(he||we)&&(I=B,J=he,Q=we,A.indexes.forEach(function(Ae){var Pe=I(Ae.name||"");function We(Ge){return Ge!=null?Ae.extractKey(Ge):null}function je(Ge){Ae.multiEntry&&v(Ge)?Ge.forEach(function(vt){return Pe.addKey(vt)}):Pe.addKey(Ge)}(J||Q).forEach(function(Ge,ht){var mn=J&&We(J[ht]),ht=Q&&We(Q[ht]);$e(mn,ht)!==0&&(mn!=null&&je(mn),ht!=null)&&je(ht)})}))):Oe?(we={from:(pe=Oe.lower)!=null?pe:l.MIN_KEY,to:(he=Oe.upper)!=null?he:l.MAX_KEY},ge.add(we),ye.add(we)):(ye.add(p),ge.add(p),A.indexes.forEach(function(Ae){return B(Ae.name).add(p)})),w.mutate(k).then(function(Ae){return!Oe||k.type!=="add"&&k.type!=="put"||(ye.addKeys(Ae.results),j&&j.forEach(function(Pe){for(var We=k.values.map(function(mn){return Pe.extractKey(mn)}),je=Pe.keyPath.findIndex(function(mn){return mn===C.keyPath}),Ge=0,vt=Ae.results.length;Ge<vt;++Ge)We[Ge][je]=Ae.results[Ge];B(Pe.name).addKeys(We)})),ne.mutatedParts=_o(ne.mutatedParts||{},de),Ae})}}),H={get:function(k){return[C,new tn(k.key)]},getMany:function(k){return[C,new tn().addKeys(k.keys)]},count:S,query:S,openCursor:S};return y(H).forEach(function(k){q[k]=function(B){var I=Re.subscr,J=!!I,Q=Za(Re,w)&&Pl(k,B)?B.obsSet={}:I;if(J){var ne,I=function(we){return we="idb://".concat(d,"/").concat(m,"/").concat(we),Q[we]||(Q[we]=new tn)},de=I(""),ye=I(":dels"),J=H[k](B),ge=J[0],J=J[1];if((k==="query"&&ge.isPrimaryKey&&!B.values?ye:I(ge.name||"")).add(J),!ge.isPrimaryKey){if(k!=="count")return ne=k==="query"&&U&&B.values&&w.query(s(s({},B),{values:!1})),w[k].apply(this,arguments).then(function(we){if(k==="query"){if(U&&B.values)return ne.then(function(We){return We=We.result,de.addKeys(We),we});var pe=B.values?we.result.map(X):we.result;(B.values?de:ye).addKeys(pe)}else{var Ae,Pe;if(k==="openCursor")return Pe=B.values,(Ae=we)&&Object.create(Ae,{key:{get:function(){return ye.addKey(Ae.primaryKey),Ae.key}},primaryKey:{get:function(){var We=Ae.primaryKey;return ye.addKey(We),We}},value:{get:function(){return Pe&&de.addKey(Ae.primaryKey),Ae.value}}})}return we});ye.add(p)}}return w[k].apply(this,arguments)}}),q}})}};function Hl(l,d,p){var m;return p.numFailures===0?d:d.type==="deleteRange"||(m=d.keys?d.keys.length:"values"in d&&d.values?d.values.length:1,p.numFailures===m)?null:(m=s({},d),v(m.keys)&&(m.keys=m.keys.filter(function(S,w){return!(w in p.failures)})),"values"in m&&v(m.values)&&(m.values=m.values.filter(function(S,w){return!(w in p.failures)})),m)}function Ro(l,d){return p=l,((m=d).lower===void 0||(m.lowerOpen?0<$e(p,m.lower):0<=$e(p,m.lower)))&&(p=l,(m=d).upper===void 0||(m.upperOpen?$e(p,m.upper)<0:$e(p,m.upper)<=0));var p,m}function zs(l,d,p,m,S,w){var A,C,N,X,U,j;return!p||p.length===0||(A=d.query.index,C=A.multiEntry,N=d.query.range,X=m.schema.primaryKey.extractKey,U=A.extractKey,j=(A.lowLevelIndex||A).extractKey,(m=p.reduce(function(q,H){var k=q,B=[];if(H.type==="add"||H.type==="put")for(var I=new tn,J=H.values.length-1;0<=J;--J){var Q,ne=H.values[J],de=X(ne);!I.hasKey(de)&&(Q=U(ne),C&&v(Q)?Q.some(function(we){return Ro(we,N)}):Ro(Q,N))&&(I.addKey(de),B.push(ne))}switch(H.type){case"add":var ye=new tn().addKeys(d.values?q.map(function(pe){return X(pe)}):q),k=q.concat(d.values?B.filter(function(pe){return pe=X(pe),!ye.hasKey(pe)&&(ye.addKey(pe),!0)}):B.map(function(pe){return X(pe)}).filter(function(pe){return!ye.hasKey(pe)&&(ye.addKey(pe),!0)}));break;case"put":var ge=new tn().addKeys(H.values.map(function(pe){return X(pe)}));k=q.filter(function(pe){return!ge.hasKey(d.values?X(pe):pe)}).concat(d.values?B:B.map(function(pe){return X(pe)}));break;case"delete":var he=new tn().addKeys(H.keys);k=q.filter(function(pe){return!he.hasKey(d.values?X(pe):pe)});break;case"deleteRange":var Oe=H.range;k=q.filter(function(pe){return!Ro(X(pe),Oe)})}return k},l))===l)?l:(m.sort(function(q,H){return $e(j(q),j(H))||$e(X(q),X(H))}),d.limit&&d.limit<1/0&&(m.length>d.limit?m.length=d.limit:l.length===d.limit&&m.length<d.limit&&(S.dirty=!0)),w?Object.freeze(m):m)}function Dr(l,d){return $e(l.lower,d.lower)===0&&$e(l.upper,d.upper)===0&&!!l.lowerOpen==!!d.lowerOpen&&!!l.upperOpen==!!d.upperOpen}function Di(l,d){return((p,m,S,w)=>{if(p===void 0)return m!==void 0?-1:0;if(m===void 0)return 1;if((p=$e(p,m))===0){if(S&&w)return 0;if(S)return 1;if(w)return-1}return p})(l.lower,d.lower,l.lowerOpen,d.lowerOpen)<=0&&0<=((p,m,S,w)=>{if(p===void 0)return m!==void 0?1:0;if(m===void 0)return-1;if((p=$e(p,m))===0){if(S&&w)return 0;if(S)return-1;if(w)return 1}return p})(l.upper,d.upper,l.upperOpen,d.upperOpen)}function jc(l,d,p,m){l.subscribers.add(p),m.addEventListener("abort",function(){var S,w;l.subscribers.delete(p),l.subscribers.size===0&&(S=l,w=d,setTimeout(function(){S.subscribers.size===0&&Le(w,S)},3e3))})}var xo={stack:"dbcore",level:0,name:"Cache",create:function(l){var d=l.schema.name;return s(s({},l),{transaction:function(p,m,S){var w,A,C=l.transaction(p,m,S);return m==="readwrite"&&(S=(w=new AbortController).signal,C.addEventListener("abort",(A=function(N){return function(){if(w.abort(),m==="readwrite"){for(var X=new Set,U=0,j=p;U<j.length;U++){var q=j[U],H=Ia["idb://".concat(d,"/").concat(q)];if(H){var k=l.table(q),B=H.optimisticOps.filter(function(Ae){return Ae.trans===C});if(C._explicit&&N&&C.mutatedParts)for(var I=0,J=Object.values(H.queries.query);I<J.length;I++)for(var Q=0,ne=(ge=J[I]).slice();Q<ne.length;Q++)Os((he=ne[Q]).obsSet,C.mutatedParts)&&(Le(ge,he),he.subscribers.forEach(function(Ae){return X.add(Ae)}));else if(0<B.length){H.optimisticOps=H.optimisticOps.filter(function(Ae){return Ae.trans!==C});for(var de=0,ye=Object.values(H.queries.query);de<ye.length;de++)for(var ge,he,Oe,we=0,pe=(ge=ye[de]).slice();we<pe.length;we++)(he=pe[we]).res!=null&&C.mutatedParts&&(N&&!he.dirty?(Oe=Object.isFrozen(he.res),Oe=zs(he.res,he.req,B,k,he,Oe),he.dirty?(Le(ge,he),he.subscribers.forEach(function(Ae){return X.add(Ae)})):Oe!==he.res&&(he.res=Oe,he.promise=_e.resolve({result:Oe}))):(he.dirty&&Le(ge,he),he.subscribers.forEach(function(Ae){return X.add(Ae)})))}}}X.forEach(function(Ae){return Ae()})}}})(!1),{signal:S}),C.addEventListener("error",A(!1),{signal:S}),C.addEventListener("complete",A(!0),{signal:S})),C},table:function(p){var m=l.table(p),S=m.schema.primaryKey;return s(s({},m),{mutate:function(w){var A,C=Re.trans;return!S.outbound&&C.db._options.cache!=="disabled"&&!C.explicit&&C.idbtrans.mode==="readwrite"&&(A=Ia["idb://".concat(d,"/").concat(p)])?(C=m.mutate(w),w.type!=="add"&&w.type!=="put"||!(50<=w.values.length||To(S,w).some(function(N){return N==null}))?(A.optimisticOps.push(w),w.mutatedParts&&wo(w.mutatedParts),C.then(function(N){0<N.numFailures&&(Le(A.optimisticOps,w),(N=Hl(0,w,N))&&A.optimisticOps.push(N),w.mutatedParts)&&wo(w.mutatedParts)}),C.catch(function(){Le(A.optimisticOps,w),w.mutatedParts&&wo(w.mutatedParts)})):C.then(function(N){var X=Hl(0,s(s({},w),{values:w.values.map(function(U,j){var q;return N.failures[j]?U:(ue(q=(q=S.keyPath)!=null&&q.includes(".")?Xe(U):s({},U),S.keyPath,N.results[j]),q)})}),N);A.optimisticOps.push(X),queueMicrotask(function(){return w.mutatedParts&&wo(w.mutatedParts)})}),C):m.mutate(w)},query:function(w){var A,C,N,X,U,j,q;return Za(Re,m)&&Pl("query",w)?(A=((N=Re.trans)==null?void 0:N.db._options.cache)==="immutable",C=(N=Re).requery,N=N.signal,j=((H,k,B,I)=>{var J=Ia["idb://".concat(H,"/").concat(k)];if(!J)return[];if(!(H=J.queries[B]))return[null,!1,J,null];var Q=H[(I.query?I.query.index.name:null)||""];if(!Q)return[null,!1,J,null];switch(B){case"query":var ne=Q.find(function(de){return de.req.limit===I.limit&&de.req.values===I.values&&Dr(de.req.query.range,I.query.range)});return ne?[ne,!0,J,Q]:[Q.find(function(de){return("limit"in de.req?de.req.limit:1/0)>=I.limit&&(!I.values||de.req.values)&&Di(de.req.query.range,I.query.range)}),!1,J,Q];case"count":return ne=Q.find(function(de){return Dr(de.req.query.range,I.query.range)}),[ne,!!ne,J,Q]}})(d,p,"query",w),q=j[0],X=j[2],U=j[3],q&&j[1]?q.obsSet=w.obsSet:(j=m.query(w).then(function(H){var k=H.result;if(q&&(q.res=k),A){for(var B=0,I=k.length;B<I;++B)Object.freeze(k[B]);Object.freeze(k)}else H.result=Xe(k);return H}).catch(function(H){return U&&q&&Le(U,q),Promise.reject(H)}),q={obsSet:w.obsSet,promise:j,subscribers:new Set,type:"query",req:w,dirty:!1},U?U.push(q):(U=[q],(X=X||(Ia["idb://".concat(d,"/").concat(p)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[w.query.index.name||""]=U)),jc(q,U,C,N),q.promise.then(function(H){return{result:zs(H.result,w,X?.optimisticOps,m,q,A)}})):m.query(w)}})}})}};function zi(l,d){return new Proxy(l,{get:function(p,m,S){return m==="db"?d:Reflect.get(p,m,S)}})}At.prototype.version=function(l){if(isNaN(l)||l<.1)throw new Me.Type("Given version is not a positive number");if(l=Math.round(10*l)/10,this.idbdb||this._state.isBeingOpened)throw new Me.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,l);var d=this._versions,p=d.filter(function(m){return m._cfg.version===l})[0];return p||(p=new this.Version(l),d.push(p),d.sort(_s),p.stores({}),this._state.autoSchema=!1),p},At.prototype._whenReady=function(l){var d=this;return this.idbdb&&(this._state.openComplete||Re.letThrough||this._vip)?l():new _e(function(p,m){if(d._state.openComplete)return m(new Me.DatabaseClosed(d._state.dbOpenError));if(!d._state.isBeingOpened){if(!d._state.autoOpen)return void m(new Me.DatabaseClosed);d.open().catch(it)}d._state.dbReadyPromise.then(p,m)}).then(l)},At.prototype.use=function(S){var d=S.stack,p=S.create,m=S.level,S=S.name,w=(S&&this.unuse({stack:d,name:S}),this._middlewares[d]||(this._middlewares[d]=[]));return w.push({stack:d,create:p,level:m??10,name:S}),w.sort(function(A,C){return A.level-C.level}),this},At.prototype.unuse=function(l){var d=l.stack,p=l.name,m=l.create;return d&&this._middlewares[d]&&(this._middlewares[d]=this._middlewares[d].filter(function(S){return m?S.create!==m:!!p&&S.name!==p})),this},At.prototype.open=function(){var l=this;return Ln(rn,function(){return Dc(l)})},At.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var l=this._state,d=Pa.indexOf(this);if(0<=d&&Pa.splice(d,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}l.isBeingOpened||(l.dbReadyPromise=new _e(function(p){l.dbReadyResolve=p}),l.openCanceller=new _e(function(p,m){l.cancelOpen=m}))},At.prototype.close=function(d){var d=(d===void 0?{disableAutoOpen:!0}:d).disableAutoOpen,p=this._state;d?(p.isBeingOpened&&p.cancelOpen(new Me.DatabaseClosed),this._close(),p.autoOpen=!1,p.dbOpenError=new Me.DatabaseClosed):(this._close(),p.autoOpen=this._options.autoOpen||p.isBeingOpened,p.openComplete=!1,p.dbOpenError=null)},At.prototype.delete=function(l){var d=this,p=(l===void 0&&(l={disableAutoOpen:!0}),0<arguments.length&&typeof arguments[0]!="object"),m=this._state;return new _e(function(S,w){function A(){d.close(l);var C=d._deps.indexedDB.deleteDatabase(d.name);C.onsuccess=Et(function(){var N,X,U;N=d._deps,X=d.name,bo(U=N.indexedDB)||X===Si||Es(U,N.IDBKeyRange).delete(X).catch(it),S()}),C.onerror=Nn(w),C.onblocked=d._fireOnBlocked}if(p)throw new Me.InvalidArgument("Invalid closeOptions argument to db.delete()");m.isBeingOpened?m.dbReadyPromise.then(A):A()})},At.prototype.backendDB=function(){return this.idbdb},At.prototype.isOpen=function(){return this.idbdb!==null},At.prototype.hasBeenClosed=function(){var l=this._state.dbOpenError;return l&&l.name==="DatabaseClosed"},At.prototype.hasFailed=function(){return this._state.dbOpenError!==null},At.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(At.prototype,"tables",{get:function(){var l=this;return y(this._allTables).map(function(d){return l._allTables[d]})},enumerable:!1,configurable:!0}),At.prototype.transaction=function(){var l=(function(d,p,m){var S=arguments.length;if(S<2)throw new Me.InvalidArgument("Too few arguments");for(var w=new Array(S-1);--S;)w[S-1]=arguments[S];return m=w.pop(),[d,He(w),m]}).apply(this,arguments);return this._transaction.apply(this,l)},At.prototype._transaction=function(l,d,p){var m,S,w=this,A=Re.trans,C=(A&&A.db===this&&l.indexOf("!")===-1||(A=null),l.indexOf("?")!==-1);l=l.replace("!","").replace("?","");try{if(S=d.map(function(X){if(X=X instanceof w.Table?X.name:X,typeof X!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return X}),l=="r"||l===la)m=la;else{if(l!="rw"&&l!=Sa)throw new Me.InvalidArgument("Invalid transaction mode: "+l);m=Sa}if(A){if(A.mode===la&&m===Sa){if(!C)throw new Me.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");A=null}A&&S.forEach(function(X){if(A&&A.storeNames.indexOf(X)===-1){if(!C)throw new Me.SubTransaction("Table "+X+" not included in parent transaction.");A=null}}),C&&A&&!A.active&&(A=null)}}catch(X){return A?A._promise(null,function(U,j){j(X)}):gt(X)}var N=(function X(U,j,q,H,k){return _e.resolve().then(function(){var Q=Re.transless||Re,B=U._createTransaction(j,q,U._dbSchema,H),Q=(B.explicit=!0,{trans:B,transless:Q});if(H)B.idbtrans=H.idbtrans;else try{B.create(),B.idbtrans._explicit=!0,U._state.PR1398_maxLoop=3}catch(ne){return ne.name===zt.InvalidState&&U.isOpen()&&0<--U._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),U.close({disableAutoOpen:!1}),U.open().then(function(){return X(U,j,q,null,k)})):gt(ne)}var I,J=K(k),Q=(J&&Bt(),_e.follow(function(){var ne;(I=k.call(B,B))&&(J?(ne=bn.bind(null,null),I.then(ne,ne)):typeof I.next=="function"&&typeof I.throw=="function"&&(I=Mi(I)))},Q));return(I&&typeof I.then=="function"?_e.resolve(I).then(function(ne){return B.active?ne:gt(new Me.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):Q.then(function(){return I})).then(function(ne){return H&&B._resolve(),B._completion.then(function(){return ne})}).catch(function(ne){return B._reject(ne),gt(ne)})})}).bind(null,this,m,S,A,p);return A?A._promise(m,N,"lock"):Re.trans?Ln(Re.transless,function(){return w._whenReady(N)}):this._whenReady(N)},At.prototype.table=function(l){if(E(this._allTables,l))return this._allTables[l];throw new Me.InvalidTable("Table ".concat(l," does not exist"))};var In=At;function At(l,d){var p,m,S,w,A,C=this,N=(this._middlewares={},this.verno=0,At.dependencies),N=(this._options=d=s({addons:At.addons,autoOpen:!0,indexedDB:N.indexedDB,IDBKeyRange:N.IDBKeyRange,cache:"cloned"},d),this._deps={indexedDB:d.indexedDB,IDBKeyRange:d.IDBKeyRange},d.addons),X=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:it,dbReadyPromise:null,cancelOpen:it,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:d.autoOpen}),U=(X.dbReadyPromise=new _e(function(j){X.dbReadyResolve=j}),X.openCanceller=new _e(function(j,q){X.cancelOpen=q}),this._state=X,this.name=l,this.on=Ei(this,"populate","blocked","versionchange","close",{ready:[ja,it]}),this.once=function(j,q){var H=function(){for(var k=[],B=0;B<arguments.length;B++)k[B]=arguments[B];C.on(j).unsubscribe(H),q.apply(C,k)};return C.on(j,H)},this.on.ready.subscribe=le(this.on.ready.subscribe,function(j){return function(q,H){At.vip(function(){var k,B=C._state;B.openComplete?(B.dbOpenError||_e.resolve().then(q),H&&j(q)):B.onReadyBeingFired?(B.onReadyBeingFired.push(q),H&&j(q)):(j(q),k=C,H||j(function I(){k.on.ready.unsubscribe(q),k.on.ready.unsubscribe(I)}))})}}),this.Collection=(p=this,Wt(Ac.prototype,function(I,B){this.db=p;var H=ms,k=null;if(B)try{H=B()}catch(Q){k=Q}var B=I._ctx,I=B.table,J=I.hook.reading.fire;this._ctx={table:I,index:B.index,isPrimKey:!B.index||I.schema.primKey.keyPath&&B.index===I.schema.primKey.name,range:H,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:k,or:B.or,valueMapper:J!==ia?J:null}})),this.Table=(m=this,Wt(ys.prototype,function(j,q,H){this.db=m,this._tx=H,this.name=j,this.schema=q,this.hook=m._allTables[j]?m._allTables[j].hook:Ei(null,{creating:[br,it],reading:[oa,ia],updating:[Sr,it],deleting:[ha,it]})})),this.Transaction=(S=this,Wt(Ss.prototype,function(j,q,H,k,B){var I=this;j!=="readonly"&&q.forEach(function(J){J=(J=H[J])==null?void 0:J.yProps,J&&(q=q.concat(J.map(function(Q){return Q.updatesTable})))}),this.db=S,this.mode=j,this.storeNames=q,this.schema=H,this.chromeTransactionDurability=k,this.idbtrans=null,this.on=Ei(this,"complete","error","abort"),this.parent=B||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new _e(function(J,Q){I._resolve=J,I._reject=Q}),this._completion.then(function(){I.active=!1,I.on.complete.fire()},function(J){var Q=I.active;return I.active=!1,I.on.error.fire(J),I.parent?I.parent._reject(J):Q&&I.idbtrans&&I.idbtrans.abort(),gt(J)})})),this.Version=(w=this,Wt(Mc.prototype,function(j){this.db=w,this._cfg={version:j,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(A=this,Wt(Ya.prototype,function(j,q,H){if(this.db=A,this._ctx={table:j,index:q===":id"?null:q,or:H},this._cmp=this._ascending=$e,this._descending=function(k,B){return $e(B,k)},this._max=function(k,B){return 0<$e(k,B)?k:B},this._min=function(k,B){return $e(k,B)<0?k:B},this._IDBKeyRange=A._deps.IDBKeyRange,!this._IDBKeyRange)throw new Me.MissingAPI})),this.on("versionchange",function(j){0<j.newVersion?console.warn("Another connection wants to upgrade database '".concat(C.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(C.name,"'. Closing db now to resume the delete request.")),C.close({disableAutoOpen:!1})}),this.on("blocked",function(j){!j.newVersion||j.newVersion<j.oldVersion?console.warn("Dexie.delete('".concat(C.name,"') was blocked")):console.warn("Upgrade '".concat(C.name,"' blocked by other connection holding version ").concat(j.oldVersion/10))}),this._maxKey=Or(d.IDBKeyRange),this._createTransaction=function(j,q,H,k){return new C.Transaction(j,q,H,C._options.chromeTransactionDurability,k)},this._fireOnBlocked=function(j){C.on("blocked").fire(j),Pa.filter(function(q){return q.name===C.name&&q!==C&&!q._state.vcFired}).map(function(q){return q.on("versionchange").fire(j)})},this.use(ql),this.use(xo),this.use(Lc),this.use(zc),this.use(Bl),new Proxy(this,{get:function(j,q,H){var k;return q==="_vip"||(q==="table"?function(B){return zi(C.table(B),U)}:(k=Reflect.get(j,q,H))instanceof ys?zi(k,U):q==="tables"?k.map(function(B){return zi(B,U)}):q==="_createTransaction"?function(){return zi(k.apply(this,arguments),U)}:k)}}));
29this.vip=U,N.forEach(function(j){return j(C)})}var zr,Fa=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",Kl=(Oo.prototype.subscribe=function(l,d,p){return this._subscribe(l&&typeof l!="function"?l:{next:l,error:d,complete:p})},Oo.prototype[Fa]=function(){return this},Oo);function Oo(l){this._subscribe=l}try{zr={indexedDB:h.indexedDB||h.mozIndexedDB||h.webkitIndexedDB||h.msIndexedDB,IDBKeyRange:h.IDBKeyRange||h.webkitIDBKeyRange}}catch{zr={indexedDB:null,IDBKeyRange:null}}function Yl(l){var d,p=!1,m=new Kl(function(S){var w=K(l),A,C=!1,N={},X={},U={get closed(){return C},unsubscribe:function(){C||(C=!0,A&&A.abort(),j&&en.storagemutated.unsubscribe(H))}},j=(S.start&&S.start(U),!1),q=function(){return ba(k)},H=function(B){_o(N,B),Os(X,N)&&q()},k=function(){var B,I,J;!C&&zr.indexedDB&&(N={},B={},A&&A.abort(),A=new AbortController,J=(Q=>{var ne=ya();try{w&&Bt();var de=xt(l,Q);return de=w?de.finally(bn):de}finally{ne&&Gn()}})(I={subscr:B,signal:A.signal,requery:q,querier:l,trans:null}),Promise.resolve(J).then(function(Q){p=!0,d=Q,C||I.signal.aborted||(N={},(ne=>{for(var de in ne)if(E(ne,de))return;return 1})(X=B)||j||(en(Rr,H),j=!0),ba(function(){return!C&&S.next&&S.next(Q)}))},function(Q){p=!1,["DatabaseClosedError","AbortError"].includes(Q?.name)||C||ba(function(){C||S.error&&S.error(Q)})}))};return setTimeout(q,0),U});return m.hasValue=function(){return p},m.getValue=function(){return d},m}var Ja=In;function Ls(l){var d=Ta;try{Ta=!0,en.storagemutated.fire(l),Ms(l,!0)}finally{Ta=d}}O(Ja,s(s({},ie),{delete:function(l){return new Ja(l,{addons:[]}).delete()},exists:function(l){return new Ja(l,{addons:[]}).open().then(function(d){return d.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(l){try{return d=Ja.dependencies,p=d.indexedDB,d=d.IDBKeyRange,(bo(p)?Promise.resolve(p.databases()).then(function(m){return m.map(function(S){return S.name}).filter(function(S){return S!==Si})}):Es(p,d).toCollection().primaryKeys()).then(l)}catch{return gt(new Me.MissingAPI)}var d,p},defineClass:function(){return function(l){b(this,l)}},ignoreTransaction:function(l){return Re.trans?Ln(Re.transless,l):l()},vip:Ts,async:function(l){return function(){try{var d=Mi(l.apply(this,arguments));return d&&typeof d.then=="function"?d:_e.resolve(d)}catch(p){return gt(p)}}},spawn:function(l,d,p){try{var m=Mi(l.apply(p,d||[]));return m&&typeof m.then=="function"?m:_e.resolve(m)}catch(S){return gt(S)}},currentTransaction:{get:function(){return Re.trans||null}},waitFor:function(l,d){return l=_e.resolve(typeof l=="function"?Ja.ignoreTransaction(l):l).timeout(d||6e4),Re.trans?Re.trans.waitFor(l):l},Promise:_e,debug:{get:function(){return fn},set:function(l){hi(l)}},derive:z,extend:b,props:O,override:le,Events:Ei,on:en,liveQuery:Yl,extendObservabilitySet:_o,getByKeyPath:Te,setByKeyPath:ue,delByKeyPath:function(l,d){typeof d=="string"?ue(l,d,void 0):"length"in d&&[].map.call(d,function(p){ue(l,p,void 0)})},shallowClone:ce,deepClone:Xe,getObjectDiff:Eo,cmp:$e,asap:Ce,minKey:-1/0,addons:[],connections:Pa,errnames:zt,dependencies:zr,cache:Ia,semVer:"4.3.0",version:"4.3.0".split(".").map(function(l){return parseInt(l)}).reduce(function(l,d,p){return l+d/Math.pow(10,2*p)})})),Ja.maxKey=Or(Ja.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(en(Rr,function(l){Ta||(l=new CustomEvent(Va,{detail:l}),Ta=!0,dispatchEvent(l),Ta=!1)}),addEventListener(Va,function(l){l=l.detail,Ta||Ls(l)}));var Lr,Ta=!1,pn=function(){};return typeof BroadcastChannel<"u"&&((pn=function(){(Lr=new BroadcastChannel(Va)).onmessage=function(l){return l.data&&Ls(l.data)}})(),typeof Lr.unref=="function"&&Lr.unref(),en(Rr,function(l){Ta||Lr.postMessage(l)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(l){if(!In.disableBfCache&&l.persisted){fn&&console.debug("Dexie: handling persisted pagehide"),Lr?.close();for(var d=0,p=Pa;d<p.length;d++)p[d].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(l){!In.disableBfCache&&l.persisted&&(fn&&console.debug("Dexie: handling persisted pageshow"),pn(),Ls({all:new tn(-1/0,[[]])}))})),_e.rejectionMapper=function(l,d){return!l||l instanceof be||l instanceof TypeError||l instanceof SyntaxError||!l.name||!Yn[l.name]?l:(d=new Yn[l.name](d||l.message,l),"stack"in l&&Y(d,"stack",{get:function(){return this.inner.stack}}),d)},hi(fn),s(In,Object.freeze({__proto__:null,Dexie:In,Entity:Ml,PropModification:Tr,RangeSet:tn,add:function(l){return new Tr({add:l})},cmp:$e,default:In,liveQuery:Yl,mergeRanges:Qa,rangesOverlap:Nl,remove:function(l){return new Tr({remove:l})},replacePrefix:function(l,d){return new Tr({replacePrefix:[l,d]})}}),{default:In}),In})})($u)),$u.exports}var wT=_T();const Wd=xg(wT),Tg=Symbol.for("Dexie"),dc=globalThis[Tg]||(globalThis[Tg]=Wd);if(Wd.semVer!==dc.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${Wd.semVer} and ${dc.semVer}`);const{liveQuery:cR,mergeRanges:fR,rangesOverlap:dR,RangeSet:hR,cmp:pR,Entity:mR,PropModification:yR,replacePrefix:gR,add:vR,remove:bR,DexieYProvider:SR}=dc;class ET extends dc{todos;lists;outbox;settings;constructor(){super("toodoo"),this.version(1).stores({todos:"id, user_id, date, list_id, position, [date+recurring_parent_id], _synced, deleted_at",lists:"id, user_id, position, _synced, deleted_at",outbox:"++id, table_name, record_id, created_at"}),this.version(2).stores({settings:"id"}),this.version(3).stores({todos:"id, user_id, date, list_id, position, priority, [date+recurring_parent_id], _synced, deleted_at"}).upgrade(r=>r.table("todos").toCollection().modify(i=>{i.priority||(i.priority="L")})),this.version(4).stores({todos:"id, user_id, date, list_id, position, priority, [date+recurring_parent_id], original_date, _synced, deleted_at"}).upgrade(r=>r.table("todos").toCollection().modify(i=>{i.original_date===void 0&&(i.original_date=i.recurring_parent_id?i.date:null)})),this.version(5).stores({todos:"id, user_id, date, list_id, position, priority, [date+recurring_parent_id], original_date, _synced, deleted_at"}).upgrade(r=>r.table("todos").toCollection().modify(i=>{i.completed_at===void 0&&(i.completed_at=null)})),this.version(6).stores({todos:"id, user_id, date, list_id, position, priority, [date+recurring_parent_id], original_date, _synced, deleted_at",lists:"id, user_id, position, _synced, deleted_at",outbox:"++id, table_name, record_id, created_at",settings:"id"}).upgrade(r=>r.table("settings").toCollection().modify(i=>{i.local_first===void 0&&(i.local_first=!0)}))}}const TT=new ET;function _R(){return new Date().toISOString()}function wR(){const a="abcdefghijklmnopqrstuvwxyz0123456789",r=crypto.getRandomValues(new Uint8Array(15));return Array.from(r,i=>a[i%a.length]).join("")}async function ER(a,r){const i="abcdefghijklmnopqrstuvwxyz0123456789",s=new TextEncoder().encode(`${a}:${r}`),c=await crypto.subtle.digest("SHA-256",s),h=new Uint8Array(c);return Array.from(h.slice(0,15),y=>i[y%i.length]).join("")}async function Vv(a,r){try{const s=(await gn.collection("users").authWithPassword(a,r)).record;return{id:s.id,email:s.email,hide_completed:s.hide_completed??!1,theme:s.theme||"system",accent_color:s.accent_color||"blue",local_first:s.local_first??!0,locale:s.locale||""}}catch(i){throw i.status===400?new Error("Invalid email or password"):new Error("Could not connect to server")}}async function RT(a,r){try{await gn.collection("users").create({email:a,password:r,passwordConfirm:r})}catch(i){const s=i;if(s.status===400){const c=s.response?.data;throw c?.email?.message?new Error(c.email.message):c?.password?.message?new Error(c.password.message):new Error("Invalid registration data")}throw new Error("Could not connect to server")}return Vv(a,r)}async function xT(){const{disablePushNotifications:a}=await ui(async()=>{const{disablePushNotifications:i}=await import("./push-notifications-7gOYfnDx.js");return{disablePushNotifications:i}},[]);await a(),gn.authStore.clear();const{clearLocalTaskData:r}=await ui(async()=>{const{clearLocalTaskData:i}=await import("./local-data-BYRvkvUo.js");return{clearLocalTaskData:i}},[]);await r()}function bl(){if(!gn.authStore.isValid||!gn.authStore.record)return null;const a=gn.authStore.record;return{id:a.id,email:a.email,hide_completed:a.hide_completed??!1,theme:a.theme||"system",accent_color:a.accent_color||"blue",local_first:a.local_first??!0,locale:a.locale||""}}const Xv=xe.createContext({user:null,isAuthenticated:!1,loading:!0,login:async()=>{},register:async()=>{},logout:async()=>!1,updateSettings:async()=>{}});function OT(){const[a,r]=xe.useState(null),[i,s]=xe.useState(!0);xe.useEffect(()=>{r(bl()),s(!1);const E=gn.authStore.onChange(()=>{r(bl())});let O;
29return gn.authStore.isValid&&(O=setTimeout(()=>{gn.collection("users").authRefresh().then(()=>{r(bl())}).catch(()=>{gn.authStore.clear(),r(null)})},2e3)),()=>{E(),O&&clearTimeout(O)}},[]),xe.useEffect(()=>{a?.locale&&qv(a.locale)},[a?.id]);const c=xe.useRef(null),h=xe.useRef(),y=xe.useCallback(E=>{h.current?.(),h.current=void 0,gn.collection("users").subscribe(E,O=>{if(O.action==="update"){const D=O.record;r({id:D.id,email:D.email,hide_completed:D.hide_completed??!1,theme:D.theme||"system",accent_color:D.accent_color||"blue",local_first:D.local_first??!0,locale:D.locale||""})}}).then(O=>{h.current=O}).catch(O=>{console.warn("[auth] realtime unavailable; settings refresh on visibility",O)})},[]);xe.useEffect(()=>{if(a)return c.current=a.id,y(a.id),()=>{h.current?.()}},[a?.id,y]),xe.useEffect(()=>{function E(){document.visibilityState==="visible"&&gn.authStore.isValid&&(gn.collection("users").authRefresh().then(()=>{r(bl())}).catch(()=>{}),c.current&&y(c.current))}return document.addEventListener("visibilitychange",E),()=>document.removeEventListener("visibilitychange",E)},[y]);const v=xe.useCallback(async(E,O)=>{const D=await Vv(E,O);r(D)},[]),b=xe.useCallback(async(E,O)=>{const D=await RT(E,O);r(D)}
29,[]),_=xe.useCallback(async()=>{const E=await TT.outbox.count();if(E>0){const O=E>1?"confirm.signOutPlural":"confirm.signOut";if(!window.confirm(El(O,Tc()).replace("{count}",String(E))))return!1}return await xT(),r(null),!0},[]),x=xe.useCallback(async E=>{if(a){r(O=>O&&{...O,...E});try{await gn.collection("users").update(a.id,E)}catch(O){r(bl()),console.warn("[auth] updateSettings error:",O)}}},[a]);return{user:a,isAuthenticated:a!==null,loading:i,login:v,register:b,logout:_,updateSettings:x}}function TR(){return xe.useContext(Xv)}const Rg="https://toodooapp.up.railway.app".trim()??"",ra="Toodoo",Kd=`${ra} | Offline-First Weekly Todo App`,Wu="Plan your week with a local-first todo app that works offline, stays fast on your device, and syncs automatically when you're back online.",eh="/og-image.png",hc=Rg?Rg.replace(/\/+$/,""):"";function AT(a){return!a||a==="/"?"/":a.endsWith("/")?a.slice(0,-1):a}function CT(a){const r=AT(a);return hc?new URL(r,`${hc}/`).toString():r}function ec(a){return hc?new URL(a,`${hc}/`).toString():a}function Rc(a){return{name:"robots",content:a}}const MT="/assets/styles-Dki0gWAp.css",fs=lE({head:({matches:a})=>{const r=a[a.length-1]?.pathname??"/",i=CT(r),s=ec(eh);return{meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"},{title:Kd},{name:"description",content:Wu},{name:"application-name",content:ra},{name:"format-detection",content:"telephone=no"},{name:"theme-color",content:"#1e293b"},{name:"mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-status-bar-style",content:"default"},{name:"apple-mobile-web-app-title",content:ra},{property:"og:type",content:"website"},{property:"og:site_name",content:ra},{property:"og:title",content:Kd},{property:"og:description",content:Wu},{property:"og:url",content:i},{property:"og:image",content:s},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:image:alt",content:`${ra} preview`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:Kd},{name:"twitter:description",content:Wu},{name:"twitter:image",content:s}],links:[{rel:"stylesheet",href:MT},{rel:"canonical",href:i},{rel:"manifest",href:"/manifest.webmanifest"},{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/icons/icon-16.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/icons/icon-32.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}],scripts:[{src:"https://assets.onedollarstats.com/stonks.js",defer:!0},{src:"https://umamis.up.railway.app/script.js",defer:!0,"data-website-id":"87c9de8b-2923-47df-9631-4b78b086398c"}]}},component:LT,shellComponent:DT,notFoundComponent:zT});function DT({children:a}){return me.jsxs("html",{lang:"en",children:[me.jsxs("head",{children:[me.jsx("script",{dangerouslySetInnerHTML:{__html:$E()}}),me.jsx(EE,{})]}),me.jsxs("body",{children:[a,me.jsx(TE,{})]})]})}function zT(){const{t:a}=WE();return me.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center bg-slate-50 dark:bg-slate-900",children:[me.jsx("h1",{className:"text-6xl font-bold text-slate-300 dark:text-slate-600 mb-4",children:"404"}),me.jsx("p",{className:"text-slate-500 dark:text-slate-400 mb-6",children:a("notFound.title")}),me.jsx(gh,{to:"/app",className:"text-[var(--accent-500)] hover:text-[var(--accent-600)]",children:a("notFound.link")})]})}function LT(){const a=OT();return xe.useEffect(()=>{XE({immediate:!0})},[]),me.jsx(eT,{children:me.jsx(Xv.Provider,{value:a,children:me.jsx(Cv,{})})})}const jT=()=>ui(()=>import("./register-DLvMqJvD.js"),__vite__mapDeps([0,1,2,3,4])),NT=eo("/register")({head:()=>{const a=`Create account | ${ra}`,r="Create a Toodoo account to sync your offline-first tasks and weekly planning.";return{meta:[{title:a},{name:"description",content:r},Rc("noindex, nofollow"),{property:"og:title",content:a},{property:"og:description",content:r},{name:"twitter:title",content:a},{name:"twitter:description",content:r}]}},component:Al(jT,"component")}),UT=()=>ui(()=>import("./login-Byd5O-HA.js"),__vite__mapDeps([5,1,2,3,4])),kT=eo("/login")({head:()=>{const a=`Log in | ${ra}
29`,r="Access your Toodoo account to manage tasks and sync your week across devices.";return{meta:[{title:a},{name:"description",content:r},Rc("noindex, nofollow"),{property:"og:title",content:a},{property:"og:description",content:r},{name:"twitter:title",content:a},{name:"twitter:description",content:r}]}},component:Al(UT,"component")}),BT=()=>ui(()=>import("./app-Da_wqth9.js").then(a=>a.h),__vite__mapDeps([6,7,8,3,4])),qT=eo("/app")({head:()=>({meta:[{title:`App | ${ra}`},{name:"description",content:"Private task workspace for authenticated Toodoo users."},Rc("noindex, nofollow, noarchive")]}),component:Al(BT,"component")}),PT=()=>ui(()=>import("./index-ucvyiknt.js"),__vite__mapDeps([9,3,2,8])),HT=eo("/")({head:()=>{const a=`${ra} | Offline-first task manager for weekly planning`,r="Organize your week in a fast, local-first todo app that works offline, stores tasks on your device, and syncs automatically when you reconnect.";return{meta:[{title:a},{name:"description",content:r},{property:"og:title",content:a},{property:"og:description",content:r},{property:"og:image",content:ec(eh)},{name:"twitter:title",content:a},{name:"twitter:description",content:r},{name:"twitter:image",content:ec(eh)},{"script:ld+json":{"@context":"https://schema.org","@type":"SoftwareApplication",name:ra,applicationCategory:"ProductivityApplication",operatingSystem:"Web",description:r,offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["Offline-first task management","Weekly planning view","Automatic sync when back online","Local storage on your device"]}},{"script:ld+json":{"@context":"https://schema.org","@type":"WebSite",name:ra,description:Wu,url:ec("/")}}]}},component:Al(PT,"component")}),KT=()=>ui(()=>import("./invite._token-3FXuaEk7.js"),__vite__mapDeps([10,4])),YT=eo("/invite/$token")({head:()=>({meta:[{title:`List invitation | ${ra}`},Rc("noindex, nofollow, noarchive")]}),component:Al(KT,"component")}),GT=NT.update({id:"/register",path:"/register",getParentRoute:()=>fs}),VT=kT.update({id:"/login",path:"/login",getParentRoute:()=>fs}),XT=qT.update({id:"/app",path:"/app",getParentRoute:()=>fs}),QT=HT.update({id:"/",path:"/",getParentRoute:()=>fs}),IT=YT.update({id:"/invite/$token",path:"/invite/$token",getParentRoute:()=>fs}),ZT={IndexRoute:QT,AppRoute:XT,LoginRoute:VT,RegisterRoute:GT,InviteTokenRoute:IT},FT=fs._addFileChildren(ZT);function JT(){return yE({routeTree:FT,scrollRestoration:!0,defaultPreload:"intent",defaultPreloadStaleTime:3e4})}async function $T(){const a=await JT();let r;return r=[],window.__TSS_START_OPTIONS__={serializationAdapters:r},r.push(YE),a.options.serializationAdapters&&r.push(...a.options.serializationAdapters),a.update({basepath:"",serializationAdapters:r}),a.state.matches.length||await xE(a),a}async function WT(){const a=await $T();return window.$_TSR?.h(),a}let Yd;function eR(){return Yd||(Yd=WT()),me.jsx(U1,{promise:Yd,children:a=>me.jsx(bE,{router:a})})}xe.startTransition(()=>{_0.hydrateRoot(document,me.jsx(xe.StrictMode,{children:me.jsx(eR,{})}))});export{dc as D,gh as L,us as R,ui as _,WE as a,yh as b,lR as c,TT as d,wR as e,ER as f,Tc as g,YT as h,uR as i,me as j,_R as n,gn as p,xe as r,El as t,TR as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.