PageSourceSearch

https://help-betmurk.onhercules.app/assets/index-Bs79ykYt.js

js help-betmurk.onhercules.app collected 2026-10-03 05:06:22 UTC 500,366 bytes, 121 lines download raw bytes

vendor: 6,936 bytes, lines 1-17
1(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function s(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=s(c);fetch(c.href,d)}})();function ty(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Bu={exports:{}},rr={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var $m;function sw(){if($m)return rr;$m=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(o,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:n,type:o,key:f,ref:c!==void 0?c:null,props:d}}return rr.Fragment=a,rr.jsx=s,rr.jsxs=s,rr}var Xm;function rw(){return Xm||(Xm=1,Bu.exports=sw()),Bu.exports}var q=rw(),ju={exports:{}},be={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Km;function ow(){if(Km)return be;Km=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=y&&T[y]||T["@@iterator"],typeof T=="function"?T:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function A(T,Y,W){this.props=T,this.context=Y,this.refs=k,this.updater=W||x}A.prototype.isReactComponent={},A.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function C(){}C.prototype=A.prototype;function L(T,Y,W){this.props=T,this.context=Y,this.refs=k,this.updater=W||x}var V=L.prototype=new C;V.constructor=L,E(V,A.prototype),V.isPureReactComponent=!0;var F=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},X=Object.prototype.hasOwnProperty;function Z(T,Y,W,H,J,ie){return W=ie.ref,{$$typeof:n,type:T,key:Y,ref:W!==void 0?W:null,props:ie}}function $(T,Y){return Z(T.type,Y,void 0,void 0,void 0,T.props)}function ee(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ce(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return Y[W]})}var ge=/\/+/g;function he(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?ce(""+T.key):Y.toString(36)}function ve(){}function we(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ve,ve):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function me(T,Y,W,H,J){var ie=typeof T;(ie==="undefined"||ie==="boolean")&&(T=null);var se=!1;if(T===null)se=!0;else switch(ie){case"bigint":case"string":case"number":se=!0;break;case"object":switch(T.$$typeof){case n:case a:se=!0;break;case v:return se=T._init,me(se(T._payload),Y,W,H,J)}}if(se)return J=J(T),se=H===""?"."+he(T,0):H,F(J)?(W="",se!=null&&(W=se.replace(ge,"$&/")+"/"),me(J,Y,W,"",function(Ve){return Ve})):J!=null&&(ee(J)&&(J=$(J,W+(J.key==null||T&&T.key===J.key?"":(""+J.key).replace(ge,"$&/")+"/")+se)),Y.push(J)),1;se=0;var pe=H===""?".":H+":";if(F(T))for(var le=0;le<T.length;le++)H=T[le],ie=pe+he(H,le),se+=me(H,Y,W,ie,J);else if(le=S(T),typeof le=="function")for(T=le.call(T),le=0;!(H=T.next()).done;)H=H.value,ie=pe+he(H,le++),se+=me(H,Y,W,ie,J);else if(ie==="object"){if(typeof T.then=="function")return me(we(T),Y,W,H,J);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return se}function O(T,Y,W){if(T==null)return T;var H=[],J=0;return me(T,H,"","",function(ie){return Y.call(W,ie,J++)}),H}function Q(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var B=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function re(){}return be.Children={map:O,forEach:function(T,Y,W){O(T,function(){Y.apply(this,arguments)},W)},count:function(T){var Y=0;return O(T,function(){Y++}),Y},toArray:function(T){return O(T,function(Y){return Y})||[]},only:function(T){if(!ee(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},be.Component=A,be.Fragment=s,be.Profiler=c,be.PureComponent=L,be.StrictMode=o,be.Suspense=g,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,be.__COMPILER_RUNTIME={__proto__:null,c:function(T){return j.H.useMemoCache(T)}},be.cache=function(T){return function(){return T.apply(null,arguments)}},be.cloneElement=function(T,Y,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var H=E({},T.props),J=T.key,ie=void 0;if(Y!=null)for(se in Y.ref!==void 0&&(ie=void 0),Y.key!==void 0&&(J=""+Y.key),Y)!X.call(Y,se)||se==="
17key"||se==="__self"||se==="__source"||se==="ref"&&Y.ref===void 0||(H[se]=Y[se]);var se=arguments.length-2;if(se===1)H.children=W;else if(1<se){for(var pe=Array(se),le=0;le<se;le++)pe[le]=arguments[le+2];H.children=pe}return Z(T.type,J,void 0,void 0,ie,H)},be.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},be.createElement=function(T,Y,W){var H,J={},ie=null;if(Y!=null)for(H in Y.key!==void 0&&(ie=""+Y.key),Y)X.call(Y,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(J[H]=Y[H]);var se=arguments.length-2;if(se===1)J.children=W;else if(1<se){for(var pe=Array(se),le=0;le<se;le++)pe[le]=arguments[le+2];J.children=pe}if(T&&T.defaultProps)for(H in se=T.defaultProps,se)J[H]===void 0&&(J[H]=se[H]);return Z(T,ie,void 0,void 0,null,J)},be.createRef=function(){return{current:null}},be.forwardRef=function(T){return{$$typeof:m,render:T}},be.isValidElement=ee,be.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:Q}},be.memo=function(T,Y){return{$$typeof:h,type:T,compare:Y===void 0?null:Y}},be.startTransition=function(T){var Y=j.T,W={};j.T=W;try{var H=T(),J=j.S;J!==null&&J(W,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(re,B)}catch(ie){B(ie)}finally{j.T=Y}},be.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},be.use=function(T){return j.H.use(T)},be.useActionState=function(T,Y,W){return j.H.useActionState(T,Y,W)},be.useCallback=function(T,Y){return j.H.useCallback(T,Y)},be.useContext=function(T){return j.H.useContext(T)},be.useDebugValue=function(){},be.useDeferredValue=function(T,Y){return j.H.useDeferredValue(T,Y)},be.useEffect=function(T,Y,W){var H=j.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return H.useEffect(T,Y)},be.useId=function(){return j.H.useId()},be.useImperativeHandle=function(T,Y,W){return j.H.useImperativeHandle(T,Y,W)},be.useInsertionEffect=function(T,Y){return j.H.useInsertionEffect(T,Y)},be.useLayoutEffect=function(T,Y){return j.H.useLayoutEffect(T,Y)},be.useMemo=function(T,Y){return j.H.useMemo(T,Y)},be.useOptimistic=function(T,Y){return j.H.useOptimistic(T,Y)},be.useReducer=function(T,Y,W){return j.H.useReducer(T,Y,W)},be.useRef=function(T){return j.H.useRef(T)},be.useState=function(T){return j.H.useState(T)},be.useSyncExternalStore=function(T,Y,W){return j.H.useSyncExternalStore(T,Y,W)},be.useTransition=function(){return j.H.useTransition()},be.version="19.1.1",be}var Fm;function zd(){return Fm||(Fm=1,ju.exports=ow()),ju.exports}var w=zd();const K=ty(w);var Hu={exports:{}},or={},Vu={exports:{}},Pu={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Zm;function lw(){return Zm||(Zm=1,(function(n){function a(O,Q){var B=O.length;O.push(Q);e:for(;0<B;){var re=B-1>>>1,T=O[re];if(0<c(T,Q))O[re]=Q,O[B]=T,B=re;else break e}}function s(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var Q=O[0],B=O.pop();if(B!==Q){O[0]=B;e:for(var re=0,T=O.length,Y=T>>>1;re<Y;){var W=2*(re+1)-1,H=O[W],J=W+1,ie=O[J];if(0>c(H,B))J<T&&0>c(ie,H)?(O[re]=ie,O[J]=B,re=J):(O[re]=H,O[W]=B,re=W);else if(J<T&&0>c(ie,B))O[re]=ie,O[J]=B,re=J;else break e}}return Q}function c(O,Q){var B=O.sortIndex-Q.sortIndex;return B!==0?B:O.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var g=[],h=[],v=1,y=null,S=3,x=!1,E=!1,k=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function F(O){for(var Q=s(h);Q!==null;){if(Q.callback===null)o(h);else if(Q.startTime<=O)o(h),Q.sortIndex=Q.expirationTime,a(g,Q);else break;Q=s(h)}}function j(O){if(k=!1,F(O),!E)if(s(g)!==null)E=!0,X||(X=!0,he());else{var Q=s(h);Q!==null&&me(j,Q.startTime-O)}}var X=!1,Z=-1,$=5,ee=-1;function ce(){return A?!0:!(n.unstable_now()-ee<$)}function ge(){if(A=!1,X){var O=n.unstable_now();ee=O;var Q=!0;try{e:{E=!1,k&&(k=!1,L(Z),Z=-1),x=!0;var B=S;try{t:{for(F(O),y=s(g);y!==null&&!(y.expirationTime>O&&ce());){var re=y.callback;if(typeof re=="function"){y.callback=null,S=y.priorityLevel;var T=re(y.expirationTime<=O);if(O=n.unstable_now(),typeof T=="function"){y.callback=T,F(O),Q=!0;break t}y===s(g)&&o(g),F(O)}else o(g);y=s(g)}if(y!==null)Q=!0;else{var Y=s(h);Y!==null&&me(j,Y.startTime-O),Q=!1}}break e}finally{y=null,S=B,x=!1}Q=void 0}}finally{Q?he():X=!1}}}var he;if(typeof V=="function")he=function(){V(ge)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,we=ve.port2;ve.port1.onmessage=ge,he=function(){we.postMessage(null)}}else he=function(){C(ge,0)};function me(O,Q){Z=C(function(){O(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(O){switch(S){case 1:case 2:case 3:var Q=3;break;default:Q=S}var B=S;S=Q;try{return O()}finally{S=B}},n.unstable_requestPaint=function(){A=!0},n.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var B=S;S=O;try{return Q()}finally{S=B}},n.unstable_scheduleCallback=function(O,Q,B){var re=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?re+B:re):B=re,O){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=B+T,O={id:v++,callback:Q,priorityLevel:O,startTime:B,expirationTime:T,s
vendor: 20,021 bytes, lines 25-48
25ortIndex:-1},B>re?(O.sortIndex=B,a(h,O),s(g)===null&&O===s(h)&&(k?(L(Z),Z=-1):k=!0,me(j,B-re))):(O.sortIndex=T,a(g,O),E||x||(E=!0,X||(X=!0,he()))),O},n.unstable_shouldYield=ce,n.unstable_wrapCallback=function(O){var Q=S;return function(){var B=S;S=Q;try{return O.apply(this,arguments)}finally{S=B}}}})(Pu)),Pu}var Jm;function cw(){return Jm||(Jm=1,Vu.exports=lw()),Vu.exports}var Qu={exports:{}},pt={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Wm;function uw(){if(Wm)return pt;Wm=1;var n=zd();function a(g){var h="https://react.dev/errors/"+g;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,h,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:h,implementation:v}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,h){if(g==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,pt.createPortal=function(g,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(a(299));return d(g,h,null,v)},pt.flushSync=function(g){var h=f.T,v=o.p;try{if(f.T=null,o.p=2,g)return g()}finally{f.T=h,o.p=v,o.d.f()}},pt.preconnect=function(g,h){typeof g=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(g,h))},pt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},pt.preinit=function(g,h){if(typeof g=="string"&&h&&typeof h.as=="string"){var v=h.as,y=m(v,h.crossOrigin),S=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?o.d.S(g,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:x}):v==="script"&&o.d.X(g,{crossOrigin:y,integrity:S,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},pt.preinitModule=function(g,h){if(typeof g=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=m(h.as,h.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(g)},pt.preload=function(g,h){if(typeof g=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,y=m(v,h.crossOrigin);o.d.L(g,v,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},pt.preloadModule=function(g,h){if(typeof g=="string")if(h){var v=m(h.as,h.crossOrigin);o.d.m(g,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(g)},pt.requestFormReset=function(g){o.d.r(g)},pt.unstable_batchedUpdates=function(g,h){return g(h)},pt.useFormState=function(g,h,v){return f.H.useFormState(g,h,v)},pt.useFormStatus=function(){return f.H.useHostTransitionStatus()},pt.version="19.1.1",pt}var ep;function ny(){if(ep)return Qu.exports;ep=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Qu.exports=uw(),Qu.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var tp;function dw(){if(tp)return or;tp=1;var n=cw(),a=zd(),s=ny();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}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 d(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(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 m(e){if(d(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,r=t;;){var l=i.return;if(l===null)break;var u=l.alternate;if(u===null){if(r=l.return,r!==null){i=r;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===i)return m(l),e;if(u===r)return m(l),t;u=u.sibling}throw Error(o(188))}if(i.return!==r.return)i=l,r=u;else{for(var p=!1,b=l.child;b;){if(b===i){p=!0,i=l,r=u;break}if(b===r){p=!0,r=l,i=u;break}b=b.sibling}if(!p){for(b=u.child;b;){if(b===i){p=!0,i=u,r=l;break}if(b===r){p=!0,r=u,i=l;break}b=b.sibling}if(!p)throw Error(o(189))}}if(i.alternate!==r)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),V=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function he(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case A:return"Profiler";case k:return"StrictMode";case j:return"Suspense";case X:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case V:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var me=Array.isArray,O=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},re=[],T=-1;function Y(e){return{current:e}}function W(e){0>T||(e.current=re[T],re[T]=null,T--)}function H(e,t){T++,re[T]=e.current,e.current=t}var J=Y(null),ie=Y(null),se=Y(null),pe=Y(null);function le(e,t){switch(H(se,t),H(ie,e),H(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sm(t),e=xm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(J),H(J,e)}function Ve(){W(J),W(ie),W(se)}function vt(e){e.memoizedState!==null&&H(pe,e);var t=J.current,i=xm(t,e.type);t!==i&&(H(ie,e),H(J,i))}function bt(e){ie.current===e&&(W(J),W(ie)),pe.current===e&&(W(pe),tr._currentValue=B)}var lt=Object.prototype.hasOwnProperty,on=n.unstable_scheduleCallback,Na=n.unstable_cancelCallback,Cl=n.unstable_shouldYield,Ar=n.unstable_requestPaint,gt=n.unstable_now,Cr=n.unstable_getCurrentPriorityLevel,Ht=n.unstable_ImmediatePriority,Or=n.unstable_UserBlockingPriority,ri=n.unstable_NormalPriority,wt=n.unstable_LowPriority,Cn=n.unstable_IdlePriority,Ol=n.log,kl=n.unstable_setDisableYieldValue,ln=null,St=null;function Jt(e){if(typeof Ol=="function"&&kl(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(ln,e)}catch{}}var ct=Math.clz32?Math.clz32:ea,Wn=Math.log,kr=Math.LN2;function ea(e){return e>>>=0,e===0?32:31-(Wn(e)/kr|0)|0}var oi=256,li=4194304;function cn(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Da(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var l=0,u=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=r&134217727;return b!==0?(r=b&~u,r!==0?l=cn(r):(p&=b,p!==0?l=cn(p):i||(i=b&~e,i!==0&&(l=cn(i))))):(b=r&~u,b!==0?l=cn(b):p!==0?l=cn(p):i||(i=r&~e,i!==0&&(l=cn(i)))),l===0?0:t!==0&&t!==l&&(t&u)===0&&(u=l&-l,i=t&-t,u>=i||u===32&&(i&4194048)!==0)?t:l}function Ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function us(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 Wt(){var e=oi;return oi<<=1,(oi&4194048)===0&&(oi=256),e}function Mr(){var e=li;return li<<=1,(li&62914560)===0&&(li=4194304),e}function ds(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function ta(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Nr(e,t,i,r,l,u){var p=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var b=e.entanglements,_=e.expirationTimes,D=e.hiddenUpdates;for(i=p&~i;0<i;){var P=31-ct(i),G=1<<P;b[P]=0,_[P]=-1;var U=D[P];if(U!==null)for(D[P]=null,P=0;P<U.length;P++){var z=U[P];z!==null&&(z.lane&=-536870913)}i&=~G}r!==0&&ye(e,r,0),u!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=u&~(p&~t))}function ye(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ct(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&4194090}function Ie(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-ct(i),l=1<<r;l&t|e[r]&t&&(e[r]|=t),i&=~l}}function Ke(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 ut(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qa(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Vm(e.type))}function We(e,t){var i=Q.p;try{return Q.p=e,t()}finally{Q.p=i}}var Ye=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Ye,ze="__reactProps$"+Ye,at="__reactContainer$"+Ye,ci="__reactEvents$"+Ye,On="__reactListeners$"+Ye,lf="__reactHandles$"+Ye,cf="__reactResources$"+Ye,fs="__reactMarker$"+Ye;function Ml(e){delete e[Ge],delete e[ze],delete e[ci],delete e[On],delete e[lf]}function ui(e){var t=e[Ge];if(t)return t;for(var i=e.parentNode;i;){if(t=i[at]||i[Ge]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Rm(e);e!==null;){if(i=e[Ge])return i;e=Rm(e)}return t}e=i,i=e.parentNode}return null}function di(e){if(e=e[Ge]||e[at]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function hs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function fi(e){var t=e[cf];return t||(t=e[cf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[fs]=!0}var uf=new Set,df={};function za(e,t){hi(e,t),hi(e+"Capture",t)}function hi(e,t){for(df[e]=t,e=0;e<t.length;e++)uf.add(t[e])}var Zv=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]*$"),ff={},hf={};function Jv(e){return lt.call(hf,e)?!0:lt.call(ff,e)?!1:Zv.test(e)?hf[e]=!0:(ff[e]=!0,!1)}function Dr(e,t,i){if(Jv(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Ur(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function kn(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}var Nl,gf;function gi(e){if(Nl===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Nl=t&&t[1]||"",gf=-1<i.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+Nl+e+gf}var Dl=!1;function Ul(e,t){if(!e||Dl)return"";Dl=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(z){var U=z}Reflect.construct(e,[],G)}else{try{G.call()}catch(z){U=z}e.call(G.prototype)}}else{try{throw Error()}catch(z){U=z}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(z){if(z&&U&&typeof z.stack=="string")return[z.stack,U.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),p=u[0],b=u[1];if(p&&b){var _=p.split(`
44`),D=b.split(`
45`);for(l=r=0;r<_.length&&!_[r].includes("DetermineComponentFrameRoot");)r++;for(;l<D.length&&!D[l].includes("DetermineComponentFrameRoot");)l++;if(r===_.length||l===D.length)for(r=_.length-1,l=D.length-1;1<=r&&0<=l&&_[r]!==D[l];)l--;for(;1<=r&&0<=l;r--,l--)if(_[r]!==D[l]){if(r!==1||l!==1)do if(r--,l--,0>l||_[r]!==D[l]){var P=`
46`+_[r].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=r&&0<=l);break}}}finally{Dl=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?gi(i):""}function Wv(e){switch(e.tag){case 26:case 27:case 5:return gi(e.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 15:return Ul(e.type,!1);case 11:return Ul(e.type.render,!1);case 1:return Ul(e.type,!0);case 31:return gi("Activity");default:return""}}function mf(e){try{var t="";do t+=Wv(e),e=e.return;while(e);return t}catch(i){return`
47Error generating stack: `+i.message+`
48`+i.stack}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eb(e){var t=pf(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(p){r=""+p,u.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qr(e){e._valueTracker||(e._valueTracker=eb(e))}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=pf(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function zr(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 tb=/[\n"\\]/g;function Pt(e){return e.replace(tb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ql(e,t,i,r,l,u,p,b){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?zl(e,p,Vt(t)):i!=null?zl(e,p,Vt(i)):r!=null&&e.removeAttribute("value"),l==null&&u!=null&&(e.defaultChecked=!!u),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Vt(b):e.removeAttribute("name")}function vf(e,t,i,r,l,u,p,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||i!=null){if(!(u!=="submit"&&u!=="reset"||t!=null))return;i=i!=null?""+Vt(i):"",t=t!=null?""+Vt(t):i,b||t===e.value||(e.value=t),e.defaultValue=t}r=r??l,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=b?e.checked:!!r,e.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function zl(e,t,i){t==="number"&&zr(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function mi(e,t,i,r){if(e=e.options,t){t={};for(var l=0;l<i.length;l++)t["$"+i[l]]=!0;for(i=0;i<e.length;i++)l=t.hasOwnProperty("$"+e[i].value),e[i].selected!==l&&(e[i].selected=l),l&&r&&(e[i].defaultSelected=!0)}else{for(i=""+Vt(i),t=null,l=0;l<e.length;l++){if(e[l].value===i){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function bf(e,t,i){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Vt(i):""}function wf(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(o(92));if(me(r)){if(1<r.length)throw Error(o(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=Vt(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r)}function pi(e,t){if(t){var i=e.firstChild;
vendor: 4,140 bytes, line 48
48if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var nb=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 Sf(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||nb.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function xf(e,t,i){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&i[l]!==r&&Sf(e,l,r)}else for(var u in t)t.hasOwnProperty(u)&&Sf(e,u,t[u])}function Ll(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 ab=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
48-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"]]),ib=/^[\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 Lr(e){return ib.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Bl=null;function jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yi=null,vi=null;function _f(e){var t=di(e);if(t&&(e=t.stateNode)){var i=e[ze]||null;e:switch(e=t.stateNode,t.type){case"input":if(ql(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Pt(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var l=r[ze]||null;if(!l)throw Error(o(90));ql(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&yf(r)}break e;case"textarea":bf(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&mi(e,!!i.multiple,t,!1)}}}var Hl=!1;function Ef(e,t,i){if(Hl)return e(t,i);Hl=!0;try{var r=e(t);return r}finally{if(Hl=!1,(yi!==null||vi!==null)&&(_o(),yi&&(t=yi,e=vi,vi=yi=null,_f(t),e)))for(t=0;t<e.length;t++)_f(e[t])}}function gs(e,t){var i=e.stateNode;if(i===null)return null;var r=i[ze]||null;if(r===null)return null;i=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vl=!1;if(Mn)try{var ms={};Object.defineProperty(ms,"passive",{get:function(){Vl=!0}}),window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{Vl=!1}var na=null,Pl=null,Br=null;function Tf(){if(Br)return Br;var e,t=Pl,i=t.length,r,l="value"in na?na.value:na.textContent,u=l.length;for(e=0;e<i&&t[e]===l[e];e++);var p=i-e;for(r=1;r<=p&&t[i-r]===l[u-r];r++);return Br=l.slice(e,1<r?1-r:void 0)}function jr(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 Hr(){return!0}function Rf(){return!1}function Et(e){function t(i,r,l,u,p){this._reactName=i,this._targetInst=l,this.type=r,this.nativeEvent=u,this.target=p,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(i=e[b],this[b]=i?i(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Hr:Rf,this.isPropagationStopped=Rf,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Hr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Hr)},persist:function(){},isPersistent:Hr}),t}var La={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vr=Et(La),ps=v({},La,{view:0,detail:0}),sb=Et(ps),Ql,Il,ys,Pr=v({},ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gl,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!==ys&&(ys&&e.type==="mousemove"?(Ql=e.screenX-ys.screenX,Il=e.screenY-ys.screenY):Il=Ql=0,ys=e),Ql)},movementY:function(e){return"movementY"in e?e.movementY:Il}}),Af=Et(Pr),rb=v({},Pr,{dataTransfer:0}),ob=Et(rb),lb=v({},ps,{relatedTarget:0}),Yl=Et(lb),cb=v({},La,{animationName:0,elapsedTime:0,pseudoElement:0}),ub=Et(cb),db=v({},La,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fb=Et(db),hb=v({},La,{data:0}
vendor: 4,210 bytes, line 48
48),Cf=Et(hb),gb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mb={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"},pb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pb[e])?!!t[e]:!1}function Gl(){return yb}var vb=v({},ps,{key:function(e){if(e.key){var t=gb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gl,charCode:function(e){return e.type==="keypress"?jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bb=Et(vb),wb=v({},Pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=Et(wb),Sb=v({},ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gl}),xb=Et(Sb),_b=v({},La,{propertyName:0,elapsedTime:0,pseudoElement:0}),Eb=Et(_b),Tb=v({},Pr,{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}),Rb=Et(Tb),Ab=v({},La,{newState:0,oldState:0}),Cb=Et(Ab),Ob=[9,13,27,32],$l=Mn&&"CompositionEvent"in window,vs=null;Mn&&"documentMode"in document&&(vs=document.documentMode);var kb=Mn&&"TextEvent"in window&&!vs,kf=Mn&&(!$l||vs&&8<vs&&11>=vs),Mf=" ",Nf=!1;function Df(e,t){switch(e){case"keyup":return Ob.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bi=!1;function Mb(e,t){switch(e){case"compositionend":return Uf(t);case"keypress":return t.which!==32?null:(Nf=!0,Mf);case"textInput":return e=t.data,e===Mf&&Nf?null:e;default:return null}}function Nb(e,t){if(bi)return e==="compositionend"||!$l&&Df(e,t)?(e=Tf(),Br=Pl=na=null,bi=!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 kf&&t.locale!=="ko"?null:t.data;default:return null}}var Db={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 qf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Db[e.type]:t==="textarea"}function zf(e,t,i,r){yi?vi?vi.push(r):vi=[r]:yi=r,t=Oo(t,"onChange"),0<t.length&&(i=new Vr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var bs=null,ws=null;function Ub(e){pm(e,0)}function Qr(e){var t=hs(e);if(yf(t))return e}function Lf(e,t){if(e==="change")return t}var Bf=!1;if(Mn){var Xl;if(Mn){var Kl="oninput"in document;if(!Kl){var jf=document.createElement("div");jf.setAttribute("oninput","return;"),Kl=typeof jf.oninput=="function"}Xl=Kl}else Xl=!1;Bf=Xl&&(!document.documentMode||9<document.documentMode)}function Hf(){bs&&(bs.detachEvent("onpropertychange",Vf),ws=bs=null)}function Vf(e){if(e.propertyName==="value"&&Qr(ws)){var t=[];zf(t,ws,e,jl(e)),Ef(Ub,t)}}function qb(e,t,i){e==="focusin"?(Hf(),bs=t,ws=i,bs.attachEvent("onpropertychange",Vf)):e==="focusout"&&Hf()}function zb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qr(ws)}
vendor: 76,319 bytes, line 48
48function Lb(e,t){if(e==="click")return Qr(t)}function Bb(e,t){if(e==="input"||e==="change")return Qr(t)}function jb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:jb;function Ss(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var l=i[r];if(!lt.call(t,l)||!kt(e[l],t[l]))return!1}return!0}function Pf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qf(e,t){var i=Pf(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Pf(i)}}function If(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?If(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zr(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=zr(e.document)}return t}function Fl(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 Hb=Mn&&"documentMode"in document&&11>=document.documentMode,wi=null,Zl=null,xs=null,Jl=!1;function Gf(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Jl||wi==null||wi!==zr(r)||(r=wi,"selectionStart"in r&&Fl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xs&&Ss(xs,r)||(xs=r,r=Oo(Zl,"onSelect"),0<r.length&&(t=new Vr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=wi)))}function Ba(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Si={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},Wl={},$f={};Mn&&($f=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function ja(e){if(Wl[e])return Wl[e];if(!Si[e])return e;var t=Si[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in $f)return Wl[e]=t[i];return e}var Xf=ja("animationend"),Kf=ja("animationiteration"),Ff=ja("animationstart"),Vb=ja("transitionrun"),Pb=ja("transitionstart"),Qb=ja("transitioncancel"),Zf=ja("transitionend"),Jf=new Map,ec="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(" ");ec.push("scrollEnd");function en(e,t){Jf.set(e,t),za(t,[e])}var Wf=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var i=Wf.get(e);return i!==void 0?i:(t={value:e,source:t,stack:mf(t)},Wf.set(e,t),t)}return{value:e,source:t,stack:mf(t)}}var It=[],xi=0,tc=0;function Ir(){for(var e=xi,t=tc=xi=0;t<e;){var i=It[t];It[t++]=null;var r=It[t];It[t++]=null;var l=It[t];It[t++]=null;var u=It[t];if(It[t++]=null,r!==null&&l!==null){var p=r.pending;p===null?l.next=l:(l.next=p.next,p.next=l),r.pending=l}u!==0&&eh(i,l,u)}}function Yr(e,t,i,r){It[xi++]=e,It[xi++]=t,It[xi++]=i,It[xi++]=r,tc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function nc(e,t,i,r){return Yr(e,t,i,r),Gr(e)}function _i(e,t){return Yr(e,null,null,t),Gr(e)}function eh(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var l=!1,u=e.return;u!==null;)u.childLanes|=i,r=u.alternate,r!==null&&(r.childLanes|=i),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(l=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,l&&t!==null&&(l=31-ct(i),e=u.hiddenUpdates,r=e[l],r===null?e[l]=[t]:r.push(t),t.lane=i|536870912),u):null}function Gr(e){if(50<$s)throw $s=0,lu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ei={};function Ib(e,t,i,r){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,i,r){return new Ib(e,t,i,r)}function ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var i=e.alternate;return i===null?(i=Mt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function th(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $r(e,t,i,r,l,u){var p=0;if(r=e,typeof e=="function")ac(e)&&(p=1);else if(typeof e=="string")p=G0(e,i,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Mt(31,i,t,l),e.elementType=ee,e.lanes=u,e;case E:return Ha(i.children,l,u,t);case k:p=8,l|=24;break;case A:return e=Mt(12,i,t,l|2),e.elementType=A,e.lanes=u,e;case j:return e=Mt(13,i,t,l),e.elementType=j,e.lanes=u,e;case X:return e=Mt(19,i,t,l),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C:case V:p=10;break e;case L:p=9;break e;case F:p=11;break e;case Z:p=14;break e;case $:p=16,r=null;break e}p=29,i=Error(o(130,e===null?"null":typeof e,"")),r=null}return t=Mt(p,i,t,l),t.elementType=e,t.type=r,t.lanes=u,t}function Ha(e,t,i,r){return e=Mt(7,e,r,t),e.lanes=i,e}function ic(e,t,i){return e=Mt(6,e,null,t),e.lanes=i,e}function sc(e,t,i){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ti=[],Ri=0,Xr=null,Kr=0,Yt=[],Gt=0,Va=null,Dn=1,Un="";function Pa(e,t){Ti[Ri++]=Kr,Ti[Ri++]=Xr,Xr=e,Kr=t}function nh(e,t,i){Yt[Gt++]=Dn,Yt[Gt++]=Un,Yt[Gt++]=Va,Va=e;var r=Dn;e=Un;var l=32-ct(r)-1;r&=~(1<<l),i+=1;var u=32-ct(t)+l;if(30<u){var p=l-l%5;u=(r&(1<<p)-1).toString(32),r>>=p,l-=p,Dn=1<<32-ct(t)+l|i<<l|r,Un=u+e}else Dn=1<<u|i<<l|r,Un=e}function rc(e){e.return!==null&&(Pa(e,1),nh(e,1,0))}function oc(e){for(;e===Xr;)Xr=Ti[--Ri],Ti[Ri]=null,Kr=Ti[--Ri],Ti[Ri]=null;for(;e===Va;)Va=Yt[--Gt],Yt[Gt]=null,Un=Yt[--Gt],Yt[Gt]=null,Dn=Yt[--Gt],Yt[Gt]=null}var xt=null,Pe=null,Oe=!1,Qa=null,un=!1,lc=Error(o(519));function Ia(e){var t=Error(o(418,""));throw Ts(Qt(t,e)),lc}function ah(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[Ge]=e,t[ze]=r,i){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(i=0;i<Ks.length;i++)Te(Ks[i],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),vf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),qr(t);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),wf(t,r.value,r.defaultValue,r.children),qr(t)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||wm(t.textContent,i)?(r.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),r.onScroll!=null&&Te("scroll",t),r.onScrollEnd!=null&&Te("scrollend",t),r.onClick!=null&&(t.onclick=ko),t=!0):t=!1,t||Ia(e)}function ih(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 13:un=!1;return;case 27:case 3:un=!0;return;default:xt=xt.return}}function _s(e){if(e!==xt)return!1;if(!Oe)return ih(e),Oe=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Eu(e.type,e.memoizedProps)),i=!i),i&&Pe&&Ia(e),ih(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(t===0){Pe=nn(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++;e=e.nextSibling}Pe=null}}else t===27?(t=Pe,va(e.type)?(e=Cu,Cu=null,Pe=e):Pe=t):Pe=xt?nn(e.stateNode.nextSibling):null;return!0}function Es(){Pe=xt=null,Oe=!1}function sh(){var e=Qa;return e!==null&&(At===null?At=e:At.push.apply(At,e),Qa=null),e}function Ts(e){Qa===null?Qa=[e]:Qa.push(e)}var cc=Y(null),Ya=null,qn=null;function aa(e,t,i){H(cc,t._currentValue),t._currentValue=i}function zn(e){e._currentValue=cc.current,W(cc)}function uc(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function dc(e,t,i,r){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var u=l.dependencies;if(u!==null){var p=l.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=l;for(var _=0;_<t.length;_++)if(b.context===t[_]){u.lanes|=i,b=u.alternate,b!==null&&(b.lanes|=i),uc(u.return,i,e),r||(p=null);break e}u=b.next}}else if(l.tag===18){if(p=l.return,p===null)throw Error(o(341));p.lanes|=i,u=p.alternate,u!==null&&(u.lanes|=i),uc(p,i,e),p=null}else p=l.child;if(p!==null)p.return=l;else for(p=l;p!==null;){if(p===e){p=null;break}if(l=p.sibling,l!==null){l.return=p.return,p=l;break}p=p.return}l=p}}function Rs(e,t,i,r){e=null;for(var l=t,u=!1;l!==null;){if(!u){if((l.flags&524288)!==0)u=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var p=l.alternate;if(p===null)throw Error(o(387));if(p=p.memoizedProps,p!==null){var b=l.type;kt(l.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(l===pe.current){if(p=l.alternate,p===null)throw Error(o(387));p.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(tr):e=[tr])}l=l.return}e!==null&&dc(t,e,i,r),t.flags|=262144}function Fr(e){for(e=e.firstContext;e!==null;){if(!kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ga(e){Ya=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return rh(Ya,e)}function Zr(e,t){return Ya===null&&Ga(e),rh(e,t)}function rh(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},qn===null){if(e===null)throw Error(o(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return i}var Yb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Gb=n.unstable_scheduleCallback,$b=n.unstable_NormalPriority,et={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fc(){return{controller:new Yb,data:new Map,refCount:0}}function As(e){e.refCount--,e.refCount===0&&Gb($b,function(){e.controller.abort()})}var Cs=null,hc=0,Ai=0,Ci=null;function Xb(e,t){if(Cs===null){var i=Cs=[];hc=0,Ai=mu(),Ci={status:"pending",value:void 0,then:function(r){i.push(r)}}}return hc++,t.then(oh,oh),t}function oh(){if(--hc===0&&Cs!==null){Ci!==null&&(Ci.status="fulfilled");var e=Cs;Cs=null,Ai=0,Ci=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Kb(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(l){i.push(l)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var l=0;l<i.length;l++)(0,i[l])(t)},function(l){for(r.status="rejected",r.reason=l,l=0;l<i.length;l++)(0,i[l])(void 0)}),r}var lh=O.S;O.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xb(e,t),lh!==null&&lh(e,t)};var $a=Y(null);function gc(){var e=$a.current;return e!==null?e:Le.pooledCache}function Jr(e,t){t===null?H($a,$a.current):H($a,t.pool)}function ch(){var e=gc();return e===null?null:{parent:et._currentValue,pool:e}}var Os=Error(o(460)),uh=Error(o(474)),Wr=Error(o(542)),mc={then:function(){}};function dh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function eo(){}function fh(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(eo,eo),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gh(e),e;default:if(typeof t.status=="string")t.then(eo,eo);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=r}},function(r){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gh(e),e}throw ks=t,Os}}var ks=null;function hh(){if(ks===null)throw Error(o(459));var e=ks;return ks=null,e}function gh(e){if(e===Os||e===Wr)throw Error(o(483))}var ia=!1;function pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yc(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 sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ra(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ke&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,t=Gr(e),eh(e,null,i),t}return Yr(e,r,t,i),Gr(e)}function Ms(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Ie(e,i)}}function vc(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var l=null,u=null;if(i=i.firstBaseUpdate,i!==null){do{var p={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};u===null?l=u=p:u=u.next=p,i=i.next}while(i!==null);u===null?l=u=t:u=u.next=t}else l=u=t;i={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var bc=!1;function Ns(){if(bc){var e=Ci;if(e!==null)throw e}}function Ds(e,t,i,r){bc=!1;var l=e.updateQueue;ia=!1;var u=l.firstBaseUpdate,p=l.lastBaseUpdate,b=l.shared.pending;if(b!==null){l.shared.pending=null;var _=b,D=_.next;_.next=null,p===null?u=D:p.next=D,p=_;var P=e.alternate;P!==null&&(P=P.updateQueue,b=P.lastBaseUpdate,b!==p&&(b===null?P.firstBaseUpdate=D:b.next=D,P.lastBaseUpdate=_))}if(u!==null){var G=l.baseState;p=0,P=D=_=null,b=u;do{var U=b.lane&-536870913,z=U!==b.lane;if(z?(Ae&U)===U:(r&U)===U){U!==0&&U===Ai&&(bc=!0),P!==null&&(P=P.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var fe=e,ue=b;U=t;var Ue=i;switch(ue.tag){case 1:if(fe=ue.payload,typeof fe=="function"){G=fe.call(Ue,G,U);break e}G=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ue.payload,U=typeof fe=="function"?fe.call(Ue,G,U):fe,U==null)break e;G=v({},G,U);break e;case 2:ia=!0}}U=b.callback,U!==null&&(e.flags|=64,z&&(e.flags|=8192),z=l.callbacks,z===null?l.callbacks=[U]:z.push(U))}else z={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},P===null?(D=P=z,_=G):P=P.next=z,p|=U;if(b=b.next,b===null){if(b=l.shared.pending,b===null)break;z=b,b=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);P===null&&(_=G),l.baseState=_,l.firstBaseUpdate=D,l.lastBaseUpdate=P,u===null&&(l.shared.lanes=0),ga|=p,e.lanes=p,e.memoizedState=G}}function mh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ph(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)mh(i[e],t)}var Oi=Y(null),to=Y(0);function yh(e,t){e=Qn,H(to,e),H(Oi,t),Qn=e|t.baseLanes}function wc(){H(to,Qn),H(Oi,Oi.current)}function Sc(){Qn=to.current,W(Oi),W(to)}var oa=0,Se=null,Ne=null,Fe=null,no=!1,ki=!1,Xa=!1,ao=0,Us=0,Mi=null,Fb=0;function $e(){throw Error(o(321))}function xc(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!kt(e[i],t[i]))return!1;return!0}function _c(e,t,i,r,l,u){return oa=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?eg:tg,Xa=!1,u=i(r,l),Xa=!1,ki&&(u=bh(t,i,r,l)),vh(e),u}function vh(e){O.H=co;var t=Ne!==null&&Ne.next!==null;if(oa=0,Fe=Ne=Se=null,no=!1,Us=0,Mi=null,t)throw Error(o(300));e===null||st||(e=e.dependencies,e!==null&&Fr(e)&&(st=!0))}function bh(e,t,i,r){Se=e;var l=0;do{if(ki&&(Mi=null),Us=0,ki=!1,25<=l)throw Error(o(301));if(l+=1,Fe=Ne=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=a0,u=t(i,r)}while(ki);return u}function Zb(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?qs(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(Se.flags|=1024),t}function Ec(){var e=ao!==0;return ao=0,e}function Tc(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function Rc(e){if(no){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}no=!1}oa=0,Fe=Ne=Se=null,ki=!1,Us=ao=0,Mi=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Se.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Ze(){if(Ne===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Fe===null?Se.memoizedState:Fe.next;if(t!==null)Fe=t,Ne=e;else{if(e===null)throw Se.alternate===null?Error(o(467)):Error(o(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Fe===null?Se.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Ac(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qs(e){var t=Us;return Us+=1,Mi===null&&(Mi=[]),e=fh(Mi,e,t),t=Se,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?eg:tg),e}function io(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return qs(e);if(e.$$typeof===V)return mt(e)}throw Error(o(438,String(e)))}function Cc(e){var t=null,i=Se.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=Se.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Ac(),Se.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=ce;return t.index++,i}function Ln(e,t){return typeof t=="function"?t(e):t}function so(e){var t=Ze();return Oc(t,Ne,e)}function Oc(e,t,i){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=i;var l=e.baseQueue,u=r.pending;if(u!==null){if(l!==null){var p=l.next;l.next=u.next,u.next=p}t.baseQueue=l=u,r.pending=null}if(u=e.baseState,l===null)e.memoizedState=u;else{t=l.next;var b=p=null,_=null,D=t,P=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Ae&G)===G:(oa&G)===G){var U=D.revertLane;if(U===0)_!==null&&(_=_.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===Ai&&(P=!0);else if((oa&U)===U){D=D.next,U===Ai&&(P=!0);continue}else G={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},_===null?(b=_=G,p=u):_=_.next=G,Se.lanes|=U,ga|=U;G=D.action,Xa&&i(u,G),u=D.hasEagerState?D.eagerState:i(u,G)}else U={lane:G,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},_===null?(b=_=U,p=u):_=_.next=U,Se.lanes|=G,ga|=G;D=D.next}while(D!==null&&D!==t);if(_===null?p=u:_.next=b,!kt(u,e.memoizedState)&&(st=!0,P&&(i=Ci,i!==null)))throw i;e.memoizedState=u,e.baseState=p,e.baseQueue=_,r.lastRenderedState=u}return l===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function kc(e){var t=Ze(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var r=i.dispatch,l=i.pending,u=t.memoizedState;if(l!==null){i.pending=null;var p=l=l.next;do u=e(u,p.action),p=p.next;while(p!==l);kt(u,t.memoizedState)||(st=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),i.lastRenderedState=u}return[u,r]}function wh(e,t,i){var r=Se,l=Ze(),u=Oe;if(u){if(i===void 0)throw Error(o(407));i=i()}else i=t();var p=!kt((Ne||l).memoizedState,i);p&&(l.memoizedState=i,st=!0),l=l.queue;var b=_h.bind(null,r,l,e);if(zs(2048,8,b,[e]),l.getSnapshot!==t||p||Fe!==null&&Fe.memoizedState.tag&1){if(r.flags|=2048,Ni(9,ro(),xh.bind(null,r,l,i,t),null),Le===null)throw Error(o(349));u||(oa&124)!==0||Sh(r,t,i)}return i}function Sh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Se.updateQueue,t===null?(t=Ac(),Se.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function xh(e,t,i,r){t.value=i,t.getSnapshot=r,Eh(t)&&Th(e)}function _h(e,t,i){return i(function(){Eh(t)&&Th(e)})}function Eh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!kt(e,i)}catch{return!0}}function Th(e){var t=_i(e,2);t!==null&&zt(t,e,2)}function Mc(e){var t=Tt();if(typeof e=="function"){var i=e;if(e=i(),Xa){Jt(!0);try{i()}finally{Jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function Rh(e,t,i,r){return e.baseState=i,Oc(e,Ne,typeof r=="function"?r:Ln)}function Jb(e,t,i,r,l){if(lo(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){u.listeners.push(p)}};O.T!==null?i(!0):u.isTransition=!1,r(u),i=t.pending,i===null?(u.next=t.pending=u,Ah(t,u)):(u.next=i.next,t.pending=i.next=u)}}function Ah(e,t){var i=t.action,r=t.payload,l=e.state;if(t.isTransition){var u=O.T,p={};O.T=p;try{var b=i(l,r),_=O.S;_!==null&&_(p,b),Ch(e,t,b)}catch(D){Nc(e,t,D)}finally{O.T=u}}else try{u=i(l,r),Ch(e,t,u)}catch(D){Nc(e,t,D)}}function Ch(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){Oh(e,t,r)},function(r){return Nc(e,t,r)}):Oh(e,t,i)}function Oh(e,t,i){t.status="fulfilled",t.value=i,kh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Ah(e,i)))}function Nc(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,kh(t),t=t.next;while(t!==r)}e.action=null}function kh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Mh(e,t){return t}function Nh(e,t){if(Oe){var i=Le.formState;if(i!==null){e:{var r=Se;if(Oe){if(Pe){t:{for(var l=Pe,u=un;l.nodeType!==8;){if(!u){l=null;break t}if(l=nn(l.nextSibling),l===null){l=null;break t}}u=l.data,l=u==="F!"||u==="F"?l:null}if(l){Pe=nn(l.nextSibling),r=l.data==="F!";break e}}Ia(r)}r=!1}r&&(t=i[0])}}return i=Tt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mh,lastRenderedState:t},i.queue=r,i=Zh.bind(null,Se,r),r.dispatch=i,r=Mc(!1),u=Lc.bind(null,Se,!1,r.queue),r=Tt(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,i=Jb.bind(null,Se,l,u,i),l.dispatch=i,r.memoizedState=e,[t,i,!1]}function Dh(e){var t=Ze();return Uh(t,Ne,e)}function Uh(e,t,i){if(t=Oc(e,t,Mh)[0],e=so(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=qs(t)}catch(p){throw p===Os?Wr:p}else r=t;t=Ze();var l=t.queue,u=l.dispatch;return i!==t.memoizedState&&(Se.flags|=2048,Ni(9,ro(),Wb.bind(null,l,i),null)),[r,u,e]}function Wb(e,t){e.action=t}function qh(e){var t=Ze(),i=Ne;if(i!==null)return Uh(t,i,e);Ze(),t=t.memoizedState,i=Ze();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Ni(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Ac(),Se.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function ro(){return{destroy:void 0,resource:void 0}}function zh(){return Ze().memoizedState}function oo(e,t,i,r){var l=Tt();r=r===void 0?null:r,Se.flags|=e,l.memoizedState=Ni(1|t,ro(),i,r)}function zs(e,t,i,r){var l=Ze();r=r===void 0?null:r;var u=l.memoizedState.inst;Ne!==null&&r!==null&&xc(r,Ne.memoizedState.deps)?l.memoizedState=Ni(t,u,i,r):(Se.flags|=e,l.memoizedState=Ni(1|t,u,i,r))}function Lh(e,t){oo(8390656,8,e,t)}function Bh(e,t){zs(2048,8,e,t)}function jh(e,t){return zs(4,2,e,t)}function Hh(e,t){return zs(4,4,e,t)}function Vh(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ph(e,t,i){i=i!=null?i.concat([e]):null,zs(4,4,Vh.bind(null,t,e),i)}function Dc(){}function Qh(e,t){var i=Ze();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&xc(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Ih(e,t){var i=Ze();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&xc(t,r[1]))return r[0];if(r=e(),Xa){Jt(!0);try{e()}finally{Jt(!1)}}return i.memoizedState=[r,t],r}function Uc(e,t,i){return i===void 0||(oa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=i,e=$g(),Se.lanes|=e,ga|=e,i)}function Yh(e,t,i,r){return kt(i,t)?i:Oi.current!==null?(e=Uc(e,i,r),kt(e,t)||(st=!0),e):(oa&42)===0?(st=!0,e.memoizedState=i):(e=$g(),Se.lanes|=e,ga|=e,t)}function Gh(e,t,i,r,l){var u=Q.p;Q.p=u!==0&&8>u?u:8;var p=O.T,b={};O.T=b,Lc(e,!1,t,i);try{var _=l(),D=O.S;if(D!==null&&D(b,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var P=Kb(_,r);Ls(e,t,P,qt(e))}else Ls(e,t,r,qt(e))}catch(G){Ls(e,t,{then:function(){},status:"rejected",reason:G},qt())}finally{Q.p=u,O.T=p}}function e0(){}function qc(e,t,i,r){if(e.tag!==5)throw Error(o(476));var l=$h(e).queue;Gh(e,l,t,B,i===null?e0:function(){return Xh(e),i(r)})}function $h(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:B},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xh(e){var t=$h(e).next.queue;Ls(e,t,{},qt())}function zc(){return mt(tr)}function Kh(){return Ze().memoizedState}function Fh(){return Ze().memoizedState}function t0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=qt();e=sa(i);var r=ra(t,e,i);r!==null&&(zt(r,t,i),Ms(r,t,i)),t={cache:fc()},e.payload=t;return}t=t.return}}function n0(e,t,i){var r=qt();i={lane:r,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},lo(e)?Jh(t,i):(i=nc(e,t,i,r),i!==null&&(zt(i,e,r),Wh(i,t,r)))}function Zh(e,t,i){var r=qt();Ls(e,t,i,r)}function Ls(e,t,i,r){var l={lane:r,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(lo(e))Jh(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var p=t.lastRenderedState,b=u(p,i);if(l.hasEagerState=!0,l.eagerState=b,kt(b,p))return Yr(e,t,l,0),Le===null&&Ir(),!1}catch{}finally{}if(i=nc(e,t,l,r),i!==null)return zt(i,e,r),Wh(i,t,r),!0}return!1}function Lc(e,t,i,r){if(r={lane:2,revertLane:mu(),action:r,hasEagerState:!1,eagerState:null,next:null},lo(e)){if(t)throw Error(o(479))}else t=nc(e,i,r,2),t!==null&&zt(t,e,2)}function lo(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Jh(e,t){ki=no=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Wh(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Ie(e,i)}}var co={readContext:mt,use:io,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e},eg={readContext:mt,use:io,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Lh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,oo(4194308,4,Vh.bind(null,t,e),i)},useLayoutEffect:function(e,t){return oo(4194308,4,e,t)},useInsertionEffect:function(e,t){oo(4,2,e,t)},useMemo:function(e,t){var i=Tt();t=t===void 0?null:t;var r=e();if(Xa){Jt(!0);try{e()}finally{Jt(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=Tt();if(i!==void 0){var l=i(t);if(Xa){Jt(!0);try{i(t)}finally{Jt(!1)}}}else l=t;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=n0.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,i=Zh.bind(null,Se,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Dc,useDeferredValue:function(e,t){var i=Tt();return Uc(i,e,t)},useTransition:function(){var e=Mc(!1);return e=Gh.bind(null,Se,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=Se,l=Tt();if(Oe){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),Le===null)throw Error(o(349));(Ae&124)!==0||Sh(r,t,i)}l.memoizedState=i;var u={value:i,getSnapshot:t};return l.queue=u,Lh(_h.bind(null,r,u,e),[e]),r.flags|=2048,Ni(9,ro(),xh.bind(null,r,u,i,t),null),i},useId:function(){var e=Tt(),t=Le.identifierPrefix;if(Oe){var i=Un,r=Dn;i=(r&~(1<<32-ct(r)-1)).toString(32)+i,t="«"+t+"R"+i,i=ao++,0<i&&(t+="H"+i.toString(32)),t+="»"}else i=Fb++,t="«"+t+"r"+i.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:zc,useFormState:Nh,useActionState:Nh,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Lc.bind(null,Se,!0,i),i.dispatch=t,[e,t]},useMemoCache:Cc,useCacheRefresh:function(){return Tt().memoizedState=t0.bind(null,Se)}},tg={readContext:mt,use:io,useCallback:Qh,useContext:mt,useEffect:Bh,useImperativeHandle:Ph,useInsertionEffect:jh,useLayoutEffect:Hh,useMemo:Ih,useReducer:so,useRef:zh,useState:function(){return so(Ln)},useDebugValue:Dc,useDeferredValue:function(e,t){var i=Ze();return Yh(i,Ne.memoizedState,e,t)},useTransition:function(){var e=so(Ln)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:qs(e),t]},useSyncExternalStore:wh,useId:Kh,useHostTransitionStatus:zc,useFormState:Dh,useActionState:Dh,useOptimistic:function(e,t){var i=Ze();return Rh(i,Ne,e,t)},useMemoCache:Cc,useCacheRefresh:Fh},a0={readContext:mt,use:io,useCallback:Qh,useContext:mt,useEffect:Bh,useImperativeHandle:Ph,useInsertionEffect:jh,useLayoutEffect:Hh,useMemo:Ih,useReducer:kc,useRef:zh,useState:function(){return kc(Ln)},useDebugValue:Dc,useDeferredValue:function(e,t){var i=Ze();return Ne===null?Uc(i,e,t):Yh(i,Ne.memoizedState,e,t)},useTransition:function(){var e=kc(Ln)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:qs(e),t]},useSyncExternalStore:wh,useId:Kh,useHostTransitionStatus:zc,useFormState:qh,useActionState:qh,useOptimistic:function(e,t){var i=Ze();return Ne!==null?Rh(i,Ne,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Cc,useCacheRefresh:Fh},Di=null,Bs=0;function uo(e){var t=Bs;return Bs+=1,Di===null&&(Di=[]),fh(Di,e,t)}function js(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fo(e,t){throw t.$$typeof===y?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ng(e){var t=e._init;return t(e._payload)}function ag(e){function t(M,R){if(e){var N=M.deletions;N===null?(M.deletions=[R],M.flags|=16):N.push(R)}}function i(M,R){if(!e)return null;for(;R!==null;)t(M,R),R=R.sibling;return null}function r(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function l(M,R){return M=Nn(M,R),M.index=0,M.sibling=null,M}function u(M,R,N){return M.index=N,e?(N=M.alternate,N!==null?(N=N.index,N<R?(M.flags|=67108866,R):N):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,R,N,I){return R===null||R.tag!==6?(R=ic(N,M.mode,I),R.return=M,R):(R=l(R,N),R.return=M,R)}function _(M,R,N,I){var te=N.type;return te===E?P(M,R,N.props.children,I,N.key):R!==null&&(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===$&&ng(te)===R.type)?(R=l(R,N.props),js(R,N),R.return=M,R):(R=$r(N.type,N.key,N.props,null,M.mode,I),js(R,N),R.return=M,R)}function D(M,R,N,I){return R===null||R.tag!==4||R.stateNode.containerInfo!==N.containerInfo||R.stateNode.implementation!==N.implementation?(R=sc(N,M.mode,I),R.return=M,R):(R=l(R,N.children||[]),R.return=M,R)}function P(M,R,N,I,te){return R===null||R.tag!==7?(R=Ha(N,M.mode,I,te),R.return=M,R):(R=l(R,N),R.return=M,R)}function G(M,R,N){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=ic(""+R,M.mode,N),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case S:return N=$r(R.type,R.key,R.props,null,M.mode,N),js(N,R),N.return=M,N;case x:return R=sc(R,M.mode,N),R.return=M,R;case $:var I=R._init;return R=I(R._payload),G(M,R,N)}if(me(R)||he(R))return R=Ha(R,M.mode,N,null),R.return=M,R;if(typeof R.then=="function")return G(M,uo(R),N);if(R.$$typeof===V)return G(M,Zr(M,R),N);fo(M,R)}return null}function U(M,R,N,I){var te=R!==null?R.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return te!==null?null:b(M,R,""+N,I);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case S:return N.key===te?_(M,R,N,I):null;case x:return N.key===te?D(M,R,N,I):null;case $:return te=N._init,N=te(N._payload),U(M,R,N,I)}if(me(N)||he(N))return te!==null?null:P(M,R,N,I,null);if(typeof N.then=="function")return U(M,R,uo(N),I);if(N.$$typeof===V)return U(M,R,Zr(M,N),I);fo(M,N)}return null}function z(M,R,N,I,te){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return M=M.get(N)||null,b(R,M,""+I,te);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case S:return M=M.get(I.key===null?N:I.key)||null,_(R,M,I,te);case x:return M=M.get(I.key===null?N:I.key)||null,D(R,M,I,te);case $:var _e=I._init;return I=_e(I._payload),z(M,R,N,I,te)}if(me(I)||he(I))return M=M.get(N)||null,P(R,M,I,te,null);if(typeof I.then=="function")return z(M,R,N,uo(I),te);if(I.$$typeof===V)return z(M,R,N,Zr(R,I),te);fo(R,I)}return null}function fe(M,R,N,I){for(var te=null,_e=null,oe=R,de=R=0,ot=null;oe!==null&&de<N.length;de++){oe.index>de?(ot=oe,oe=null):ot=oe.sibling;var Ce=U(M,oe,N[de],I);if(Ce===null){oe===null&&(oe=ot);break}e&&oe&&Ce.alternate===null&&t(M,oe),R=u(Ce,R,de),_e===null?te=Ce:_e.sibling=Ce,_e=Ce,oe=ot}if(de===N.length)return i(M,oe),Oe&&Pa(M,de),te;if(oe===null){for(;de<N.length;de++)oe=G(M,N[de],I),oe!==null&&(R=u(oe,R,de),_e===null?te=oe:_e.sibling=oe,_e=oe);return Oe&&Pa(M,de),te}for(oe=r(oe);de<N.length;de++)ot=z(oe,M,de,N[de],I),ot!==null&&(e&&ot.alternate!==null&&oe.delete(ot.key===null?de:ot.key),R=u(ot,R,de),_e===null?te=ot:_e.sibling=ot,_e=ot);return e&&oe.forEach(function(_a){return t(M,_a)}),Oe&&Pa(M,de),te}function ue(M,R,N,I){if(N==null)throw Error(o(151));for(var te=null,_e=null,oe=R,de=R=0,ot=null,Ce=N.next();oe!==null&&!Ce.done;de++,Ce=N.next()){oe.index>de?(ot=oe,oe=null):ot=oe.sibling;var _a=U(M,oe,Ce.value,I);if(_a===null){oe===null&&(oe=ot);break}e&&oe&&_a.alternate===null&&t(M,oe),R=u(_a,R,de),_e===null?te=_a:_e.sibling=_a,_e=_a,oe=ot}if(Ce.done)return i(M,oe),Oe&&Pa(M,de),te;if(oe===null){for(;!Ce.done;de++,Ce=N.next())Ce=G(M,Ce.value,I),Ce!==null&&(R=u(Ce,R,de),_e===null?te=Ce:_e.sibling=Ce,_e=Ce);return Oe&&Pa(M,de),te}for(oe=r(oe);!Ce.done;de++,Ce=N.next())Ce=z(oe,M,de,Ce.value,I),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?de:Ce.key),R=u(Ce,R,de),_e===null?te=Ce:_e.sibling=Ce,_e=Ce);return e&&oe.forEach(function(iw){return t(M,iw)}),Oe&&Pa(M,de),te}function Ue(M,R,N,I){if(typeof N=="object"&&N!==null&&N.type===E&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case S:e:{for(var te=N.key;R!==null;){if(R.key===te){if(te=N.type,te===E){if(R.tag===7){i(M,R.sibling),I=l(R,N.props.children),I.return=M,M=I;break e}}else if(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===$&&ng(te)===R.type){i(M,R.sibling),I=l(R,N.props),js(I,N),I.return=M,M=I;break e}i(M,R);break}else t(M,R);R=R.sibling}N.type===E?(I=Ha(N.props.children,M.mode,I,N.key),I.return=M,M=I):(I=$r(N.type,N.key,N.props,null,M.mode,I),js(I,N),I.return=M,M=I)}return p(M);case x:e:{for(te=N.key;R!==null;){if(R.key===te)if(R.tag===4&&R.stateNode.containerInfo===N.containerInfo&&R.stateNode.implementation===N.implementation){i(M,R.sibling),I=l(R,N.children||[]),I.return=M,M=I;break e}else{i(M,R);break}else t(M,R);R=R.sibling}I=sc(N,M.mode,I),I.return=M,M=I}return p(M);case $:return te=N._init,N=te(N._payload),Ue(M,R,N,I)}if(me(N))return fe(M,R,N,I);if(he(N)){if(te=he(N),typeof te!="function")throw Error(o(150));return N=te.call(N),ue(M,R,N,I)}if(typeof N.then=="function")return Ue(M,R,uo(N),I);if(N.$$typeof===V)return Ue(M,R,Zr(M,N),I);fo(M,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,R!==null&&R.tag===6?(i(M,R.sibling),I=l(R,N),I.return=M,M=I):(i(M,R),I=ic(N,M.mode,I),I.return=M,M=I),p(M)):i(M,R)}return function(M,R,N,I){try{Bs=0;var te=Ue(M,R,N,I);return Di=null,te}catch(oe){if(oe===Os||oe===Wr)throw oe;var _e=Mt(29,oe,null,M.mode);return _e.lanes=I,_e.return=M,_e}finally{}}}var Ui=ag(!0),ig=ag(!1),$t=Y(null),dn=null;function la(e){var t=e.alternate;H(tt,tt.current&1),H($t,e),dn===null&&(t===null||Oi.current!==null||t.memoizedState!==null)&&(dn=e)}function sg(e){if(e.tag===22){if(H(tt,tt.current),H($t,e),dn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(dn=e)}}else ca()}function ca(){H(tt,tt.current),H($t,$t.current)}function Bn(e){W($t),dn===e&&(dn=null),W(tt)}var tt=Y(0);function ho(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Au(i)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Bc(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:v({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var jc={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=qt(),l=sa(r);l.payload=t,i!=null&&(l.callback=i),t=ra(e,l,r),t!==null&&(zt(t,e,r),Ms(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=qt(),l=sa(r);l.tag=1,l.payload=t,i!=null&&(l.callback=i),t=ra(e,l,r),t!==null&&(zt(t,e,r),Ms(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=qt(),r=sa(i);r.tag=2,t!=null&&(r.callback=t),t=ra(e,r,i),t!==null&&(zt(t,e,i),Ms(t,e,i))}};function rg(e,t,i,r,l,u,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,p):t.prototype&&t.prototype.isPureReactComponent?!Ss(i,r)||!Ss(l,u):!0}function og(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&jc.enqueueReplaceState(t,t.state,null)}function Ka(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=v({},i));for(var l in e)i[l]===void 0&&(i[l]=e[l])}return i}var go=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)};function lg(e){go(e)}function cg(e){console.error(e)}function ug(e){go(e)}function mo(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function dg(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Hc(e,t,i){return i=sa(i),i.tag=3,i.payload={element:null},i.callback=function(){mo(e,t)},i}function fg(e){return e=sa(e),e.tag=3,e}function hg(e,t,i,r){var l=i.type.getDerivedStateFromError;if(typeof l=="function"){var u=r.value;e.payload=function(){return l(u)},e.callback=function(){dg(t,i,r)}}var p=i.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){dg(t,i,r),typeof l!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var b=r.stack;this.componentDidCatch(r.value,{componentStack:b!==null?b:""})})}function i0(e,t,i,r,l){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Rs(t,i,l,!0),i=$t.current,i!==null){switch(i.tag){case 13:return dn===null?uu():i.alternate===null&&Qe===0&&(Qe=3),i.flags&=-257,i.flags|=65536,i.lanes=l,r===mc?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),fu(e,r,l)),!1;case 22:return i.flags|=65536,r===mc?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),fu(e,r,l)),!1}throw Error(o(435,i.tag))}return fu(e,r,l),uu(),!1}if(Oe)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,r!==lc&&(e=Error(o(422),{cause:r}),Ts(Qt(e,i)))):(r!==lc&&(t=Error(o(423),{cause:r}),Ts(Qt(t,i))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,r=Qt(r,i),l=Hc(e.stateNode,r,l),vc(e,l),Qe!==4&&(Qe=2)),!1;var u=Error(o(520),{cause:r});if(u=Qt(u,i),Gs===null?Gs=[u]:Gs.push(u),Qe!==4&&(Qe=2),t===null)return!0;r=Qt(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=l&-l,i.lanes|=e,e=Hc(i.stateNode,r,e),vc(i,e),!1;case 1:if(t=i.type,u=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ma===null||!ma.has(u))))return i.flags|=65536,l&=-l,i.lanes|=l,l=fg(l),hg(l,e,i,r),vc(i,l),!1}i=i.return}while(i!==null);return!1}var gg=Error(o(461)),st=!1;function dt(e,t,i,r){t.child=e===null?ig(t,null,i,r):Ui(t,e.child,i,r)}function mg(e,t,i,r,l){i=i.render;var u=t.ref;if("ref"in r){var p={};for(var b in r)b!=="ref"&&(p[b]=r[b])}else p=r;return Ga(t),r=_c(e,t,i,p,u,l),b=Ec(),e!==null&&!st?(Tc(e,t,l),jn(e,t,l)):(Oe&&b&&rc(t),t.flags|=1,dt(e,t,r,l),t.child)}function pg(e,t,i,r,l){if(e===null){var u=i.type;return typeof u=="function"&&!ac(u)&&u.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=u,yg(e,t,u,r,l)):(e=$r(i.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Xc(e,l)){var p=u.memoizedProps;if(i=i.compare,i=i!==null?i:Ss,i(p,r)&&e.ref===t.ref)return jn(e,t,l)}return t.flags|=1,e=Nn(u,r),e.ref=t.ref,e.return=t,t.child=e}function yg(e,t,i,r,l){if(e!==null){var u=e.memoizedProps;if(Ss(u,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=u,Xc(e,l))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,jn(e,t,l)}return Vc(e,t,i,r,l)}function vg(e,t,i){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden"){if((t.flags&128)!==0){if(r=u!==null?u.baseLanes|i:i,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;t.childLanes=u&~r}else t.childLanes=0,t.child=null;return bg(e,t,r,i)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jr(t,u!==null?u.cachePool:null),u!==null?yh(t,u):wc(),sg(t);else return t.lanes=t.childLanes=536870912,bg(e,t,u!==null?u.baseLanes|i:i,i)}else u!==null?(Jr(t,u.cachePool),yh(t,u),ca(),t.memoizedState=null):(e!==null&&Jr(t,null),wc(),ca());return dt(e,t,l,i),t.child}function bg(e,t,i,r){var l=gc();return l=l===null?null:{parent:et._currentValue,pool:l},t.memoizedState={baseLanes:i,cachePool:l},e!==null&&Jr(t,null),wc(),sg(t),e!==null&&Rs(e,t,r,!0),null}function po(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Vc(e,t,i,r,l){return Ga(t),i=_c(e,t,i,r,void 0,l),r=Ec(),e!==null&&!st?(Tc(e,t,l),jn(e,t,l)):(Oe&&r&&rc(t),t.flags|=1,dt(e,t,i,l),t.child)}function wg(e,t,i,r,l,u){return Ga(t),t.updateQueue=null,i=bh(t,r,i,l),vh(e),r=Ec(),e!==null&&!st?(Tc(e,t,u),jn(e,t,u)):(Oe&&r&&rc(t),t.flags|=1,dt(e,t,i,u),t.child)}function Sg(e,t,i,r,l){if(Ga(t),t.stateNode===null){var u=Ei,p=i.contextType;typeof p=="object"&&p!==null&&(u=mt(p)),u=new i(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=jc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},pc(t),p=i.contextType,u.context=typeof p=="object"&&p!==null?mt(p):Ei,u.state=t.memoizedState,p=i.getDerivedStateFromProps,typeof p=="function"&&(Bc(t,i,p,r),u.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(p=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),p!==u.state&&jc.enqueueReplaceState(u,u.state,null),Ds(t,r,u,l),Ns(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,_=Ka(i,b);u.props=_;var D=u.context,P=i.contextType;p=Ei,typeof P=="object"&&P!==null&&(p=mt(P));var G=i.getDerivedStateFromProps;P=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,P||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||D!==p)&&og(t,u,r,p),ia=!1;var U=t.memoizedState;u.state=U,Ds(t,r,u,l),Ns(),D=t.memoizedState,b||U!==D||ia?(typeof G=="function"&&(Bc(t,i,G,r),D=t.memoizedState),(_=ia||rg(t,i,_,r,U,D,p))?(P||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=D),u.props=r,u.state=D,u.context=p,r=_):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,yc(e,t),p=t.memoizedProps,P=Ka(i,p),u.props=P,G=t.pendingProps,U=u.context,D=i.contextType,_=Ei,typeof D=="object"&&D!==null&&(_=mt(D)),b=i.getDerivedStateFromProps,(D=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==G||U!==_)&&og(t,u,r,_),ia=!1,U=t.memoizedState,u.state=U,Ds(t,r,u,l),Ns();var z=t.memoizedState;p!==G||U!==z||ia||e!==null&&e.dependencies!==null&&Fr(e.dependencies)?(typeof b=="function"&&(Bc(t,i,b,r),z=t.memoizedState),(P=ia||rg(t,i,P,r,U,z,_)||e!==null&&e.dependencies!==null&&Fr(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,z,_),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,z,_)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=z),u.props=r,u.state=z,u.context=_,r=P):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,po(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=Ui(t,e.child,null,l),t.child=Ui(t,null,i,l)):dt(e,t,i,l),t.memoizedState=u.state,e=t.child):e=jn(e,t,l),e}function xg(e,t,i,r){return Es(),t.flags|=256,dt(e,t,i,r),t.child}var Pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(e){return{baseLanes:e,cachePool:ch()}}function Ic(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=Xt),e}function _g(e,t,i){var r=t.pendingProps,l=!1,u=(t.flags&128)!==0,p;if((p=u)||(p=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),p&&(l=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(l?la(t):ca(),Oe){var b=Pe,_;if(_=b){e:{for(_=b,b=un;_.nodeType!==8;){if(!b){b=null;break e}if(_=nn(_.nextSibling),_===null){b=null;break e}}b=_}b!==null?(t.memoizedState={dehydrated:b,treeContext:Va!==null?{id:Dn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},_=Mt(18,null,null,0),_.stateNode=b,_.return=t,t.child=_,xt=t,Pe=null,_=!0):_=!1}_||Ia(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Au(b)?t.lanes=32:t.lanes=536870912,null;Bn(t)}return b=r.children,r=r.fallback,l?(ca(),l=t.mode,b=yo({mode:"hidden",children:b},l),r=Ha(r,l,i,null),b.return=t,r.return=t,b.sibling=r,t.child=b,l=t.child,l.memoizedState=Qc(i),l.childLanes=Ic(e,p,i),t.memoizedState=Pc,r):(la(t),Yc(t,b))}if(_=e.memoizedState,_!==null&&(b=_.dehydrated,b!==null)){if(u)t.flags&256?(la(t),t.flags&=-257,t=Gc(e,t,i)):t.memoizedState!==null?(ca(),t.child=e.child,t.flags|=128,t=null):(ca(),l=r.fallback,b=t.mode,r=yo({mode:"visible",children:r.children},b),l=Ha(l,b,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,Ui(t,e.child,null,i),r=t.child,r.memoizedState=Qc(i),r.childLanes=Ic(e,p,i),t.memoizedState=Pc,t=l);else if(la(t),Au(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var D=p.dgst;p=D,r=Error(o(419)),r.stack="",r.digest=p,Ts({value:r,source:null,stack:null}),t=Gc(e,t,i)}else if(st||Rs(e,t,i,!1),p=(i&e.childLanes)!==0,st||p){if(p=Le,p!==null&&(r=i&-i,r=(r&42)!==0?1:Ke(r),r=(r&(p.suspendedLanes|i))!==0?0:r,r!==0&&r!==_.retryLane))throw _.retryLane=r,_i(e,r),zt(p,e,r),gg;b.data==="$?"||uu(),t=Gc(e,t,i)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,Pe=nn(b.nextSibling),xt=t,Oe=!0,Qa=null,un=!1,e!==null&&(Yt[Gt++]=Dn,Yt[Gt++]=Un,Yt[Gt++]=Va,Dn=e.id,Un=e.overflow,Va=t),t=Yc(t,r.children),t.flags|=4096);return t}return l?(ca(),l=r.fallback,b=t.mode,_=e.child,D=_.sibling,r=Nn(_,{mode:"hidden",children:r.children}),r.subtreeFlags=_.subtreeFlags&65011712,D!==null?l=Nn(D,l):(l=Ha(l,b,i,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,b=e.child.memoizedState,b===null?b=Qc(i):(_=b.cachePool,_!==null?(D=et._currentValue,_=_.parent!==D?{parent:D,pool:D}:_):_=ch(),b={baseLanes:b.baseLanes|i,cachePool:_}),l.memoizedState=b,l.childLanes=Ic(e,p,i),t.memoizedState=Pc,r):(la(t),i=e.child,e=i.sibling,i=Nn(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=i,t.memoizedState=null,i)}function Yc(e,t){return t=yo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yo(e,t){return e=Mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gc(e,t,i){return Ui(t,e.child,null,i),e=Yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Eg(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),uc(e.return,t,i)}function $c(e,t,i,r,l){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:l}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=i,u.tailMode=l)}function Tg(e,t,i){var r=t.pendingProps,l=r.revealOrder,u=r.tail;if(dt(e,t,r.children,i),r=tt.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eg(e,i,t);else if(e.tag===19)Eg(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(H(tt,r),l){case"forwards":for(i=t.child,l=null;i!==null;)e=i.alternate,e!==null&&ho(e)===null&&(l=i),i=i.sibling;i=l,i===null?(l=t.child,t.child=null):(l=i.sibling,i.sibling=null),$c(t,!1,l,i,u);break;case"backwards":for(i=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ho(e)===null){t.child=l;break}e=l.sibling,l.sibling=i,i=l,l=e}$c(t,!0,i,null,u);break;case"together":$c(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),ga|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Rs(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=Nn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Nn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Xc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fr(e)))}function s0(e,t,i){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),aa(t,et,e.memoizedState.cache),Es();break;case 27:case 5:vt(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:aa(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(la(t),t.flags|=128,null):(i&t.child.childLanes)!==0?_g(e,t,i):(la(t),e=jn(e,t,i),e!==null?e.sibling:null);la(t);break;case 19:var l=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(Rs(e,t,i,!1),r=(i&t.childLanes)!==0),l){if(r)return Tg(e,t,i);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),H(tt,tt.current),r)break;return null;case 22:case 23:return t.lanes=0,vg(e,t,i);case 24:aa(t,et,e.memoizedState.cache)}return jn(e,t,i)}function Rg(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Xc(e,i)&&(t.flags&128)===0)return st=!1,s0(e,t,i);st=(e.flags&131072)!==0}else st=!1,Oe&&(t.flags&1048576)!==0&&nh(t,Kr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,l=r._init;if(r=l(r._payload),t.type=r,typeof r=="function")ac(r)?(e=Ka(r,e),t.tag=1,t=Sg(null,t,r,e,i)):(t.tag=0,t=Vc(null,t,r,e,i));else{if(r!=null){if(l=r.$$typeof,l===F){t.tag=11,t=mg(null,t,r,e,i);break e}else if(l===Z){t.tag=14,t=pg(null,t,r,e,i);break e}}throw t=we(r)||r,Error(o(306,t,""))}}return t;case 0:return Vc(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,l=Ka(r,t.pendingProps),Sg(e,t,r,l,i);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var u=t.memoizedState;l=u.element,yc(e,t),Ds(t,r,null,i);var p=t.memoizedState;if(r=p.cache,aa(t,et,r),r!==u.cache&&dc(t,[et],i,!0),Ns(),r=p.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=xg(e,t,r,i);break e}else if(r!==l){l=Qt(Error(o(424)),t),Ts(l),t=xg(e,t,r,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Pe=nn(e.firstChild),xt=t,Oe=!0,Qa=null,un=!0,i=ig(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Es(),r===l){t=jn(e,t,i);break e}dt(e,t,r,i)}t=t.child}return t;case 26:return po(e,t),e===null?(i=km(t.type,null,t.pendingProps,null))?t.memoizedState=i:Oe||(i=t.type,e=t.pendingProps,r=Mo(se.current).createElement(i),r[Ge]=t,r[ze]=e,ht(r,i,e),it(r),t.stateNode=r):t.memoizedState=km(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return vt(t),e===null&&Oe&&(r=t.stateNode=Am(t.type,t.pendingProps,se.current),xt=t,un=!0,l=Pe,va(t.type)?(Cu=l,Pe=nn(r.firstChild)):Pe=l),dt(e,t,t.pendingProps.children,i),po(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((l=r=Pe)&&(r=D0(r,t.type,t.pendingProps,un),r!==null?(t.stateNode=r,xt=t,Pe=nn(r.firstChild),un=!1,l=!0):l=!1),l||Ia(t)),vt(t),l=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,r=u.children,Eu(l,u)?r=null:p!==null&&Eu(l,p)&&(t.flags|=32),t.memoizedState!==null&&(l=_c(e,t,Zb,null,null,i),tr._currentValue=l),po(e,t),dt(e,t,r,i),t.child;case 6:return e===null&&Oe&&((e=i=Pe)&&(i=U0(i,t.pendingProps,un),i!==null?(t.stateNode=i,xt=t,Pe=null,e=!0):e=!1),e||Ia(t)),null;case 13:return _g(e,t,i);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ui(t,null,r,i):dt(e,t,r,i),t.child;case 11:return mg(e,t,t.type,t.pendingProps,i);case 7:return dt(e,t,t.pendingProps,i),t.child;case 8:return dt(e,t,t.pendingProps.children,i),t.child;case 12:return dt(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,aa(t,t.type,r.value),dt(e,t,r.children,i),t.child;case 9:return l=t.type._context,r=t.pendingProps.children,Ga(t),l=mt(l),r=r(l),t.flags|=1,dt(e,t,r,i),t.child;case 14:return pg(e,t,t.type,t.pendingProps,i);case 15:return yg(e,t,t.type,t.pendingProps,i);case 19:return Tg(e,t,i);case 31:return r=t.pendingProps,i=t.mode,r={mode:r.mode,children:r.children},e===null?(i=yo(r,i),i.ref=t.ref,t.child=i,i.return=t,t=i):(i=Nn(e.child,r),i.ref=t.ref,t.child=i,i.return=t,t=i),t;case 22:return vg(e,t,i);case 24:return Ga(t),r=mt(et),e===null?(l=gc(),l===null&&(l=Le,u=fc(),l.pooledCache=u,u.refCount++,u!==null&&(l.pooledCacheLanes|=i),l=u),t.memoizedState={parent:r,cache:l},pc(t),aa(t,et,l)):((e.lanes&i)!==0&&(yc(e,t),Ds(t,null,null,i),Ns()),l=e.memoizedState,u=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),aa(t,et,r)):(r=u.cache,aa(t,et,r),r!==l.cache&&dc(t,[et],i,!0))),dt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Hn(e){e.flags|=4}function Ag(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qm(t)){if(t=$t.current,t!==null&&((Ae&4194048)===Ae?dn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==dn))throw ks=mc,uh;e.flags|=8192}}function vo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mr():536870912,e.lanes|=t,Bi|=t)}function Hs(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var l=e.child;l!==null;)i|=l.lanes|l.childLanes,r|=l.subtreeFlags&65011712,r|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)i|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function r0(e,t,i){var r=t.pendingProps;switch(oc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return je(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),zn(et),Ve(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(_s(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sh())),je(t),null;case 26:return i=t.memoizedState,e===null?(Hn(t),i!==null?(je(t),Ag(t,i)):(je(t),t.flags&=-16777217)):i?i!==e.memoizedState?(Hn(t),je(t),Ag(t,i)):(je(t),t.flags&=-16777217):(e.memoizedProps!==r&&Hn(t),je(t),t.flags&=-16777217),null;case 27:bt(t),i=se.current;var l=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Hn(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return je(t),null}e=J.current,_s(t)?ah(t):(e=Am(l,r,i),t.stateNode=e,Hn(t))}return je(t),null;case 5:if(bt(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Hn(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return je(t),null}if(e=J.current,_s(t))ah(t);else{switch(l=Mo(se.current),e){case 1:e=l.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=l.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?l.createElement(i,{is:r.is}):l.createElement(i)}}e[Ge]=t,e[ze]=r;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=e;e:switch(ht(e,i,r),i){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Hn(t)}}return je(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Hn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(e=se.current,_s(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,l=xt,l!==null)switch(l.tag){case 27:case 5:r=l.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||wm(e.nodeValue,i)),e||Ia(t)}else e=Mo(e).createTextNode(r),e[Ge]=t,t.stateNode=e}return je(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=_s(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));l[Ge]=t}else Es(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),l=!1}else l=sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Bn(t),t):(Bn(t),null)}if(Bn(t),(t.flags&128)!==0)return t.lanes=i,t;if(i=r!==null,e=e!==null&&e.memoizedState!==null,i){r=t.child,l=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(l=r.alternate.memoizedState.cachePool.pool);var u=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==l&&(r.flags|=2048)}return i!==e&&i&&(t.child.flags|=8192),vo(t,t.updateQueue),je(t),null;case 4:return Ve(),e===null&&bu(t.stateNode.containerInfo),je(t),null;case 10:return zn(t.type),je(t),null;case 19:if(W(tt),l=t.memoizedState,l===null)return je(t),null;if(r=(t.flags&128)!==0,u=l.rendering,u===null)if(r)Hs(l,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ho(e),u!==null){for(t.flags|=128,Hs(l,!1),e=u.updateQueue,t.updateQueue=e,vo(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)th(i,e),i=i.sibling;return H(tt,tt.current&1|2),t.child}e=e.sibling}l.tail!==null&&gt()>So&&(t.flags|=128,r=!0,Hs(l,!1),t.lanes=4194304)}else{if(!r)if(e=ho(u),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,vo(t,e),Hs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!Oe)return je(t),null}else 2*gt()-l.renderingStartTime>So&&i!==536870912&&(t.flags|=128,r=!0,Hs(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=gt(),t.sibling=null,e=tt.current,H(tt,r?e&1|2:e&1),t):(je(t),null);case 22:case 23:return Bn(t),Sc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),i=t.updateQueue,i!==null&&vo(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&W($a),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),zn(et),je(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function o0(e,t){switch(oc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(et),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bt(t),null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(tt),null;case 4:return Ve(),null;case 10:return zn(t.type),null;case 22:case 23:return Bn(t),Sc(),e!==null&&W($a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(et),null;case 25:return null;default:return null}}function Cg(e,t){switch(oc(t),t.tag){case 3:zn(et),Ve();break;case 26:case 27:case 5:bt(t);break;case 4:Ve();break;case 13:Bn(t);break;case 19:W(tt);break;case 10:zn(t.type);break;case 22:case 23:Bn(t),Sc(),e!==null&&W($a);break;case 24:zn(et)}}function Vs(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var l=r.next;i=l;do{if((i.tag&e)===e){r=void 0;var u=i.create,p=i.inst;r=u(),p.destroy=r}i=i.next}while(i!==l)}}catch(b){qe(t,t.return,b)}}function ua(e,t,i){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var u=l.next;r=u;do{if((r.tag&e)===e){var p=r.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,l=t;var _=i,D=b;try{D()}catch(P){qe(l,_,P)}}}r=r.next}while(r!==u)}}catch(P){qe(t,t.return,P)}}function Og(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{ph(t,i)}catch(r){qe(e,e.return,r)}}}function kg(e,t,i){i.props=Ka(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){qe(e,t,r)}}function Ps(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(l){qe(e,t,l)}}function fn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(l){qe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(l){qe(e,t,l)}else i.current=null}function Mg(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(l){qe(e,e.return,l)}}function Kc(e,t,i){try{var r=e.stateNode;C0(r,e.type,i,t),r[ze]=t}catch(l){qe(e,e.return,l)}}function Ng(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&va(e.type)||e.tag===4}function Fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ng(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&&va(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 Zc(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=ko));else if(r!==4&&(r===27&&va(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,i),e=e.sibling;e!==null;)Zc(e,t,i),e=e.sibling}function bo(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&va(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(bo(e,t,i),e=e.sibling;e!==null;)bo(e,t,i),e=e.sibling}function Dg(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);ht(t,r,i),t[Ge]=e,t[ze]=i}catch(u){qe(e,e.return,u)}}var Vn=!1,Xe=!1,Jc=!1,Ug=typeof WeakSet=="function"?WeakSet:Set,rt=null;function l0(e,t){if(e=e.containerInfo,xu=Lo,e=Yf(e),Fl(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{i.nodeType,u.nodeType}catch{i=null;break e}var p=0,b=-1,_=-1,D=0,P=0,G=e,U=null;t:for(;;){for(var z;G!==i||l!==0&&G.nodeType!==3||(b=p+l),G!==u||r!==0&&G.nodeType!==3||(_=p+r),G.nodeType===3&&(p+=G.nodeValue.length),(z=G.firstChild)!==null;)U=G,G=z;for(;;){if(G===e)break t;if(U===i&&++D===l&&(b=p),U===u&&++P===r&&(_=p),(z=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=z}i=b===-1||_===-1?null:{start:b,end:_}}else i=null}i=i||{start:0,end:0}}else i=null;for(_u={focusedElem:e,selectionRange:i},Lo=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,u=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,i=t,l=u.memoizedProps,u=u.memoizedState,r=i.stateNode;try{var fe=Ka(i.type,l,i.elementType===i.type);e=r.getSnapshotBeforeUpdate(fe,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(ue){qe(i,i.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Ru(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ru(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function qg(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:da(e,i),r&4&&Vs(5,i);break;case 1:if(da(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(p){qe(i,i.return,p)}else{var l=Ka(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){qe(i,i.return,p)}}r&64&&Og(i),r&512&&Ps(i,i.return);break;case 3:if(da(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{ph(e,t)}catch(p){qe(i,i.return,p)}}break;case 27:t===null&&r&4&&Dg(i);case 26:case 5:da(e,i),t===null&&r&4&&Mg(i),r&512&&Ps(i,i.return);break;case 12:da(e,i);break;case 13:da(e,i),r&4&&Bg(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=y0.bind(null,i),q0(e,i))));break;case 22:if(r=i.memoizedState!==null||Vn,!r){t=t!==null&&t.memoizedState!==null||Xe,l=Vn;var u=Xe;Vn=r,(Xe=t)&&!u?fa(e,i,(i.subtreeFlags&8772)!==0):da(e,i),Vn=l,Xe=u}break;case 30:break;default:da(e,i)}}function zg(e){var t=e.alternate;t!==null&&(e.alternate=null,zg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ml(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 Be=null,Rt=!1;function Pn(e,t,i){for(i=i.child;i!==null;)Lg(e,t,i),i=i.sibling}function Lg(e,t,i){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(ln,i)}catch{}switch(i.tag){case 26:Xe||fn(i,t),Pn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Xe||fn(i,t);var r=Be,l=Rt;va(i.type)&&(Be=i.stateNode,Rt=!1),Pn(e,t,i),Zs(i.stateNode),Be=r,Rt=l;break;case 5:Xe||fn(i,t);case 6:if(r=Be,l=Rt,Be=null,Pn(e,t,i),Be=r,Rt=l,Be!==null)if(Rt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(i.stateNode)}catch(u){qe(i,t,u)}else try{Be.removeChild(i.stateNode)}catch(u){qe(i,t,u)}break;case 18:Be!==null&&(Rt?(e=Be,Tm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),sr(e)):Tm(Be,i.stateNode));break;case 4:r=Be,l=Rt,Be=i.stateNode.containerInfo,Rt=!0,Pn(e,t,i),Be=r,Rt=l;break;case 0:case 11:case 14:case 15:Xe||ua(2,i,t),Xe||ua(4,i,t),Pn(e,t,i);break;case 1:Xe||(fn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&kg(i,t,r)),Pn(e,t,i);break;case 21:Pn(e,t,i);break;case 22:Xe=(r=Xe)||i.memoizedState!==null,Pn(e,t,i),Xe=r;break;default:Pn(e,t,i)}}function Bg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{sr(e)}catch(i){qe(t,t.return,i)}}function c0(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ug),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ug),t;default:throw Error(o(435,e.tag))}}function Wc(e,t){var i=c0(e);t.forEach(function(r){var l=v0.bind(null,e,r);i.has(r)||(i.add(r),r.then(l,l))})}function Nt(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var l=i[r],u=e,p=t,b=p;e:for(;b!==null;){switch(b.tag){case 27:if(va(b.type)){Be=b.stateNode,Rt=!1;break e}break;case 5:Be=b.stateNode,Rt=!1;break e;case 3:case 4:Be=b.stateNode.containerInfo,Rt=!0;break e}b=b.return}if(Be===null)throw Error(o(160));Lg(u,p,l),Be=null,Rt=!1,u=l.alternate,u!==null&&(u.return=null),l.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)jg(t,e),t=t.sibling}var tn=null;function jg(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nt(t,e),Dt(e),r&4&&(ua(3,e,e.return),Vs(3,e),ua(5,e,e.return));break;case 1:Nt(t,e),Dt(e),r&512&&(Xe||i===null||fn(i,i.return)),r&64&&Vn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var l=tn;if(Nt(t,e),Dt(e),r&512&&(Xe||i===null||fn(i,i.return)),r&4){var u=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,l=l.ownerDocument||l;t:switch(r){case"title":u=l.getElementsByTagName("title")[0],(!u||u[fs]||u[Ge]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=l.createElement(r),l.head.insertBefore(u,l.querySelector("head > title"))),ht(u,r,i),u[Ge]=e,it(u),r=u;break e;case"link":var p=Dm("link","href",l).get(r+(i.href||""));if(p){for(var b=0;b<p.length;b++)if(u=p[b],u.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&u.getAttribute("rel")===(i.rel==null?null:i.rel)&&u.getAttribute("title")===(i.title==null?null:i.title)&&u.getAttribute("crossorigin")===(i.
vendor: 4,633 bytes, line 48
48crossOrigin==null?null:i.crossOrigin)){p.splice(b,1);break t}}u=l.createElement(r),ht(u,r,i),l.head.appendChild(u);break;case"meta":if(p=Dm("meta","content",l).get(r+(i.content||""))){for(b=0;b<p.length;b++)if(u=p[b],u.getAttribute("content")===(i.content==null?null:""+i.content)&&u.getAttribute("name")===(i.name==null?null:i.name)&&u.getAttribute("property")===(i.property==null?null:i.property)&&u.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&u.getAttribute("charset")===(i.charSet==null?null:i.charSet)){p.splice(b,1);break t}}u=l.createElement(r),ht(u,r,i),l.head.appendChild(u);break;default:throw Error(o(468,r))}u[Ge]=e,it(u),r=u}e.stateNode=r}else Um(l,e.type,e.stateNode);else e.stateNode=Nm(l,r,e.memoizedProps);else u!==r?(u===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):u.count--,r===null?Um(l,e.type,e.stateNode):Nm(l,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,i.memoizedProps)}break;case 27:Nt(t,e),Dt(e),r&512&&(Xe||i===null||fn(i,i.return)),i!==null&&r&4&&Kc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Nt(t,e),Dt(e),r&512&&(Xe||i===null||fn(i,i.return)),e.flags&32){l=e.stateNode;try{pi(l,"")}catch(z){qe(e,e.return,z)}}r&4&&e.stateNode!=null&&(l=e.memoizedProps,Kc(e,l,i!==null?i.memoizedProps:l)),r&1024&&(Jc=!0);break;case 6:if(Nt(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(z){qe(e,e.return,z)}}break;case 3:if(Uo=null,l=tn,tn=No(t.containerInfo),Nt(t,e),tn=l,Dt(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{sr(t.containerInfo)}catch(z){qe(e,e.return,z)}Jc&&(Jc=!1,Hg(e));break;case 4:r=tn,tn=No(e.stateNode.containerInfo),Nt(t,e),Dt(e),tn=r;break;case 12:Nt(t,e),Dt(e);break;case 13:Nt(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(su=gt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Wc(e,r)));break;case 22:l=e.memoizedState!==null;var _=i!==null&&i.memoizedState!==null,D=Vn,P=Xe;if(Vn=D||l,Xe=P||_,Nt(t,e),Xe=P,Vn=D,Dt(e),r&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(i===null||_||Vn||Xe||Fa(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){_=i=t;try{if(u=_.stateNode,l)p=u.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=_.stateNode;var G=_.memoizedProps.style,U=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(z){qe(_,_.return,z)}}}else if(t.tag===6){if(i===null){_=t;try{_.stateNode.nodeValue=l?"":_.memoizedProps}catch(z){qe(_,_.return,z)}}}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;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,Wc(e,i))));break;case 19:Nt(t,e),Dt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Wc(e,r)));break;case 30:break;case 21:break;default:Nt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(Ng(r)){i=r;break}r=r.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var l=i.stateNode,u=Fc(e);bo(e,u,l);break;case 5:var p=i.stateNode;i.flags&32&&(pi(p,""),i.flags&=-33);var b=Fc(e);bo(e,b,p);break;case 3:case 4:var _=i.stateNode.containerInfo,D=Fc(e);Zc(e,D,_);break;default:throw Error(o(161))}}catch(P){qe(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qg(e,t.alternate,t),t=t.sibling}function Fa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ua(4,t,t.return),Fa(t);break;case 1:fn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&kg(t,t.return,i),Fa(t);break;case 27:Zs(t.stateNode);case 26:case 5:fn(t,t.return),Fa(t);break;case 22:t.memoizedState===null&&Fa(t);break;case 30:Fa(t);break;default:Fa(t)}e=e.sibling}}function fa(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,l=e,u=t,p=u.flags;switch(u.tag){case 0:case 11:case 15:fa(l,u,i),Vs(4,u);break;case 1:if(fa(l,u,i),r=u,l=r.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(D){qe(r,r.return,D)}if(r=u,l=r.updateQueue,l!==null){var b=r.stateNode;try{var _=l.shared.hiddenCallbacks;
vendor: 17,302 bytes, line 48
48if(_!==null)for(l.shared.hiddenCallbacks=null,l=0;l<_.length;l++)mh(_[l],b)}catch(D){qe(r,r.return,D)}}i&&p&64&&Og(u),Ps(u,u.return);break;case 27:Dg(u);case 26:case 5:fa(l,u,i),i&&r===null&&p&4&&Mg(u),Ps(u,u.return);break;case 12:fa(l,u,i);break;case 13:fa(l,u,i),i&&p&4&&Bg(l,u);break;case 22:u.memoizedState===null&&fa(l,u,i),Ps(u,u.return);break;case 30:break;default:fa(l,u,i)}t=t.sibling}}function eu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&As(i))}function tu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&As(e))}function hn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vg(e,t,i,r),t=t.sibling}function Vg(e,t,i,r){var l=t.flags;switch(t.tag){case 0:case 11:case 15:hn(e,t,i,r),l&2048&&Vs(9,t);break;case 1:hn(e,t,i,r);break;case 3:hn(e,t,i,r),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&As(e)));break;case 12:if(l&2048){hn(e,t,i,r),e=t.stateNode;try{var u=t.memoizedProps,p=u.id,b=u.onPostCommit;typeof b=="function"&&b(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){qe(t,t.return,_)}}else hn(e,t,i,r);break;case 13:hn(e,t,i,r);break;case 23:break;case 22:u=t.stateNode,p=t.alternate,t.memoizedState!==null?u._visibility&2?hn(e,t,i,r):Qs(e,t):u._visibility&2?hn(e,t,i,r):(u._visibility|=2,qi(e,t,i,r,(t.subtreeFlags&10256)!==0)),l&2048&&eu(p,t);break;case 24:hn(e,t,i,r),l&2048&&tu(t.alternate,t);break;default:hn(e,t,i,r)}}function qi(e,t,i,r,l){for(l=l&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var u=e,p=t,b=i,_=r,D=p.flags;switch(p.tag){case 0:case 11:case 15:qi(u,p,b,_,l),Vs(8,p);break;case 23:break;case 22:var P=p.stateNode;p.memoizedState!==null?P._visibility&2?qi(u,p,b,_,l):Qs(u,p):(P._visibility|=2,qi(u,p,b,_,l)),l&&D&2048&&eu(p.alternate,p);break;case 24:qi(u,p,b,_,l),l&&D&2048&&tu(p.alternate,p);break;default:qi(u,p,b,_,l)}t=t.sibling}}function Qs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,l=r.flags;switch(r.tag){case 22:Qs(i,r),l&2048&&eu(r.alternate,r);break;case 24:Qs(i,r),l&2048&&tu(r.alternate,r);break;default:Qs(i,r)}t=t.sibling}}var Is=8192;function zi(e){if(e.subtreeFlags&Is)for(e=e.child;e!==null;)Pg(e),e=e.sibling}function Pg(e){switch(e.tag){case 26:zi(e),e.flags&Is&&e.memoizedState!==null&&X0(tn,e.memoizedState,e.memoizedProps);break;case 5:zi(e);break;case 3:case 4:var t=tn;tn=No(e.stateNode.containerInfo),zi(e),tn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Is,Is=16777216,zi(e),Is=t):zi(e));break;default:zi(e)}}function Qg(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 Ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];rt=r,Yg(r,e)}Qg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ig(e),e=e.sibling}function Ig(e){switch(e.tag){case 0:case 11:case 15:Ys(e),e.flags&2048&&ua(9,e,e.return);break;case 3:Ys(e);break;case 12:Ys(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wo(e)):Ys(e);break;default:Ys(e)}}function wo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];rt=r,Yg(r,e)}Qg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ua(8,t,t.return),wo(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,wo(t));break;default:wo(t)}e=e.sibling}}function Yg(e,t){for(;rt!==null;){var i=rt;switch(i.tag){case 0:case 11:case 15:ua(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:As(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,rt=r;else e:for(i=e;rt!==null;){r=rt;var l=r.sibling,u=r.return;if(zg(r),r===i){rt=null;break e}if(l!==null){l.return=u,rt=l;break e}rt=u}}}var u0={getCacheForType:function(e){var t=mt(et),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i}},d0=typeof WeakMap=="function"?WeakMap:Map,ke=0,Le=null,Ee=null,Ae=0,Me=0,Ut=null,ha=!1,Li=!1,nu=!1,Qn=0,Qe=0,ga=0,Za=0,au=0,Xt=0,Bi=0,Gs=null,At=null,iu=!1,su=0,So=1/0,xo=null,ma=null,ft=0,pa=null,ji=null,Hi=0,ru=0,ou=null,Gg=null,$s=0,lu=null;function qt(){if((ke&2)!==0&&Ae!==0)return Ae&-Ae;if(O.T!==null){var e=Ai;return e!==0?e:mu()}return qa()}function $g(){Xt===0&&(Xt=(Ae&536870912)===0||Oe?Wt():536870912);var e=$t.current;return e!==null&&(e.flags|=32),Xt}function zt(e,t,i){(e===Le&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Vi(e,0),ya(e,Ae,Xt,!1)),ta(e,i),((ke&2)===0||e!==Le)&&(e===Le&&((ke&2)===0&&(Za|=i),Qe===4&&ya(e,Ae,Xt,!1)),gn(e))}function Xg(e,t,i){if((ke&6)!==0)throw Error(o(327));var r=!i&&(t&124)===0&&(t&e.expiredLanes)===0||Ua(e,t),l=r?g0(e,t):du(e,t,!0),u=r;do{if(l===0){Li&&!r&&ya(e,t,0,!1);break}else{if(i=e.current.alternate,u&&!f0(i)){l=du(e,t,!1),u=!1;continue}if(l===2){if(u=t,e.errorRecoveryDisabledLanes&u)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var b=e;l=Gs;var _=b.current.memoizedState.isDehydrated;if(_&&(Vi(b,p).flags|=256),p=du(b,p,!1),p!==2){if(nu&&!_){b.errorRecoveryDisabledLanes|=u,Za|=u,l=4;break e}u=At,At=l,u!==null&&(At===null?At=u:At.push.apply(At,u))}l=p}if(u=!1,l!==2)continue}}if(l===1){Vi(e,0),ya(e,t,0,!0);break}e:{switch(r=e,u=l,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ya(r,t,Xt,!ha);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(l=su+300-gt(),10<l)){if(ya(r,t,Xt,!ha),Da(r,0,!0)!==0)break e;r.timeoutHandle=_m(Kg.bind(null,r,i,At,xo,iu,t,Xt,Za,Bi,ha,u,2,-0,0),l);break e}Kg(r,i,At,xo,iu,t,Xt,Za,Bi,ha,u,0,-0,0)}}break}while(!0);gn(e)}function Kg(e,t,i,r,l,u,p,b,_,D,P,G,U,z){if(e.timeoutHandle=-1,G=t.subtreeFlags,(G&8192||(G&16785408)===16785408)&&(er={stylesheets:null,count:0,unsuspend:$0},Pg(t),G=K0(),G!==null)){e.cancelPendingCommit=G(nm.bind(null,e,t,u,i,r,l,p,b,_,P,1,U,z)),ya(e,u,p,!D);return}nm(e,t,u,i,r,l,p,b,_)}function f0(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var l=i[r],u=l.getSnapshot;l=l.value;try{if(!kt(u(),l))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 ya(e,t,i,r){t&=~au,t&=~Za,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var l=t;0<l;){var u=31-ct(l),p=1<<u;r[u]=-1,l&=~p}i!==0&&ye(e,i,t)}function _o(){return(ke&6)===0?(Xs(0),!1):!0}function cu(){if(Ee!==null){if(Me===0)var e=Ee.return;else e=Ee,qn=Ya=null,Rc(e),Di=null,Bs=0,e=Ee;for(;e!==null;)Cg(e.alternate,e),e=e.return;Ee=null}}function Vi(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,k0(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),cu(),Le=e,Ee=i=Nn(e.current,null),Ae=t,Me=0,Ut=null,ha=!1,Li=Ua(e,t),nu=!1,Bi=Xt=au=Za=ga=Qe=0,At=Gs=null,iu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var l=31-ct(r),u=1<<l;t|=e[l],r&=~u}return Qn=t,Ir(),i}function Fg(e,t){Se=null,O.H=co,t===Os||t===Wr?(t=hh(),Me=3):t===uh?(t=hh(),Me=4):Me=t===gg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ut=t,Ee===null&&(Qe=1,mo(e,Qt(t,e.current)))}function Zg(){var e=O.H;return O.H=co,e===null?co:e}function Jg(){var e=O.A;return O.A=u0,e}function uu(){Qe=4,ha||(Ae&4194048)!==Ae&&$t.current!==null||(Li=!0),(ga&134217727)===0&&(Za&134217727)===0||Le===null||ya(Le,Ae,Xt,!1)}function du(e,t,i){var r=ke;ke|=2;var l=Zg(),u=Jg();(Le!==e||Ae!==t)&&(xo=null,Vi(e,t)),t=!1;var p=Qe;e:do try{if(Me!==0&&Ee!==null){var b=Ee,_=Ut;switch(Me){case 8:cu(),p=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var D=Me;if(Me=0,Ut=null,Pi(e,b,_,D),i&&Li){p=0;break e}break;default:D=Me,Me=0,Ut=null,Pi(e,b,_,D)}}h0(),p=Qe;break}catch(P){Fg(e,P)}while(!0);return t&&e.shellSuspendCounter++,qn=Ya=null,ke=r,O.H=l,O.A=u,Ee===null&&(Le=null,Ae=0,Ir()),p}function h0(){for(;Ee!==null;)Wg(Ee)}function g0(e,t){var i=ke;ke|=2;var r=Zg(),l=Jg();Le!==e||Ae!==t?(xo=null,So=gt()+500,Vi(e,t)):Li=Ua(e,t);e:do try{if(Me!==0&&Ee!==null){t=Ee;var u=Ut;t:switch(Me){case 1:Me=0,Ut=null,Pi(e,t,u,1);break;case 2:case 9:if(dh(u)){Me=0,Ut=null,em(t);break}t=function(){Me!==2&&Me!==9||Le!==e||(Me=7),gn(e)},u.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:dh(u)?(Me=0,Ut=null,em(t)):(Me=0,Ut=null,Pi(e,t,u,7));break;case 5:var p=null;switch(Ee.tag){case 26:p=Ee.memoizedState;case 5:case 27:var b=Ee;if(!p||qm(p)){Me=0,Ut=null;var _=b.sibling;if(_!==null)Ee=_;else{var D=b.return;D!==null?(Ee=D,Eo(D)):Ee=null}break t}}Me=0,Ut=null,Pi(e,t,u,5);break;case 6:Me=0,Ut=null,Pi(e,t,u,6);break;case 8:cu(),Qe=6;break e;default:throw Error(o(462))}}m0();break}catch(P){Fg(e,P)}while(!0);return qn=Ya=null,O.H=r,O.A=l,ke=i,Ee!==null?0:(Le=null,Ae=0,Ir(),Qe)}function m0(){for(;Ee!==null&&!Cl();)Wg(Ee)}function Wg(e){var t=Rg(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?Eo(e):Ee=t}function em(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=wg(i,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=wg(i,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Rc(t);default:Cg(i,t),t=Ee=th(t,Qn),t=Rg(i,t,Qn)}e.memoizedProps=e.pendingProps,t===null?Eo(e):Ee=t}function Pi(e,t,i,r){qn=Ya=null,Rc(t),Di=null,Bs=0;var l=t.return;try{if(i0(e,l,t,i,Ae)){Qe=1,mo(e,Qt(i,e.current)),Ee=null;return}}catch(u){if(l!==null)throw Ee=l,u;Qe=1,mo(e,Qt(i,e.current)),Ee=null;return}t.flags&32768?(Oe||r===1?e=!0:Li||(Ae&536870912)!==0?e=!1:(ha=e=!0,(r===2||r===9||r===3||r===6)&&(r=$t.current,r!==null&&r.tag===13&&(r.flags|=16384))),tm(t,e)):Eo(t)}function Eo(e){var t=e;do{if((t.flags&32768)!==0){tm(t,ha);return}e=t.return;var i=r0(t.alternate,t,Qn);if(i!==null){Ee=i;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Qe===0&&(Qe=5)}function tm(e,t){do{var i=o0(e.alternate,e);if(i!==null){i.flags&=32767,Ee=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=i}while(e!==null);Qe=6,Ee=null}function nm(e,t,i,r,l,u,p,b,_){e.cancelPendingCommit=null;do To();while(ft!==0);if((ke&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=tc,Nr(e,i,u,p,b,_),e===Le&&(Ee=Le=null,Ae=0),ji=t,pa=e,Hi=i,ru=u,ou=l,Gg=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,b0(ri,function(){return om(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,l=Q.p,Q.p=2,p=ke,ke|=4;try{l0(e,t,i)}finally{ke=p,Q.p=l,O.T=r}}ft=1,am(),im(),sm()}}function am(){if(ft===1){ft=0;var e=pa,t=ji,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null;var r=Q.p;Q.p=2;var l=ke;ke|=4;try{jg(t,e);var u=_u,p=Yf(e.containerInfo),b=u.focusedElem,_=u.selectionRange;if(p!==b&&b&&b.ownerDocument&&If(b.ownerDocument.documentElement,b)){if(_!==null&&Fl(b)){var D=_.start,P=_.end;if(P===void 0&&(P=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(P,b.value.length);else{var G=b.ownerDocument||document,U=G&&G.defaultView||window;if(U.getSelection){var z=U.getSelection(),fe=b.textContent.length,ue=Math.min(_.start,fe),Ue=_.end===void 0?ue:Math.min(_.end,fe);!z.extend&&ue>Ue&&(p=Ue,Ue=ue,ue=p);var M=Qf(b,ue),R=Qf(b,Ue);if(M&&R&&(z.rangeCount!==1||z.anchorNode!==M.node||z.anchorOffset!==M.offset||z.focusNode!==R.node||z.focusOffset!==R.offset)){var N=G.createRange();N.setStart(M.node,M.offset),z.removeAllRanges(),ue>Ue?(z.addRange(N),z.extend(R.node,R.offset)):(N.setEnd(R.node,R.offset),z.addRange(N))}}}}for(G=[],z=b;z=z.parentNode;)z.nodeType===1&&G.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var I=G[b];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}Lo=!!xu,_u=xu=null}finally{ke=l,Q.p=r,O.T=i}}e.current=t,ft=2}}function im(){if(ft===2){ft=0;var e=pa,t=ji,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=O.T,O.T=null;var r=Q.p;Q.p=2;var l=ke;ke|=4;try{qg(e,t.alternate,t)}finally{ke=l,Q.p=r,O.T=i}}ft=3}}function sm(){if(ft===4||ft===3){ft=0,Ar();var e=pa,t=ji,i=Hi,r=Gg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,ji=pa=null,rm(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(ma=null),ut(i),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(ln,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=O.T,l=Q.p,Q.p=2,O.T=null;try{for(var u=e.onRecoverableError,p=0;p<r.length;p++){var b=r[p];u(b.value,{componentStack:b.stack})}}finally{O.T=t,Q.p=l}}(Hi&3)!==0&&To(),gn(e),l=e.pendingLanes,(i&4194090)!==0&&(l&42)!==0?e===lu?$s++:($s=0,lu=e):$s=0,Xs(0)}}function rm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,As(t)))}function To(e){return am(),im(),sm(),om()}function om(){if(ft!==5)return!1;var e=pa,t=ru;ru=0;var i=ut(Hi),r=O.T,l=Q.p;try{Q.p=32>i?32:i,O.T=null,i=ou,ou=null;var u=pa,p=Hi;if(ft=0,ji=pa=null,Hi=0,(ke&6)!==0)throw Error(o(331));var b=ke;if(ke|=4,Ig(u.current),Vg(u,u.current,p,i),ke=b,Xs(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(ln,u)}catch{}return!0}finally{Q.p=l,O.T=r,rm(e,t)}}function lm(e,t,i){t=Qt(i,t),t=Hc(e.stateNode,t,2),e=ra(e,t,2),e!==null&&(ta(e,2),gn(e))}function qe(e,t,i){if(e.tag===3)lm(e,e,i);else for(;t!==null;){if(t.tag===3){lm(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ma===null||!ma.has(r))){e=Qt(i,e),i=fg(2),r=ra(t,i,2),r!==null&&(hg(i,r,t,e),ta(r,2),gn(r));break}}t=t.return}}function fu(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new d0;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(i)||(nu=!0,l.add(i),e=p0.bind(null,e,t,i),t.then(e,e))}function p0(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Le===e&&(Ae&i)===i&&(Qe===4||Qe===3&&(Ae&62914560)===Ae&&300>gt()-su?(ke&2)===0&&Vi(e,0):au|=i,Bi===Ae&&(Bi=0)),gn(e)}function cm(e,t){t===0&&(t=Mr()),e=_i(e,t),e!==null&&(ta(e,t),gn(e))}function y0(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),cm(e,i)}function v0(e,t){var i=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(i=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),cm(e,i)}function b0(e,t){return on(e,t)}var Ro=null,Qi=null,hu=!1,Ao=!1,gu=!1,Ja=0;function gn(e){e!==Qi&&e.next===null&&(Qi===null?Ro=Qi=e:Qi=Qi.next=e),Ao=!0,hu||(hu=!0,S0())}function Xs(e,t){if(!gu&&Ao){gu=!0;do for(var i=!1,r=Ro;r!==null;){if(e!==0){var l=r.pendingLanes;if(l===0)var u=0;else{var p=r.suspendedLanes,b=r.pingedLanes;u=(1<<31-ct(42|e)+1)-1,u&=l&~(p&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(i=!0,hm(r,u))}else u=Ae,u=Da(r,r===Le?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||Ua(r,u)||(i=!0,hm(r,u));r=r.next}while(i);gu=!1}}function w0(){um()}function um(){Ao=hu=!1;var e=0;Ja!==0&&(O0()&&(e=Ja),Ja=0);for(var t=gt(),i=null,r=Ro;r!==null;){var l=r.next,u=dm(r,t);u===0?(r.next=null,i===null?Ro=l:i.next=l,l===null&&(Qi=i)):(i=r,(e!==0||(u&3)!==0)&&(Ao=!0)),r=l}Xs(e)}function dm(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var p=31-ct(u),b=1<<p,_=l[p];_===-1?((b&i)===0||(b&r)!==0)&&(l[p]=us(b,t)):_<=t&&(e.expiredLanes|=b),u&=~b}if(t=Le,i=Ae,i=Da(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Na(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Ua(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&Na(r),ut(i)){case 2:case 8:i=Or;break;case 32:i=ri;break;case 268435456:i=Cn;break;default:i=ri}return r=fm.bind(null,e),i=on(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&Na(r),e.callbackPriority=2,e.callbackNode=null,2}function fm(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(To()&&e.callbackNode!==i)return null;var r=Ae;return r=Da(e,e===Le?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Xg(e,r,t),dm(e,gt()),e.callbackNode!=null&&e.callbackNode===i?fm.bind(null,e):null)}function hm(e,t){if(To())return null;Xg(e,t,!0)}function S0(){M0(function(){(ke&6)!==0?on(Ht,w0):um()})}function mu(){return Ja===0&&(Ja=Wt()),Ja}function gm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Lr(""+e)}function mm(e,t){var i=t.ownerDocument.createElement("input");
vendor: 5,174 bytes, line 48
48return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function x0(e,t,i,r,l){if(t==="submit"&&i&&i.stateNode===l){var u=gm((l[ze]||null).action),p=r.submitter;p&&(t=(t=p[ze]||null)?gm(t.formAction):p.getAttribute("formAction"),t!==null&&(u=t,p=null));var b=new Vr("action","action",null,r,l);e.push({event:b,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ja!==0){var _=p?mm(l,p):new FormData(l);qc(i,{pending:!0,data:_,method:l.method,action:u},null,_)}}else typeof u=="function"&&(b.preventDefault(),_=p?mm(l,p):new FormData(l),qc(i,{pending:!0,data:_,method:l.method,action:u},u,_))},currentTarget:l}]})}}for(var pu=0;pu<ec.length;pu++){var yu=ec[pu],_0=yu.toLowerCase(),E0=yu[0].toUpperCase()+yu.slice(1);en(_0,"on"+E0)}en(Xf,"onAnimationEnd"),en(Kf,"onAnimationIteration"),en(Ff,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(Vb,"onTransitionRun"),en(Pb,"onTransitionStart"),en(Qb,"onTransitionCancel"),en(Zf,"onTransitionEnd"),hi("onMouseEnter",["mouseout","mouseover"]),hi("onMouseLeave",["mouseout","mouseover"]),hi("onPointerEnter",["pointerout","pointerover"]),hi("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ks="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(" "),T0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ks));function pm(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],l=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var p=r.length-1;0<=p;p--){var b=r[p],_=b.instance,D=b.currentTarget;if(b=b.listener,_!==u&&l.isPropagationStopped())break e;u=b,l.currentTarget=D;try{u(l)}catch(P){go(P)}l.currentTarget=null,u=_}else for(p=0;p<r.length;p++){if(b=r[p],_=b.instance,D=b.currentTarget,b=b.listener,_!==u&&l.isPropagationStopped())break e;u=b,l.currentTarget=D;try{u(l)}catch(P){go(P)}l.currentTarget=null,u=_}}}}function Te(e,t){var i=t[ci];i===void 0&&(i=t[ci]=new Set);var r=e+"__bubble";i.has(r)||(ym(t,e,2,!1),i.add(r))}function vu(e,t,i){var r=0;t&&(r|=4),ym(i,e,r,t)}var Co="_reactListening"+Math.random().toString(36).slice(2);function bu(e){if(!e[Co]){e[Co]=!0,uf.forEach(function(i){i!=="selectionchange"&&(T0.has(i)||vu(i,!1,e),vu(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Co]||(t[Co]=!0,vu("selectionchange",!1,t))}}function ym(e,t,i,r){switch(Vm(t)){case 2:var l=J0;break;case 8:l=W0;break;default:l=Du}i=l.bind(null,t,i,e),l=void 0,!Vl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,i,{capture:!0,passive:l}):e.addEventListener(t,i,!0):l!==void 0?e.addEventListener(t,i,{passive:l}):e.addEventListener(t,i,!1)}function wu(e,t,i,r,l){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var b=r.stateNode.containerInfo;if(b===l)break;if(p===4)for(p=r.return;p!==null;){var _=p.tag;if((_===3||_===4)&&p.stateNode.containerInfo===l)return;p=p.return}for(;b!==null;){if(p=ui(b),p===null)return;if(_=p.tag,_===5||_===6||_===26||_===27){r=u=p;continue e}b=b.parentNode}}r=r.return}Ef(function(){var D=u,P=jl(i),G=[];e:{var U=Jf.get(e);if(U!==void 0){var z=Vr,fe=e;switch(e){case"keypress":if(jr(i)===0)break e;case"keydown":case"keyup":z=bb;break;case"focusin":fe="focus",z=Yl;break;case"focusout":fe="blur",z=Yl;break;case"beforeblur":case"afterblur":z=Yl;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=ob;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=xb;break;case Xf:case Kf:case Ff:z=ub;break;case Zf:z=Eb;break;case"scroll":case"scrollend":z=sb;break;case"wheel":z=Rb;break;case"copy":case"cut":case"paste":z=fb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Of;break;case"toggle":case"beforetoggle":z=Cb}var ue=(t&4)!==0,Ue=!ue&&(e==="scroll"||e==="scrollend"),M=ue?U!==null?U+"Capture":null:U;ue=[];for(var R=D,N;R!==null;){var I=R;if(N=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||N===null||M===null||(I=gs(R,M),I!=null&&ue.push(Fs(R,I,N))),Ue)break;R=R.return}
vendor: 6,306 bytes, lines 48-49
480<ue.length&&(U=new z(U,fe,null,i,P),G.push({event:U,listeners:ue}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",U&&i!==Bl&&(fe=i.relatedTarget||i.fromElement)&&(ui(fe)||fe[at]))break e;if((z||U)&&(U=P.window===P?P:(U=P.ownerDocument)?U.defaultView||U.parentWindow:window,z?(fe=i.relatedTarget||i.toElement,z=D,fe=fe?ui(fe):null,fe!==null&&(Ue=d(fe),ue=fe.tag,fe!==Ue||ue!==5&&ue!==27&&ue!==6)&&(fe=null)):(z=null,fe=D),z!==fe)){if(ue=Af,I="onMouseLeave",M="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Of,I="onPointerLeave",M="onPointerEnter",R="pointer"),Ue=z==null?U:hs(z),N=fe==null?U:hs(fe),U=new ue(I,R+"leave",z,i,P),U.target=Ue,U.relatedTarget=N,I=null,ui(P)===D&&(ue=new ue(M,R+"enter",fe,i,P),ue.target=N,ue.relatedTarget=Ue,I=ue),Ue=I,z&&fe)t:{for(ue=z,M=fe,R=0,N=ue;N;N=Ii(N))R++;for(N=0,I=M;I;I=Ii(I))N++;for(;0<R-N;)ue=Ii(ue),R--;for(;0<N-R;)M=Ii(M),N--;for(;R--;){if(ue===M||M!==null&&ue===M.alternate)break t;ue=Ii(ue),M=Ii(M)}ue=null}else ue=null;z!==null&&vm(G,U,z,ue,!1),fe!==null&&Ue!==null&&vm(G,Ue,fe,ue,!0)}}e:{if(U=D?hs(D):window,z=U.nodeName&&U.nodeName.toLowerCase(),z==="select"||z==="input"&&U.type==="file")var te=Lf;else if(qf(U))if(Bf)te=Bb;else{te=zb;var _e=qb}else z=U.nodeName,!z||z.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?D&&Ll(D.elementType)&&(te=Lf):te=Lb;if(te&&(te=te(e,D))){zf(G,te,i,P);break e}_e&&_e(e,U,D),e==="focusout"&&D&&U.type==="number"&&D.memoizedProps.value!=null&&zl(U,"number",U.value)}switch(_e=D?hs(D):window,e){case"focusin":(qf(_e)||_e.contentEditable==="true")&&(wi=_e,Zl=D,xs=null);break;case"focusout":xs=Zl=wi=null;break;case"mousedown":Jl=!0;break;case"contextmenu":case"mouseup":case"dragend":Jl=!1,Gf(G,i,P);break;case"selectionchange":if(Hb)break;case"keydown":case"keyup":Gf(G,i,P)}var oe;if($l)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else bi?Df(e,i)&&(de="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(de="onCompositionStart");de&&(kf&&i.locale!=="ko"&&(bi||de!=="onCompositionStart"?de==="onCompositionEnd"&&bi&&(oe=Tf()):(na=P,Pl="value"in na?na.value:na.textContent,bi=!0)),_e=Oo(D,de),0<_e.length&&(de=new Cf(de,e,null,i,P),G.push({event:de,listeners:_e}),oe?de.data=oe:(oe=Uf(i),oe!==null&&(de.data=oe)))),(oe=kb?Mb(e,i):Nb(e,i))&&(de=Oo(D,"onBeforeInput"),0<de.length&&(_e=new Cf("onBeforeInput","beforeinput",null,i,P),G.push({event:_e,listeners:de}),_e.data=oe)),x0(G,e,D,i,P)}pm(G,t)})}function Fs(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Oo(e,t){for(var i=t+"Capture",r=[];e!==null;){var l=e,u=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||u===null||(l=gs(e,i),l!=null&&r.unshift(Fs(e,l,u)),l=gs(e,t),l!=null&&r.push(Fs(e,l,u))),e.tag===3)return r;e=e.return}return[]}function Ii(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vm(e,t,i,r,l){for(var u=t._reactName,p=[];i!==null&&i!==r;){var b=i,_=b.alternate,D=b.stateNode;if(b=b.tag,_!==null&&_===r)break;b!==5&&b!==26&&b!==27||D===null||(_=D,l?(D=gs(i,u),D!=null&&p.unshift(Fs(i,D,_))):l||(D=gs(i,u),D!=null&&p.push(Fs(i,D,_)))),i=i.return}p.length!==0&&e.push({event:t,listeners:p})}var R0=/\r\n?/g,A0=/\u0000|\uFFFD/g;function bm(e){return(typeof e=="string"?e:""+e).replace(R0,`
49`).replace(A0,"")}function wm(e,t){return t=bm(t),bm(e)===t}function ko(){}function De(e,t,i,r,l,u){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||pi(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&pi(e,""+r);break;case"className":Ur(e,"class",r);break;case"tabIndex":Ur(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ur(e,i,r);break;case"style":xf(e,r,u);break;case"data":if(t!=="object"){Ur(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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 u=="function"&&(i==="formAction"?(t!=="input"&&De(e,t,"name",l.name,l,null),De(e,t,"formEncType",l.formEncType,l,null),De(e,t,"formMethod",l.formMethod,l,null),De(e,t,"formTarget",l.formTarget,l,null)):(De(e,t,"encType",l.encType,l,null),De(e,t,"method",l.method,l,null),De(e,t,"target",l.target,l,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=ko);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(l.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}i=Lr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""+r):e.removeAttribute(i);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"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Dr(e,"popover",r);break;case"xlinkActuate":kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":kn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":kn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":kn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":kn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Dr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=ab.get(i)||i,Dr(e,i,r))}}function Su(e,t,i,r,l,u){switch(i){case"style":xf(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(l.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof r=="string"?pi(e,r):(typeof r=="number"||typeof r=="bigint")&&pi(e,""+r);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ko);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!df.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(l=i.endsWith("Capture"),t=i.slice(2,l?i.length-7:void 0),u=e[ze]||null,u=u!=null?u[i]:null,typeof u=="function"&&e.removeEventListener(t,u,l),typeof r=="function")){typeof u!="function"&&u!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,l);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Dr(e,i,r)}}}function ht(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var r=!1,l=!1,u;for(u in i)if(i.hasOwnProperty(u)){var p=i[u];if(p!=null)switch(u){case"src":r=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,u,p,i,null)}}l&&De(e,t,"srcSet",i.srcSet,i,null),r&&De(e,t,"src",i.src,i,null);return;case"input":Te("invalid",e);var b=u=p=l=null,_=null,D=null;for(r in i)if(i.hasOwnProperty(r)){var P=i[r];if(P!=null)switch(r){case"name":l=P;break;case"type":p=P;break;case"checked":_=P;break;case"defaultChecked":D=P;break;case"value":u=P;break;case"defaultValue":b=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(137,t));break;default:De(e,t,r,P,i,null)}}vf(e,u,b,_,D,p,l,!1),qr(e);return;case"select":Te("invalid",e),r=p=u=null;for(l in i)if(i.hasOwnProperty(l)&&(b=i[l],b!=null))switch(l){case"value":u=b;break;case"defaultValue":p=b;break;case"multiple":r=b;default:De(e,t,l,b,i,null)}t=u,i=p,e.multiple=!!r,t!=null?mi(e,!!r,t,!1):i!=null&&mi(e,!!r,i,!0);return;case"textarea":Te("invalid",e),u=l=r=null;for(p in i)if(i.hasOwnProperty(p)&&(b=i[p],b!=null))switch(p){case"value":r=b;break;case"defaultValue":l=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:De(e,t,p,b,i,null)}wf(e,r,l,u),qr(e);return;case"option":for(_ in i)if(i.hasOwnProperty(_)&&(r=i[_],r!=null))switch(_){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:De(e,t,_,r,i,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(r=0;r<Ks.length;r++)Te(Ks[r],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in i)if(i.hasOwnProperty(D)&&(r=i[D],r!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,D,r,i,null)}return;default:if(Ll(t)){for(P in i)i.hasOwnProperty(P)&&(r=i[P],r!==void 0&&Su(e,t,P,r,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(r=i[b],r!=null&&De(e,t,b,r,i,null))}function C0(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,u=null,p=null,b=null,_=null,D=null,P=null;for(z in i){var G=i[z];if(i.hasOwnProperty(z)&&G!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":_=G;default:r.hasOwnProperty(z)||De(e,t,z,null,r,G)}}for(var U in r){var z=r[U];if(G=i[U],r.hasOwnProperty(U)&&(z!=null||G!=null))switch(U){case"type":u=z;break;case"name":l=z;break;case"checked":D=z;break;case"defaultChecked":P=z;break;case"value":p=z;break;case"defaultValue":b=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:z!==G&&De(e,t,U,z,r,G)}}ql(e,p,b,_,D,P,u,l);return;case"select":z=p=b=U=null;for(u in i)if(_=i[u],i.hasOwnProperty(u)&&_!=null)switch(u){case"value":break;case"multiple":z=_;default:r.hasOwnProperty(u)||De(e,t,u,null,r,_)}for(l in r)if(u=r[l],_=i[l],r.hasOwnProperty(l)&&(u!=null||_!=null))switch(l){case"value":U=u;break;case"defaultValue":b=u;break;case"multiple":p=u;default:u!==_&&De(e,t,l,u,r,_)}t=b,i=p,r=z,U!=null?mi(e,!!i,U,!1):!!r!=!!i&&(t!=null?mi(e,!!i,t,!0):mi(e,!!i,i?[]:"",!1));return;case"textarea":z=U=null;for(b in i)if(l=i[b],i.hasOwnProperty(b)&&l!=null&&!r.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:De(e,t,b,null,r,l)}for(p in r)if(l=r[p],u=i[p],r.hasOwnProperty(p)&&(l!=null||u!=null))switch(p){case"value":U=l;break;case"defaultValue":z=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(o(91));break;default:l!==u&&De(e,t,p,l,r,u)}bf(e,U,z);return;case"option":for(var fe in i)if(U=i[fe],i.hasOwnProperty(fe)&&U!=null&&!r.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:De(e,t,fe,null,r,U)}for(_ in r)if(U=r[_],z=i[_],r.hasOwnProperty(_)&&U!==z&&(U!=null||z!=null))switch(_){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:De(e,t,_,U,r,z)}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 ue in i)U=i[ue],i.hasOwnProperty(ue)&&U!=null&&!r.hasOwnProperty(ue)&&De(e,t,ue,null,r,U);for(D in r)if(U=r[D],z=i[D],r.hasOwnProperty(D)&&U!==z&&(U!=null||z!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:De(e,t,D,U,r,z)}return;default:if(Ll(t)){for(var Ue in i)U=i[Ue],i.hasOwnProperty(Ue)&&U!==void 0&&!r.hasOwnProperty(Ue)&&Su(e,t,Ue,void 0,r,U);for(P in r)U=r[P],z=i[P],!r.hasOwnProperty(P)||U===z||U===void 0&&z===void 0||Su(e,t,P,U,r,z);return}}for(var M in i)U=i[M],i.hasOwnProperty(M)&&U!=null&&!r.hasOwnProperty(M)&&De(e,t,M,null,r,U);for(G in r)U=r[G],z=i[G],!r.hasOwnProperty(G)||U===z||U==null&&z==null||De(e,t,G,U,r,z)}var xu=null,_u=null;
vendor: 22,301 bytes, line 49
49function Mo(e){return e.nodeType===9?e:e.ownerDocument}function Sm(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 xm(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 Eu(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 Tu=null;function O0(){var e=window.event;return e&&e.type==="popstate"?e===Tu?!1:(Tu=e,!0):(Tu=null,!1)}var _m=typeof setTimeout=="function"?setTimeout:void 0,k0=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,M0=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(e){return Em.resolve(null).then(e).catch(N0)}:_m;function N0(e){setTimeout(function(){throw e})}function va(e){return e==="head"}function Tm(e,t){var i=t,r=0,l=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(0<r&&8>r){i=r;var p=e.ownerDocument;if(i&1&&Zs(p.documentElement),i&2&&Zs(p.body),i&4)for(i=p.head,Zs(i),p=i.firstChild;p;){var b=p.nextSibling,_=p.nodeName;p[fs]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&p.rel.toLowerCase()==="stylesheet"||i.removeChild(p),p=b}}if(l===0){e.removeChild(u),sr(t);return}l--}else i==="$"||i==="$?"||i==="$!"?l++:r=i.charCodeAt(0)-48;else r=0;i=u}while(i);sr(t)}function Ru(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Ru(i),Ml(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function D0(e,t,i,r){for(;e.nodeType===1;){var l=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[fs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function U0(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=nn(e.nextSibling),e===null))return null;return e}function Au(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function q0(e,t){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function nn(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Cu=null;function Rm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}function Am(e,t,i){switch(t=Mo(i),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Zs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ml(e)}var Kt=new Map,Cm=new Set;function No(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var In=Q.d;Q.d={f:z0,r:L0,D:B0,C:j0,L:H0,m:V0,X:Q0,S:P0,M:I0};function z0(){var e=In.f(),t=_o();return e||t}function L0(e){var t=di(e);t!==null&&t.tag===5&&t.type==="form"?Xh(t):In.r(e)}var Yi=typeof document>"u"?null:document;function Om(e,t,i){var r=Yi;if(r&&typeof t=="string"&&t){var l=Pt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof i=="string"&&(l+='[crossorigin="'+i+'"]'),Cm.has(l)||(Cm.add(l),e={rel:e,crossOrigin:i,href:t},r.querySelector(l)===null&&(t=r.createElement("link"),ht(t,"link",e),it(t),r.head.appendChild(t)))}}function B0(e){In.D(e),Om("dns-prefetch",e,null)}function j0(e,t){In.C(e,t),Om("preconnect",e,t)}function H0(e,t,i){In.L(e,t,i);var r=Yi;if(r&&e&&t){var l='link[rel="preload"][as="'+Pt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(l+='[imagesrcset="'+Pt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(l+='[imagesizes="'+Pt(i.imageSizes)+'"]')):l+='[href="'+Pt(e)+'"]';var u=l;switch(t){case"style":u=Gi(e);break;case"script":u=$i(e)}Kt.has(u)||(e=v({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Kt.set(u,e),r.querySelector(l)!==null||t==="style"&&r.querySelector(Js(u))||t==="script"&&r.querySelector(Ws(u))||(t=r.createElement("link"),ht(t,"link",e),it(t),r.head.appendChild(t)))}}function V0(e,t){In.m(e,t);var i=Yi;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Pt(r)+'"][href="'+Pt(e)+'"]',u=l;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=$i(e)}if(!Kt.has(u)&&(e=v({rel:"modulepreload",href:e},t),Kt.set(u,e),i.querySelector(l)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ws(u)))return}r=i.createElement("link"),ht(r,"link",e),it(r),i.head.appendChild(r)}}}function P0(e,t,i){In.S(e,t,i);var r=Yi;if(r&&e){var l=fi(r).hoistableStyles,u=Gi(e);t=t||"default";var p=l.get(u);if(!p){var b={loading:0,preload:null};if(p=r.querySelector(Js(u)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Kt.get(u))&&Ou(e,i);var _=p=r.createElement("link");it(_),ht(_,"link",e),_._p=new Promise(function(D,P){_.onload=D,_.onerror=P}),_.addEventListener("load",function(){b.loading|=1}),_.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Do(p,t,r)}p={type:"stylesheet",instance:p,count:1,state:b},l.set(u,p)}}}function Q0(e,t){In.X(e,t);var i=Yi;if(i&&e){var r=fi(i).hoistableScripts,l=$i(e),u=r.get(l);u||(u=i.querySelector(Ws(l)),u||(e=v({src:e,async:!0},t),(t=Kt.get(l))&&ku(e,t),u=i.createElement("script"),it(u),ht(u,"link",e),i.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(l,u))}}function I0(e,t){In.M(e,t);var i=Yi;if(i&&e){var r=fi(i).hoistableScripts,l=$i(e),u=r.get(l);u||(u=i.querySelector(Ws(l)),u||(e=v({src:e,async:!0,type:"module"},t),(t=Kt.get(l))&&ku(e,t),u=i.createElement("script"),it(u),ht(u,"link",e),i.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(l,u))}}function km(e,t,i,r){var l=(l=se.current)?No(l):null;if(!l)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Gi(i.href),i=fi(l).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Gi(i.href);var u=fi(l).hoistableStyles,p=u.get(e);if(p||(l=l.ownerDocument||l,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,p),(u=l.querySelector(Js(e)))&&!u._p&&(p.instance=u,p.state.loading=5),Kt.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Kt.set(e,i),u||Y0(l,e,i,p.state))),t&&r===null)throw Error(o(528,""));return p}if(t&&r!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$i(i),i=fi(l).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Gi(e){return'href="'+Pt(e)+'"'}function Js(e){return'link[rel="stylesheet"]['+e+"]"}function Mm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Y0(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),ht(t,"link",i),it(t),e.head.appendChild(t))}function $i(e){return'[src="'+Pt(e)+'"]'}function Ws(e){return"script[async]"+e}function Nm(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Pt(i.href)+'"]');if(r)return t.instance=r,it(r),r;var l=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),it(r),ht(r,"style",l),Do(r,i.precedence,e),t.instance=r;case"stylesheet":l=Gi(i.href);var u=e.querySelector(Js(l));if(u)return t.state.loading|=4,t.instance=u,it(u),u;r=Mm(i),(l=Kt.get(l))&&Ou(r,l),u=(e.ownerDocument||e).createElement("link"),it(u);var p=u;return p._p=new Promise(function(b,_){p.onload=b,p.onerror=_}),ht(u,"link",r),t.state.loading|=4,Do(u,i.precedence,e),t.instance=u;case"script":return u=$i(i.src),(l=e.querySelector(Ws(u)))?(t.instance=l,it(l),l):(r=i,(l=Kt.get(u))&&(r=v({},i),ku(r,l)),e=e.ownerDocument||e,l=e.createElement("script"),it(l),ht(l,"link",r),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Do(r,i.precedence,e));return t.instance}function Do(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,u=l,p=0;p<r.length;p++){var b=r[p];if(b.dataset.precedence===t)u=b;else if(u!==l)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Ou(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ku(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Uo=null;function Dm(e,t,i){if(Uo===null){var r=new Map,l=Uo=new Map;l.set(i,r)}else l=Uo,r=l.get(i),r||(r=new Map,l.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),l=0;l<i.length;l++){var u=i[l];if(!(u[fs]||u[Ge]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var p=u.getAttribute(t)||"";p=e+p;var b=r.get(p);b?b.push(u):r.set(p,[u])}}return r}function Um(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function G0(e,t,i){if(i===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;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!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 qm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var er=null;function $0(){}function X0(e,t,i){if(er===null)throw Error(o(475));var r=er;if(t.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var l=Gi(i.href),u=e.querySelector(Js(l));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=qo.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=u,it(u);return}u=e.ownerDocument||e,i=Mm(i),(l=Kt.get(l))&&Ou(i,l),u=u.createElement("link"),it(u);var p=u;p._p=new Promise(function(b,_){p.onload=b,p.onerror=_}),ht(u,"link",i),t.instance=u}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(r.count++,t=qo.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function K0(){if(er===null)throw Error(o(475));var e=er;return e.stylesheets&&e.count===0&&Mu(e,e.stylesheets),0<e.count?function(t){var i=setTimeout(function(){if(e.stylesheets&&Mu(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(i)}}:null}function qo(){if(this.count--,this.count===0){if(this.stylesheets)Mu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zo=null;function Mu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zo=new Map,t.forEach(F0,e),zo=null,qo.call(e))}function F0(e,t){if(!(t.state.loading&4)){var i=zo.get(e);if(i)var r=i.get(null);else{i=new Map,zo.set(e,i);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<l.length;u++){var p=l[u];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(i.set(p.dataset.precedence,p),r=p)}r&&i.set(null,r)}l=t.instance,p=l.getAttribute("data-precedence"),u=i.get(p)||r,u===r&&i.set(null,l),i.set(p,l),this.count++,r=qo.bind(this),l.addEventListener("load",r),l.addEventListener("error",r),u?u.parentNode.insertBefore(l,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var tr={$$typeof:V,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Z0(e,t,i,r,l,u,p,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ds(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.hiddenUpdates=ds(null),this.identifierPrefix=r,this.onUncaughtError=l,this.onCaughtError=u,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function zm(e,t,i,r,l,u,p,b,_,D,P,G){return e=new Z0(e,t,i,p,b,_,D,G),t=1,u===!0&&(t|=24),u=Mt(3,null,null,t),e.current=u,u.stateNode=e,t=fc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:i,cache:t},pc(u),e}function Lm(e){return e?(e=Ei,e):Ei}function Bm(e,t,i,r,l,u){l=Lm(l),r.context===null?r.context=l:r.pendingContext=l,r=sa(t),r.payload={element:i},u=u===void 0?null:u,u!==null&&(r.callback=u),i=ra(e,r,t),i!==null&&(zt(i,e,t),Ms(i,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Nu(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Hm(e){if(e.tag===13){var t=_i(e,67108864);t!==null&&zt(t,e,67108864),Nu(e,67108864)}}var Lo=!0;function J0(e,t,i,r){var l=O.T;O.T=null;var u=Q.p;try{Q.p=2,Du(e,t,i,r)}finally{Q.p=u,O.T=l}}function W0(e,t,i,r){var l=O.T;O.T=null;var u=Q.p;try{Q.p=8,Du(e,t,i,r)}finally{Q.p=u,O.T=l}}function Du(e,t,i,r){if(Lo){var l=Uu(r);if(l===null)wu(e,t,r,Bo,i),Pm(e,r);else if(tw(l,e,t,i,r))r.stopPropagation();else if(Pm(e,r),t&4&&-1<ew.indexOf(e)){for(;l!==null;){var u=di(l);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var p=cn(u.pendingLanes);if(p!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var _=1<<31-ct(p);b.entanglements[1]|=_,p&=~_}gn(u),(ke&6)===0&&(So=gt()+500,Xs(0))}}break;case 13:b=_i(u,2),b!==null&&zt(b,u,2),_o(),Nu(u,2)}if(u=Uu(r),u===null&&wu(e,t,r,Bo,i),u===l)break;l=u}l!==null&&r.stopPropagation()}else wu(e,t,r,null,i)}}function Uu(e){return e=jl(e),qu(e)}var Bo=null;function qu(e){if(Bo=null,e=ui(e),e!==null){var t=d(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bo=e,null}function Vm(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(Cr()){case Ht:return 2;case Or:return 8;case ri:case wt:return 32;case Cn:return 268435456;default:return 32}default:return 32}}var zu=!1,ba=null,wa=null,Sa=null,nr=new Map,ar=new Map,xa=[],ew="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 Pm(e,t){switch(e){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":wa=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function ir(e,t,i,r,l,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:u,targetContainers:[l]},t!==null&&(t=di(t),t!==null&&Hm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function tw(e,t,i,r,l){switch(t){case"focusin":return ba=ir(ba,e,t,i,r,l),!0;case"dragenter":return wa=ir(wa,e,t,i,r,l),!0;case"mouseover":return Sa=ir(Sa,e,t,i,r,l),!0;case"pointerover":var u=l.pointerId;return nr.set(u,ir(nr.get(u)||null,e,t,i,r,l)),!0;case"gotpointercapture":return u=l.pointerId,ar.set(u,ir(ar.get(u)||null,e,t,i,r,l)),!0}return!1}function Qm(e){var t=ui(e.target);if(t!==null){var i=d(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,We(e.priority,function(){if(i.tag===13){var r=qt();r=Ke(r);var l=_i(i,r);l!==null&&zt(l,i,r),Nu(i,r)}});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Uu(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);Bl=r,i.target.dispatchEvent(r),Bl=null}else return t=di(i),t!==null&&Hm(t),e.blockedOn=i,!1;t.shift()}return!0}function Im(e,t,i){jo(e)&&i.delete(t)}function nw(){zu=!1,ba!==null&&jo(ba)&&(ba=null),wa!==null&&jo(wa)&&(wa=null),Sa!==null&&jo(Sa)&&(Sa=null),nr.forEach(Im),ar.forEach(Im)}function Ho(e,t){e.blockedOn===t&&(e.blockedOn=null,zu||(zu=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,nw)))}var Vo=null;function Ym(e){Vo!==e&&(Vo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Vo===e&&(Vo=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],l=e[t+2];if(typeof r!="function"){if(qu(r||i)===null)continue;break}var u=di(i);u!==null&&(e.splice(t,3),t-=3,qc(u,{pending:!0,data:l,method:i.method,action:r},r,l))}}))}function sr(e){function t(_){return Ho(_,e)}ba!==null&&Ho(ba,e),wa!==null&&Ho(wa,e),Sa!==null&&Ho(Sa,e),nr.forEach(t),ar.forEach(t);for(var i=0;i<xa.length;i++){var r=xa[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xa.length&&(i=xa[0],i.blockedOn===null);)Qm(i),i.blockedOn===null&&xa.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var l=i[r],u=i[r+1],p=l[ze]||null;if(typeof u=="function")p||Ym(i);else if(p){var b=null;if(u&&u.hasAttribute("formAction")){if(l=u,p=u[ze]||null)b=p.formAction;else if(qu(l)!==null)continue}else b=p.action;typeof b=="function"?i[r+1]=b:(i.splice(r,3),r-=3),Ym(i)}}}function Lu(e){this._internalRoot=e}Po.prototype.render=Lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var i=t.current,r=qt();Bm(i,r,e,t,null,null)},Po.prototype.unmount=Lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bm(e.current,2,null,e,null,null),_o(),t[at]=null}};function Po(e){this._internalRoot=e}Po.prototype.unstable_scheduleHydration=function(e){if(e){var t=qa();e={blockedOn:null,target:e,priority:t};for(var i=0;i<xa.length&&t!==0&&t<xa[i].priority;i++);xa.splice(i,0,e),i===0&&Qm(e)}};var Gm=a.version;if(Gm!=="19.1.1")throw Error(o(527,Gm,"19.1.1"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var aw={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.1"};
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qo.isDisabled&&Qo.supportsFiber)try{ln=Qo.inject(aw),St=Qo}catch{}}return or.createRoot=function(e,t){if(!c(e))throw Error(o(299));var i=!1,r="",l=lg,u=cg,p=ug,b=null;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=zm(e,1,!1,null,null,i,r,l,u,p,b,null),e[at]=t.current,bu(e),new Lu(t)},or.hydrateRoot=function(e,t,i){if(!c(e))throw Error(o(299));var r=!1,l="",u=lg,p=cg,b=ug,_=null,D=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(u=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(_=i.unstable_transitionCallbacks),i.formState!==void 0&&(D=i.formState)),t=zm(e,1,!0,t,i??null,r,l,u,p,b,_,D),t.context=Lm(null),i=t.current,r=qt(),r=Ke(r),l=sa(r),l.callback=null,ra(i,l,r),i=r,t.current.lanes=i,ta(t,i),gn(t),e[at]=t.current,bu(e),new Po(t)},or.version="19.1.1",or}var np;function fw(){if(np)return Hu.exports;np=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Hu.exports=dw(),Hu.exports}var hw=fw();/**
50 * react-router v7.8.2
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */var ap="popstate";function gw(n={}){function a(o,c){let{pathname:d,search:f,hash:m}=o.location;return ud("",{pathname:d,search:f,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function s(o,c){return typeof c=="string"?c:hr(c)}return pw(a,s,null,n)}function He(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function En(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function mw(){return Math.random().toString(36).substring(2,10)}function ip(n,a){return{usr:n.state,key:n.key,idx:a}}function ud(n,a,s=null,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?is(a):a,state:s,key:a&&a.key||o||mw()}}function hr({pathname:n="/",search:a="",hash:s=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function is(n){let a={};if(n){let s=n.indexOf("#");s>=0&&(a.hash=n.substring(s),n=n.substring(0,s));let o=n.indexOf("?");o>=0&&(a.search=n.substring(o),n=n.substring(0,o)),n&&(a.pathname=n)}return a}function pw(n,a,s,o={}){let{window:c=document.defaultView,v5Compat:d=!1}=o,f=c.history,m="POP",g=null,h=v();h==null&&(h=0,f.replaceState({...f.state,idx:h},""));function v(){return(f.state||{idx:null}).idx}function y(){m="POP";let A=v(),C=A==null?null:A-h;h=A,g&&g({action:m,location:k.location,delta:C})}function S(A,C){m="PUSH";let L=ud(k.location,A,C);h=v()+1;let V=ip(L,h),F=k.createHref(L);try{f.pushState(V,"",F)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;c.location.assign(F)}d&&g&&g({action:m,location:k.location,delta:1})}function x(A,C){m="REPLACE";let L=ud(k.location,A,C);h=v();let V=ip(L,h),F=k.createHref(L);f.replaceState(V,"",F),d&&g&&g({action:m,location:k.location,delta:0})}function E(A){return yw(A)}let k={get action(){return m},get location(){return n(c,f)},listen(A){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(ap,y),g=A,()=>{c.removeEventListener(ap,y),g=null}},createHref(A){return a(c,A)},createURL:E,encodeLocation(A){let C=E(A);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:S,replace:x,go(A){return f.go(A)}};return k}function yw(n,a=!1){let s="http://localhost";
58typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),He(s,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:hr(n);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function ay(n,a,s="/"){return vw(n,a,s,!1)}function vw(n,a,s,o){let c=typeof a=="string"?is(a):a,d=Xn(c.pathname||"/",s);if(d==null)return null;let f=iy(n);bw(f);let m=null;for(let g=0;m==null&&g<f.length;++g){let h=kw(d);m=Cw(f[g],h,o)}return m}function iy(n,a=[],s=[],o="",c=!1){let d=(f,m,g=c,h)=>{let v={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(o)&&g)return;He(v.relativePath.startsWith(o),`Absolute route path "${v.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(o.length)}let y=$n([o,v.relativePath]),S=s.concat(v);f.children&&f.children.length>0&&(He(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),iy(f.children,a,S,y,g)),!(f.path==null&&!f.index)&&a.push({path:y,score:Rw(y,f.index),routesMeta:S})};return n.forEach((f,m)=>{if(f.path===""||!f.path?.includes("?"))d(f,m);else for(let g of sy(f.path))d(f,m,!0,g)}),a}function sy(n){let a=n.split("/");if(a.length===0)return[];let[s,...o]=a,c=s.endsWith("?"),d=s.replace(/\?$/,"");if(o.length===0)return c?[d,""]:[d];let f=sy(o.join("/")),m=[];return m.push(...f.map(g=>g===""?d:[d,g].join("/"))),c&&m.push(...f),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function bw(n){n.sort((a,s)=>a.score!==s.score?s.score-a.score:Aw(a.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var ww=/^:[\w-]+$/,Sw=3,xw=2,_w=1,Ew=10,Tw=-2,sp=n=>n==="*";function Rw(n,a){let s=n.split("/"),o=s.length;return s.some(sp)&&(o+=Tw),a&&(o+=xw),s.filter(c=>!sp(c)).reduce((c,d)=>c+(ww.test(d)?Sw:d===""?_w:Ew),o)}function Aw(n,a){return n.length===a.length&&n.slice(0,-1).every((o,c)=>o===a[c])?n[n.length-1]-a[a.length-1]:0}function Cw(n,a,s=!1){let{routesMeta:o}=n,c={},d="/",f=[];for(let m=0;m<o.length;++m){let g=o[m],h=m===o.length-1,v=d==="/"?a:a.slice(d.length)||"/",y=il({path:g.relativePath,caseSensitive:g.caseSensitive,end:h},v),S=g.route;if(!y&&h&&s&&!o[o.length-1].route.index&&(y=il({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},v)),!y)return null;
58Object.assign(c,y.params),f.push({params:c,pathname:$n([d,y.pathname]),pathnameBase:Uw($n([d,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(d=$n([d,y.pathnameBase]))}return f}function il(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,o]=Ow(n.path,n.caseSensitive,n.end),c=a.match(s);if(!c)return null;let d=c[0],f=d.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:o.reduce((h,{paramName:v,isOptional:y},S)=>{if(v==="*"){let E=m[S]||"";f=d.slice(0,d.length-E.length).replace(/(.)\/+$/,"$1")}const x=m[S];return y&&!x?h[v]=void 0:h[v]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:d,pathnameBase:f,pattern:n}}function Ow(n,a=!1,s=!0){En(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let o=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,g)=>(o.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),o]}function kw(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return En(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Xn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let s=a.endsWith("/")?a.length-1:a.length,o=n.charAt(s);return o&&o!=="/"?null:n.slice(s)||"/"}function Mw(n,a="/"){let{pathname:s,search:o="",hash:c=""}=typeof n=="string"?is(n):n;return{pathname:s?s.startsWith("/")?s:Nw(s,a):a,search:qw(o),hash:zw(c)}}function Nw(n,a){let s=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function Iu(n,a,s,o){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(o)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Dw(n){return n.filter((a,s)=>s===0||a.route.path&&a.route.path.length>0)}function ry(n){let a=Dw(n);return a.map((s,o)=>o===a.length-1?s.pathname:s.pathnameBase)}function oy(n,a,s,o=!1){let c;typeof n=="string"?c=is(n):(c={...n},He(!c.pathname||!c.pathname.includes("?"),Iu("?","pathname","search",c)),He(!c.pathname||!c.pathname.includes("#"),Iu("#","pathname","hash",c)),He(!c.search||!c.search.includes("#"),Iu("#","search","hash",c)));let d=n===""||c.pathname==="",f=d?"/":c.pathname,m;if(f==null)m=s;else{let y=a.length-1;if(!o&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),y-=1;c.pathname=S.join("/")}m=y>=0?a[y]:"/"}let g=Mw(c,m),h=f&&f!=="/"&&f.endsWith("/"),v=(d||f===".")&&s.endsWith("/");return!g.pathname.endsWith("/")&&(h||v)&&(g.pathname+="/"),g}var $n=n=>n.join("/").replace(/\/\/+/g,"/"),Uw=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),qw=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,zw=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Lw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var ly=["POST","PUT","PATCH","DELETE"];new Set(ly);var Bw=["GET",...ly];new Set(Bw);var ss=w.createContext(null);ss.displayName="DataRouter";var yl=w.createContext(null);yl.displayName="DataRouterState";w.createContext(!1);var cy=w.createContext({isTransitioning:!1});cy.displayName="ViewTransition";var jw=w.createContext(new Map);jw.displayName="Fetchers";var Hw=w.createContext(null);Hw.displayName="Await";var Rn=w.createContext(null);Rn.displayName="Navigation";var _r=w.createContext(null);_r.displayName="Location";var Jn=w.createContext({outlet:null,matches:[],isDataRoute:!1});Jn.displayName="Route";var Ld=w.createContext(null);Ld.displayName="RouteError";function Vw(n,{relative:a}={}){He(Er(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=w.useContext(Rn),{hash:c,pathname:d,search:f}=Tr(n,{relative:a}),m=d;return s!=="/"&&(m=d==="/"?s:$n([s,d])),o.createHref({pathname:m,search:f,hash:c})}function Er(){return w.useContext(_r)!=null}function ka(){return He(Er(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(_r).location}var uy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function dy(n){w.useContext(Rn).static||w.useLayoutEffect(n)}function Pw(){let{isDataRoute:n}=w.useContext(Jn);return n?tS():Qw()}function Qw(){He(Er(),"useNavigate() may be used only in the context of a <Router> component.");let n=w.useContext(ss),{basename:a,navigator:s}=w.useContext(Rn),{matches:o}=w.useContext(Jn),{pathname:c}=ka(),d=JSON.stringify(ry(o)),f=w.useRef(!1);return dy(()=>{f.current=!0}),w.useCallback((g,h={})=>
58{if(En(f.current,uy),!f.current)return;if(typeof g=="number"){s.go(g);return}let v=oy(g,JSON.parse(d),c,h.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:$n([a,v.pathname])),(h.replace?s.replace:s.push)(v,h.state,h)},[a,s,d,c,n])}w.createContext(null);function Tr(n,{relative:a}={}){let{matches:s}=w.useContext(Jn),{pathname:o}=ka(),c=JSON.stringify(ry(s));return w.useMemo(()=>oy(n,JSON.parse(c),o,a==="path"),[n,c,o,a])}function Iw(n,a){return fy(n,a)}function fy(n,a,s,o,c){He(Er(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=w.useContext(Rn),{matches:f}=w.useContext(Jn),m=f[f.length-1],g=m?m.params:{},h=m?m.pathname:"/",v=m?m.pathnameBase:"/",y=m&&m.route;{let L=y&&y.path||"";hy(h,!y||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
60Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let S=ka(),x;if(a){let L=typeof a=="string"?is(a):a;He(v==="/"||L.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${L.pathname}" was given in the \`location\` prop.`),x=L}else x=S;let E=x.pathname||"/",k=E;if(v!=="/"){let L=v.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(L.length).join("/")}let A=ay(n,{pathname:k});En(y||A!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),En(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=Kw(A&&A.map(L=>Object.assign({},L,{params:Object.assign({},g,L.params),pathname:$n([v,d.encodeLocation?d.encodeLocation(L.pathname).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?v:$n([v,d.encodeLocation?d.encodeLocation(L.pathnameBase).pathname:L.pathnameBase])})),f,s,o,c);return a&&C?w.createElement(_r.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},C):C}function Yw(){let n=eS(),a=Lw(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:d},"ErrorBoundary")," or"," ",w.createElement("code",{style:d},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},a),s?w.createElement("pre",{style:c},s):null,f)}var Gw=w.createElement(Yw,null),$w=class extends w.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.unstable_onError?this.props.unstable_onError(n,a):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?w.createElement(Jn.Provider,{value:this.props.routeContext},w.createElement(Ld.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Xw({routeContext:n,match:a,children:s}){let o=w.useContext(ss);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),w.createElement(Jn.Provider,{value:n},s)}function Kw(n,a=[],s=null,o=null,c=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let d=n,f=s?.errors;if(f!=null){let h=d.findIndex(v=>v.route.id&&f?.[v.route.id]!==void 0);He(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,h+1))}let m=!1,g=-1;if(s)for(let h=0;h<d.length;h++){let v=d[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=h),v.route.id){let{loaderData:y,errors:S}
60=s,x=v.route.loader&&!y.hasOwnProperty(v.route.id)&&(!S||S[v.route.id]===void 0);if(v.route.lazy||x){m=!0,g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}return d.reduceRight((h,v,y)=>{let S,x=!1,E=null,k=null;s&&(S=f&&v.route.id?f[v.route.id]:void 0,E=v.route.errorElement||Gw,m&&(g<0&&y===0?(hy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,k=null):g===y&&(x=!0,k=v.route.hydrateFallbackElement||null)));let A=a.concat(d.slice(0,y+1)),C=()=>{let L;return S?L=E:x?L=k:v.route.Component?L=w.createElement(v.route.Component,null):v.route.element?L=v.route.element:L=h,w.createElement(Xw,{match:v,routeContext:{outlet:h,matches:A,isDataRoute:s!=null},children:L})};return s&&(v.route.ErrorBoundary||v.route.errorElement||y===0)?w.createElement($w,{location:s.location,revalidation:s.revalidation,component:E,error:S,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0},unstable_onError:o}):C()},null)}function Bd(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fw(n){let a=w.useContext(ss);return He(a,Bd(n)),a}function Zw(n){let a=w.useContext(yl);return He(a,Bd(n)),a}function Jw(n){let a=w.useContext(Jn);return He(a,Bd(n)),a}function jd(n){let a=Jw(n),s=a.matches[a.matches.length-1];return He(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function Ww(){return jd("useRouteId")}function eS(){let n=w.useContext(Ld),a=Zw("useRouteError"),s=jd("useRouteError");return n!==void 0?n:a.errors?.[s]}function tS(){let{router:n}=Fw("useNavigate"),a=jd("useNavigate"),s=w.useRef(!1);return dy(()=>{s.current=!0}),w.useCallback(async(c,d={})=>{En(s.current,uy),s.current&&(typeof c=="number"?n.navigate(c):await n.navigate(c,{fromRouteId:a,...d}))},[n,a])}var rp={};function hy(n,a,s){!a&&!rp[n]&&(rp[n]=!0,En(!1,s))}w.memo(nS);function nS({routes:n,future:a,state:s,unstable_onError:o}){return fy(n,void 0,s,o,a)}function dd(n){He(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function aS({basename:n="/",children:a=null,location:s,navigationType:o="POP",navigator:c,static:d=!1}){He(!Er(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),m=w.useMemo(()=>({basename:f,navigator:c,static:d,future:{}}),[f,c,d]);typeof s=="string"&&(s=is(s));let{pathname:g="/",search:h="",hash:v="",state:y=null,key:S="default"}=s,x=w.useMemo(()=>{let E=Xn(g,f);return E==null?null:{location:{pathname:E,search:h,hash:v,state:y,key:S},navigationType:o}},[f,g,h,v,y,S,o]);return En(x!=null,`<Router basename="${f}"> is not able to match the URL "${g}${h}${v}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:w.createElement(Rn.Provider,{value:m},w.createElement(_r.Provider,{children:a,value:x}))}function iS({children:n,location:a}){return Iw(fd(n),a)}function fd(n,a=[]){let s=[];return w.Children.forEach(n,(o,c)=>{if(!w.isValidElement(o))return;let d=[...a,c];if(o.type===w.Fragment){s.push.apply(s,fd(o.props.children,d));return}He(o.type===dd,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!o.props.index||!o.props.children,"An index route cannot have child routes.");let f={id:o.props.id||d.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(f.children=fd(o.props.children,d)),s.push(f)}),s}var el="get",tl="application/x-www-form-urlencoded";function vl(n){return n!=null&&typeof n.tagName=="string"}function sS(n){return vl(n)&&n.tagName.toLowerCase()==="button"}function rS(n){return vl(n)&&n.tagName.toLowerCase()==="form"}function oS(n){return vl(n)&&n.tagName.toLowerCase()==="input"}function lS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function cS(n,a){return n.button===0&&(!a||a==="_self")&&!lS(n)}var Io=null;function uS(){if(Io===null)try{new FormData(document.createElement("form"),0),Io=!1}catch{Io=!0}return Io}var dS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yu(n){return n!=null&&!dS.has(n)?(En(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tl}"`),null):n}function fS(n,a){let s,o,c,d,f;if(rS(n)){let m=n.getAttribute("action");o=m?Xn(m,a):null,s=n.getAttribute("method")||el,c=Yu(n.getAttribute("enctype"))||tl,d=new FormData(n)}else if(sS(n)||oS(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(o=g?Xn(g,a):null,s=n.getAttribute("formmethod")||m.getAttribute("method")||el,c=Yu(n.getAttribute("formenctype"))||Yu(m.getAttribute("enctype"))||tl,d=new FormData(m,n),!uS()){let{name:h,type:v,value:y}=n;if(v==="image"){let S=h?`${h}.`:"";d.append(`${S}x`,"0"),d.append(`${S}y`,"0")}else h&&d.append(h,y)}}else{if(vl(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=el,o=null,c=tl,f=n}return d&&c==="text/plain"&&(f=d,d=void 0),{action:o,method:s.toLowerCase(),encType:c,formData:d,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Hd(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function hS(n,a,s){let o=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o.pathname==="/"?o.pathname=`_root.${s}`:a&&Xn(o.pathname,a)==="/"?o.pathname=`${a.replace(/\/$/,"")}/_root.${s}
60`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${s}`,o}async function gS(n,a){if(n.id in a)return a[n.id];try{let s=await import(n.module);return a[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function pS(n,a,s){let o=await Promise.all(n.map(async c=>{let d=a.routes[c.route.id];if(d){let f=await gS(d,s);return f.links?f.links():[]}return[]}));return wS(o.flat(1).filter(mS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function op(n,a,s,o,c,d){let f=(g,h)=>s[h]?g.route.id!==s[h].route.id:!0,m=(g,h)=>s[h].pathname!==g.pathname||s[h].route.path?.endsWith("*")&&s[h].params["*"]!==g.params["*"];return d==="assets"?a.filter((g,h)=>f(g,h)||m(g,h)):d==="data"?a.filter((g,h)=>{let v=o.routes[g.route.id];if(!v||!v.hasLoader)return!1;if(f(g,h)||m(g,h))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function yS(n,a,{includeHydrateFallback:s}={}){return vS(n.map(o=>{let c=a.routes[o.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function vS(n){return[...new Set(n)]}function bS(n){let a={},s=Object.keys(n).sort();for(let o of s)a[o]=n[o];return a}function wS(n,a){let s=new Set;
60return new Set(a),n.reduce((o,c)=>{let d=JSON.stringify(bS(c));return s.has(d)||(s.add(d),o.push({key:d,link:c})),o},[])}function gy(){let n=w.useContext(ss);return Hd(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function SS(){let n=w.useContext(yl);return Hd(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Vd=w.createContext(void 0);Vd.displayName="FrameworkContext";function my(){let n=w.useContext(Vd);return Hd(n,"You must render this element inside a <HydratedRouter> element"),n}function xS(n,a){let s=w.useContext(Vd),[o,c]=w.useState(!1),[d,f]=w.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:h,onMouseLeave:v,onTouchStart:y}=a,S=w.useRef(null);w.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let k=C=>{C.forEach(L=>{f(L.isIntersecting)})},A=new IntersectionObserver(k,{threshold:.5});return S.current&&A.observe(S.current),()=>{A.disconnect()}}},[n]),w.useEffect(()=>{if(o){let k=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(k)}}},[o]);let x=()=>{c(!0)},E=()=>{c(!1),f(!1)};return s?n!=="intent"?[d,S,{}]:[d,S,{onFocus:lr(m,x),onBlur:lr(g,E),onMouseEnter:lr(h,x),onMouseLeave:lr(v,E),onTouchStart:lr(y,x)}]:[!1,S,{}]}function lr(n,a){return s=>{n&&n(s),s.defaultPrevented||a(s)}}function _S({page:n,...a}){let{router:s}=gy(),o=w.useMemo(()=>ay(s.routes,n,s.basename),[s.routes,n,s.basename]);return o?w.createElement(TS,{page:n,matches:o,...a}):null}function ES(n){let{manifest:a,routeModules:s}=my(),[o,c]=w.useState([]);return w.useEffect(()=>{let d=!1;return pS(n,a,s).then(f=>{d||c(f)}),()=>{d=!0}},[n,a,s]),o}function TS({page:n,matches:a,...s}){let o=ka(),{manifest:c,routeModules:d}=my(),{basename:f}=gy(),{loaderData:m,matches:g}=SS(),h=w.useMemo(()=>op(n,a,g,c,o,"data"),[n,a,g,c,o]),v=w.useMemo(()=>op(n,a,g,c,o,"assets"),[n,a,g,c,o]),y=w.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let E=new Set,k=!1;if(a.forEach(C=>{let L=c.routes[C.route.id];!L||!L.hasLoader||(!h.some(V=>V.route.id===C.route.id)&&C.route.id in m&&d[C.route.id]?.shouldRevalidate||L.hasClientLoader?k=!0:E.add(C.route.id))}),E.size===0)return[];let A=hS(n,f,"data");return k&&E.size>0&&A.searchParams.set("_routes",a.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[A.pathname+A.search]},[f,m,o,c,h,a,n,d]),S=w.useMemo(()=>yS(v,c),[v,c]),x=ES(v);return w.createElement(w.Fragment,null,y.map(E=>w.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...s})),S.map(E=>w.createElement("link",{key:E,rel:"modulepreload",href:E,...s})),x.map(({key:E,link:k})=>w.createElement("link",{key:E,nonce:s.nonce,...k})))}function RS(...n){return a=>{n.forEach(s=>{typeof s=="function"?s(a):s!=null&&(s.current=a)})}}var py=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{py&&(window.__reactRouterVersion="7.8.2")}catch{}function AS({basename:n,children:a,window:s}){let o=w.useRef();o.current==null&&(o.current=gw({window:s,v5Compat:!0}));let c=o.current,[d,f]=w.useState({action:c.action,location:c.location}),m=w.useCallback(g=>{w.startTransition(()=>f(g))},[f]);return w.useLayoutEffect(()=>c.listen(m),[c,m]),w.createElement(aS,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c})}var yy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pd=w.forwardRef(function({onClick:a,discover:s="render",prefetch:o="none",relative:c,reloadDocument:d,replace:f,state:m,target:g,to:h,preventScrollReset:v,viewTransition:y,...S},x){let{basename:E}=w.useContext(Rn),k=typeof h=="string"&&yy.test(h),A,C=!1;if(typeof h=="string"&&k&&(A=h,py))try{let ee=new URL(window.location.href),ce=h.startsWith("//")?new URL(ee.protocol+h):new URL(h),ge=Xn(ce.pathname,E);ce.origin===ee.origin&&ge!=null?h=ge+ce.search+ce.hash:C=!0}catch{En(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let L=Vw(h,{relative:c}
60),[V,F,j]=xS(o,S),X=MS(h,{replace:f,state:m,target:g,preventScrollReset:v,relative:c,viewTransition:y});function Z(ee){a&&a(ee),ee.defaultPrevented||X(ee)}let $=w.createElement("a",{...S,...j,href:A||L,onClick:C||d?a:Z,ref:RS(x,F),target:g,"data-discover":!k&&s==="render"?"true":void 0});return V&&!k?w.createElement(w.Fragment,null,$,w.createElement(_S,{page:L})):$});Pd.displayName="Link";var CS=w.forwardRef(function({"aria-current":a="page",caseSensitive:s=!1,className:o="",end:c=!1,style:d,to:f,viewTransition:m,children:g,...h},v){let y=Tr(f,{relative:h.relative}),S=ka(),x=w.useContext(yl),{navigator:E,basename:k}=w.useContext(Rn),A=x!=null&&zS(y)&&m===!0,C=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,L=S.pathname,V=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;s||(L=L.toLowerCase(),V=V?V.toLowerCase():null,C=C.toLowerCase()),V&&k&&(V=Xn(V,k)||V);const F=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let j=L===C||!c&&L.startsWith(C)&&L.charAt(F)==="/",X=V!=null&&(V===C||!c&&V.startsWith(C)&&V.charAt(C.length)==="/"),Z={isActive:j,isPending:X,isTransitioning:A},$=j?a:void 0,ee;typeof o=="function"?ee=o(Z):ee=[o,j?"active":null,X?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let ce=typeof d=="function"?d(Z):d;return w.createElement(Pd,{...h,"aria-current":$,className:ee,ref:v,style:ce,to:f,viewTransition:m},typeof g=="function"?g(Z):g)});CS.displayName="NavLink";var OS=w.forwardRef(({discover:n="render",fetcherKey:a,navigate:s,reloadDocument:o,replace:c,state:d,method:f=el,action:m,onSubmit:g,relative:h,preventScrollReset:v,viewTransition:y,...S},x)=>{let E=US(),k=qS(m,{relative:h}),A=f.toLowerCase()==="get"?"get":"post",C=typeof m=="string"&&yy.test(m),L=V=>{if(g&&g(V),V.defaultPrevented)return;V.preventDefault();let F=V.nativeEvent.submitter,j=F?.getAttribute("formmethod")||f;E(F||V.currentTarget,{fetcherKey:a,method:j,navigate:s,replace:c,state:d,relative:h,preventScrollReset:v,viewTransition:y})};return w.createElement("form",{ref:x,method:A,action:k,onSubmit:o?g:L,...S,"data-discover":!C&&n==="render"?"true":void 0})});OS.displayName="Form";function kS(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function vy(n){let a=w.useContext(ss);return He(a,kS(n)),a}function MS(n,{target:a,replace:s,state:o,preventScrollReset:c,relative:d,viewTransition:f}={}){let m=Pw(),g=ka(),h=Tr(n,{relative:d});return w.useCallback(v=>{if(cS(v,a)){v.preventDefault();let y=s!==void 0?s:hr(g)===hr(h);m(n,{replace:y,state:o,preventScrollReset:c,relative:d,viewTransition:f})}},[g,m,h,s,o,a,n,c,d,f])}var NS=0,DS=()=>`__${String(++NS)}__`;function US(){let{router:n}=vy("useSubmit"),{basename:a}=w.useContext(Rn),s=Ww();return w.useCallback(async(o,c={})=>{let{action:d,method:f,encType:m,formData:g,body:h}=fS(o,a);if(c.navigate===!1){let v=c.fetcherKey||DS();await n.fetch(v,s,c.action||d,{preventScrollReset:c.preventScrollReset,formData:g,body:h,formMethod:c.method||f,formEncType:c.encType||m,flushSync:c.flushSync})}else await n.navigate(c.action||d,{preventScrollReset:c.preventScrollReset,formData:g,body:h,formMethod:c.method||f,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:s,flushSync:c.flushSync,viewTransition:c.viewTransition})},[n,a,s])}function qS(n,{relative:a}={}){let{basename:s}=w.useContext(Rn),o=w.useContext(Jn);He(o,"useFormAction must be used inside a RouteContext");let[c]=o.matches.slice(-1),d={...Tr(n||".",{relative:a})},f=ka();if(n==null){d.search=f.search;let m=new URLSearchParams(d.search),g=m.getAll("index");if(g.some(v=>v==="")){m.delete("index"),g.filter(y=>y).forEach(y=>m.append("index",y));let v=m.toString();d.search=v?`?${v}`:""}}return(!n||n===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(d.pathname=d.pathname==="/"?s:$n([s,d.pathname])),hr(d)}function zS(n,{relative:a}={}){let s=w.useContext(cy);He(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=vy("useViewTransitionState"),c=Tr(n,{relative:a});if(!s.isTransitioning)return!1;let d=Xn(s.currentLocation.pathname,o)||s.currentLocation.pathname,f=Xn(s.nextLocation.pathname,o)||s.nextLocation.pathname;return il(c.pathname,f)!=null||il(c.pathname,d)!=null}var Qd=ny();const LS=ty(Qd);var Sn=[],Zt=[],BS=Uint8Array,Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
60+/";for(var Xi=0,jS=Gu.length;Xi<jS;++Xi)Sn[Xi]=Gu[Xi],Zt[Gu.charCodeAt(Xi)]=Xi;Zt[45]=62;Zt[95]=63;function HS(n){var a=n.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=n.indexOf("=");s===-1&&(s=a);var o=s===a?0:4-s%4;return[s,o]}function VS(n,a,s){return(a+s)*3/4-s}function gr(n){var a,s=HS(n),o=s[0],c=s[1],d=new BS(VS(n,o,c)),f=0,m=c>0?o-4:o,g;for(g=0;g<m;g+=4)a=Zt[n.charCodeAt(g)]<<18|Zt[n.charCodeAt(g+1)]<<12|Zt[n.charCodeAt(g+2)]<<6|Zt[n.charCodeAt(g+3)],d[f++]=a>>16&255,d[f++]=a>>8&255,d[f++]=a&255;return c===2&&(a=Zt[n.charCodeAt(g)]<<2|Zt[n.charCodeAt(g+1)]>>4,d[f++]=a&255),c===1&&(a=Zt[n.charCodeAt(g)]<<10|Zt[n.charCodeAt(g+1)]<<4|Zt[n.charCodeAt(g+2)]>>2,d[f++]=a>>8&255,d[f++]=a&255),d}function PS(n){return Sn[n>>18&63]+Sn[n>>12&63]+Sn[n>>6&63]+Sn[n&63]}function QS(n,a,s){for(var o,c=[],d=a;d<s;d+=3)o=(n[d]<<16&16711680)+(n[d+1]<<8&65280)+(n[d+2]&255),c.push(PS(o));return c.join("")}function mr(n){for(var a,s=n.length,o=s%3,c=[],d=16383,f=0,m=s-o;f<m;f+=d)c.push(QS(n,f,f+d>m?m:f+d));return o===1?(a=n[s-1],c.push(Sn[a>>2]+Sn[a<<4&63]+"==")):o===2&&(a=(n[s-2]<<8)+n[s-1],c.push(Sn[a>>10]+Sn[a>>4&63]+Sn[a<<2&63]+"=")),c.join("")}function Ra(n){if(n===void 0)return{};if(!by(n))throw new Error(`The arguments to a Convex function must be an object. Received: ${n}`);return n}function IS(n){if(typeof n>"u")throw new Error("Client created with undefined deployment address. If you used an environment variable, check that it's set.");if(typeof n!="string")throw new Error(`Invalid deployment address: found ${n}".`);if(!(n.startsWith("http:")||n.startsWith("https:")))throw new Error(`Invalid deployment address: Must start with "https://" or "http://". Found "${n}".`);try{new URL(n)}catch{throw new Error(`Invalid deployment address: "${n}" is not a valid URL. If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}if(n.endsWith(".convex.site"))throw new Error(`Invalid deployment address: "${n}" ends with .convex.site, which is used for HTTP Actions. Convex deployment URLs typically end with .convex.cloud? If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}function by(n){const a=typeof n=="object",s=Object.getPrototypeOf(n),o=s===null||s===Object.prototype||s?.constructor?.name==="Object";return a&&o}const wy=!0,Wi=BigInt("-9223372036854775808"),Id=BigInt("9223372036854775807"),hd=BigInt("0"),YS=BigInt("8"),GS=BigInt("256");function Sy(n){return Number.isNaN(n)||!Number.isFinite(n)||Object.is(n,-0)}function $S(n){n<hd&&(n-=Wi+Wi);let a=n.toString(16);a.length%2===1&&(a="0"+a);const s=new Uint8Array(new ArrayBuffer(8));let o=0;for(const c of a.match(/.{2}/g).reverse())s.set([parseInt(c,16)],o++),n>>=YS;return mr(s)}function XS(n){const a=gr(n);if(a.byteLength!==8)throw new Error(`Received ${a.byteLength} bytes, expected 8 for $integer`);let s=hd,o=hd;for(const c of a)s+=BigInt(c)*GS**o,o++;return s>Id&&(s+=Wi+Wi),s}function KS(n){if(n<Wi||Id<n)throw new Error(`BigInt ${n} does not fit into a 64-bit signed integer.`);const a=new ArrayBuffer(8);return new DataView(a).setBigInt64(0,n,!0),mr(new Uint8Array(a))}function FS(n){const a=gr(n);if(a.byteLength!==8)throw new Error(`Received ${a.byteLength} bytes, expected 8 for $integer`);return new DataView(a.buffer).getBigInt64(0,!0)}const ZS=DataView.prototype.setBigInt64?KS:$S,JS=DataView.prototype.getBigInt64?FS:XS,lp=1024;function xy(n){if(n.length>lp)throw new Error(`Field name ${n} exceeds maximum field name length ${lp}.`);if(n.startsWith("$"))throw new Error(`Field name ${n} starts with a '$', which is reserved.`);for(let a=0;a<n.length;a+=1){const s=n.charCodeAt(a);if(s<32||s>=127)throw new Error(`Field name ${n} has invalid character '${n[a]}': Field names can only contain non-control ASCII characters`)}}function es(n){if(n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string")return n;if(Array.isArray(n))return n.map(o=>es(o));if(typeof n!="object")throw new Error(`Unexpected type of ${n}`);const a=Object.entries(n);if(a.length===1){const o=a[0][0];
60if(o==="$bytes"){if(typeof n.$bytes!="string")throw new Error(`Malformed $bytes field on ${n}`);return gr(n.$bytes).buffer}if(o==="$integer"){if(typeof n.$integer!="string")throw new Error(`Malformed $integer field on ${n}`);return JS(n.$integer)}if(o==="$float"){if(typeof n.$float!="string")throw new Error(`Malformed $float field on ${n}`);const c=gr(n.$float);if(c.byteLength!==8)throw new Error(`Received ${c.byteLength} bytes, expected 8 for $float`);const f=new DataView(c.buffer).getFloat64(0,wy);if(!Sy(f))throw new Error(`Float ${f} should be encoded as a number`);return f}if(o==="$set")throw new Error("Received a Set which is no longer supported as a Convex type.");if(o==="$map")throw new Error("Received a Map which is no longer supported as a Convex type.")}const s={};for(const[o,c]of Object.entries(n))xy(o),s[o]=es(c);return s}function dr(n){return JSON.stringify(n,(a,s)=>s===void 0?"undefined":typeof s=="bigint"?`${s.toString()}n`:s)}function gd(n,a,s,o){if(n===void 0){const f=s&&` (present at path ${s} in original object ${dr(a)})`;throw new Error(`undefined is not a valid Convex value${f}. To learn about Convex's supported types, see https://docs.convex.dev/using/types.`)}if(n===null)return n;if(typeof n=="bigint"){if(n<Wi||Id<n)throw new Error(`BigInt ${n} does not fit into a 64-bit signed integer.`);return{$integer:ZS(n)}}if(typeof n=="number")if(Sy(n)){const f=new ArrayBuffer(8);return new DataView(f).setFloat64(0,n,wy),{$float:mr(new Uint8Array(f))}}else return n;if(typeof n=="boolean"||typeof n=="string")return n;if(n instanceof ArrayBuffer)return{$bytes:mr(new Uint8Array(n))};if(Array.isArray(n))return n.map((f,m)=>gd(f,a,s+`[${m}]`));if(n instanceof Set)throw new Error($u(s,"Set",[...n],a));if(n instanceof Map)throw new Error($u(s,"Map",[...n],a));if(!by(n)){const f=n?.constructor?.name,m=f?`${f} `:"";throw new Error($u(s,m,n,a))}const c={},d=Object.entries(n);d.sort(([f,m],[g,h])=>f===g?0:f<g?-1:1);for(const[f,m]of d)m!==void 0&&(xy(f),c[f]=gd(m,a,s+`.${f}`));return c}function $u(n,a,s,o){return n?`${a}${dr(s)} is not a supported Convex type (present at path ${n} in original object ${dr(o)}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.`:`${a}${dr(s)} is not a supported Convex type.`}function pr(n){return gd(n,n,"")}var WS=Object.defineProperty,ex=(n,a,s)=>
60a in n?WS(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Xu=(n,a,s)=>ex(n,typeof a!="symbol"?a+"":a,s),cp,up;const tx=Symbol.for("ConvexError");class md extends(up=Error,cp=tx,up){constructor(a){super(typeof a=="string"?a:dr(a)),Xu(this,"name","ConvexError"),Xu(this,"data"),Xu(this,cp,!0),this.data=a}}const _y=()=>Array.from({length:4},()=>0);_y();_y();const dp="1.26.2";var nx=Object.defineProperty,ax=(n,a,s)=>a in n?nx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,fp=(n,a,s)=>ax(n,typeof a!="symbol"?a+"":a,s);const ix="color:rgb(0, 145, 255)";function Ey(n){switch(n){case"query":return"Q";case"mutation":return"M";case"action":return"A";case"any":return"?"}}class Ty{constructor(a){fp(this,"_onLogLineFuncs"),fp(this,"_verbose"),this._onLogLineFuncs={},this._verbose=a.verbose}addLogLineListener(a){let s=Math.random().toString(36).substring(2,15);for(let o=0;o<10&&this._onLogLineFuncs[s]!==void 0;o++)s=Math.random().toString(36).substring(2,15);return this._onLogLineFuncs[s]=a,()=>{delete this._onLogLineFuncs[s]}}logVerbose(...a){if(this._verbose)for(const s of Object.values(this._onLogLineFuncs))s("debug",`${new Date().toISOString()}`,...a)}log(...a){for(const s of Object.values(this._onLogLineFuncs))s("info",...a)}warn(...a){for(const s of Object.values(this._onLogLineFuncs))s("warn",...a)}error(...a){for(const s of Object.values(this._onLogLineFuncs))s("error",...a)}}function Ry(n){const a=new Ty(n);return a.addLogLineListener((s,...o)=>{switch(s){case"debug":console.debug(...o);break;case"info":console.log(...o);break;case"warn":console.warn(...o);break;case"error":console.error(...o);break;default:console.log(...o)}}),a}function Ay(n){return new Ty(n)}function sl(n,a,s,o,c){const d=Ey(s);if(typeof c=="object"&&(c=`ConvexError ${JSON.stringify(c.errorData,null,2)}`),a==="info"){const f=c.match(/^\[.*?\] /);if(f===null){n.error(`[CONVEX ${d}(${o})] Could not parse console.log`);return}const m=c.slice(1,f[0].length-2),g=c.slice(f[0].length);n.log(`%c[CONVEX ${d}(${o})] [${m}]`,ix,g)}else n.error(`[CONVEX ${d}(${o})] ${c}`)}function sx(n,a){const s=`[CONVEX FATAL ERROR] ${a}`;return n.error(s),new Error(s)}function Fi(n,a,s){return`[CONVEX ${Ey(n)}(${a})] ${s.errorMessage}
61  Called by client`}function pd(n,a){return a.data=n.errorData,a}function rl(n){const a=n.split(":");let s,o;return a.length===1?(s=a[0],o="default"):(s=a.slice(0,a.length-1).join(":"),o=a[a.length-1]),s.endsWith(".js")&&(s=s.slice(0,-3)),`${s}:${o}`}function ei(n,a){return JSON.stringify({udfPath:rl(n),args:pr(a)})}var rx=Object.defineProperty,ox=(n,a,s)=>a in n?rx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,mn=(n,a,s)=>ox(n,typeof a!="symbol"?a+"":a,s);class lx{constructor(){mn(this,"nextQueryId"),mn(this,"querySetVersion"),mn(this,"querySet"),mn(this,"queryIdToToken"),mn(this,"identityVersion"),mn(this,"auth"),mn(this,"outstandingQueriesOlderThanRestart"),mn(this,"outstandingAuthOlderThanRestart"),mn(this,"paused"),mn(this,"pendingQuerySetModifications"),this.nextQueryId=0,this.querySetVersion=0,this.identityVersion=0,this.querySet=new Map,this.queryIdToToken=new Map,this.outstandingQueriesOlderThanRestart=new Set,this.outstandingAuthOlderThanRestart=!1,this.paused=!1,this.pendingQuerySetModifications=new Map}hasSyncedPastLastReconnect(){return this.outstandingQueriesOlderThanRestart.size===0&&!this.outstandingAuthOlderThanRestart}markAuthCompletion(){this.outstandingAuthOlderThanRestart=!1}subscribe(a,s,o,c){const d=rl(a),f=ei(d,s),m=this.querySet.get(f);if(m!==void 0)return m.numSubscribers+=1,{queryToken:f,modification:null,unsubscribe:()=>this.removeSubscriber(f)};{const g=this.nextQueryId++,h={id:g,canonicalizedUdfPath:d,args:s,numSubscribers:1,journal:o,componentPath:c};this.querySet.set(f,h),this.queryIdToToken.set(g,f);const v=this.querySetVersion,y=this.querySetVersion+1,S={type:"Add",queryId:g,udfPath:d,args:[pr(s)],journal:o,componentPath:c};return this.paused?this.pendingQuerySetModifications.set(g,S):this.querySetVersion=y,{queryToken:f,modification:{type:"ModifyQuerySet",baseVersion:v,newVersion:y,modifications:[S]},unsubscribe:()=>this.removeSubscriber(f)}}}transition(a){for(const s of a.modifications)switch(s.type){case"QueryUpdated":case"QueryFailed":{this.outstandingQueriesOlderThanRestart.delete(s.queryId);const o=s.journal;if(o!==void 0){const c=this.queryIdToToken.get(s.queryId);c!==void 0&&(this.querySet.get(c).journal=o)}break}case"QueryRemoved":{this.outstandingQueriesOlderThanRestart.delete(s.queryId);break}default:throw new Error(`Invalid modification ${s.type}`)}}queryId(a,s){const o=rl(a),c=ei(o,s),d=this.querySet.get(c);return d!==void 0?d.id:null}isCurrentOrNewerAuthVersion(a){return a>=this.identityVersion}setAuth(a){this.auth={tokenType:"User",value:a};const s=this.identityVersion;
61return this.paused||(this.identityVersion=s+1),{type:"Authenticate",baseVersion:s,...this.auth}}setAdminAuth(a,s){const o={tokenType:"Admin",value:a,impersonating:s};this.auth=o;const c=this.identityVersion;return this.paused||(this.identityVersion=c+1),{type:"Authenticate",baseVersion:c,...o}}clearAuth(){this.auth=void 0,this.markAuthCompletion();const a=this.identityVersion;return this.paused||(this.identityVersion=a+1),{type:"Authenticate",tokenType:"None",baseVersion:a}}hasAuth(){return!!this.auth}isNewAuth(a){return this.auth?.value!==a}queryPath(a){const s=this.queryIdToToken.get(a);return s?this.querySet.get(s).canonicalizedUdfPath:null}queryArgs(a){const s=this.queryIdToToken.get(a);return s?this.querySet.get(s).args:null}queryToken(a){return this.queryIdToToken.get(a)??null}queryJournal(a){return this.querySet.get(a)?.journal}restart(a){this.unpause(),this.outstandingQueriesOlderThanRestart.clear();const s=[];for(const d of this.querySet.values()){const f={type:"Add",queryId:d.id,udfPath:d.canonicalizedUdfPath,args:[pr(d.args)],journal:d.journal,componentPath:d.componentPath};s.push(f),a.has(d.id)||this.outstandingQueriesOlderThanRestart.add(d.id)}this.querySetVersion=1;const o={type:"ModifyQuerySet",baseVersion:0,newVersion:1,modifications:s};if(!this.auth)return this.identityVersion=0,[o,void 0];this.outstandingAuthOlderThanRestart=!0;const c={type:"Authenticate",baseVersion:0,...this.auth};return this.identityVersion=1,[o,c]}pause(){this.paused=!0}resume(){const a=this.pendingQuerySetModifications.size>0?{type:"ModifyQuerySet",baseVersion:this.querySetVersion,newVersion:++this.querySetVersion,modifications:Array.from(this.pendingQuerySetModifications.values())}:void 0,s=this.auth!==void 0?{type:"Authenticate",baseVersion:this.identityVersion++,...this.auth}:void 0;return this.unpause(),[a,s]}unpause(){this.paused=!1,this.pendingQuerySetModifications.clear()}removeSubscriber(a){const s=this.querySet.get(a);if(s.numSubscribers>1)return s.numSubscribers-=1,null;{this.querySet.delete(a),this.queryIdToToken.delete(s.id),this.outstandingQueriesOlderThanRestart.delete(s.id);const o=this.querySetVersion,c=this.querySetVersion+1,d={type:"Remove",queryId:s.id};return this.paused?this.pendingQuerySetModifications.has(s.id)?this.pendingQuerySetModifications.delete(s.id):this.pendingQuerySetModifications.set(s.id,d):this.querySetVersion=c,{type:"ModifyQuerySet",baseVersion:o,newVersion:c,modifications:[d]}}}}var cx=Object.defineProperty,ux=(n,a,s)=>
61a in n?cx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Yo=(n,a,s)=>ux(n,typeof a!="symbol"?a+"":a,s);class dx{constructor(a,s){this.logger=a,this.markConnectionStateDirty=s,Yo(this,"inflightRequests"),Yo(this,"requestsOlderThanRestart"),Yo(this,"inflightMutationsCount",0),Yo(this,"inflightActionsCount",0),this.inflightRequests=new Map,this.requestsOlderThanRestart=new Set}request(a,s){const o=new Promise(c=>{const d=s?"Requested":"NotSent";this.inflightRequests.set(a.requestId,{message:a,status:{status:d,requestedAt:new Date,onResult:c}}),a.type==="Mutation"?this.inflightMutationsCount++:a.type==="Action"&&this.inflightActionsCount++});return this.markConnectionStateDirty(),o}onResponse(a){const s=this.inflightRequests.get(a.requestId);if(s===void 0||s.status.status==="Completed")return null;const o=s.message.type==="Mutation"?"mutation":"action",c=s.message.udfPath;for(const g of a.logLines)sl(this.logger,"info",o,c,g);const d=s.status;let f,m;if(a.success)f={success:!0,logLines:a.logLines,value:es(a.result)},m=()=>d.onResult(f);else{const g=a.result,{errorData:h}=a;sl(this.logger,"error",o,c,g),f={success:!1,errorMessage:g,errorData:h!==void 0?es(h):void 0,logLines:a.logLines},m=()=>d.onResult(f)}return a.type==="ActionResponse"||!a.success?(m(),this.inflightRequests.delete(a.requestId),this.requestsOlderThanRestart.delete(a.requestId),s.message.type==="Action"?this.inflightActionsCount--:s.message.type==="Mutation"&&this.inflightMutationsCount--,this.markConnectionStateDirty(),{requestId:a.requestId,result:f}):(s.status={status:"Completed",result:f,ts:a.ts,onResolve:m},null)}removeCompleted(a){const s=new Map;for(const[o,c]of this.inflightRequests.entries()){const d=c.status;d.status==="Completed"&&d.ts.lessThanOrEqual(a)&&(d.onResolve(),s.set(o,d.result),c.message.type==="Mutation"?this.inflightMutationsCount--:c.message.type==="Action"&&this.inflightActionsCount--,this.inflightRequests.delete(o),this.requestsOlderThanRestart.delete(o))}return s.size>0&&this.markConnectionStateDirty(),s}restart(){this.requestsOlderThanRestart=new Set(this.inflightRequests.keys());const a=[];for(const[s,o]of this.inflightRequests){if(o.status.status==="NotSent"){o.status.status="Requested",a.push(o.message);continue}if(o.message.type==="Mutation")a.push(o.message);else if(o.message.type==="Action"){if(this.inflightRequests.delete(s),this.requestsOlderThanRestart.delete(s),this.inflightActionsCount--,o.status.status==="Completed")throw new Error("Action should never be in 'Completed' state");o.status.onResult({success:!1,errorMessage:"Connection lost while action was in flight",logLines:[]})}}return this.markConnectionStateDirty(),a}resume(){const a=[];for(const[,s]of this.inflightRequests)if(s.status.status==="NotSent"){s.status.status="Requested",a.push(s.message);continue}return a}hasIncompleteRequests(){for(const a of this.inflightRequests.values())if(a.status.status==="Requested")return!0;return!1}hasInflightRequests(){return this.inflightRequests.size>0}hasSyncedPastLastReconnect(){return this.requestsOlderThanRestart.size===0}timeOfOldestInflightRequest(){if(this.inflightRequests.size===0)return null;let a=Date.now();for(const s of this.inflightRequests.values())s.status.status!=="Completed"&&s.status.requestedAt.getTime()<a&&(a=s.status.requestedAt.getTime());return new Date(a)}inflightMutations(){return this.inflightMutationsCount}inflightActions(){return this.inflightActionsCount}}const ol=Symbol.for("functionName"),fx=Symbol.for("toReferencePath");function hx(n){return n[fx]??null}function gx(n){return n.startsWith("function://")}function mx(n){let a;if(typeof n=="string")gx(n)?a={functionHandle:n}:a={name:n};else if(n[ol])a={name:n[ol]};else{const s=hx(n);if(!s)throw new Error(`${n} is not a functionReference`);a={reference:s}}return a}function Zi(n){const a=mx(n);if(a.name===void 0)throw a.functionHandle!==void 0?new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received function handle ${a.functionHandle}`):a.reference!==void 0?new Error(`Expected function reference in the current component like "api.file.func" or "internal.file.func", but received reference ${a.reference}`):new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received ${JSON.stringify(a)}`);if(typeof n=="string")return n;const s=n[ol];if(!s)throw new Error(`${n} is not a functionReference`);return s}
61function Cy(n=[]){const a={get(s,o){if(typeof o=="string"){const c=[...n,o];return Cy(c)}else if(o===ol){if(n.length<2){const f=["api",...n].join(".");throw new Error(`API path is expected to be of the form \`api.moduleName.functionName\`. Found: \`${f}\``)}const c=n.slice(0,-1).join("/"),d=n[n.length-1];return d==="default"?c:c+":"+d}else return o===Symbol.toStringTag?"FunctionReference":void 0}};return new Proxy({},a)}Cy();var px=Object.defineProperty,yx=(n,a,s)=>a in n?px(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,ll=(n,a,s)=>yx(n,typeof a!="symbol"?a+"":a,s);class yr{constructor(a){ll(this,"queryResults"),ll(this,"modifiedQueries"),this.queryResults=a,this.modifiedQueries=[]}getQuery(a,...s){const o=Ra(s[0]),c=Zi(a),d=this.queryResults.get(ei(c,o));if(d!==void 0)return yr.queryValue(d.result)}getAllQueries(a){const s=[],o=Zi(a);for(const c of this.queryResults.values())c.udfPath===rl(o)&&s.push({args:c.args,value:yr.queryValue(c.result)});return s}setQuery(a,s,o){const c=Ra(s),d=Zi(a),f=ei(d,c);let m;o===void 0?m=void 0:m={success:!0,value:o,logLines:[]};const g={udfPath:d,args:c,result:m};this.queryResults.set(f,g),this.modifiedQueries.push(f)}static queryValue(a){if(a!==void 0)return a.success?a.value:void 0}}class vx{constructor(){ll(this,"queryResults"),ll(this,"optimisticUpdates"),this.queryResults=new Map,this.optimisticUpdates=[]}ingestQueryResultsFromServer(a,s){this.optimisticUpdates=this.optimisticUpdates.filter(f=>!s.has(f.mutationId));const o=this.queryResults;this.queryResults=new Map(a);const c=new yr(this.queryResults);for(const f of this.optimisticUpdates)f.update(c);const d=[];for(const[f,m]of this.queryResults){const g=o.get(f);(g===void 0||g.result!==m.result)&&d.push(f)}return d}applyOptimisticUpdate(a,s){this.optimisticUpdates.push({update:a,mutationId:s});const o=new yr(this.queryResults);return a(o),o.modifiedQueries}rawQueryResult(a){return this.queryResults.get(a)}queryResult(a){const s=this.queryResults.get(a);if(s===void 0)return;const o=s.result;if(o!==void 0){if(o.success)return o.value;throw o.errorData!==void 0?pd(o,new md(Fi("query",s.udfPath,o))):new Error(Fi("query",s.udfPath,o))}}hasQueryResult(a){return this.queryResults.get(a)!==void 0}queryLogs(a){return this.queryResults.get(a)?.result?.logLines}}var bx=Object.defineProperty,wx=(n,a,s)=>a in n?bx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Ku=(n,a,s)=>wx(n,typeof a!="symbol"?a+"":a,s);class Lt{constructor(a,s){Ku(this,"low"),Ku(this,"high"),Ku(this,"__isUnsignedLong__"),this.low=a|0,this.high=s|0,this.__isUnsignedLong__=!0}static isLong(a){return(a&&a.__isUnsignedLong__)===!0}static fromBytesLE(a){return new Lt(a[0]|a[1]<<8|a[2]<<16|a[3]<<24,a[4]|a[5]<<8|a[6]<<16|a[7]<<24)}toBytesLE(){const a=this.high,s=this.low;return[s&255,s>>>8&255,s>>>16&255,s>>>24,a&255,a>>>8&255,a>>>16&255,a>>>24]}static fromNumber(a){return isNaN(a)||a<0?hp:a>=Sx?xx:new Lt(a%fr|0,a/fr|0)}toString(){return(BigInt(this.high)*BigInt(fr)+BigInt(this.low)).toString()}equals(a){return Lt.isLong(a)||(a=Lt.fromValue(a)),this.high>>>31===1&&a.high>>>31===1?!1:this.high===a.high&&this.low===a.low}notEquals(a){return!this.equals(a)}comp(a){return Lt.isLong(a)||(a=Lt.fromValue(a)),this.equals(a)?0:a.high>>>0>this.high>>>0||a.high===this.high&&a.low>>>0>this.low>>>0?-1:1}lessThanOrEqual(a){return this.comp(a)<=0}static fromValue(a){return typeof a=="number"?Lt.fromNumber(a):new Lt(a.low,a.high)}}const hp=new Lt(0,0),gp=65536,fr=gp*gp,Sx=fr*fr,xx=new Lt(-1,-1);var _x=Object.defineProperty,Ex=(n,a,s)=>a in n?_x(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Go=(n,a,s)=>Ex(n,typeof a!="symbol"?a+"":a,s);class mp{constructor(a,s){Go(this,"version"),Go(this,"remoteQuerySet"),Go(this,"queryPath"),Go(this,"logger"),this.version={querySet:0,ts:Lt.fromNumber(0),identity:0},this.remoteQuerySet=new Map,this.queryPath=a,this.logger=s}transition(a){const s=a.startVersion;if(this.version.querySet!==s.querySet||this.version.ts.notEquals(s.ts)||this.version.identity!==s.identity)throw new Error(`Invalid start version: ${s.ts.toString()}:${s.querySet}`);for(const o of a.modifications)switch(o.type){case"QueryUpdated":{const c=this.queryPath(o.queryId);if(c)for(const f of o.logLines)sl(this.logger,"info","query",c,f);const d=es(o.value??null);this.remoteQuerySet.set(o.queryId,{success:!0,value:d,logLines:o.logLines});break}case"QueryFailed":{const c=this.queryPath(o.queryId);if(c)for(const f of o.logLines)sl(this.logger,"info","query",c,f);const{errorData:d}=o;this.remoteQuerySet.set(o.queryId,{success:!1,errorMessage:o.errorMessage,errorData:d!==void 0?es(d):void 0,logLines:o.logLines});break}case"QueryRemoved":{this.remoteQuerySet.delete(o.queryId);break}default:throw new Error(`Invalid modification ${o.type}`)}this.version=a.endVersion}remoteQueryResults(){return this.remoteQuerySet}timestamp(){return this.version.ts}}function Fu(n){const a=gr(n);return Lt.fromBytesLE(Array.from(a))}function Tx(n){const a=new Uint8Array(n.toBytesLE());return mr(a)}function Rx(n){switch(n.type){case"FatalError":case"AuthError":case"ActionResponse":case"Ping":return{...n};case"MutationResponse":return n.success?{...n,ts:Fu(n.ts)}:{...n};case"Transition":return{...n,startVersion:{...n.startVersion,ts:Fu(n.startVersion.ts)},endVersion:{...n.endVersion,ts:Fu(n.endVersion.ts)}}}}function Ax(n){switch(n.type){case"Authenticate":case"ModifyQuerySet":case"Mutation":case"Action":case"Event":return{...n};case"Connect":return n.maxObservedTimestamp!==void 0?{...n,maxObservedTimestamp:Tx(n.maxObservedTimestamp)}:{...n,maxObservedTimestamp:void 0}}}var Cx=Object.defineProperty,Ox=(n,a,s)=>
61a in n?Cx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,yt=(n,a,s)=>Ox(n,typeof a!="symbol"?a+"":a,s);const kx=1e3,Mx=1001,Nx=1005,Dx=4040,Oy={InternalServerError:{timeout:1e3},SubscriptionsWorkerFullError:{timeout:3e3},TooManyConcurrentRequests:{timeout:3e3},CommitterFullError:{timeout:3e3},AwsTooManyRequestsException:{timeout:3e3},ExecuteFullError:{timeout:3e3},SystemTimeoutError:{timeout:3e3},ExpiredInQueue:{timeout:3e3},VectorIndexesUnavailable:{timeout:1e3},SearchIndexesUnavailable:{timeout:1e3},TableSummariesUnavailable:{timeout:1e3},VectorIndexTooLarge:{timeout:3e3},SearchIndexTooLarge:{timeout:3e3},TooManyWritesInTimePeriod:{timeout:3e3}};function Ux(n){if(n===void 0)return"Unknown";for(const a of Object.keys(Oy))if(n.startsWith(a))return a;return"Unknown"}class qx{constructor(a,s,o,c,d){this.markConnectionStateDirty=d,yt(this,"socket"),yt(this,"connectionCount"),yt(this,"_hasEverConnected",!1),yt(this,"lastCloseReason"),yt(this,"defaultInitialBackoff"),yt(this,"maxBackoff"),yt(this,"retries"),yt(this,"serverInactivityThreshold"),yt(this,"reconnectDueToServerInactivityTimeout"),yt(this,"uri"),yt(this,"onOpen"),yt(this,"onResume"),yt(this,"onMessage"),yt(this,"webSocketConstructor"),yt(this,"logger"),yt(this,"onServerDisconnectError"),this.webSocketConstructor=o,this.socket={state:"disconnected"},this.connectionCount=0,this.lastCloseReason="InitialConnect",this.defaultInitialBackoff=1e3,this.maxBackoff=16e3,this.retries=0,this.serverInactivityThreshold=6e4,this.reconnectDueToServerInactivityTimeout=null,this.uri=a,this.onOpen=s.onOpen,this.onResume=s.onResume,this.onMessage=s.onMessage,this.onServerDisconnectError=s.onServerDisconnectError,this.logger=c,this.connect()}setSocketState(a){this.socket=a,this._logVerbose(`socket state changed: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}`),this.markConnectionStateDirty()}connect(){if(this.socket.state==="terminated")return;if(this.socket.state!=="disconnected"&&this.socket.state!=="stopped")throw new Error("Didn't start connection from disconnected state: "+this.socket.state);const a=new this.webSocketConstructor(this.uri);this._logVerbose("constructed WebSocket"),this.setSocketState({state:"connecting",ws:a,paused:"no"}),this.resetServerInactivityTimeout(),a.onopen=()=>{if(this.logger.logVerbose("begin ws.onopen"),this.socket.state!=="connecting")throw new Error("onopen called with socket not in connecting state");this.setSocketState({state:"ready",ws:a,paused:this.socket.paused==="yes"?"uninitialized":"no"}),this.resetServerInactivityTimeout(),this.socket.paused==="no"&&(this._hasEverConnected=!0,this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason})),this.lastCloseReason!=="InitialConnect"&&this.logger.log("WebSocket reconnected"),this.connectionCount+=1,this.lastCloseReason=null},a.onerror=s=>{const o=s.message;this.logger.log(`WebSocket error: ${o}`)},a.onmessage=s=>{this.resetServerInactivityTimeout();const o=Rx(JSON.parse(s.data));this._logVerbose(`received ws message with type ${o.type}`),this.onMessage(o).hasSyncedPastLastReconnect&&(this.retries=0,this.markConnectionStateDirty())},a.onclose=s=>{if(this._logVerbose("begin ws.onclose"),this.lastCloseReason===null&&(this.lastCloseReason=s.reason??"OnCloseInvoked"),s.code!==kx&&s.code!==Mx&&s.code!==Nx&&s.code!==Dx){let c=`WebSocket closed with code ${s.code}`;s.reason&&(c+=`: ${s.reason}`),this.logger.log(c),this.onServerDisconnectError&&s.reason&&this.onServerDisconnectError(c)}const o=Ux(s.reason);this.scheduleReconnect(o)}}socketState(){return this.socket.state}sendMessage(a){const s={type:a.type,...a.type==="Authenticate"&&a.tokenType==="User"?{value:`...${a.value.slice(-7)}`}:{}};if(this.socket.state==="ready"&&this.socket.paused==="no"){const o=Ax(a),c=JSON.stringify(o);try{this.socket.ws.send(c)}catch(d){this.logger.log(`Failed to send message on WebSocket, reconnecting: ${d}`),this.closeAndReconnect("FailedToSendMessage")}return this._logVerbose(`sent message with type ${a.type}: ${JSON.stringify(s)}`),!0}return this._logVerbose(`message not sent (socket state: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}): ${JSON.stringify(s)}`),!1}resetServerInactivityTimeout(){this.socket.state!=="terminated"&&(this.reconnectDueToServerInactivityTimeout!==null&&(clearTimeout(this.reconnectDueToServerInactivityTimeout),this.reconnectDueToServerInactivityTimeout=null),this.reconnectDueToServerInactivityTimeout=setTimeout(()=>{this.closeAndReconnect("InactiveServer")},this.serverInactivityThreshold))}scheduleReconnect(a){this.socket={state:"disconnected"};const s=this.nextBackoff(a);this.markConnectionStateDirty(),this.logger.log(`Attempting reconnect in ${s}ms`),setTimeout(()=>this.connect(),s)}closeAndReconnect(a){switch(this._logVerbose(`begin closeAndReconnect with reason ${a}`),this.socket.state){case"disconnected":case"terminated":case"stopped":return;case"connecting":case"ready":{this.lastCloseReason=a,this.close(),this.scheduleReconnect("client");return}default:this.socket}}close(){switch(this.socket.state){case"disconnected":case"terminated":case"stopped":return Promise.resolve();case"connecting":{const a=this.socket.ws;return new Promise(s=>
61{a.onclose=()=>{this._logVerbose("Closed after connecting"),s()},a.onopen=()=>{this._logVerbose("Opened after connecting"),a.close()}})}case"ready":{this._logVerbose("ws.close called");const a=this.socket.ws,s=new Promise(o=>{a.onclose=()=>{o()}});return a.close(),s}default:return this.socket,Promise.resolve()}}terminate(){switch(this.reconnectDueToServerInactivityTimeout&&clearTimeout(this.reconnectDueToServerInactivityTimeout),this.socket.state){case"terminated":case"stopped":case"disconnected":case"connecting":case"ready":{const a=this.close();return this.setSocketState({state:"terminated"}),a}default:throw this.socket,new Error(`Invalid websocket state: ${this.socket.state}`)}}stop(){switch(this.socket.state){case"terminated":return Promise.resolve();case"connecting":case"stopped":case"disconnected":case"ready":{const a=this.close();return this.socket={state:"stopped"},a}default:return this.socket,Promise.resolve()}}tryRestart(){switch(this.socket.state){case"stopped":break;case"terminated":case"connecting":case"ready":case"disconnected":this.logger.logVerbose("Restart called without stopping first");return;default:this.socket}this.connect()}pause(){switch(this.socket.state){case"disconnected":case"stopped":case"terminated":return;case"connecting":case"ready":{this.socket={...this.socket,paused:"yes"};return}default:{this.socket;return}}}resume(){switch(this.socket.state){case"connecting":this.socket={...this.socket,paused:"no"};return;case"ready":this.socket.paused==="uninitialized"?(this.socket={...this.socket,paused:"no"},this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason})):this.socket.paused==="yes"&&(this.socket={...this.socket,paused:"no"},this.onResume());return;case"terminated":case"stopped":case"disconnected":return;default:this.socket}this.connect()}connectionState(){return{isConnected:this.socket.state==="ready",hasEverConnected:this._hasEverConnected,connectionCount:this.connectionCount,connectionRetries:this.retries}}_logVerbose(a){this.logger.logVerbose(a)}nextBackoff(a){const o=(a==="client"?100:a==="Unknown"?this.defaultInitialBackoff:Oy[a].timeout)*Math.pow(2,this.retries);this.retries+=1;const c=Math.min(o,this.maxBackoff),d=c*(Math.random()-.5);return c+d}}function zx(){return Lx()}function Lx(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const a=Math.random()*16|0;return(n==="x"?a:a&3|8).toString(16)})}class ur extends Error{}ur.prototype.name="InvalidTokenError";function Bx(n){return decodeURIComponent(atob(n).replace(/(.)/g,(a,s)=>{let o=s.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function jx(n){let a=n.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Bx(a)}catch{return atob(a)}}function ky(n,a){if(typeof n!="string")throw new ur("Invalid token specified: must be a string");a||(a={});const s=a.header===!0?0:1,o=n.split(".")[s];if(typeof o!="string")throw new ur(`Invalid token specified: missing part #${s+1}`);let c;try{c=jx(o)}catch(d){throw new ur(`Invalid token specified: invalid base64 for part #${s+1} (${d.message})`)}try{return JSON.parse(c)}catch(d){throw new ur(`Invalid token specified: invalid json for part #${s+1} (${d.message})`)}}var Hx=Object.defineProperty,Vx=(n,a,s)=>a in n?Hx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Ft=(n,a,s)=>Vx(n,typeof a!="symbol"?a+"":a,s);const Px=480*60*60*1e3,pp=2;class Qx{constructor(a,s,o){Ft(this,"authState",{state:"noAuth"}),Ft(this,"configVersion",0),Ft(this,"syncState"),Ft(this,"authenticate"),Ft(this,"stopSocket"),Ft(this,"tryRestartSocket"),Ft(this,"pauseSocket"),Ft(this,"resumeSocket"),Ft(this,"clearAuth"),Ft(this,"logger"),Ft(this,"refreshTokenLeewaySeconds"),Ft(this,"tokenConfirmationAttempts",0),this.syncState=a,this.authenticate=s.authenticate,this.stopSocket=s.stopSocket,this.tryRestartSocket=s.tryRestartSocket,this.pauseSocket=s.pauseSocket,this.resumeSocket=s.resumeSocket,this.clearAuth=s.clearAuth,this.logger=o.logger,this.refreshTokenLeewaySeconds=o.refreshTokenLeewaySeconds}async setConfig(a,s){this.resetAuthState(),this._logVerbose("pausing WS for auth token fetch"),this.pauseSocket();const o=await this.fetchTokenAndGuardAgainstRace(a,{forceRefreshToken:!1});o.isFromOutdatedConfig||(o.value?(this.setAuthState({state:"waitingForServerConfirmationOfCachedToken",config:{fetchToken:a,onAuthChange:s},hasRetried:!1}),this.authenticate(o.value)):(this.setAuthState({state:"initialRefetch",config:{fetchToken:a,onAuthChange:s}}),await this.refetchToken()),this._logVerbose("resuming WS after auth token fetch"),this.resumeSocket())}
61onTransition(a){if(this.syncState.isCurrentOrNewerAuthVersion(a.endVersion.identity)&&!(a.endVersion.identity<=a.startVersion.identity)){if(this.authState.state==="waitingForServerConfirmationOfCachedToken"){this._logVerbose("server confirmed auth token is valid"),this.refetchToken(),this.authState.config.onAuthChange(!0);return}this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this._logVerbose("server confirmed new auth token is valid"),this.scheduleTokenRefetch(this.authState.token),this.tokenConfirmationAttempts=0,this.authState.hadAuth||this.authState.config.onAuthChange(!0))}}onAuthError(a){if(a.authUpdateAttempted===!1&&(this.authState.state==="waitingForServerConfirmationOfFreshToken"||this.authState.state==="waitingForServerConfirmationOfCachedToken")){this._logVerbose("ignoring non-auth token expired error");return}const{baseVersion:s}=a;if(!this.syncState.isCurrentOrNewerAuthVersion(s+1)){this._logVerbose("ignoring auth error for previous auth attempt");return}this.tryToReauthenticate(a)}async tryToReauthenticate(a){if(this._logVerbose(`attempting to reauthenticate: ${a.error}`),this.authState.state==="noAuth"||this.authState.state==="waitingForServerConfirmationOfFreshToken"&&this.tokenConfirmationAttempts>=pp){this.logger.error(`Failed to authenticate: "${a.error}", check your server auth config`),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.authState.state!=="noAuth"&&this.setAndReportAuthFailed(this.authState.config.onAuthChange);return}this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this.tokenConfirmationAttempts++,this._logVerbose(`retrying reauthentication, ${pp-this.tokenConfirmationAttempts} attempts remaining`)),await this.stopSocket();const s=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});s.isFromOutdatedConfig||(s.value&&this.syncState.isNewAuth(s.value)?(this.authenticate(s.value),this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",config:this.authState.config,token:s.value,hadAuth:this.authState.state==="notRefetching"||this.authState.state==="waitingForScheduledRefetch"})):(this._logVerbose("reauthentication failed, could not fetch a new token"),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this.tryRestartSocket())}async refetchToken(){if(this.authState.state==="noAuth")return;this._logVerbose("refetching auth token");const a=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});a.isFromOutdatedConfig||(a.value?this.syncState.isNewAuth(a.value)?(this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",hadAuth:this.syncState.hasAuth(),token:a.value,config:this.authState.config}),this.authenticate(a.value)):this.setAuthState({state:"notRefetching",config:this.authState.config}):(this._logVerbose("refetching token failed"),this.syncState.hasAuth()&&this.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this._logVerbose("restarting WS after auth token fetch (if currently stopped)"),this.tryRestartSocket())}scheduleTokenRefetch(a){if(this.authState.state==="noAuth")return;const s=this.decodeToken(a);if(!s){this.logger.error("Auth token is not a valid JWT, cannot refetch the token");return}const{iat:o,exp:c}=s;if(!o||!c){this.logger.error("Auth token does not have required fields, cannot refetch the token");return}const d=c-o;if(d<=2){this.logger.error("Auth token does not live long enough, cannot refetch the token");return}let f=Math.min(Px,(d-this.refreshTokenLeewaySeconds)*1e3);f<=0&&(this.logger.warn(`Refetching auth token immediately, configured leeway ${this.refreshTokenLeewaySeconds}s is larger than the token's lifetime ${d}s`),f=0);const m=setTimeout(()=>{this._logVerbose("running scheduled token refetch"),this.refetchToken()},f);this.setAuthState({state:"waitingForScheduledRefetch",refetchTokenTimeoutId:m,config:this.authState.config}),this._logVerbose(`scheduled preemptive auth token refetching in ${f}ms`)}async fetchTokenAndGuardAgainstRace(a,s){const o=++this.configVersion;this._logVerbose(`fetching token with config version ${o}`);const c=await a(s);
61return this.configVersion!==o?(this._logVerbose(`stale config version, expected ${o}, got ${this.configVersion}`),{isFromOutdatedConfig:!0}):{isFromOutdatedConfig:!1,value:c}}stop(){this.resetAuthState(),this.configVersion++,this._logVerbose(`config version bumped to ${this.configVersion}`)}setAndReportAuthFailed(a){a(!1),this.resetAuthState()}resetAuthState(){this.setAuthState({state:"noAuth"})}setAuthState(a){const s=a.state==="waitingForServerConfirmationOfFreshToken"?{hadAuth:a.hadAuth,state:a.state,token:`...${a.token.slice(-7)}`}:{state:a.state};switch(this._logVerbose(`setting auth state to ${JSON.stringify(s)}`),a.state){case"waitingForScheduledRefetch":case"notRefetching":case"noAuth":this.tokenConfirmationAttempts=0;break}this.authState.state==="waitingForScheduledRefetch"&&(clearTimeout(this.authState.refetchTokenTimeoutId),this.syncState.markAuthCompletion()),this.authState=a}decodeToken(a){try{return ky(a)}catch(s){return this._logVerbose(`Error decoding token: ${s instanceof Error?s.message:"Unknown error"}`),null}}_logVerbose(a){this.logger.logVerbose(`${a} [v${this.configVersion}]`)}}const Ix=["convexClientConstructed","convexWebSocketOpen","convexFirstMessageReceived"];function Yx(n,a){const s={sessionId:a};typeof performance>"u"||!performance.mark||performance.mark(n,{detail:s})}function Gx(n){let a=n.name.slice(6);return a=a.charAt(0).toLowerCase()+a.slice(1),{name:a,startTime:n.startTime}}function $x(n){if(typeof performance>"u"||!performance.getEntriesByName)return[];const a=[];for(const s of Ix){const o=performance.getEntriesByName(s).filter(c=>c.entryType==="mark").filter(c=>c.detail.sessionId===n);a.push(...o)}return a.map(Gx)}var Xx=Object.defineProperty,Kx=(n,a,s)=>a in n?Xx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Je=(n,a,s)=>Kx(n,typeof a!="symbol"?a+"":a,s);class Fx{constructor(a,s,o){if(Je(this,"address"),Je(this,"state"),Je(this,"requestManager"),Je(this,"webSocketManager"),Je(this,"authenticationManager"),Je(this,"remoteQuerySet"),Je(this,"optimisticQueryResults"),Je(this,"_transitionHandlerCounter",0),Je(this,"_nextRequestId"),Je(this,"_onTransitionFns",new Map),Je(this,"_sessionId"),Je(this,"firstMessageReceived",!1),Je(this,"debug"),Je(this,"logger"),Je(this,"maxObservedTimestamp"),Je(this,"connectionStateSubscribers",new Map),Je(this,"nextConnectionStateSubscriberId",0),Je(this,"_lastPublishedConnectionState"),Je(this,"markConnectionStateDirty",()=>{Promise.resolve().then(()=>{const x=this.connectionState();if(JSON.stringify(x)!==JSON.stringify(this._lastPublishedConnectionState)){this._lastPublishedConnectionState=x;for(const E of this.connectionStateSubscribers.values())E(x)}})}),Je(this,"mark",x=>{this.debug&&Yx(x,this.sessionId)}),typeof a=="object")throw new Error("Passing a ClientConfig object is no longer supported. Pass the URL of the Convex deployment as a string directly.");o?.skipConvexDeploymentUrlCheck!==!0&&IS(a),o={...o};const c=o.authRefreshTokenLeewaySeconds??2;let d=o.webSocketConstructor;if(!d&&typeof WebSocket>"u")throw new Error("No WebSocket global variable defined! To use Convex in an environment without WebSocket try the HTTP client: https://docs.convex.dev/api/classes/browser.ConvexHttpClient");d=d||WebSocket,this.debug=o.reportDebugInfoToConvex??!1,this.address=a,this.logger=o.logger===!1?Ay({verbose:o.verbose??!1}):o.logger!==!0&&o.logger?o.logger:Ry({verbose:o.verbose??!1});const f=a.search("://");if(f===-1)throw new Error("Provided address was not an absolute URL.");const m=a.substring(f+3),g=a.substring(0,f);let h;if(g==="http")h="ws";else if(g==="https")h="wss";else throw new Error(`Unknown parent protocol ${g}`);const v=`${h}://${m}/api/${dp}/sync`;this.state=new lx,this.remoteQuerySet=new mp(x=>this.state.queryPath(x),this.logger),this.requestManager=new dx(this.logger,this.markConnectionStateDirty);const y=()=>{this.webSocketManager.pause(),this.state.pause()};this.authenticationManager=new Qx(this.state,{authenticate:x=>{const E=this.state.setAuth(x);return this.webSocketManager.sendMessage(E),E.baseVersion},stopSocket:()=>this.webSocketManager.stop(),tryRestartSocket:()=>this.webSocketManager.tryRestart(),pauseSocket:y,resumeSocket:()=>this.webSocketManager.resume(),clearAuth:()=>{this.clearAuth()}},{logger:this.logger,refreshTokenLeewaySeconds:c}),this.optimisticQueryResults=new vx,this.addOnTransitionHandler(x=>{s(x.queries.map(E=>E.token))}),this._nextRequestId=0,this._sessionId=zx();const{unsavedChangesWarning:S}=o;if(typeof window>"u"||typeof window.addEventListener>"u"){if(S===!0)throw new Error("unsavedChangesWarning requested, but window.addEventListener not found! Remove {unsavedChangesWarning: true} from Convex client options.")}else S!==!1&&window.addEventListener("beforeunload",x=>{if(this.requestManager.hasIncompleteRequests()){x.preventDefault();const E="Are you sure you want to leave? Your changes may not be saved.";return(x||window.event).returnValue=E,E}});this.webSocketManager=new qx(v,{onOpen:x=>{this.mark("convexWebSocketOpen"),this.webSocketManager.sendMessage({...x,type:"C
61onnect",sessionId:this._sessionId,maxObservedTimestamp:this.maxObservedTimestamp});const E=new Set(this.remoteQuerySet.remoteQueryResults().keys());this.remoteQuerySet=new mp(C=>this.state.queryPath(C),this.logger);const[k,A]=this.state.restart(E);A&&this.webSocketManager.sendMessage(A),this.webSocketManager.sendMessage(k);for(const C of this.requestManager.restart())this.webSocketManager.sendMessage(C)},onResume:()=>{const[x,E]=this.state.resume();E&&this.webSocketManager.sendMessage(E),x&&this.webSocketManager.sendMessage(x);for(const k of this.requestManager.resume())this.webSocketManager.sendMessage(k)},onMessage:x=>{switch(this.firstMessageReceived||(this.firstMessageReceived=!0,this.mark("convexFirstMessageReceived"),this.reportMarks()),x.type){case"Transition":{this.observedTimestamp(x.endVersion.ts),this.authenticationManager.onTransition(x),this.remoteQuerySet.transition(x),this.state.transition(x);const E=this.requestManager.removeCompleted(this.remoteQuerySet.timestamp());this.notifyOnQueryResultChanges(E);break}case"MutationResponse":{x.success&&this.observedTimestamp(x.ts);const E=this.requestManager.onResponse(x);E!==null&&this.notifyOnQueryResultChanges(new Map([[E.requestId,E.result]]));break}case"ActionResponse":{this.requestManager.onResponse(x);break}case"AuthError":{this.authenticationManager.onAuthError(x);break}case"FatalError":{const E=sx(this.logger,x.error);throw this.webSocketManager.terminate(),E}}return{hasSyncedPastLastReconnect:this.hasSyncedPastLastReconnect()}},onServerDisconnectError:o.onServerDisconnectError},d,this.logger,this.markConnectionStateDirty),this.mark("convexClientConstructed"),o.expectAuth&&y()}hasSyncedPastLastReconnect(){return this.requestManager.hasSyncedPastLastReconnect()||this.state.hasSyncedPastLastReconnect()}observedTimestamp(a){(this.maxObservedTimestamp===void 0||this.maxObservedTimestamp.lessThanOrEqual(a))&&(this.maxObservedTimestamp=a)}getMaxObservedTimestamp(){return this.maxObservedTimestamp}notifyOnQueryResultChanges(a){const s=this.remoteQuerySet.remoteQueryResults(),o=new Map;for(const[d,f]of s){const m=this.state.queryToken(d);if(m!==null){const g={result:f,udfPath:this.state.queryPath(d),args:this.state.queryArgs(d)};o.set(m,g)}}const c=this.optimisticQueryResults.ingestQueryResultsFromServer(o,new Set(a.keys()));this.handleTransition({queries:c.map(d=>{const f=this.optimisticQueryResults.rawQueryResult(d);return{token:d,modification:{kind:"Updated",result:f.result}}}),reflectedMutations:Array.from(a).map(([d,f])=>({requestId:d,result:f})),timestamp:this.remoteQuerySet.timestamp()})}handleTransition(a){for(const s of this._onTransitionFns.values())s(a)}addOnTransitionHandler(a){const s=this._transitionHandlerCounter++;return this._onTransitionFns.set(s,a),()=>this._onTransitionFns.delete(s)}setAuth(a,s){this.authenticationManager.setConfig(a,s)}hasAuth(){return this.state.hasAuth()}setAdminAuth(a,s){const o=this.state.setAdminAuth(a,s);this.webSocketManager.sendMessage(o)}clearAuth(){const a=this.state.clearAuth();this.webSocketManager.sendMessage(a)}subscribe(a,s,o){const c=Ra(s),{modification:d,queryToken:f,unsubscribe:m}=this.state.subscribe(a,c,o?.journal,o?.componentPath);return d!==null&&this.webSocketManager.sendMessage(d),{queryToken:f,unsubscribe:()=>{const g=m();g&&this.webSocketManager.sendMessage(g)}}}localQueryResult(a,s){const o=Ra(s),c=ei(a,o);return this.optimisticQueryResults.queryResult(c)}localQueryResultByToken(a){return this.optimisticQueryResults.queryResult(a)}hasLocalQueryResultByToken(a){return this.optimisticQueryResults.hasQueryResult(a)}localQueryLogs(a,s){const o=Ra(s),c=ei(a,o);return this.optimisticQueryResults.queryLogs(c)}queryJournal(a,s){const o=Ra(s),c=ei(a,o);return this.state.queryJournal(c)}connectionState(){const a=this.webSocketManager.connectionState();return{hasInflightRequests:this.requestManager.hasInflightRequests(),isWebSocketConnected:a.isConnected,hasEverConnected:a.hasEverConnected,connectionCount:a.connectionCount,connectionRetries:a.connectionRetries,timeOfOldestInflightRequest:this.requestManager.timeOfOldestInflightRequest(),inflightMutations:this.requestManager.inflightMutations(),inflightActions:this.requestManager.inflightActions()}}subscribeToConnectionState(a){const s=this.nextConnectionStateSubscriberId++;return this.connectionStateSubscribers.set(s,a),()=>{this.connectionStateSubscribers.delete(s)}}async mutation(a,s,o){const c=await this.mutationInternal(a,s,o);if(!c.success)throw c.errorData!==void 0?pd(c,new md(Fi("mutation",a,c))):new Error(Fi("mutation",a,c));return c.value}async mutationInternal(a,s,o,c){const{mutationPromise:d}=this.enqueueMutation(a,s,o,c);return d}enqueueMutation(a,s,o,c){const d=Ra(s);this.tryReportLongDisconnect();const f=this.nextRequestId;if(this._nextRequestId++,o!==void 0){const v=o.optimisticUpdate;if(v!==void 0){const y=E=>{v(E,d)instanceof Promise&&this.logger.warn("Optimistic update handler returned a Promise. Optimistic updates should be synchronous.")},x=this.optimisticQueryResults.applyOptimisticUpdate(y,f).map(E=>{const k=this.localQueryResultByToken(E);return{token:E,modification:{kind:"Updated",result:k===void 0?void 0:{success:!0,value:k,logLines:[]}}}});this.handleTransition({queries:x,reflectedMutations:[],timestamp:this.remoteQuerySet.timestamp()})}}const m={type:"Mutation",requestId:f,udfPath:a,componentPath:c,args:[pr(d)]},g=this.webSocketManager.sendMessage(m),h=this.requestManager.request(m,g);return{requestId:f,mutationPromise:h}}async action(a,s){const o=await this.actionInternal(a,s);if(!o.success)throw o.errorData!==void 0?pd(o,new md(Fi("action",a,o))):new Error(Fi("action",a,o));return o.value}async actionInternal(a,s,o){const c=Ra(s),d=this.nextRequestId;this._nextRequestId++,this.tryReportLongDisconnect();const f={type:"Action",requestId:d,udfPath:a,componentPath:o,args:[pr(c)]},m=this.webSocketManager.sendMessage(f);return this.requestManager.request(f,m)}async close(){return this.authenticationManager.stop(),this.webSocketManager.terminate()}get url(){return this.address}get nextRequestId(){return this._nextRequestId}get sessionId(){return this._sessionId}
61reportMarks(){if(this.debug){const a=$x(this.sessionId);this.webSocketManager.sendMessage({type:"Event",eventType:"ClientConnect",event:a})}}tryReportLongDisconnect(){if(!this.debug)return;const a=this.connectionState().timeOfOldestInflightRequest;if(a===null||Date.now()-a.getTime()<=60*1e3)return;const s=`${this.address}/api/debug_event`;fetch(s,{method:"POST",headers:{"Content-Type":"application/json","Convex-Client":`npm-${dp}`},body:JSON.stringify({event:"LongWebsocketDisconnect"})}).then(o=>{o.ok||this.logger.warn("Analytics request failed with response:",o.body)}).catch(o=>{this.logger.warn("Analytics response failed with error:",o)})}}var Zx=Object.defineProperty,Jx=(n,a,s)=>a in n?Zx(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Ea=(n,a,s)=>Jx(n,typeof a!="symbol"?a+"":a,s);const Wx=5e3;if(typeof K>"u")throw new Error("Required dependency 'react' not found");class e_{constructor(a,s){if(Ea(this,"address"),Ea(this,"cachedSync"),Ea(this,"listeners"),Ea(this,"options"),Ea(this,"closed",!1),Ea(this,"_logger"),Ea(this,"adminAuth"),Ea(this,"fakeUserIdentity"),a===void 0)throw new Error("No address provided to ConvexReactClient.\nIf trying to deploy to production, make sure to follow all the instructions found at https://docs.convex.dev/production/hosting/\nIf running locally, make sure to run `convex dev` and ensure the .env.local file is populated.");if(typeof a!="string")throw new Error(`ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud', received something of type ${typeof a} instead.`);if(!a.includes("://"))throw new Error("Provided address was not an absolute URL.");this.address=a,this.listeners=new Map,this._logger=s?.logger===!1?Ay({verbose:s?.verbose??!1}):s?.logger!==!0&&s?.logger?s.logger:Ry({verbose:s?.verbose??!1}),this.options={...s,logger:this._logger}}get url(){return this.address}get sync(){if(this.closed)throw new Error("ConvexReactClient has already been closed.");return this.cachedSync?this.cachedSync:(this.cachedSync=new Fx(this.address,a=>this.transition(a),this.options),this.adminAuth&&this.cachedSync.setAdminAuth(this.adminAuth,this.fakeUserIdentity),this.cachedSync)}setAuth(a,s){if(typeof a=="string")throw new Error("Passing a string to ConvexReactClient.setAuth is no longer supported, please upgrade to passing in an async function to handle reauthentication.");this.sync.setAuth(a,s??(()=>{}))}clearAuth(){this.sync.clearAuth()}setAdminAuth(a,s){if(this.adminAuth=a,this.fakeUserIdentity=s,this.closed)throw new Error("ConvexReactClient has already been closed.");this.cachedSync&&this.sync.setAdminAuth(a,s)}watchQuery(a,...s){const[o,c]=s,d=Zi(a);return{onUpdate:f=>{const{queryToken:m,unsubscribe:g}=this.sync.subscribe(d,o,c),h=this.listeners.get(m);return h!==void 0?h.add(f):this.listeners.set(m,new Set([f])),()=>{if(this.closed)return;const v=this.listeners.get(m);v.delete(f),v.size===0&&this.listeners.delete(m),g()}},localQueryResult:()=>{if(this.cachedSync)return this.cachedSync.localQueryResult(d,o)},localQueryLogs:()=>{if(this.cachedSync)return this.cachedSync.localQueryLogs(d,o)},journal:()=>{if(this.cachedSync)return this.cachedSync.queryJournal(d,o)}}}prewarmQuery(a){const s=a.extendSubscriptionFor??Wx,c=this.watchQuery(a.query,a.args||{}).onUpdate(()=>{});setTimeout(c,s)}mutation(a,...s){const[o,c]=s,d=Zi(a);return this.sync.mutation(d,o,c)}action(a,...s){const o=Zi(a);return this.sync.action(o,...s)}query(a,...s){const o=this.watchQuery(a,...s),c=o.localQueryResult();return c!==void 0?Promise.resolve(c):new Promise((d,f)=>{const m=o.onUpdate(()=>{m();try{d(o.localQueryResult())}catch(g){f(g)}})})}connectionState(){return this.sync.connectionState()}subscribeToConnectionState(a){return this.sync.subscribeToConnectionState(a)}get logger(){return this._logger}async close(){if(this.closed=!0,this.listeners=new Map,this.cachedSync){const a=this.cachedSync;this.cachedSync=void 0,await a.close()}}transition(a){for(const s of a){const o=this.listeners.get(s);if(o)for(const c of o)c()}}}const t_=K.createContext(void 0),n_=({client:n,children:a})=>K.createElement(t_.Provider,{value:n},a),a_=w.createContext(void 0);function i_({children:n,client:a,useAuth:s}){const{isLoading:o,isAuthenticated:c,fetchAccessToken:d}=s(),[f,m]=w.useState(null);return o&&f!==null&&m(null),!o&&!c&&f!==!1&&m(!1),K.createElement(a_.Provider,{value:{isLoading:f===null,isAuthenticated:c&&(f??!1)}},K.createElement(s_,{authProviderAuthenticated:c,fetchAccessToken:d,authProviderLoading:o,client:a,setIsConvexAuthenticated:m}),K.createElement(n_,{client:a},n),K.createElement(r_,{authProviderAuthenticated:c,fetchAccessToken:d,authProviderLoading:o,client:a,setIsConvexAuthenticated:m}))}function s_({authProviderAuthenticated:n,fetchAccessToken:a,authProviderLoading:s,client:o,setIsConvexAuthenticated:c}){return w.useEffect(()=>{let d=!0;if(n)return o.setAuth(a,f=>{d&&c(()=>f)}),()=>{d=!1,c(f=>f?!1:null)}},[n,a,s,o,c]),null}function r_({authProviderAuthenticated:n,fetchAccessToken:a,authProviderLoading:s,client:o,setIsConvexAuthenticated:c}){return w.useEffect(()=>{if(n)return()=>{o.clearAuth(),c(()=>null)}},[n,a,s,o,c]),null}var o_=(n,a,s,o,c,d,f,m)=>{let g=document.documentElement,h=["light","dark"];
61function v(x){(Array.isArray(n)?n:[n]).forEach(E=>{let k=E==="class",A=k&&d?c.map(C=>d[C]||C):c;k?(g.classList.remove(...A),g.classList.add(d&&d[x]?d[x]:x)):g.setAttribute(E,x)}),y(x)}function y(x){m&&h.includes(x)&&(g.style.colorScheme=x)}function S(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)v(o);else try{let x=localStorage.getItem(a)||s,E=f&&x==="system"?S():x;v(E)}catch{}},yp=["light","dark"],My="(prefers-color-scheme: dark)",l_=typeof window>"u",Yd=w.createContext(void 0),c_={setTheme:n=>{},themes:[]},u_=()=>{var n;return(n=w.useContext(Yd))!=null?n:c_},d_=n=>w.useContext(Yd)?w.createElement(w.Fragment,null,n.children):w.createElement(h_,{...n}),f_=["light","dark"],h_=({forcedTheme:n,disableTransitionOnChange:a=!1,enableSystem:s=!0,enableColorScheme:o=!0,storageKey:c="theme",themes:d=f_,defaultTheme:f=s?"system":"light",attribute:m="data-theme",value:g,children:h,nonce:v,scriptProps:y})=>{let[S,x]=w.useState(()=>m_(c,f)),[E,k]=w.useState(()=>S==="system"?Zu():S),A=g?Object.values(g):d,C=w.useCallback(j=>{let X=j;if(!X)return;j==="system"&&s&&(X=Zu());let Z=g?g[X]:X,$=a?p_(v):null,ee=document.documentElement,ce=ge=>{ge==="class"?(ee.classList.remove(...A),Z&&ee.classList.add(Z)):ge.startsWith("data-")&&(Z?ee.setAttribute(ge,Z):ee.removeAttribute(ge))};if(Array.isArray(m)?m.forEach(ce):ce(m),o){let ge=yp.includes(f)?f:null,he=yp.includes(X)?X:ge;ee.style.colorScheme=he}$?.()},[v]),L=w.useCallback(j=>{let X=typeof j=="function"?j(S):j;x(X);try{localStorage.setItem(c,X)}catch{}},[S]),V=w.useCallback(j=>{let X=Zu(j);k(X),S==="system"&&s&&!n&&C("system")},[S,n]);w.useEffect(()=>{let j=window.matchMedia(My);return j.addListener(V),V(j),()=>j.removeListener(V)},[V]),w.useEffect(()=>{let j=X=>{X.key===c&&(X.newValue?x(X.newValue):L(f))};return window.addEventListener("storage",j),()=>window.removeEventListener("storage",j)},[L]),w.useEffect(()=>{C(n??S)},[n,S]);let F=w.useMemo(()=>({theme:S,setTheme:L,forcedTheme:n,resolvedTheme:S==="system"?E:S,themes:s?[...d,"system"]:d,systemTheme:s?E:void 0}),[S,L,n,E,s,d]);return w.createElement(Yd.Provider,{value:F},w.createElement(g_,{forcedTheme:n,storageKey:c,attribute:m,enableSystem:s,enableColorScheme:o,defaultTheme:f,value:g,themes:d,nonce:v,scriptProps:y}),h)},g_=w.memo(({forcedTheme:n,storageKey:a,attribute:s,enableSystem:o,enableColorScheme:c,defaultTheme:d,value:f,themes:m,nonce:g,scriptProps:h})=>{let v=JSON.stringify([s,a,d,n,m,f,o,c]).slice(1,-1);return w.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?g:"",dangerouslySetInnerHTML:{__html:`(${o_.toString()})(${v})`}})}),m_=(n,a)=>{if(l_)return;let s;try{s=localStorage.getItem(n)||void 0}catch{}return s||a},p_=n=>{let a=document.createElement("style");return n&&a.setAttribute("nonce",n),a.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(a),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(a)},1)}},Zu=n=>(n||(n=window.matchMedia(My)),n.matches?"dark":"light");const y_="https://sensible-warthog-12.convex.cloud",v_=new e_(y_);var b_={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},bn,wn,cl=(n=>(n[n.NONE=0]="NONE",n[n.ERROR=1]="ERROR",n[n.WARN=2]="WARN",n[n.INFO=3]="INFO",n[n.DEBUG=4]="DEBUG",n))(cl||{});(n=>{function a(){bn=3,wn=b_}n.reset=a;function s(c){if(!(0<=c&&c<=4))throw new Error("Invalid log level");bn=c}n.setLevel=s;function o(c){wn=c}n.setLogger=o})(cl||(cl={}));var Re=class yn{constructor(a){this._name=a}debug(...a){bn>=4&&wn.debug(yn._format(this._name,this._method),...a)}info(...a){bn>=3&&wn.info(yn._format(this._name,this._method),...a)}warn(...a){bn>=2&&wn.warn(yn._format(this._name,this._method),...a)}error(...a){bn>=1&&wn.error(yn._format(this._name,this._method),...a)}throw(a){throw this.error(a),a}create(a){const s=Object.create(this);return s._method=a,s.debug("begin"),s}static createStatic(a,s){const o=new yn(`${a}.${s}`);return o.debug("begin"),o}static _format(a,s){const o=`[${a}]`;return s?`${o} ${s}:`:o}
61static debug(a,...s){bn>=4&&wn.debug(yn._format(a),...s)}static info(a,...s){bn>=3&&wn.info(yn._format(a),...s)}static warn(a,...s){bn>=2&&wn.warn(yn._format(a),...s)}static error(a,...s){bn>=1&&wn.error(yn._format(a),...s)}};cl.reset();var ul=class{static decode(n){try{return ky(n)}catch(a){throw Re.error("JwtUtils.decode",a),a}}static async generateSignedJwt(n,a,s){const o=Ot.encodeBase64Url(new TextEncoder().encode(JSON.stringify(n))),c=Ot.encodeBase64Url(new TextEncoder().encode(JSON.stringify(a))),d=`${o}.${c}`,f=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},s,new TextEncoder().encode(d)),m=Ot.encodeBase64Url(new Uint8Array(f));return`${d}.${m}`}},w_="10000000-1000-4000-8000-100000000000",yd=n=>btoa([...new Uint8Array(n)].map(a=>String.fromCharCode(a)).join("")),Ny=class vn{static _randomWord(){const a=new Uint32Array(1);return crypto.getRandomValues(a),a[0]}static generateUUIDv4(){return w_.replace(/[018]/g,s=>(+s^vn._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return vn.generateUUIDv4()+vn.generateUUIDv4()+vn.generateUUIDv4()}static async generateCodeChallenge(a){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const o=new TextEncoder().encode(a),c=await crypto.subtle.digest("SHA-256",o);return yd(c).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw Re.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(a,s){const c=new TextEncoder().encode([a,s].join(":"));return yd(c)}static async hash(a,s){const o=new TextEncoder().encode(s),c=await crypto.subtle.digest(a,o);return new Uint8Array(c)}static async customCalculateJwkThumbprint(a){let s;switch(a.kty){case"RSA":s={e:a.e,kty:a.kty,n:a.n};break;case"EC":s={crv:a.crv,kty:a.kty,x:a.x,y:a.y};break;case"OKP":s={crv:a.crv,kty:a.kty,x:a.x};break;case"oct":s={crv:a.k,kty:a.kty};break;default:throw new Error("Unknown jwk type")}const o=await vn.hash("SHA-256",JSON.stringify(s));return vn.encodeBase64Url(o)}static async generateDPoPProof({url:a,accessToken:s,httpMethod:o,keyPair:c,nonce:d}){let f,m;const g={jti:window.crypto.randomUUID(),htm:o??"GET",htu:a,iat:Math.floor(Date.now()/1e3)};s&&(f=await vn.hash("SHA-256",s),m=vn.encodeBase64Url(f),g.ath=m),d&&(g.nonce=d);try{const h=await crypto.subtle.exportKey("jwk",c.publicKey),v={alg:"ES256",typ:"dpop+jwt",jwk:{crv:h.crv,kty:h.kty,x:h.x,y:h.y}};return await ul.generateSignedJwt(v,g,c.privateKey)}catch(h){throw h instanceof TypeError?new Error(`Error exporting dpop public key: ${h.message}`):h}}static async generateDPoPJkt(a){try{const s=await crypto.subtle.exportKey("jwk",a.publicKey);return await vn.customCalculateJwkThumbprint(s)}catch(s){throw s instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${s.message}`):s}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}};Ny.encodeBase64Url=n=>yd(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var Ot=Ny,Aa=class{constructor(n){this._name=n,this._callbacks=[],this._logger=new Re(`Event('${this._name}')`)}addHandler(n){return this._callbacks.push(n),()=>this.removeHandler(n)}removeHandler(n){const a=this._callbacks.lastIndexOf(n);a>=0&&this._callbacks.splice(a,1)}async raise(...n){this._logger.debug("raise:",...n);for(const a of this._callbacks)await a(...n)}},vp=class{static center({...n}){var a,s,o;return n.width==null&&(n.width=(a=[800,720,600,480].find(c=>c<=window.outerWidth/1.618))!=null?a:360),(s=n.left)!=null||(n.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-n.width)/2))),n.height!=null&&((o=n.top)!=null||(n.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-n.height)/2)))),n}static serialize(n){return Object.entries(n).filter(([,a])=>a!=null).map(([a,s])=>`${a}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},Kn=class nl extends Aa{constructor(){super(...arguments),this._logger=new Re(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const a=this._expiration-nl.getEpochTime();this._logger.debug("timer completes in",a),this._expiration<=nl.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(a){const s=this._logger.create("init");a=Math.max(Math.floor(a),1);const o=nl.getEpochTime()+a;if(this.expiration===o&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",a),this._expiration=o;const c=Math.min(a,5);this._timerHandle=setInterval(this._callback,c*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},vd=class{static readParams(n,a="query"){if(!n)throw new TypeError("Invalid URL");const o=new URL(n,"http://127.0.0.1")[a==="fragment"?"hash":"search"];return new URLSearchParams(o.slice(1))}},ts=";
61",ti=class extends Error{constructor(n,a){var s,o,c;if(super(n.error_description||n.error||""),this.form=a,this.name="ErrorResponse",!n.error)throw Re.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=n.error,this.error_description=(s=n.error_description)!=null?s:null,this.error_uri=(o=n.error_uri)!=null?o:null,this.state=n.userState,this.session_state=(c=n.session_state)!=null?c:null,this.url_state=n.url_state}},Gd=class extends Error{constructor(n){super(n),this.name="ErrorTimeout"}},S_=class{constructor(n){this._logger=new Re("AccessTokenEvents"),this._expiringTimer=new Kn("Access token expiring"),this._expiredTimer=new Kn("Access token expired"),this._expiringNotificationTimeInSeconds=n.expiringNotificationTimeInSeconds}async load(n){const a=this._logger.create("load");if(n.access_token&&n.expires_in!==void 0){const s=n.expires_in;if(a.debug("access token present, remaining duration:",s),s>0){let c=s-this._expiringNotificationTimeInSeconds;c<=0&&(c=1),a.debug("registering expiring timer, raising in",c,"seconds"),this._expiringTimer.init(c)}else a.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const o=s+1;a.debug("registering expired timer, raising in",o,"seconds"),this._expiredTimer.init(o)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(n){return this._expiringTimer.addHandler(n)}removeAccessTokenExpiring(n){this._expiringTimer.removeHandler(n)}addAccessTokenExpired(n){return this._expiredTimer.addHandler(n)}removeAccessTokenExpired(n){this._expiredTimer.removeHandler(n)}},x_=class{constructor(n,a,s,o,c){this._callback=n,this._client_id=a,this._intervalInSeconds=o,this._stopOnError=c,this._logger=new Re("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=f=>{f.origin===this._frame_origin&&f.source===this._frame.contentWindow&&(f.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):f.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(f.data+" message from check session op iframe"))};const d=new URL(s);this._frame_origin=d.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=d.href}load(){return new Promise(n=>{this._frame.onload=()=>{n()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(n){if(this._session_state===n)return;this._logger.create("start"),this.stop(),this._session_state=n;const a=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};a(),this._timer=setInterval(a,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},Dy=class{constructor(){this._logger=new Re("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(n){return this._logger.create(`getItem('${n}')`),this._data[n]}setItem(n,a){this._logger.create(`setItem('${n}')`),this._data[n]=a}removeItem(n){this._logger.create(`removeItem('${n}')`),delete this._data[n]}get length(){return Object.getOwnPropertyNames(this._data).length}key(n){return Object.getOwnPropertyNames(this._data)[n]}},bd=class extends Error{constructor(n,a){super(a),this.name="ErrorDPoPNonce",this.nonce=n}},$d=class{constructor(n=[],a=null,s={}){this._jwtHandler=a,this._extraHeaders=s,this._logger=new Re("JsonService"),this._contentTypes=[],this._contentTypes.push(...n,"application/json"),a&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(n,a={}){const{timeoutInSeconds:s,...o}=a;if(!s)return await fetch(n,o);const c=new AbortController,d=setTimeout(()=>c.abort(),s*1e3);try{return await fetch(n,{...a,signal:c.signal})}catch(f){throw f instanceof DOMException&&f.name==="AbortError"?new Gd("Network timed out"):f}finally{clearTimeout(d)}}async getJson(n,{token:a,credentials:s,timeoutInSeconds:o}={}){const c=this._logger.create("getJson"),d={Accept:this._contentTypes.join(", ")};a&&(c.debug("token passed, setting Authorization header"),d.Authorization="Bearer "+a),this._appendExtraHeaders(d);let f;try{c.debug("url:",n),f=await this.fetchWithTimeout(n,{method:"GET",headers:d,timeoutInSeconds:o,credentials:s})}catch(h){throw c.error("Network Error"),h}c.debug("HTTP response received, status",f.status);const m=f.headers.get("Content-Type");if(m&&!this._contentTypes.find(h=>m.startsWith(h))&&c.throw(new Error(`Invalid response Content-Type: ${m??"undefined"}, from URL: ${n}`)),f.ok&&this._jwtHandler&&m?.startsWith("application/jwt"))return await this._jwtHandler(await f.text());let g;
61try{g=await f.json()}catch(h){throw c.error("Error parsing JSON response",h),f.ok?h:new Error(`${f.statusText} (${f.status})`)}if(!f.ok)throw c.error("Error from server:",g),g.error?new ti(g):new Error(`${f.statusText} (${f.status}): ${JSON.stringify(g)}`);return g}async postForm(n,{body:a,basicAuth:s,timeoutInSeconds:o,initCredentials:c,extraHeaders:d}){const f=this._logger.create("postForm"),m={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...d};s!==void 0&&(m.Authorization="Basic "+s),this._appendExtraHeaders(m);let g;try{f.debug("url:",n),g=await this.fetchWithTimeout(n,{method:"POST",headers:m,body:a,timeoutInSeconds:o,credentials:c})}catch(S){throw f.error("Network error"),S}f.debug("HTTP response received, status",g.status);const h=g.headers.get("Content-Type");if(h&&!this._contentTypes.find(S=>h.startsWith(S)))throw new Error(`Invalid response Content-Type: ${h??"undefined"}, from URL: ${n}`);const v=await g.text();let y={};if(v)try{y=JSON.parse(v)}catch(S){throw f.error("Error parsing JSON response",S),g.ok?S:new Error(`${g.statusText} (${g.status})`)}if(!g.ok){if(f.error("Error from server:",y),g.headers.has("dpop-nonce")){const S=g.headers.get("dpop-nonce");throw new bd(S,`${JSON.stringify(y)}`)}throw y.error?new ti(y,a):new Error(`${g.statusText} (${g.status}): ${JSON.stringify(y)}`)}return y}_appendExtraHeaders(n){const a=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),o=["accept","content-type"],c=["authorization"];s.length!==0&&s.forEach(d=>{if(o.includes(d.toLocaleLowerCase())){a.warn("Protected header could not be set",d,o);return}if(c.includes(d.toLocaleLowerCase())&&Object.keys(n).includes(d)){a.warn("Header could not be overridden",d,c);return}const f=typeof this._extraHeaders[d]=="function"?this._extraHeaders[d]():this._extraHeaders[d];f&&f!==""&&(n[d]=f)})}},__=class{constructor(n){this._settings=n,this._logger=new Re("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new $d(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const n=this._logger.create("getMetadata");if(this._metadata)return n.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw n.throw(new Error("No authority or metadataUrl configured on settings")),null;n.debug("getting metadata from",this._metadataUrl);const a=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return n.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},a,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(n=!0){return this._getMetadataProperty("token_endpoint",n)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(n=!0){return this._getMetadataProperty("revocation_endpoint",n)}getKeysEndpoint(n=!0){return this._getMetadataProperty("jwks_uri",n)}async _getMetadataProperty(n,a=!1){const s=this._logger.create(`_getMetadataProperty('${n}')`),o=await this.getMetadata();if(s.debug("resolved"),o[n]===void 0){if(a===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+n))}return o[n]}async getSigningKeys(){const n=this._logger.create("getSigningKeys");if(this._signingKeys)return n.debug("returning signingKeys from cache"),this._signingKeys;const a=await this.getKeysEndpoint(!1);n.debug("got jwks_uri",a);const s=await this._jsonService.getJson(a,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(n.debug("got key set",s),!Array.isArray(s.keys))throw n.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},Uy=class{constructor({prefix:n="oidc.",store:a=localStorage}={}){this._logger=new Re("WebStorageStateStore"),this._store=a,this._prefix=n}async set(n,a){this._logger.create(`set('${n}')`),n=this._prefix+n,await this._store.setItem(n,a)}async get(n){return this._logger.create(`get('${n}')`),n=this._prefix+n,await this._store.getItem(n)}async remove(n){this._logger.create(`remove('${n}')`),n=this._prefix+n;const a=await this._store.getItem(n);return await this._store.removeItem(n),a}async getAllKeys(){this._logger.create("getAllKeys");const n=await this._store.length,a=[];for(let s=0;s<n;s++){const o=await this._store.key(s);o&&o.indexOf(this._prefix)===0&&a.push(o.substr(this._prefix.length))}return a}},E_="code",T_="openid",R_="client_secret_post",A_=900,wd=class{constructor({authority:n,metadataUrl:a,metadata:s,signingKeys:o,metadataSeed:c,client_id:d,client_secret:f,response_type:m=E_,scope:g=T_,redirect_uri:h,post_logout_redirect_uri:v,client_authentication:y=R_,prompt:S,display:x,max_age:E,ui_locales:k,acr_values:A,resource:C,response_mode:L,filterProtocolClaims:V=!0,loadUserInfo:F=!1,requestTimeoutInSeconds:j,staleStateAgeInSeconds:X=A_,mergeClaimsStrategy:Z={array:"replace"},disablePKCE:$=!1,stateStore:ee,revokeTokenAdditionalContentTypes:ce,fetchRequestCredentials:ge,refreshTokenAllowedScope:he,extraQueryParams:ve={},extraTokenParams:we={},extraHeaders:me={},dpop:O,omitScopeWhenRequesting:Q=!1}){var B;if(this.authority=n,a?this.metadataUrl=a:(this.metadataUrl=n,n&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=s,this.metadataSeed=c,this.signingKeys=o,this.client_id=d,this.client_secret=f,this.response_type=m,this.scope=g,this.redirect_uri=h,this.post_logout_redirect_uri=v,this.client_authentication=y,this.prompt=S,this.display=x,this.max_age=E,this.ui_locales=k,this.acr_values=A,this.resource=C,this.response_mode=L,this.filterProtocolClaims=V??!0,this.loadUserInfo=!!F,this.staleStateAgeInSeconds=X,this.mergeClaimsStrategy=Z,this.omitScopeWhenRequesting=Q,this.disablePKCE=!!$,this.revokeTokenAdditionalContentTypes=ce,this.fetchRequestCredentials=ge||"same-origin",this.requestTimeoutInSeconds=j,ee)this.stateStore=ee;else{const re=typeof window<"u"?window.localStorage:new Dy;this.stateStore=new Uy({store:re})}if(this.refreshTokenAllowedScope=he,this.extraQueryParams=ve,this.extraTokenParams=we,this.extraHeaders=me,this.dpop=O,this.dpop&&!((B=this.dpop)!=null&&B.store))throw new Error("A DPoPStore is required when dpop is enabled")}},C_=class{constructor(n,a){this._settings=n,this._metadataService=a,this._logger=new Re("UserInfoService"),this._getClaimsFromJwt=async s=>{const o=this._logger.create("_getClaimsFromJwt");try{const c=ul.decode(s);return o.debug("JWT decoding successful"),c}catch(c){throw o.error("Error parsing JWT response"),c}},this._jsonService=new $d(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(n){const a=this._logger.create("getClaims");n||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();a.debug("got userinfo url",s);const o=await this._jsonService.getJson(s,{token:n,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return a.debug("got claims",o),o}},qy=class{constructor(n,a){this._settings=n,this._metadataService=a,this._logger=new Re("TokenClient"),this._jsonService=new $d(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:n="authorization_code",redirect_uri:a=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:o=this._settings.client_secret,extraHeaders:c,...d}){const f=this._logger.create("exchangeCode");s||f.throw(new Error("A client_id is required")),a||f.throw(new Error("A redirect_uri is required")),d.code||f.throw(new Error("A code is required"));const m=new URLSearchParams({grant_type:n,redirect_uri:a});for(const[y,S]of Object.entries(d))S!=null&&m.set(y,S);let g;switch(this._settings.client_authentication){case"client_secret_basic":if(o==null)throw f.throw(new Error("A client_secret is required")),null;g=Ot.generateBasicAuth(s,o);break;case"client_secret_post":m.append("client_id",s),o&&m.append("client_secret",o);break}const h=await this._metadataService.getTokenEndpoint(!1);f.debug("got token endpoint");const v=await this._jsonService.postForm(h,{body:m,basicAuth:g,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:c});return f.debug("got response"),v}async exchangeCredentials({grant_type:n="password",client_id:a=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:o=this._settings.scope,...c}){const d=this._logger.create("exchangeCredentials");a||d.throw(new Error("A client_id is required"));const f=new URLSearchParams({grant_type:n});this._settings.omitScopeWhenRequesting||f.set("scope",o);for(const[v,y]of Object.entries(c))y!=null&&f.set(v,y);let m;switch(this._settings.client_authentication){case"client_secret_basic":if(s==null)throw d.throw(new Error("A client_secret is required")),null;m=Ot.generateBasicAuth(a,s);break;case"client_secret_post":f.append("client_id",a),s&&f.append("client_secret",s);break}const g=await this._metadataService.getTokenEndpoint(!1);d.debug("got token endpoint");const h=await this._jsonService.postForm(g,{body:f,basicAuth:m,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return d.debug("got response"),h}async exchangeRefreshToken({grant_type:n="refresh_token",client_id:a=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:o,extraHeaders:c,...d}){const f=this._logger.create("exchangeRefreshToken");a||f.throw(new Error("A client_id is required")),d.refresh_token||f.throw(new Error("A refresh_token is required"));const m=new URLSearchParams({grant_type:n});
61for(const[y,S]of Object.entries(d))Array.isArray(S)?S.forEach(x=>m.append(y,x)):S!=null&&m.set(y,S);let g;switch(this._settings.client_authentication){case"client_secret_basic":if(s==null)throw f.throw(new Error("A client_secret is required")),null;g=Ot.generateBasicAuth(a,s);break;case"client_secret_post":m.append("client_id",a),s&&m.append("client_secret",s);break}const h=await this._metadataService.getTokenEndpoint(!1);f.debug("got token endpoint");const v=await this._jsonService.postForm(h,{body:m,basicAuth:g,timeoutInSeconds:o,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:c});return f.debug("got response"),v}async revoke(n){var a;const s=this._logger.create("revoke");n.token||s.throw(new Error("A token is required"));const o=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(a=n.token_type_hint)!=null?a:"default token type"}`);const c=new URLSearchParams;for(const[d,f]of Object.entries(n))f!=null&&c.set(d,f);c.set("client_id",this._settings.client_id),this._settings.client_secret&&c.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(o,{body:c,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),s.debug("got response")}},O_=class{constructor(n,a,s){this._settings=n,this._metadataService=a,this._claimsService=s,this._logger=new Re("ResponseValidator"),this._userInfoService=new C_(this._settings,this._metadataService),this._tokenClient=new qy(this._settings,this._metadataService)}async validateSigninResponse(n,a,s){const o=this._logger.create("validateSigninResponse");this._processSigninState(n,a),o.debug("state processed"),await this._processCode(n,a,s),o.debug("code processed"),n.isOpenId&&this._validateIdTokenAttributes(n),o.debug("tokens validated"),await this._processClaims(n,a?.skipUserInfo,n.isOpenId),o.debug("claims processed")}async validateCredentialsResponse(n,a){const s=this._logger.create("validateCredentialsResponse"),o=n.isOpenId&&!!n.id_token;o&&this._validateIdTokenAttributes(n),s.debug("tokens validated"),await this._processClaims(n,a,o),s.debug("claims processed")}async validateRefreshResponse(n,a){var s,o;const c=this._logger.create("validateRefreshResponse");n.userState=a.data,(s=n.session_state)!=null||(n.session_state=a.session_state),(o=n.scope)!=null||(n.scope=a.scope),n.isOpenId&&n.id_token&&(this._validateIdTokenAttributes(n,a.id_token),c.debug("ID Token validated")),n.id_token||(n.id_token=a.id_token,n.profile=a.profile);const d=n.isOpenId&&!!n.id_token;await this._processClaims(n,!1,d),c.debug("claims processed")}validateSignoutResponse(n,a){const s=this._logger.create("validateSignoutResponse");if(a.id!==n.state&&s.throw(new Error("State does not match")),s.debug("state validated"),n.userState=a.data,n.error)throw s.warn("Response was error",n.error),new ti(n)}_processSigninState(n,a){var s;const o=this._logger.create("_processSigninState");if(a.id!==n.state&&o.throw(new Error("State does not match")),a.client_id||o.throw(new Error("No client_id on state")),a.authority||o.throw(new Error("No authority on state")),this._settings.authority!==a.authority&&o.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==a.client_id&&o.throw(new Error("client_id mismatch on settings vs. signin state")),o.debug("state validated"),n.userState=a.data,n.url_state=a.url_state,(s=n.scope)!=null||(n.scope=a.scope),n.error)throw o.warn("Response was error",n.error),new ti(n);a.code_verifier&&!n.code&&o.throw(new Error("Expected code in response"))}async _processClaims(n,a=!1,s=!0){const o=this._logger.create("_processClaims");if(n.profile=this._claimsService.filterProtocolClaims(n.profile),a||!this._settings.loadUserInfo||!n.access_token){o.debug("not loading user info");return}o.debug("loading user info");const c=await this._userInfoService.getClaims(n.access_token);o.debug("user info claims received from user info endpoint"),s&&c.sub!==n.profile.sub&&o.throw(new Error("subject from UserInfo response does not match subject in ID Token")),n.profile=this._claimsService.mergeClaims(n.profile,this._claimsService.filterProtocolClaims(c)),o.debug("user info claims received, updated profile:",n.profile)}async _processCode(n,a,s){const o=this._logger.create("_processCode");if(n.code){o.debug("Validating code");const c=await this._tokenClient.exchangeCode({client_id:a.client_id,client_secret:a.client_secret,code:n.code,redirect_uri:a.redirect_uri,code_verifier:a.code_verifier,extraHeaders:s,...a.extraTokenParams});Object.assign(n,c)}else o.debug("No code to process")}_validateIdTokenAttributes(n,a){var s;const o=this._logger.create("_validateIdTokenAttributes");o.debug("decoding ID Token JWT");const c=ul.decode((s=n.id_token)!=null?s:"");if(c.sub||o.throw(new Error("ID Token is missing a subject claim")),a){const d=ul.decode(a);c.sub!==d.sub&&o.throw(new Error("sub in id_token does not match current sub")),c.auth_time&&c.auth_time!==d.auth_time&&o.throw(new Error("auth_time in id_token does not match original auth_time")),c.azp&&c.azp!==d.azp&&o.throw(new Error("azp in id_token does not match original azp")),!c.azp&&d.azp&&o.throw(new Error("azp not in id_token, but present in original id_token"))}n.profile=c}},dl=class Sd{constructor(a){this.id=a.id||Ot.generateUUIDv4(),this.data=a.data,a.created&&a.created>0?this.created=a.created:this.created=Kn.getEpochTime(),this.request_type=a.request_type,this.url_state=a.url_state}toStorageString(){return new Re("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(a){return Re.createStatic("State","fromStorageString"),Promise.resolve(new Sd(JSON.parse(a)))}static async clearStaleState(a,s){const o=Re.createStatic("State","clearStaleState"),c=Kn.getEpochTime()-s,d=await a.getAllKeys();o.debug("got keys",d);for(let f=0;f<d.length;f++){const m=d[f],g=await a.get(m);let h=!1;if(g)try{const v=await Sd.fromStorageString(g);o.debug("got item from key:",m,v.created),v.created<=c&&(h=!0)}catch(v){o.error("Error parsing state for key:",m,v),h=!0}else o.debug("no item in storage for key:",m),h=!0;h&&(o.debug("removed item for key:",m),a.remove(m))}}}
61,zy=class xd extends dl{constructor(a){super(a),this.code_verifier=a.code_verifier,this.code_challenge=a.code_challenge,this.authority=a.authority,this.client_id=a.client_id,this.redirect_uri=a.redirect_uri,this.scope=a.scope,this.client_secret=a.client_secret,this.extraTokenParams=a.extraTokenParams,this.response_mode=a.response_mode,this.skipUserInfo=a.skipUserInfo}static async create(a){const s=a.code_verifier===!0?Ot.generateCodeVerifier():a.code_verifier||void 0,o=s?await Ot.generateCodeChallenge(s):void 0;return new xd({...a,code_verifier:s,code_challenge:o})}toStorageString(){return new Re("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(a){Re.createStatic("SigninState","fromStorageString");const s=JSON.parse(a);return xd.create(s)}},Ly=class By{constructor(a){this.url=a.url,this.state=a.state}static async create({url:a,authority:s,client_id:o,redirect_uri:c,response_type:d,scope:f,state_data:m,response_mode:g,request_type:h,client_secret:v,nonce:y,url_state:S,resource:x,skipUserInfo:E,extraQueryParams:k,extraTokenParams:A,disablePKCE:C,dpopJkt:L,omitScopeWhenRequesting:V,...F}){if(!a)throw this._logger.error("create: No url passed"),new Error("url");if(!o)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!c)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!d)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!f)throw this._logger.error("create: No scope passed"),new Error("scope");if(!s)throw this._logger.error("create: No authority passed"),new Error("authority");const j=await zy.create({data:m,request_type:h,url_state:S,code_verifier:!C,client_id:o,authority:s,redirect_uri:c,response_mode:g,client_secret:v,scope:f,extraTokenParams:A,skipUserInfo:E}),X=new URL(a);X.searchParams.append("client_id",o),X.searchParams.append("redirect_uri",c),X.searchParams.append("response_type",d),V||X.searchParams.append("scope",f),y&&X.searchParams.append("nonce",y),L&&X.searchParams.append("dpop_jkt",L);let Z=j.id;S&&(Z=`${Z}${ts}${S}`),X.searchParams.append("state",Z),j.code_challenge&&(X.searchParams.append("code_challenge",j.code_challenge),X.searchParams.append("code_challenge_method","S256")),x&&(Array.isArray(x)?x:[x]).forEach(ee=>X.searchParams.append("resource",ee));for(const[$,ee]of Object.entries({response_mode:g,...F,...k}))ee!=null&&X.searchParams.append($,ee.toString());return new By({url:X.href,state:j})}};Ly._logger=new Re("SigninRequest");var k_=Ly,M_="openid",Ju=class{constructor(n){if(this.access_token="",this.token_type="",this.profile={},this.state=n.get("state"),this.session_state=n.get("session_state"),this.state){const a=decodeURIComponent(this.state).split(ts);this.state=a[0],a.length>1&&(this.url_state=a.slice(1).join(ts))}this.error=n.get("error"),this.error_description=n.get("error_description"),this.error_uri=n.get("error_uri"),this.code=n.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Kn.getEpochTime()}set expires_in(n){typeof n=="string"&&(n=Number(n)),n!==void 0&&n>=0&&(this.expires_at=Math.floor(n)+Kn.getEpochTime())}get isOpenId(){var n;return((n=this.scope)==null?void 0:n.split(" ").includes(M_))||!!this.id_token}},N_=class{constructor({url:n,state_data:a,id_token_hint:s,post_logout_redirect_uri:o,extraQueryParams:c,request_type:d,client_id:f,url_state:m}){if(this._logger=new Re("SignoutRequest"),!n)throw this._logger.error("ctor: No url passed"),new Error("url");const g=new URL(n);if(s&&g.searchParams.append("id_token_hint",s),f&&g.searchParams.append("client_id",f),o&&(g.searchParams.append("post_logout_redirect_uri",o),a||m)){this.state=new dl({data:a,request_type:d,url_state:m});let h=this.state.id;m&&(h=`${h}${ts}${m}`),g.searchParams.append("state",h)}for(const[h,v]of Object.entries({...c}))v!=null&&g.searchParams.append(h,v.toString());this.url=g.href}},D_=class{constructor(n){if(this.state=n.get("state"),this.state){const a=decodeURIComponent(this.state).split(ts);this.state=a[0],a.length>1&&(this.url_state=a.slice(1).join(ts))}this.error=n.get("error"),this.error_description=n.get("error_description"),this.error_uri=n.get("error_uri")}},U_=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],q_=["sub","iss","aud","exp","iat"],z_=class{constructor(n){this._settings=n,this._logger=new Re("ClaimsService")}filterProtocolClaims(n){const a={...n};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=U_;for(const o of s)q_.includes(o)||delete a[o]}return a}mergeClaims(n,a){const s={...n};for(const[o,c]of Object.entries(a))if(s[o]!==c)if(Array.isArray(s[o])||Array.isArray(c))if(this._settings.mergeClaimsStrategy.array=="replace")s[o]=c;else{const d=Array.isArray(s[o])?s[o]:[s[o]];for(const f of Array.isArray(c)?c:[c])d.includes(f)||d.push(f);s[o]=d}else typeof s[o]=="object"&&typeof c=="object"?s[o]=this.mergeClaims(s[o],c):s[o]=c;return s}},jy=class{constructor(n,a){this.keys=n,this.nonce=a}},L_=class{constructor(n,a){this._logger=new Re("OidcClient"),this.settings=n instanceof wd?n:new wd(n),this.metadataService=a??new __(this.settings),this._claimsService=new z_(this.settings),this._val
vendor: 4,443 bytes, line 61
61idator=new O_(this.settings,this.metadataService,this._claimsService),this._tokenClient=new qy(this.settings,this.metadataService)}async createSigninRequest({state:n,request:a,request_uri:s,request_type:o,id_token_hint:c,login_hint:d,skipUserInfo:f,nonce:m,url_state:g,response_type:h=this.settings.response_type,scope:v=this.settings.scope,redirect_uri:y=this.settings.redirect_uri,prompt:S=this.settings.prompt,display:x=this.settings.display,max_age:E=this.settings.max_age,ui_locales:k=this.settings.ui_locales,acr_values:A=this.settings.acr_values,resource:C=this.settings.resource,response_mode:L=this.settings.response_mode,extraQueryParams:V=this.settings.extraQueryParams,extraTokenParams:F=this.settings.extraTokenParams,dpopJkt:j,omitScopeWhenRequesting:X=this.settings.omitScopeWhenRequesting}){const Z=this._logger.create("createSigninRequest");if(h!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const $=await this.metadataService.getAuthorizationEndpoint();Z.debug("Received authorization endpoint",$);const ee=await k_.create({url:$,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:y,response_type:h,scope:v,state_data:n,url_state:g,prompt:S,display:x,max_age:E,ui_locales:k,id_token_hint:c,login_hint:d,acr_values:A,dpopJkt:j,resource:C,request:a,request_uri:s,extraQueryParams:V,extraTokenParams:F,request_type:o,response_mode:L,client_secret:this.settings.client_secret,skipUserInfo:f,nonce:m,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:X});await this.clearStaleState();const ce=ee.state;return await this.settings.stateStore.set(ce.id,ce.toStorageString()),ee}async readSigninResponseState(n,a=!1){const s=this._logger.create("readSigninResponseState"),o=new Ju(vd.readParams(n,this.settings.response_mode));if(!o.state)throw s.throw(new Error("No state in response")),null;const c=await this.settings.stateStore[a?"remove":"get"](o.state);if(!c)throw s.throw(new Error("No matching state found in storage")),null;return{state:await zy.fromStorageString(c),response:o}}async processSigninResponse(n,a,s=!0){const o=this._logger.create("processSigninResponse"),{state:c,response:d}=await this.readSigninResponseState(n,s);if(o.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const f=await this.getDpopProof(this.settings.dpop.store);a={...a,DPoP:f}}try{await this._validator.validateSigninResponse(d,c,a)}catch(f){if(f instanceof bd&&this.settings.dpop){const m=await this.getDpopProof(this.settings.dpop.store,f.nonce);a.DPoP=m,await this._validator.validateSigninResponse(d,c,a)}else throw f}return d}async getDpopProof(n,a){let s,o;return(await n.getAllKeys()).includes(this.settings.client_id)?(o=await n.get(this.settings.client_id),o.nonce!==a&&a&&(o.nonce=a,await n.set(this.settings.client_id,o))):(s=await Ot.generateDPoPKeys(),o=new jy(s,a),await n.set(this.settings.client_id,o)),await Ot.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:o.keys,nonce:o.nonce})}async processResourceOwnerPasswordCredentials({username:n,password:a,skipUserInfo:s=!1,extraTokenParams:o={}}){const c=await this._tokenClient.exchangeCredentials({username:n,password:a,...o}),d=new Ju(new URLSearchParams);return Object.assign(d,c),await this._validator.validateCredentialsResponse(d,s),d}async useRefreshToken({state:n,redirect_uri:a,resource:s,timeoutInSeconds:o,extraHeaders:c,extraTokenParams:d}){var f;const m=this._logger.create("useRefreshToken");let g;if(this.settings.refreshTokenAllowedScope===void 0)g=n.scope;else{const y=this.settings.refreshTokenAllowedScope.split(" ");g=(((f=n.scope)==null?void 0:f.split(" "))||[]).filter(x=>y.includes(x)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const y=await this.getDpopProof(this.settings.dpop.store);c={...c,DPoP:y}}let h;try{h=await this._tokenClient.exchangeRefreshToken({refresh_token:n.refresh_token,scope:g,redirect_uri:a,resource:s,timeoutInSeconds:o,extraHeaders:c,...d})}catch(y){if(y instanceof bd&&this.settings.dpop)c.DPoP=await this.getDpopProof(this.settings.dpop.store,y.nonce),h=await this._tokenClient.exchangeRefreshToken({refresh_token:n.refresh_token,scope:g,redirect_uri:a,resource:s,timeoutInSeconds:o,extraHeaders:c,...d});else throw y}const v=new Ju(new URLSearchParams);return Object.assign(v,h),m.debug("validating response",v),await this._val
61idator.validateRefreshResponse(v,{...n,scope:g}),v}async createSignoutRequest({state:n,id_token_hint:a,client_id:s,request_type:o,url_state:c,post_logout_redirect_uri:d=this.settings.post_logout_redirect_uri,extraQueryParams:f=this.settings.extraQueryParams}={}){const m=this._logger.create("createSignoutRequest"),g=await this.metadataService.getEndSessionEndpoint();if(!g)throw m.throw(new Error("No end session endpoint")),null;m.debug("Received end session endpoint",g),!s&&d&&!a&&(s=this.settings.client_id);const h=new N_({url:g,id_token_hint:a,client_id:s,post_logout_redirect_uri:d,state_data:n,extraQueryParams:f,request_type:o,url_state:c});await this.clearStaleState();const v=h.state;return v&&(m.debug("Signout request has state to persist"),await this.settings.stateStore.set(v.id,v.toStorageString())),h}async readSignoutResponseState(n,a=!1){const s=this._logger.create("readSignoutResponseState"),o=new D_(vd.readParams(n,this.settings.response_mode));if(!o.state){if(s.debug("No state in response"),o.error)throw s.warn("Response was error:",o.error),new ti(o);return{state:void 0,response:o}}const c=await this.settings.stateStore[a?"remove":"get"](o.state);if(!c)throw s.throw(new Error("No matching state found in storage")),null;return{state:await dl.fromStorageString(c),response:o}}async processSignoutResponse(n){const a=this._logger.create("processSignoutResponse"),{state:s,response:o}=await this.readSignoutResponseState(n,!0);return s?(a.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(o,s)):a.debug("No state from storage; skipping response validation"),o}clearStaleState(){return this._logger.create("clearStaleState"),dl.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(n,a){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:n,token_type_hint:a})}},B_=class{constructor(n){this._userManager=n,this._logger=new Re("SessionMonitor"),this._start=async a=>{const s=a.session_state;if(!s)return;const o=this._logger.create("_start");if(a.profile?(this._sub=a.profile.sub,o.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,o.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const c=await this._userManager.metadataService.getCheckSessionIframe();if(c){o.debug("initializing check session iframe");const d=this._userManager.settings.client_id,f=this._userManager.settings.checkSessionIntervalInSeconds,m=this._userManager.settings.stopCheckSessionOnError,g=new x_(this._callback,d,c,f,m);await g.load(),this._checkSessionIFrame=g,g.start(s)}else o.warn("no check session iframe found in the metadata")}catch(c){o.error("Error from getCheckSessionIframe:",c instanceof Error?c.message:c)}},this._stop=()=>{const a=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const o=await this._userManager.querySessionStatus();if(o){const c={session_state:o.session_state,profile:o.sub?{sub:o.sub}:null};this._start(c)}}catch(o){a.error("error from querySessionStatus",o instanceof Error?o.message:o)}},1e3)}},this._callback=async()=>{const a=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let o=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(o=!1,this._checkSessionIFrame.start(s.session_state),a.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):a.debug("different subject signed into OP",s.sub):a.debug("subject no longer signed into OP"),o?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():a.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(a.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},n||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(a=>{this._logger.error(a)})}async _init(){this._logger.create("_init");const n=await this._userManager.getUser();if(n)this._start(n);else if(this._userManager.settings.monitorAnonymousSession){const a=await this._userManager.querySessionStatus();if(a){const s={session_state:a.session_state,profile:a.sub?{sub:a.sub}:null};this._start(s)}}}},Wu=class Hy{constructor(a){var s;this.id_token=a.id_token,this.session_state=(s=a.session_state)!=null?s:null,this.access_token=a.access_token,this.refresh_token=a.refresh_token,this.token_type=a.token_type,this.scope=a.scope,this.profile=a.profile,this.expires_at=a.expires_at,this.state=a.userState,this.url_state=a.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Kn.getEpochTime()}set expires_in(a){a!==void 0&&(this.expires_at=Math.floor(a)+Kn.getEpochTime())}get expired(){const a=this.expires_in;if(a!==void 0)return a<=0}get scopes(){var a,s;return(s=(a=this.scope)==null?void 0:a.split(" "))!=null?s:[]}toStorageString(){return new Re("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(a){return Re.createStatic("User","fromStorageString"),new Hy(JSON.parse(a))}},bp="oidc-client",Vy=class{constructor(){this._abort=new Aa("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(n){const a=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");a.debug("setting URL in window"),this._window.location.replace(n.url);const{url:s,keepOpen:o}=await new Promise((c,d)=>{const f=g=>{var h;const v=g.data,y=(h=n.scriptOrigin)!=null?h:window.location.origin;if(!(g.origin!==y||v?.source!==bp)){try{const S=vd.readParams(v.url,n.response_mode).get("state");if(S||a.warn("no state found in response url"),g.source!==this._window&&S!==n.state)return}catch{this._dispose(),d(new Error("Invalid response from window"))}c(v)}};window.addEventListener("message",f,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",f,!1));const m=new BroadcastChannel(`oidc-client-popup-${n.state}`);m.addEventListener("message",f,!1),this._disposeHandlers.add(()=>m.close()),this._disposeHandlers.add(this._abort.addHandler(g=>{this._dispose(),d(g)}))});return a.debug("got response from window"),this._dispose(),o||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const n of this._disposeHandlers)n();this._disposeHandlers.clear()}static _notifyParent(n,a,s=!1,o=window.location.origin){const c={source:bp,url:a,keepOpen:s},d=new Re("_notifyParent");
61if(n)d.debug("With parent. Using parent.postMessage."),n.postMessage(c,o);else{d.debug("No parent. Using BroadcastChannel.");const f=new URL(a).searchParams.get("state");if(!f)throw new Error("No parent and no state in URL. Can't complete notification.");const m=new BroadcastChannel(`oidc-client-popup-${f}`);m.postMessage(c),m.close()}}},Py={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Qy="_blank",j_=60,H_=2,Iy=10,V_=class extends wd{constructor(n){const{popup_redirect_uri:a=n.redirect_uri,popup_post_logout_redirect_uri:s=n.post_logout_redirect_uri,popupWindowFeatures:o=Py,popupWindowTarget:c=Qy,redirectMethod:d="assign",redirectTarget:f="self",iframeNotifyParentOrigin:m=n.iframeNotifyParentOrigin,iframeScriptOrigin:g=n.iframeScriptOrigin,requestTimeoutInSeconds:h,silent_redirect_uri:v=n.redirect_uri,silentRequestTimeoutInSeconds:y,automaticSilentRenew:S=!0,validateSubOnSilentRenew:x=!0,includeIdTokenInSilentRenew:E=!1,monitorSession:k=!1,monitorAnonymousSession:A=!1,checkSessionIntervalInSeconds:C=H_,query_status_response_type:L="code",stopCheckSessionOnError:V=!0,revokeTokenTypes:F=["access_token","refresh_token"],revokeTokensOnSignout:j=!1,includeIdTokenInSilentSignout:X=!1,accessTokenExpiringNotificationTimeInSeconds:Z=j_,userStore:$}=n;if(super(n),this.popup_redirect_uri=a,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=o,this.popupWindowTarget=c,this.redirectMethod=d,this.redirectTarget=f,this.iframeNotifyParentOrigin=m,this.iframeScriptOrigin=g,this.silent_redirect_uri=v,this.silentRequestTimeoutInSeconds=y||h||Iy,this.automaticSilentRenew=S,this.validateSubOnSilentRenew=x,this.includeIdTokenInSilentRenew=E,this.monitorSession=k,this.monitorAnonymousSession=A,this.checkSessionIntervalInSeconds=C,this.stopCheckSessionOnError=V,this.query_status_response_type=L,this.revokeTokenTypes=F,this.revokeTokensOnSignout=j,this.includeIdTokenInSilentSignout=X,this.accessTokenExpiringNotificationTimeInSeconds=Z,$)this.userStore=$;else{const ee=typeof window<"u"?window.sessionStorage:new Dy;this.userStore=new Uy({store:ee})}}},wp=class Yy extends Vy{constructor({silentRequestTimeoutInSeconds:a=Iy}){super(),this._logger=new Re("IFrameWindow"),this._timeoutInSeconds=a,this._frame=Yy.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const a=window.document.createElement("iframe");return a.style.visibility="hidden",a.style.position="fixed",a.style.left="-1000px",a.style.top="0",a.width="0",a.height="0",window.document.body.appendChild(a),a}async navigate(a){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new Gd("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(a)}close(){var a;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var o;const c=s.target;(o=c.parentNode)==null||o.removeChild(c),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(a=this._frame.contentWindow)==null||a.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(a,s){return super._notifyParent(window.parent,a,!1,s)}},P_=class{constructor(n){this._settings=n,this._logger=new Re("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:n=this._settings.silentRequestTimeoutInSeconds}){return new wp({silentRequestTimeoutInSeconds:n})}async callback(n){this._logger.create("callback"),wp.notifyParent(n,this._settings.iframeNotifyParentOrigin)}},Q_=500,I_=1e3,Sp=class extends Vy{constructor({popupWindowTarget:n=Qy,popupWindowFeatures:a={},popupSignal:s}){super(),this._logger=new Re("PopupWindow");const o=vp.center({...Py,...a});this._window=window.open(void 0,n,vp.serialize(o)),s&&s.addEventListener("abort",()=>{var c;this._abort.raise(new Error((c=s.reason)!=null?c:"Popup aborted"))}),a.closePopupWindowAfterInSeconds&&a.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},a.closePopupWindowAfterInSeconds*I_)}
61async navigate(n){var a;(a=this._window)==null||a.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&(this._logger.debug("Popup closed by user or isolated by redirect"),o(),this._disposeHandlers.delete(o))},Q_),o=()=>clearInterval(s);return this._disposeHandlers.add(o),await super.navigate(n)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(n,a){super._notifyParent(window.opener,n,a),!a&&!window.opener&&window.close()}},Y_=class{constructor(n){this._settings=n,this._logger=new Re("PopupNavigator")}async prepare({popupWindowFeatures:n=this._settings.popupWindowFeatures,popupWindowTarget:a=this._settings.popupWindowTarget,popupSignal:s}){return new Sp({popupWindowFeatures:n,popupWindowTarget:a,popupSignal:s})}async callback(n,{keepOpen:a=!1}){this._logger.create("callback"),Sp.notifyOpener(n,a)}},G_=class{constructor(n){this._settings=n,this._logger=new Re("RedirectNavigator")}async prepare({redirectMethod:n=this._settings.redirectMethod,redirectTarget:a=this._settings.redirectTarget}){var s;this._logger.create("prepare");let o=window.self;a==="top"&&(o=(s=window.top)!=null?s:window.self);const c=o.location[n].bind(o.location);let d;return{navigate:async f=>{this._logger.create("navigate");const m=new Promise((g,h)=>{d=h});return c(f.url),await m},close:()=>{this._logger.create("close"),d?.(new Error("Redirect aborted")),o.stop()}}}async callback(){}},$_=class extends S_{constructor(n){super({expiringNotificationTimeInSeconds:n.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new Re("UserManagerEvents"),this._userLoaded=new Aa("User loaded"),this._userUnloaded=new Aa("User unloaded"),this._silentRenewError=ne
61w Aa("Silent renew error"),this._userSignedIn=new Aa("User signed in"),this._userSignedOut=new Aa("User signed out"),this._userSessionChanged=new Aa("User session changed")}async load(n,a=!0){await super.load(n),a&&await this._userLoaded.raise(n)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(n){return this._userLoaded.addHandler(n)}removeUserLoaded(n){return this._userLoaded.removeHandler(n)}addUserUnloaded(n){return this._userUnloaded.addHandler(n)}removeUserUnloaded(n){return this._userUnloaded.removeHandler(n)}addSilentRenewError(n){return this._silentRenewError.addHandler(n)}removeSilentRenewError(n){return this._silentRenewError.removeHandler(n)}async _raiseSilentRenewError(n){await this._silentRenewError.raise(n)}addUserSignedIn(n){return this._userSignedIn.addHandler(n)}removeUserSignedIn(n){this._userSignedIn.removeHandler(n)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(n){return this._userSignedOut.addHandler(n)}removeUserSignedOut(n){this._userSignedOut.removeHandler(n)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(n){return this._userSessionChanged.addHandler(n)}removeUserSessionChanged(n){this._userSessionChanged.removeHandler(n)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},X_=class{constructor(n){this._userManager=n,this._logger=new Re("SilentRenewService"),this._isStarted=!1,this._retryTimer=new Kn("Retry Silent Renew"),this._tokenExpiring=async()=>{const a=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),a.debug("silent token renewal successful")}catch(s){if(s instanceof Gd){a.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}a.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const n=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(a){n.error("getUser error",a)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},K_=class{constructor(n){this.refresh_token=n.refresh_token,this.id_token=n.id_token,this.session_state=n.session_state,this.scope=n.scope,this.profile=n.profile,this.data=n.state}},F_=class{constructor(n,a,s,o){this._logger=new Re("UserManager"),this.settings=new V_(n),this._client=new L_(n),this._redirectNavigator=a??new G_(this.settings),this._popupNavigator=s??new Y_(this.settings),this._iframeNavigator=o??new P_(this.settings),this._events=new $_(this.settings),this._silentRenewService=new X_(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new B_(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(n=!1){const a=this._logger.create("getUser"),s=await this._loadUser();return s?(a.info("user loaded"),await this._events.load(s,n),s):(a.info("user not found in storage"),null)}async removeUser(){const n=this._logger.create("removeUser");await this.storeUser(null),n.info("user removed from storage"),await this._events.unload()}async signinRedirect(n={}){var a;this._logger.create("signinRedirect");const{redirectMethod:s,...o}=n;let c;(a=this.settings.dpop)!=null&&a.bind_authorization_code&&(c=await this.generateDPoPJkt(this.settings.dpop));const d=await this._redirectNavigator.prepare({redirectMethod:s});await this._signinStart({request_type:"si:r",dpopJkt:c,...o},d)}async signinRedirectCallback(n=window.location.href){const a=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(n);return s.profile&&s.profile.sub?a.info("success, signed in subject",s.profile.sub):a.info("no subject"),s}async signinResourceOwnerCredentials({username:n,password:a,skipUserInfo:s=!1}){const o=this._logger.create("signinResourceOwnerCredential"),c=await this._client.processResourceOwnerPasswordCredentials({username:n,password:a,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});o.debug("got signin response");const d=await this._buildUser(c);return d.profile&&d.profile.sub?o.info("success, signed in subject",d.profile.sub):o.info("no subject"),d}async signinPopup(n={}){var a;const s=this._logger.create("signinPopup");let o;(a=this.settings.dpop)!=null&&a.bind_authorization_code&&(o=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:c,popupWindowTarget:d,popupSignal:f,...m}=n,g=this.settings.popup_redirect_uri;g||s.throw(new Error("No popup_redirect_uri configured"));const h=await this._popupNavigator.prepare({popupWindowFeatures:c,popupWindowTarget:d,popupSignal:f}),v=await this._signin({request_type:"si:p",redirect_uri:g,display:"popup",dpopJkt:o,...m},h);return v&&(v.profile&&v.profile.sub?s.info("success, signed in subject",v.profile.sub):s.info("no subject")),v}async signinPopupCallback(n=window.location.href,a=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(n,{keepOpen:a}),s.info("success")}async signinSilent(n={}){var a,s;const o=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:c,...d}=n;let f=await this._loadUser();if(f?.refresh_token){o.debug("using refresh token");const y=new K_(f);return await this._useRefreshToken({state:y,redirect_uri:d.redirect_uri,resource:d.resource,extraTokenParams:d.extraTokenParams,timeoutInSeconds:c})}let m;(a=this.settings.dpop)!=null&&a.bind_authorization_code&&(m=await this.generateDPoPJkt(this.settings.dpop));const g=this.settings.silent_redirect_uri;g||o.throw(new Error("No silent_redirect_uri configured"));let h;
61f&&this.settings.validateSubOnSilentRenew&&(o.debug("subject prior to silent renew:",f.profile.sub),h=f.profile.sub);const v=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:c});return f=await this._signin({request_type:"si:s",redirect_uri:g,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?f?.id_token:void 0,dpopJkt:m,...d},v,h),f&&((s=f.profile)!=null&&s.sub?o.info("success, signed in subject",f.profile.sub):o.info("no subject")),f}async _useRefreshToken(n){const a=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...n}),s=new Wu({...n.state,...a});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(n=window.location.href){const a=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(n),a.info("success")}async signinCallback(n=window.location.href){const{state:a}=await this._client.readSigninResponseState(n);switch(a.request_type){case"si:r":return await this.signinRedirectCallback(n);case"si:p":await this.signinPopupCallback(n);break;case"si:s":await this.signinSilentCallback(n);break;default:throw new Error("invalid response_type in state")}}async signoutCallback(n=window.location.href,a=!1){const{state:s}=await this._client.readSignoutResponseState(n);if(s)switch(s.request_type){case"so:r":return await this.signoutRedirectCallback(n);case"so:p":await this.signoutPopupCallback(n,a);break;case"so:s":await this.signoutSilentCallback(n);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(n={}){const a=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...o}=n,c=this.settings.silent_redirect_uri;c||a.throw(new Error("No silent_redirect_uri configured"));const d=await this._loadUser(),f=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),m=await this._signinStart({request_type:"si:s",redirect_uri:c,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?d?.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...o},f);try{const g={},h=await this._client.processSigninResponse(m.url,g);return a.debug("got signin response"),h.session_state&&h.profile.sub?(a.info("success for subject",h.profile.sub),{session_state:h.session_state,sub:h.profile.sub}):(a.info("success, user not authenticated"),null)}catch(g){if(this.settings.monitorAnonymousSession&&g instanceof ti)switch(g.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return a.info("success for anonymous user"),{session_state:g.session_state}}throw g}}async _signin(n,a,s){const o=await this._signinStart(n,a);return await this._signinEnd(o.url,s)}async _signinStart(n,a){const s=this._logger.create("_signinStart");try{const o=await this._client.createSigninRequest(n);return s.debug("got signin request"),await a.navigate({url:o.url,state:o.state.id,response_mode:o.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(o){throw s.debug("error after preparing navigator, closing navigator window"),a.close(),o}}async _signinEnd(n,a){const s=this._logger.create("_signinEnd"),o={},c=await this._client.processSigninResponse(n,o);return s.debug("got signin response"),await this._buildUser(c,a)}async _buildUser(n,a){const s=this._logger.create("_buildUser"),o=new Wu(n);if(a){if(a!==o.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",o.profile.sub),new ti({...n,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(o),s.debug("user stored"),await this._events.load(o),o}async signoutRedirect(n={}){const a=this._logger.create("signoutRedirect"),{redirectMethod:s,...o}=n,c=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...o},c),a.info("success")}async signoutRedirectCallback(n=window.location.href){const a=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(n);return a.info("success"),s}async signoutPopup(n={}){const a=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:o,popupSignal:c,...d}=n,f=this.settings.popup_post_logout_redirect_uri,m=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:o,popupSignal:c});await this._signout({request_type:"so:p",post_logout_redirect_uri:f,state:f==null?void 0:{},...d},m),a.info("success")}async signoutPopupCallback(n=window.location.href,a=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(n,{keepOpen:a}),s.info("success")}async _signout(n,a){const s=await this._signoutStart(n,a);return await this._signoutEnd(s.url)}async _signoutStart(n={},a){var s;const o=this._logger.create("_signoutStart");try{const c=await this._loadUser();o.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(c);const d=n.id_token_hint||c&&c.id_token;d&&(o.debug("setting id_token_hint in signout request"),n.id_token_hint=d),await this.removeUser(),o.debug("user removed, creating signout request");
61const f=await this._client.createSignoutRequest(n);return o.debug("got signout request"),await a.navigate({url:f.url,state:(s=f.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(c){throw o.debug("error after preparing navigator, closing navigator window"),a.close(),c}}async _signoutEnd(n){const a=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(n);return a.debug("got signout response"),s}async signoutSilent(n={}){var a;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:o,...c}=n,d=this.settings.includeIdTokenInSilentSignout?(a=await this._loadUser())==null?void 0:a.id_token:void 0,f=this.settings.popup_post_logout_redirect_uri,m=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:o});await this._signout({request_type:"so:s",post_logout_redirect_uri:f,id_token_hint:d,...c},m),s.info("success")}async signoutSilentCallback(n=window.location.href){const a=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(n),a.info("success")}async revokeTokens(n){const a=await this._loadUser();await this._revokeInternal(a,n)}async _revokeInternal(n,a=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!n)return;const o=a.filter(c=>typeof n[c]=="string");if(!o.length){s.debug("no need to revoke due to no token(s)");return}for(const c of o)await this._client.revokeToken(n[c],c),s.info(`${c} revoked successfully`),c!=="access_token"&&(n[c]=null);await this.storeUser(n),s.debug("user stored"),await this._events.load(n)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const n=this._logger.create("_loadUser"),a=await this.settings.userStore.get(this._userStoreKey);return a?(n.debug("user storageString loaded"),Wu.fromStorageString(a)):(n.debug("no user storageString"),null)}async storeUser(n){const a=this._logger.create("storeUser");if(n){a.debug("storing user");const s=n.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(n,a,s,o){var c,d;const f=await((d=(c=this.settings.dpop)==null?void 0:c.store)==null?void 0:d.get(this.settings.client_id));if(f)return await Ot.generateDPoPProof({url:n,accessToken:a?.access_token,httpMethod:s,keyPair:f.keys,nonce:o})}async generateDPoPJkt(n){let a=await n.store.get(this.settings.client_id);if(!a){const s=await Ot.generateDPoPKeys();a=new jy(s),await n.store.set(this.settings.client_id,a)}return await Ot.generateDPoPJkt(a.keys)}},Xd=K.createContext(void 0);Xd.displayName="AuthContext";var Z_={isLoading:!0,isAuthenticated:!1},J_=(n,a)=>{switch(a.type){case"INITIALISED":case"USER_LOADED":return{...n,user:a.user,isLoading:!1,isAuthenticated:a.user?!a.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...n,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...n,isLoading:!0,activeNavigator:a.method};case"NAVIGATOR_CLOSE":return{...n,isLoading:!1,activeNavigator:void 0};case"ERROR":{const s=a.error;return s.toString=()=>`${s.name}: ${s.message}`,{...n,isLoading:!1,error:s}}default:{const s=new TypeError(`unknown type ${a.type}`),o={name:s.name,message:s.message,innerError:s,stack:s.stack,source:"unknown"};return o.toString=()=>`${o.name}: ${o.message}`,{...n,isLoading:!1,error:o}}}},W_=(n=window.location)=>{let a=new URLSearchParams(n.search);return!!((a.get("code")||a.get("error"))&&a.get("state")||(a=new URLSearchParams(n.hash.replace("#","?")),(a.get("code")||a.get("error"))&&a.get("state")))},e1=Kd("signinCallback","Sign-in failed"),t1=Kd("signoutCallback","Sign-out failed"),n1=Kd("renewSilent","Renew silent failed");function Gy(n,a){return{name:ed(n,"name",()=>"Error"),message:ed(n,"message",()=>a),stack:ed(n,"stack",()=>new Error().stack),innerError:n}}function Kd(n,a){return s=>({...Gy(s,a),source:n})}
61function ed(n,a,s){if(n&&typeof n=="object"){const o=n[a];if(typeof o=="string")return o}return s()}var a1=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],i1=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],xp=n=>()=>{throw new Error(`UserManager#${n} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},_p=typeof window>"u"?null:F_,s1=n=>{const{children:a,onSigninCallback:s,skipSigninCallback:o,matchSignoutCallback:c,onSignoutCallback:d,onRemoveUser:f,userManager:m=null,...g}=n,[h]=K.useState(()=>m??(_p?new _p(g):{settings:g})),[v,y]=K.useReducer(J_,Z_),S=K.useMemo(()=>Object.assign({settings:h.settings,events:h.events},Object.fromEntries(a1.map(A=>{var C,L;return[A,(L=(C=h[A])==null?void 0:C.bind(h))!=null?L:xp(A)]})),Object.fromEntries(i1.map(A=>[A,h[A]?async C=>{y({type:"NAVIGATOR_INIT",method:A});try{return await h[A](C)}catch(L){return y({type:"ERROR",error:{...Gy(L,`Unknown error while executing ${A}(...).`),source:A,args:C}}),null}finally{y({type:"NAVIGATOR_CLOSE"})}}:xp(A)]))),[h]),x=K.useRef(!1);K.useEffect(()=>{!h||x.current||(x.current=!0,(async()=>{try{let A=null;W_()&&!o&&(A=await h.signinCallback(),s&&await s(A)),A=A||await h.getUser(),y({type:"INITIALISED",user:A})}catch(A){y({type:"ERROR",error:e1(A)})}try{if(c&&c(h.settings)){const A=await h.signoutCallback();d&&await d(A)}}catch(A){y({type:"ERROR",error:t1(A)})}})())},[h,o,s,d,c]),K.useEffect(()=>{if(!h)return;const A=F=>{y({type:"USER_LOADED",user:F})};h.events.addUserLoaded(A);const C=()=>{y({type:"USER_UNLOADED"})};h.events.addUserUnloaded(C);const L=()=>{y({type:"USER_SIGNED_OUT"})};h.events.addUserSignedOut(L);const V=F=>{y({type:"ERROR",error:n1(F)})};return h.events.addSilentRenewError(V),()=>{h.events.removeUserLoaded(A),h.events.removeUserUnloaded(C),h.events.removeUserSignedOut(L),h.events.removeSilentRenewError(V)}},[h]);const E=K.useCallback(async()=>{await h.removeUser(),f&&await f()},[h,f]),k=K.useMemo(()=>({...v,...S,removeUser:E}),[v,S,E]);return K.createElement(Xd.Provider,{value:k},a)},r1=()=>{const n=K.useContext(Xd);return n||console.warn("AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component."),n};function o1(){const n=r1(),a=n.user?.id_token,s=w.useCallback(async({})=>a??null,[a]);return w.useMemo(()=>({...n,fetchAccessToken:s}),[n,s])}function l1(n){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",a.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}const c1=n=>{switch(n){case"success":return f1;case"info":return g1;case"warning":return h1;case"error":return m1;default:return null}},u1=Array(12).fill(0),d1=({visible:n,className:a})=>K.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":n},K.createElement("div",{className:"sonner-spinner"},u1.map((s,o)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),f1=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),h1=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),g1=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),m1=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),p1=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),y1=()=>{const[n,a]=K.useState(document.hidden);return K.useEffect(()=>{const s=()=>{a(document.hidden)};
vendor: 3,889 bytes, line 61
61return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n};let _d=1;class v1{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const s=this.subscribers.indexOf(a);this.subscribers.splice(s,1)}),this.publish=a=>{this.subscribers.forEach(s=>s(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var s;const{message:o,...c}=a,d=typeof a?.id=="number"||((s=a.id)==null?void 0:s.length)>0?a.id:_d++,f=this.toasts.find(g=>g.id===d),m=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),f?this.toasts=this.toasts.map(g=>g.id===d?(this.publish({...g,...a,id:d,title:o}),{...g,...a,id:d,dismissible:m,title:o}):g):this.addToast({title:o,...c,dismissible:m,id:d}),d},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:a,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(o=>o({id:s.id,dismiss:!0}))}),a),this.message=(a,s)=>this.create({...s,message:a}),this.error=(a,s)=>this.create({...s,message:a,type:"error"}),this.success=(a,s)=>this.create({...s,type:"success",message:a}),this.info=(a,s)=>this.create({...s,type:"info",message:a}),this.warning=(a,s)=>this.create({...s,type:"warning",message:a}),this.loading=(a,s)=>this.create({...s,type:"loading",message:a}),this.promise=(a,s)=>{if(!s)return;let o;s.loading!==void 0&&(o=this.create({...s,promise:a,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const c=Promise.resolve(a instanceof Function?a():a);let d=o!==void 0,f;const m=c.then(async h=>{if(f=["resolve",h],K.isValidElement(h))d=!1,this.create({id:o,type:"default",message:h});else if(w1(h)&&!h.ok){d=!1;const y=typeof s.error=="function"?await s.error(`HTTP error! status: ${h.status}`):s.error,S=typeof s.description=="function"?await s.description(`HTTP error! status: ${h.status}`):s.description,E=typeof y=="object"&&!K.isValidElement(y)?y:{message:y};this.create({id:o,type:"error",description:S,...E})}else if(h instanceof Error){d=!1;const y=typeof s.error=="function"?await s.error(h):s.error,S=typeof s.description=="function"?await s.description(h):s.description,E=typeof y=="object"&&!K.isValidElement(y)?y:{message:y};this.create({id:o,type:"error",description:S,...E})}else if(s.success!==void 0){d=!1;const y=typeof s.success=="function"?await s.success(h):s.success,S=typeof s.description=="function"?await s.description(h):s.description,E=typeof y=="object"&&!K.isValidElement(y)?y:{message:y};this.create({id:o,type:"success",description:S,...E})}}).catch(async h=>{if(f=["reject",h],s.error!==void 0){d=!1;const v=typeof s.error=="function"?await s.error(h):s.error,y=typeof s.description=="function"?await s.description(h):s.description,x=typeof v=="object"&&!K.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:y,...x})}}).finally(()=>{d&&(this.dismiss(o),o=void 0),s.finally==null||s.finally.call(s)}),g=()=>new Promise((h,v)=>m.then(()=>f[0]==="reject"?v(f[1]):h(f[1])).catch(v));return typeof o!="string"&&typeof o!="number"?{unwrap:g}:Object.assign(o,{unwrap:g})},this.custom=(a,s)=>{const o=s?.id||_d++;return this.create({jsx:a(o),id:o,...s}),o},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ct=new v1,b1=(n,a)=>{const s=a?.id||_d++;return Ct.addToast({title:n,...a,id:s}),s},w1=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",S1=b1,x1=()=>Ct.toasts,_1=()=>Ct.getActiveToasts();Object.assign(S1,{success:Ct.success,info:Ct.info,warning:Ct.warning,error:Ct.error,custom:Ct.custom,message:Ct.message,promise:Ct.promise,dismiss:Ct.dismiss,loading:Ct.loading},{getHistory:x1,getToasts:_1});l1
vendor: 4,787 bytes, line 61
61("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 61
61left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
vendor: 1,272 bytes, line 61
61$o(n){return n.label!==void 0}const E1=3,T1="24px",R1="16px",Ep=4e3,A1=356,C1=14,O1=45,k1=200;function pn(...n){return n.filter(Boolean).join(" ")}function M1(n){const[a,s]=n.split("-"),o=[];return a&&o.push(a),s&&o.push(s),o}const N1=n=>{var a,s,o,c,d,f,m,g,h;const{invert:v,toast:y,unstyled:S,interacting:x,setHeights:E,visibleToasts:k,heights:A,index:C,toasts:L,expanded:V,removeToast:F,defaultRichColors:j,closeButton:X,style:Z,cancelButtonStyle:$,actionButtonStyle:ee,className:ce="",descriptionClassName:ge="",duration:he,position:ve,gap:we,expandByDefault:me,classNames:O,icons:Q,closeButtonAriaLabel:B="Close toast"}=n,[re,T]=K.useState(null),[Y,W]=K.useState(null),[H,J]=K.useState(!1),[ie,se]=K.useState(!1),[pe,le]=K.useState(!1),[Ve,vt]=K.useState(!1),[bt,lt]=K.useState(!1),[on,Na]=K.useState(0),[Cl,Ar]=K.useState(0),gt=K.useRef(y.duration||he||Ep),Cr=K.useRef(null),Ht=K.useRef(null),Or=C===0,ri=C+1<=k,wt=y.type,Cn=y.dismissible!==!1,Ol=y.className||"",kl=y.descriptionClassName||"",ln=K.useMemo(()=>A.findIndex(ye=>ye.toastId===y.id)||0,[A,y.id]),St=K.useMemo(()=>{var ye;return(ye=y.closeButton)!=null?ye:X},[y.closeButton,X]),Jt=K.useMemo(()=>y.duration||he||Ep,[y.duration,he]),ct=K.useRef(0),Wn=K.useRef(0),kr=K.useRef(0),ea=K.useRef(null),[oi,li]=ve.
vendor: 24,132 bytes, line 61
61split("-"),cn=K.useMemo(()=>A.reduce((ye,Ie,Ke)=>Ke>=ln?ye:ye+Ie.height,0),[A,ln]),Da=y1(),Ua=y.invert||v,us=wt==="loading";Wn.current=K.useMemo(()=>ln*we+cn,[ln,cn]),K.useEffect(()=>{gt.current=Jt},[Jt]),K.useEffect(()=>{J(!0)},[]),K.useEffect(()=>{const ye=Ht.current;if(ye){const Ie=ye.getBoundingClientRect().height;return Ar(Ie),E(Ke=>[{toastId:y.id,height:Ie,position:y.position},...Ke]),()=>E(Ke=>Ke.filter(ut=>ut.toastId!==y.id))}},[E,y.id]),K.useLayoutEffect(()=>{if(!H)return;const ye=Ht.current,Ie=ye.style.height;ye.style.height="auto";const Ke=ye.getBoundingClientRect().height;ye.style.height=Ie,Ar(Ke),E(ut=>ut.find(We=>We.toastId===y.id)?ut.map(We=>We.toastId===y.id?{...We,height:Ke}:We):[{toastId:y.id,height:Ke,position:y.position},...ut])},[H,y.title,y.description,E,y.id,y.jsx,y.action,y.cancel]);const Wt=K.useCallback(()=>{se(!0),Na(Wn.current),E(ye=>ye.filter(Ie=>Ie.toastId!==y.id)),setTimeout(()=>{F(y)},k1)},[y,F,E,Wn]);K.useEffect(()=>{if(y.promise&&wt==="loading"||y.duration===1/0||y.type==="loading")return;let ye;return V||x||Da?(()=>{if(kr.current<ct.current){const ut=new Date().getTime()-ct.current;gt.current=gt.current-ut}kr.current=new Date().getTime()})():(()=>{gt.current!==1/0&&(ct.current=new Date().getTime(),ye=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),Wt()},gt.current))})(),()=>clearTimeout(ye)},[V,x,y,wt,Da,Wt]),K.useEffect(()=>{y.delete&&(Wt(),y.onDismiss==null||y.onDismiss.call(y,y))},[Wt,y.delete]);function Mr(){var ye;if(Q?.loading){var Ie;return K.createElement("div",{className:pn(O?.loader,y==null||(Ie=y.classNames)==null?void 0:Ie.loader,"sonner-loader"),"data-visible":wt==="loading"},Q.loading)}return K.createElement(d1,{className:pn(O?.loader,y==null||(ye=y.classNames)==null?void 0:ye.loader),visible:wt==="loading"})}const ds=y.icon||Q?.[wt]||c1(wt);var ta,Nr;return K.createElement("li",{tabIndex:0,ref:Ht,className:pn(ce,Ol,O?.toast,y==null||(a=y.classNames)==null?void 0:a.toast,O?.default,O?.[wt],y==null||(s=y.classNames)==null?void 0:s[wt]),"data-sonner-toast":"","data-rich-colors":(ta=y.richColors)!=null?ta:j,"data-styled":!(y.jsx||y.unstyled||S),"data-mounted":H,"data-promise":!!y.promise,"data-swiped":bt,"data-removed":ie,"data-visible":ri,"data-y-position":oi,"data-x-position":li,"data-index":C,"data-front":Or,"data-swiping":pe,"data-dismissible":Cn,"data-type":wt,"data-invert":Ua,"data-swipe-out":Ve,"data-swipe-direction":Y,"data-expanded":!!(V||me&&H),"data-testid":y.testId,style:{"--index":C,"--toasts-before":C,"--z-index":L.length-C,"--offset":`${ie?on:Wn.current}px`,"--initial-height":me?"auto":`${Cl}px`,...Z,...y.style},onDragEnd:()=>{le(!1),T(null),ea.current=null},onPointerDown:ye=>{ye.button!==2&&(us||!Cn||(Cr.current=new Date,Na(Wn.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(le(!0),ea.current={x:ye.clientX,y:ye.clientY})))},onPointerUp:()=>{var ye,Ie,Ke;if(Ve||!Cn)return;ea.current=null;const ut=Number(((ye=Ht.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),qa=Number(((Ie=Ht.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),We=new Date().getTime()-((Ke=Cr.current)==null?void 0:Ke.getTime()),Ye=re==="x"?ut:qa,Ge=Math.abs(Ye)/We;if(Math.abs(Ye)>=O1||Ge>.11){Na(Wn.current),y.onDismiss==null||y.onDismiss.call(y,y),W(re==="x"?ut>0?"right":"left":qa>0?"down":"up"),Wt(),vt(!0);return}else{var ze,at;(ze=Ht.current)==null||ze.style.setProperty("--swipe-amount-x","0px"),(at=Ht.current)==null||at.style.setProperty("--swipe-amount-y","0px")}lt(!1),le(!1),T(null)},onPointerMove:ye=>{var Ie,Ke,ut;if(!ea.current||!Cn||((Ie=window.getSelection())==null?void 0:Ie.toString().length)>0)return;const We=ye.clientY-ea.current.y,Ye=ye.clientX-ea.current.x;var Ge;const ze=(Ge=n.swipeDirections)!=null?Ge:M1(ve);!re&&(Math.abs(Ye)>1||Math.abs(We)>1)&&T(Math.abs(Ye)>Math.abs(We)?"x":"y");let at={x:0,y:0};const ci=On=>1/(1.5+Math.abs(On)/20);if(re==="y"){if(ze.includes("top")||ze.includes("bottom"))if(ze.includes("top")&&We<0||ze.includes("bottom")&&We>0)at.y=We;else{const On=We*ci(We);at.y=Math.abs(On)<Math.abs(We)?On:We}}else if(re==="x"&&(ze.includes("left")||ze.includes("right")))if(ze.includes("left")&&Ye<0||ze.includes("right")&&Ye>0)at.x=Ye;else{const On=Ye*ci(Ye);at.x=Math.abs(On)<Math.abs(Ye)?On:Ye}(Math.abs(at.x)>0||Math.abs(at.y)>0)&&lt(!0),(Ke=Ht.current)==null||Ke.style.setProperty("--swipe-amount-x",`${at.x}px`),(ut=Ht.current)==null||ut.style.setProperty("--swipe-amount-y",`${at.y}px`)}},St&&!y.jsx&&wt!=="loading"?K.createElement("button",{"aria-label":B,"data-disabled":us,"data-close-button":!0,onClick:us||!Cn?()=>{}:()=>{Wt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:pn(O?.closeButton,y==null||(o=y.classNames)==null?void 0:o.closeButton)},(Nr=Q?.close)!=null?Nr:p1):null,(wt||y.icon||y.promise)&&y.icon!==null&&(Q?.[wt]!==null||y.icon)?K.createElement("div",{"data-icon":"",className:pn(O?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Mr():null,y.type!=="loading"?ds:null):null,K.createElement("div",{"data-content":"",className:pn(O?.content,y==null||(d=y.classNames)==null?void 0:d.content)},K.createElement("div",{"data-title":"",className:pn(O?.title,y==null||(f=y.classNames)==null?void 0:f.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?K.createElement("div",{"data-description":"",className:pn(ge,kl,O?.description,y==null||(m=y.classNames)==null?void 0:m.description)},typeof y.description=="function"?y.description():y.description):null),K.isValidElement(y.cancel)?y.cancel:y.cancel&&$o(y.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||$,onClick:ye=>{$o(y.cancel)&&Cn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,ye),Wt())},className:pn(O?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,K.isValidElement(y.action)?y.action:y.action&&$o(y.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||ee,onClick:ye=>{$o(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,ye),!ye.defaultPrevented&&Wt())},className:pn(O?.actionButton,y==null||(h=y.classNames)==null?void 0:h.actionButton)},y.action.label):null)};function Tp(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function D1(n,a){const s={};return[n,a].forEach((o,c)=>{const d=c===1,f=d?"--mobile-offset":"--offset",m=d?R1:T1;function g(h){["top","right","bottom","left"].forEach(v=>{s[`${f}-${v}`]=typeof h=="number"?`${h}px`:h})}typeof o=="number"||typeof o=="string"?g(o):typeof o=="object"?["top","right","bottom","left"].forEach(h=>{o[h]===void 0?s[`${f}-${h}`]=m:s[`${f}-${h}`]=typeof o[h]=="number"?`${o[h]}px`:o[h]}):g(m)}),s}const U1=K.forwardRef(function(a,s){const{id:o,invert:c,position:d="bottom-right",hotkey:f=["altKey","KeyT"],expand:m,closeButton:g,className:h,offset:v,mobileOffset:y,theme:S="light",richColors:x,duration:E,style:k,visibleToasts:A=E1,toastOptions:C,dir:L=Tp(),gap:V=C1,icons:F,containerAriaLabel:j="Notifications"}=a,[X,Z]=K.useState([]),$=K.useMemo(()=>o?X.filter(H=>H.toasterId===o):X.filter(H=>!H.toasterId),[X,o]),ee=K.useMemo(()=>Array.from(new Set([d].concat($.filter(H=>H.position).map(H=>H.position)))),[$,d]),[ce,ge]=K.useState([]),[he,ve]=K.useState(!1),[we,me]=K.useState(!1),[O,Q]=K.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=K.useRef(null),re=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=K.useRef(null),Y=K.useRef(!1),W=K.useCallback(H=>{Z(J=>{var ie;return(ie=J.find(se=>se.id===H.id))!=null&&ie.delete||Ct.dismiss(H.id),J.filter(({id:se})=>se!==H.id)})},[]);return K.useEffect(()=>Ct.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{Z(J=>J.map(ie=>ie.id===H.id?{...ie,delete:!0}:ie))});return}setTimeout(()=>{LS.flushSync(()=>{Z(J=>{const ie=J.findIndex(se=>se.id===H.id);return ie!==-1?[...J.slice(0,ie),{...J[ie],...H},...J.slice(ie+1)]:[H,...J]})})})}),[X]),K.useEffect(()=>{if(S!=="system"){Q(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:J})=>{Q(J?"dark":"light")})}catch{H.addListener(({matches:ie})=>{try{Q(ie?"dark":"light")}catch(se){console.error(se)}})}},[S]),K.useEffect(()=>{X.length<=1&&ve(!1)},[X]),K.useEffect(()=>{const H=J=>{var ie;if(f.every(le=>J[le]||J.code===le)){var pe;ve(!0),(pe=B.current)==null||pe.focus()}J.code==="Escape"&&(document.activeElement===B.current||(ie=B.current)!=null&&ie.contains(document.activeElement))&&ve(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[f]),K.useEffect(()=>{if(B.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,Y.current=!1)}},[B.current]),K.createElement("section",{ref:s,"aria-label":`${j} ${re}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ee.map((H,J)=>{var ie;const[se,pe]=H.split("-");return $.length?K.createElement("ol",{key:H,dir:L==="auto"?Tp():L,tabIndex:-1,ref:B,className:h,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":se,"data-x-position":pe,style:{"--front-toast-height":`${((ie=ce[0])==null?void 0:ie.height)||0}px`,"--width":`${A1}px`,"--gap":`${V}px`,...k,...D1(v,y)},onBlur:le=>{Y.current&&!le.currentTarget.contains(le.relatedTarget)&&(Y.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,T.current=le.relatedTarget)},onMouseEnter:()=>ve(!0),onMouseMove:()=>ve(!0),onMouseLeave:()=>{we||ve(!1)},onDragEnd:()=>ve(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||me(!0)},onPointerUp:()=>me(!1)},$.filter(le=>!le.position&&J===0||le.position===H).map((le,Ve)=>{var vt,bt;return K.createElement(N1,{key:le.id,icons:F,index:Ve,toast:le,defaultRichColors:x,duration:(vt=C?.duration)!=null?vt:E,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:c,visibleToasts:A,closeButton:(bt=C?.closeButton)!=null?bt:g,interacting:we,position:H,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,closeButtonAriaLabel:C?.closeButtonAriaLabel,removeToast:W,toasts:$.filter(lt=>lt.position==le.position),heights:ce.filter(lt=>lt.position==le.position),setHeights:ge,expandByDefault:m,gap:V,expanded:he,swipeDirections:a.swipeDirections})})):null}))}),q1=({...n})=>{const{theme:a="system"}=u_();return q.jsx(U1,{"data-hercules-id":"src/components/ui/sonner.tsx:8:4","data-hercules-name":"Sonner",theme:a,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...n})};function Rp(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function $y(...n){return a=>{let s=!1;const o=n.map(c=>{const d=Rp(c,a);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():Rp(n[c],null)}}}}function ai(...n){return w.useCallback($y(...n),n)}function Xy(n){const a=z1(n),s=w.forwardRef((o,c)=>{const{children:d,...f}=o,m=w.Children.toArray(d),g=m.find(B1);if(g){const h=g.props.children,v=m.map(y=>y===g?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:y);return q.jsx(a,{...f,ref:c,children:w.isValidElement(h)?w.cloneElement(h,void 0,v):null})}return q.jsx(a,{...f,ref:c,children:d})});return s.displayName=`${n}.Slot`,s}var Ky=Xy("Slot");function z1(n){const a=w.forwardRef((s,o)=>{const{children:c,...d}=s;if(w.isValidElement(c)){const f=H1(c),m=j1(d,c.props);return c.type!==w.Fragment&&(m.ref=o?$y(o,f):f),w.cloneElement(c,m)}return w.Children.count(c)>1?w.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var Fy=Symbol("radix.slottable");function L1(n){const a=({children:s})=>q.jsx(q.Fragment,{children:s});return a.displayName=`${n}.Slottable`,a.__radixId=Fy,a}function B1(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Fy}function j1(n,a){const s={...a};for(const o in a){const c=n[o],d=a[o];/^on[A-Z]/.test(o)?c&&d?s[o]=(...m)=>{const g=d(...m);return c(...m),g}:c&&(s[o]=c):o==="style"?s[o]={...c,...d}:o==="className"&&(s[o]=[c,d].filter(Boolean).join(" "))}return{...n,...s}}function H1(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var V1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ii=V1.reduce((n,a)=>{const s=Xy(`Primitive.${a}`),o=w.forwardRef((c,d)=>{const{asChild:f,...m}=c,g=f?s:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(g,{...m,ref:d})});return o.displayName=`Primitive.${a}`,{...n,[a]:o}},{});function P1(n,a){n&&Qd.flushSync(()=>n.dispatchEvent(a))}var Q1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),I1="VisuallyHidden",Zy=w.forwardRef((n,a)=>q.jsx(ii.span,{...n,ref:a,style:{...Q1,...n.style}}));Zy.displayName=I1;var Y1=Zy;function Jy(n,a=[]){let s=[];function o(d,f){const m=w.createContext(f),g=s.length;s=[...s,f];const h=y=>{const{scope:S,children:x,...E}=y,k=S?.[n]?.[g]||m,A=w.useMemo(()=>E,Object.values(E));return q.jsx(k.Provider,{value:A,children:x})};h.displayName=d+"Provider";function v(y,S){const x=S?.[n]?.[g]||m,E=w.useContext(x);if(E)return E;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${d}\``)}return[h,v]}const c=()=>{const d=s.map(f=>w.createContext(f));return function(m){const g=m?.[n]||d;return w.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return c.scopeName=n,[o,G1(c,...a)]}function G1(...n){const a=n[0];if(n.length===1)return a;const s=()=>{const o=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const f=o.reduce((m,{useScope:g,scopeName:h})=>{const y=g(d)[`__scope${h}`];return{...m,...y}},{});return w.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return s.scopeName=a.scopeName,s}function Gn(n,a,{checkForDefaultPrevented:s=!0}={}){return function(c){if(n?.(c),s===!1||!c.defaultPrevented)return a?.(c)}}var vr=globalThis?.document?w.useLayoutEffect:()=>{};function $1(n,a){return w.useReducer((s,o)=>a[s][o]??s,n)}var Wy=n=>{const{present:a,children:s}=n,o=X1(a),c=typeof s=="function"?s({present:o.isPresent}):w.Children.only(s),d=ai(o.ref,K1(c));return typeof s=="function"||o.isPresent?w.cloneElement(c,{ref:d}):null};Wy.displayName="Presence";function X1(n){const[a,s]=w.useState(),o=w.useRef(null),c=w.useRef(n),d=w.useRef("none"),f=n?"mounted":"unmounted",[m,g]=$1(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const h=Xo(o.current);d.current=m==="mounted"?h:"none"},[m]),vr(()=>{const h=o.current,v=c.current;if(v!==n){const S=d.current,x=Xo(h);n?g("MOUNT"):x==="none"||h?.display==="none"?g("UNMOUNT"):g(v&&S!==x?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,g]),vr(()=>{if(a){let h;const v=a.ownerDocument.defaultView??window,y=x=>{const k=Xo(o.current).includes(CSS.escape(x.animationName));if(x.target===a&&k&&(g("ANIMATION_END"),!c.current)){const A=a.style.animationFillMode;a.style.animationFillMode="forwards",h=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=A)})}},S=x=>{x.target===a&&(d.current=Xo(o.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{v.clearTimeout(h),a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:w.useCallback(h=>{o.current=h?getComputedStyle(h):null,s(h)},[])}}function Xo(n){return n?.animationName||"none"}function K1(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function bl(n){const a=w.useRef(n);return w.useEffect(()=>{a.current=n}),w.useMemo(()=>(...s)=>a.current?.(...s),[])}function F1(n,a=globalThis?.document){const s=bl(n);w.useEffect(()=>{const o=c=>{c.key==="Escape"&&s(c)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[s,a])}var Z1="DismissableLayer",Ed="dismissableLayer.update",J1="dismissableLayer.pointerDownOutside",W1="dismissableLayer.focusOutside",Ap,ev=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tv=w.forwardRef((n,a)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:m,...g}=n,h=w.useContext(ev),[v,y]=w.useState(null),S=v?.ownerDocument??globalThis?.document,[,x]=w.useState({}),E=ai(a,Z=>y(Z)),k=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),C=k.indexOf(A),L=v?k.indexOf(v):-1,V=h.layersWithOutsidePointerEventsDisabled.size>0,F=L>=C,j=nE(Z=>{const $=Z.target,ee=[...h.branches].some(ce=>ce.contains($));!F||ee||(c?.(Z),f?.(Z),Z.defaultPrevented||m?.())},S),X=aE(Z=>{const $=Z.target;[...h.branches].some(ce=>ce.contains($))||(d?.(Z),f?.(Z),Z.defaultPrevented||m?.())},S);return F1(Z=>{L===h.layers.size-1&&(o?.(Z),!Z.defaultPrevented&&m&&(Z.preventDefault(),m()))},S),w.useEffect(()=>{if(v)return s&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Ap=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(v)),h.layers.add(v),Cp(),()=>{s&&h.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Ap)}},[v,S,s,h]),w.useEffect(()=>()=>{v&&(h.layers.delete(v),h.layersWithOutsidePointerEventsDisabled.delete(v),Cp())},[v,h]),w.useEffect(()=>{const Z=()=>x({});return document.addEventListener(Ed,Z),()=>document.removeEventListener(Ed,Z)},[]),q.jsx(ii.div,{...g,ref:E,style:{pointerEvents:V?F?"auto":"none":void 0,...n.style},onFocusCapture:Gn(n.onFocusCapture,X.onFocusCapture),onBlurCapture:Gn(n.onBlurCapture,X.onBlurCapture),onPointerDownCapture:Gn(n.onPointerDownCapture,j.onPointerDownCapture)})});tv.displayName=Z1;var eE="DismissableLayerBranch",tE=w.forwardRef((n,a)=>{const s=w.useContext(ev),o=w.useRef(null),c=ai(a,o);return w.useEffect(()=>{const d=o.current;if(d)return s.branches.add(d),()=>{s.branches.delete(d)}},[s.branches]),q.jsx(ii.div,{...n,ref:c})});tE.displayName=eE;function nE(n,a=globalThis?.document){const s=bl(n),o=w.useRef(!1),c=w.useRef(()=>{});return w.useEffect(()=>{const d=m=>{if(m.target&&!o.current){let g=function(){nv(J1,s,h,{discrete:!0})};const h={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=g,a.addEventListener("click",c.current,{once:!0})):g()}else a.removeEventListener("click",c.current);o.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",d),a.removeEventListener("click",c.current)}},[a,s]),{onPointerDownCapture:()=>o.current=!0}}function aE(n,a=globalThis?.document){const s=bl(n),o=w.useRef(!1);return w.useEffect(()=>{const c=d=>{d.target&&!o.current&&nv(W1,s,{originalEvent:d},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,s]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Cp(){const n=new CustomEvent(Ed);document.dispatchEvent(n)}function nv(n,a,s,{discrete:o}){const c=s.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});a&&c.addEventListener(n,a,{once:!0}),o?P1(c,d):c.dispatchEvent(d)}function iE(n){const[a,s]=w.useState(void 0);return vr(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const o=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let f,m;if("borderBoxSize"in d){const g=d.borderBoxSize,h=Array.isArray(g)?g[0]:g;f=h.inlineSize,m=h.blockSize}else f=n.offsetWidth,m=n.offsetHeight;s({width:f,height:m})});return o.observe(n,{box:"border-box"}),()=>o.unobserve(n)}else s(void 0)},[n]),a}const sE=["top","right","bottom","left"],Ca=Math.min,Bt=Math.max,fl=Math.round,Ko=Math.floor,_n=n=>({x:n,y:n}),rE={left:"right",right:"left",bottom:"top",top:"bottom"},oE={start:"end",end:"start"};function Td(n,a,s){return Bt(n,Ca(a,s))}function Fn(n,a){return typeof n=="function"?n(a):n}function Zn(n){return n.split("-")[0]}function rs(n){return n.split("-")[1]}function Fd(n){return n==="x"?"y":"x"}function Zd(n){return n==="y"?"height":"width"}const lE=new Set(["top","bottom"]);function xn(n){return lE.has(Zn(n))?"y":"x"}function Jd(n){return Fd(xn(n))}function cE(n,a,s){s===void 0&&(s=!1);const o=rs(n),c=Jd(n),d=Zd(c);let f=c==="x"?o===(s?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[d]>a.floating[d]&&(f=hl(f)),[f,hl(f)]}function uE(n){const a=hl(n);return[Rd(n),a,Rd(a)]}function Rd(n){return n.replace(/start|end/g,a=>oE[a])}const Op=["left","right"],kp=["right","left"],dE=["top","bottom"],fE=["bottom","top"];function hE(n,a,s){switch(n){case"top":case"bottom":return s?a?kp:Op:a?Op:kp;case"left":case"right":return a?dE:fE;default:return[]}}function gE(n,a,s,o){const c=rs(n);let d=hE(Zn(n),s==="start",o);return c&&(d=d.map(f=>f+"-"+c),a&&(d=d.concat(d.map(Rd)))),d}function hl(n){return n.replace(/left|right|bottom|top/g,a=>rE[a])}function mE(n){return{top:0,right:0,bottom:0,left:0,...n}}function av(n){return typeof n!="number"?mE(n):{top:n,right:n,bottom:n,left:n}}function gl(n){const{x:a,y:s,width:o,height:c}=n;return{width:o,height:c,top:s,left:a,right:a+o,bottom:s+c,x:a,y:s}}function Mp(n,a,s){let{reference:o,floating:c}=n;const d=xn(a),f=Jd(a),m=Zd(f),g=Zn(a),h=d==="y",v=o.x+o.width/2-c.width/2,y=o.y+o.height/2-c.height/2,S=o[m]/2-c[m]/2;let x;switch(g){case"top":x={x:v,y:o.y-c.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-c.width,y};break;default:x={x:o.x,y:o.y}}switch(rs(a)){case"start":x[f]-=S*(s&&h?-1:1);break;case"end":x[f]+=S*(s&&h?-1:1);break}return x}const pE=async(n,a,s)=>{const{placement:o="bottom",strategy:c="absolute",middleware:d=[],platform:f}=s,m=d.filter(Boolean),g=await(f.isRTL==null?void 0:f.isRTL(a));let h=await f.getElementRects({reference:n,floating:a,strategy:c}),{x:v,y}=Mp(h,o,g),S=o,x={},E=0;for(let k=0;k<m.length;k++){const{name:A,fn:C}=m[k],{x:L,y:V,data:F,reset:j}=await C({x:v,y,initialPlacement:o,placement:S,strategy:c,middlewareData:x,rects:h,platform:f,elements:{reference:n,floating:a}});v=L??v,y=V??y,x={...x,[A]:{...x[A],...F}},j&&E<=50&&(E++,typeof j=="object"&&(j.placement&&(S=j.placement),j.rects&&(h=j.rects===!0?await f.getElementRects({reference:n,floating:a,strategy:c}):j.rects),{x:v,y}=Mp(h,S,g)),k=-1)}return{x:v,y,placement:S,strategy:c,middlewareData:x}};async function br(n,a){var s;a===void 0&&(a={});const{x:o,y:c,platform:d,rects:f,elements:m,strategy:g}=n,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:S=!1,padding:x=0}=Fn(a,n),E=av(x),A=m[S?y==="floating"?"reference":"floating":y],C=gl(await d.getClippingRect
vendor: 13,395 bytes, line 61
61({element:(s=await(d.isElement==null?void 0:d.isElement(A)))==null||s?A:A.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(m.floating)),boundary:h,rootBoundary:v,strategy:g})),L=y==="floating"?{x:o,y:c,width:f.floating.width,height:f.floating.height}:f.reference,V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m.floating)),F=await(d.isElement==null?void 0:d.isElement(V))?await(d.getScale==null?void 0:d.getScale(V))||{x:1,y:1}:{x:1,y:1},j=gl(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:L,offsetParent:V,strategy:g}):L);return{top:(C.top-j.top+E.top)/F.y,bottom:(j.bottom-C.bottom+E.bottom)/F.y,left:(C.left-j.left+E.left)/F.x,right:(j.right-C.right+E.right)/F.x}}const yE=n=>({name:"arrow",options:n,async fn(a){const{x:s,y:o,placement:c,rects:d,platform:f,elements:m,middlewareData:g}=a,{element:h,padding:v=0}=Fn(n,a)||{};if(h==null)return{};const y=av(v),S={x:s,y:o},x=Jd(c),E=Zd(x),k=await f.getDimensions(h),A=x==="y",C=A?"top":"left",L=A?"bottom":"right",V=A?"clientHeight":"clientWidth",F=d.reference[E]+d.reference[x]-S[x]-d.floating[E],j=S[x]-d.reference[x],X=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let Z=X?X[V]:0;(!Z||!await(f.isElement==null?void 0:f.isElement(X)))&&(Z=m.floating[V]||d.floating[E]);const $=F/2-j/2,ee=Z/2-k[E]/2-1,ce=Ca(y[C],ee),ge=Ca(y[L],ee),he=ce,ve=Z-k[E]-ge,we=Z/2-k[E]/2+$,me=Td(he,we,ve),O=!g.arrow&&rs(c)!=null&&we!==me&&d.reference[E]/2-(we<he?ce:ge)-k[E]/2<0,Q=O?we<he?we-he:we-ve:0;return{[x]:S[x]+Q,data:{[x]:me,centerOffset:we-me-Q,...O&&{alignmentOffset:Q}},reset:O}}}),vE=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var s,o;const{placement:c,middlewareData:d,rects:f,initialPlacement:m,platform:g,elements:h}=a,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:k=!0,...A}=Fn(n,a);if((s=d.arrow)!=null&&s.alignmentOffset)return{};const C=Zn(c),L=xn(m),V=Zn(m)===m,F=await(g.isRTL==null?void 0:g.isRTL(h.floating)),j=S||(V||!k?[hl(m)]:uE(m)),X=E!=="none";!S&&X&&j.push(...gE(m,k,E,F));const Z=[m,...j],$=await br(a,A),ee=[];let ce=((o=d.flip)==null?void 0:o.overflows)||[];if(v&&ee.push($[C]),y){const we=cE(c,f,F);ee.push($[we[0]],$[we[1]])}if(ce=[...ce,{placement:c,overflows:ee}],!ee.every(we=>we<=0)){var ge,he;const we=(((ge=d.flip)==null?void 0:ge.index)||0)+1,me=Z[we];if(me&&(!(y==="alignment"?L!==xn(me):!1)||ce.every(B=>xn(B.placement)===L?B.overflows[0]>0:!0)))return{data:{index:we,overflows:ce},reset:{placement:me}};let O=(he=ce.filter(Q=>Q.overflows[0]<=0).sort((Q,B)=>Q.overflows[1]-B.overflows[1])[0])==null?void 0:he.placement;if(!O)switch(x){case"bestFit":{var ve;const Q=(ve=ce.filter(B=>{if(X){const re=xn(B.placement);return re===L||re==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(re=>re>0).reduce((re,T)=>re+T,0)]).sort((B,re)=>B[1]-re[1])[0])==null?void 0:ve[0];Q&&(O=Q);break}case"initialPlacement":O=m;break}if(c!==O)return{reset:{placement:O}}}return{}}}};function Np(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Dp(n){return sE.some(a=>n[a]>=0)}const bE=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:s}=a,{strategy:o="referenceHidden",...c}=Fn(n,a);switch(o){case"referenceHidden":{const d=await br(a,{...c,elementContext:"reference"}),f=Np(d,s.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Dp(f)}}}case"escaped":{const d=await br(a,{...c,altBoundary:!0}),f=Np(d,s.floating);return{data:{escapedOffsets:f,escaped:Dp(f)}}}default:return{}}}}},iv=new Set(["left","top"]);async function wE(n,a){const{placement:s,platform:o,elements:c}=n,d=await(o.isRTL==null?void 0:o.isRTL(c.floating)),f=Zn(s),m=rs(s),g=xn(s)==="y",h=iv.has(f)?-1:1,v=d&&g?-1:1,y=Fn(a,n);let{mainAxis:S,crossAxis:x,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof E=="number"&&(x=m==="end"?E*-1:E),g?{x:x*v,y:S*h}:{x:S*h,y:x*v}}const SE=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var s,o;const{x:c,y:d,placement:f,middlewareData:m}=a,g=await wE(a,n);return f===((s=m.offset)==null?void 0:s.placement)&&(o=m.arrow)!=null&&o.alignmentOffset?{}:{x:c+g.x,y:d+g.y,data:{...g,placement:f}}}}},xE=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:s,y:o,placement:c}=a,{mainAxis:d=!0,crossAxis:f=!1,limiter:m={fn:A=>{let{x:C,y:L}=A;return{x:C,y:L}}},...g}=Fn(n,a),h={x:s,y:o},v=await br(a,g),y=xn(Zn(c)),S=Fd(y);let x=h[S],E=h[y];if(d){const A=S==="y"?"top":"left",C=S==="y"?"bottom":"right",L=x+v[A],V=x-v[C];x=Td(L,x,V)}if(f){const A=y==="y"?"top":"left",C=y==="y"?"bottom":"right",L=E+v[A],V=E-v[C];E=Td(L,E,V)}const k=m.fn({...a,[S]:x,[y]:E});return{...k,data:{x:k.x-s,y:k.y-o,enabled:{[S]:d,[y]:f}}}}}},_E=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:s,y:o,placement:c,rects:d,middlewareData:f}=a,{offset:m=0,mainAxis:g=!0,crossAxis:h=!0}=Fn(n,a),v={x:s,y:o},y=xn(c),S=Fd(y);let x=v[S],E=v[y];const k=Fn(m,a),A=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(g){const V=S==="y"?"height":"width",F=d.reference[S]-d.floating[V]+A.mainAxis,j=d.reference[S]+d.reference[V]-A.mainAxis;x<F?x=F:x>j&&(x=j)}if(h){var C,L;const V=S==="y"?"width":"height",F=iv.has(Zn(c)),j=d.reference[y]-d.floating[V]+(F&&((C=f.offset)==null?void 0:C[y])||0)+(F?0:A.crossAxis),X=d.reference[y]+d.reference[V]+(F?0:((L=f.offset)==null?void 0:L[y])||0)-(F?A.crossAxis:0);E<j?E=j:E>X&&(E=X)}return{[S]:x,[y]:E}}}},EE=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var s,o;const{placement:c,rects:d,platform:f,elements:m}=a,{apply:g=()=>{},...h}=Fn(n,a),v=await br(a,h),y=Zn(c),S=rs(c),x=xn(c)==="y",{width:E,height:k}=d.floating;let A,C;y==="top"||y==="bottom"?(A=y,C=S===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(C=y,A=S==="end"?"top":"bottom");const L=k-v.top-v.bottom,V=E-v.left-v.right,F=Ca(k-v[A],L),j=Ca(E-v[C],V),X=!a.middlewareData.shift;let Z=F,$=j;if((s=a.middlewareData.shift)!=null&&s.enabled.x&&($=V),(o=a.middlewareData.shift)!=null&&o.enabled.y&&(Z=L),X&&!S){const ce=Bt(v.left,0),ge=Bt(v.right,0),he=Bt(v.top,0),ve=Bt(v.bottom,0);x?$=E-2*(ce!==0||ge!==0?ce+ge:Bt(v.left,v.right)):Z=k-2*(he!==0||ve!==0?he+ve:Bt(v.top,v.bottom))}await g({...a,availableWidth:$,availableHeight:Z});const ee=await f.getDimensions(m.floating);return E!==ee.width||k!==ee.height?{reset:{rects:!0}}:{}}}};function wl(){return typeof window<"u"}function os(n){return sv(n)?(n.nodeName||"").toLowerCase():"#document"}function jt(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function An(n){var a;return(a=(sv(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function sv(n){return wl()?n instanceof Node||n instanceof jt(n).Node:!1}function sn(n){return wl()?n instanceof Element||n instanceof jt(n).Element:!1}function Tn(n){return wl()?n instanceof HTMLElement||n instanceof jt(n).HTMLElement:!1}function Up(n){return!wl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof jt(n).ShadowRoot}const TE=new Set(["inline","contents"]);function Rr(n){const{overflow:a,overflowX:s,overflowY:o,display:c}=rn(n);return/auto|scroll|overlay|hidden|clip/.test(a+o+s)&&!TE.has(c)}const RE=new Set(["table","td","th"]);function AE(n){return RE.has(os(n))}const CE=[":popover-open",":modal"];function Sl(n){return CE.some(a=>{try{return n.matches(a)}catch{return!1}})}const OE=["transform","translate","scale","rotate","perspective"],kE=["transform","translate","scale","rotate","perspective","filter"],ME=["paint","layout","strict","content"];function Wd(n){const a=ef(),s=sn(n)?rn(n):n;return OE.some(o=>s[o]?s[o]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!a&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!a&&(s.filter?s.filter!=="none":!1)||kE.some(o=>(s.willChange||"").includes(o))||ME.some(o=>(s.contain||"").includes(o))}function NE(n){let a=Oa(n);for(;Tn(a)&&!ns(a);){if(Wd(a))return a;if(Sl(a))return null;a=Oa(a)}return null}function ef(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const DE=new Set(["html","body","#document"]);function ns(n){return DE.has(os(n))}function rn(n){return jt(n).getComputedStyle(n)}function xl(n){return sn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Oa(n){if(os(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Up(n)&&n.host||An(n);return Up(a)?a.host:a}function rv(n){const a=Oa(n);return ns(a)?n.ownerDocument?n.ownerDocument.body:n.body:Tn(a)&&Rr(a)?a:rv(a)}function wr(n,a,s){var o;a===void 0&&(a=[]),s===void 0&&(s=!0);const c=rv(n),d=c===((o=n.ownerDocument)==null?void 0:o.body),f=jt(c);if(d){const m=Ad(f);return a.concat(f,f.visualViewport||[],Rr(c)?c:[],m&&s?wr(m):[])}return a.concat(c,wr(c,[],s))}function Ad(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function ov(n){const a=rn(n);let s=parseFloat(a.width)||0,o=parseFloat(a.height)||0;const c=Tn(n),d=c?n.offsetWidth:s,f=c?n.offsetHeight:o,m=fl(s)!==d||fl(o)!==f;return m&&(s=d,o=f),{width:s,height:o,$:m}}function tf(n){return sn(n)?n:n.contextElement}function Ji(n){const a=tf(n);if(!Tn(a))return _n(1);const s=a.getBoundingClientRect(),{width:o,height:c,$:d}=ov(a);let f=(d?fl(s.width):s.width)/o,m=(d?fl(s.height):s.height)/c;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const UE=_n(0);function lv(n){const a=jt(n);return!ef()||!a.visualViewport?UE:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function qE(n,a,s){return a===void 0&&(a=!1),!s||a&&s!==jt(n)?!1:a}function ni(n,a,s,o){a===void 0&&(a=!1),s===void 0&&(s=!1);const c=n.getBoundingClientRect(),d=tf(n);let f=_n(1);a&&(o?sn(o)&&(f=Ji(o)):f=Ji(n));const m=qE(d,s,o)?lv(d):_n(0);let g=(c.left+m.x)/f.x,h=(c.top+m.y)/f.y,v=c.width/f.x,y=c.height/f.y;if(d){const S=jt(d),x=o&&sn(o)?jt(o):o;let E=S,k=Ad(E);for(;k&&o&&x!==E;){const A=Ji(k),C=k.getBoundingClientRect(),L=rn(k),V=C.left+(k.clientLeft+parseFloat(L.paddingLeft))*A.x,F=C.top+(k.clientTop+parseFloat(L.paddingTop))*A.y;g*=A.x,h*=A.y,v*=A.x,y*=A.y,g+=V,h+=F,E=jt(k),k=Ad(E)}}return gl({width:v,height:y,x:g,y:h})}function _l(n,a){const s=xl(n).scrollLeft;return a?a.left+s:ni(An(n)).left+s}function cv(n,a){const s=n.getBoundingClientRect(),o=s.left+a.scrollLeft-_l(n,s),c=s.top+a.scrollTop;return{x:o,y:c}}function zE(n){let{elements:a,rect:s,offsetParent:o,strategy:c}=n;const d=c==="fixed",f=An(o),m=a?Sl(a.floating):!1;if(o===f||m&&d)return s;let g={scrollLeft:0,scrollTop:0},h=_n(1);const v=_n(0),y=Tn(o);if((y||!y&&!d)&&((os(o)!=="body"||Rr(f))&&(g=xl(o)),Tn(o))){const x=ni(o);h=Ji(o),v.x=x.x+o.clientLeft,v.y=x.y+o.clientTop}const S=f&&!y&&!d?cv(f,g):_n(0);return{width:s.width*h.x,height:s.height*h.y,x:s.x*h.x-g.scrollLeft*h.x+v.x+S.x,y:s.y*h.y-g.scrollTop*h.y+v.y+S.y}}function LE(n){return Array.from(n.getClientRects())}function BE(n){const a=An(n),s=xl(n),o=n.ownerDocument.body,c=Bt(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),d=Bt(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight);let f=-s.scrollLeft+_l(n);const m=-s.scrollTop;return rn(o).direction==="rtl"&&(f+=Bt(a.clientWidth,o.clientWidth)-c),{width:c,height:d,x:f,y:m}}const qp=25;function jE(n,a){const s=jt(n),o=An(n),c=s.visualViewport;let d=o.clientWidth,f=o.clientHeight,m=0,g=0;if(c){d=c.width,f=c.height;const v=ef();(!v||v&&a==="fixed")&&(m=c.offsetLeft,g=c.offsetTop)}const h=_l(o);if(h<=0){const v=o.ownerDocument,y=v.body,S=getComputedStyle(y),x=v.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,E=Math.abs(o.clientWidth-y.clientWidth-x);E<=qp&&(d-=E)}else h<=qp&&(d+=h);return{width:d,height:f,x:m,y:g}}const HE=new Set(["absolute","fixed"]);function VE(n,a){const s=ni(n,!0,a==="fixed"),o=s.top+n.clientTop,c=s.left+n.clientLeft,d=Tn(n)?Ji(n):_n(1),f=n.clientWidth*d.x,m=n.clientHeight*d.y,g=c*d.x,h=o*d.y;return{width:f,height:m,x:g,y:h}}function zp(n,a,s){let o;if(a==="viewport")o=jE(n,s);else if(a==="document")o=BE(An(n));else if(sn(a))o=VE(a,s);else{const c=lv(n);o={x:a.x-c.x,y:a.y-c.y,width:a.width,height:a.height}}return gl(o)}function uv(n,a){const s=Oa(n);return s===a||!sn(s)||ns(s)?!1:rn(s).position==="fixed"||uv(s,a)}function PE(n,a){const s=a.get(n);if(s)return s;let o=wr(n,[],!1).filter(m=>sn(m)&&os(m)!=="body"),c=null;const d=rn(n).position==="fixed";let f=d?Oa(n):n;for(;sn(f)&&!ns(f);){const m=rn(f),g=Wd(f);!g&&m.position==="fixed"&&(c=null),(d?!g&&!c:!g&&m.position==="static"&&!!c&&HE.has(c.position)||Rr(f)&&!g&&uv(n,f))?o=o.filter(v=>v!==f):c=m,f=Oa(f)}return a.set(n,o),o}function QE(n){let{element:a,boundary:s,rootBoundary:o,strategy:c}=n;const f=[...s==="clippingAncestors"?Sl(a)?[]:PE(a,this._c):[].concat(s),o],m=f[0],g=f.reduce((h,v)=>{const y=zp(a,v,c);return h.top=Bt(y.top,h.top),h.right=Ca(y.right,h.right),h.bottom=Ca(y.bottom,h.bottom),h.left=Bt(y.left,h.left),h},zp(a,m,c));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function IE(n){const{width:a,height:s}=ov(n);return{width:a,height:s}}
vendor: 9,092 bytes, line 61
61function YE(n,a,s){const o=Tn(a),c=An(a),d=s==="fixed",f=ni(n,!0,d,a);let m={scrollLeft:0,scrollTop:0};const g=_n(0);function h(){g.x=_l(c)}if(o||!o&&!d)if((os(a)!=="body"||Rr(c))&&(m=xl(a)),o){const x=ni(a,!0,d,a);g.x=x.x+a.clientLeft,g.y=x.y+a.clientTop}else c&&h();d&&!o&&c&&h();const v=c&&!o&&!d?cv(c,m):_n(0),y=f.left+m.scrollLeft-g.x-v.x,S=f.top+m.scrollTop-g.y-v.y;return{x:y,y:S,width:f.width,height:f.height}}function td(n){return rn(n).position==="static"}function Lp(n,a){if(!Tn(n)||rn(n).position==="fixed")return null;if(a)return a(n);let s=n.offsetParent;return An(n)===s&&(s=s.ownerDocument.body),s}function dv(n,a){const s=jt(n);if(Sl(n))return s;if(!Tn(n)){let c=Oa(n);for(;c&&!ns(c);){if(sn(c)&&!td(c))return c;c=Oa(c)}return s}let o=Lp(n,a);for(;o&&AE(o)&&td(o);)o=Lp(o,a);return o&&ns(o)&&td(o)&&!Wd(o)?s:o||NE(n)||s}const GE=async function(n){const a=this.getOffsetParent||dv,s=this.getDimensions,o=await s(n.floating);return{reference:YE(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function $E(n){return rn(n).direction==="rtl"}const XE={convertOffsetParentRelativeRectToViewportRelativeRect:zE,getDocumentElement:An,getClippingRect:QE,getOffsetParent:dv,getElementRects:GE,getClientRects:LE,getDimensions:IE,getScale:Ji,isElement:sn,isRTL:$E};function fv(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function KE(n,a){let s=null,o;const c=An(n);function d(){var m;clearTimeout(o),(m=s)==null||m.disconnect(),s=null}function f(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),d();const h=n.getBoundingClientRect(),{left:v,top:y,width:S,height:x}=h;if(m||a(),!S||!x)return;const E=Ko(y),k=Ko(c.clientWidth-(v+S)),A=Ko(c.clientHeight-(y+x)),C=Ko(v),V={rootMargin:-E+"px "+-k+"px "+-A+"px "+-C+"px",threshold:Bt(0,Ca(1,g))||1};let F=!0;function j(X){const Z=X[0].intersectionRatio;if(Z!==g){if(!F)return f();Z?f(!1,Z):o=setTimeout(()=>{f(!1,1e-7)},1e3)}Z===1&&!fv(h,n.getBoundingClientRect())&&f(),F=!1}try{s=new IntersectionObserver(j,{...V,root:c.ownerDocument})}catch{s=new IntersectionObserver(j,V)}s.observe(n)}return f(!0),d}function FE(n,a,s,o){o===void 0&&(o={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=o,h=tf(n),v=c||d?[...h?wr(h):[],...wr(a)]:[];v.forEach(C=>{c&&C.addEventListener("scroll",s,{passive:!0}),d&&C.addEventListener("resize",s)});const y=h&&m?KE(h,s):null;let S=-1,x=null;f&&(x=new ResizeObserver(C=>{let[L]=C;L&&L.target===h&&x&&(x.unobserve(a),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var V;(V=x)==null||V.observe(a)})),s()}),h&&!g&&x.observe(h),x.observe(a));let E,k=g?ni(n):null;g&&A();function A(){const C=ni(n);k&&!fv(k,C)&&s(),k=C,E=requestAnimationFrame(A)}return s(),()=>{var C;v.forEach(L=>{c&&L.removeEventListener("scroll",s),d&&L.removeEventListener("resize",s)}),y?.(),(C=x)==null||C.disconnect(),x=null,g&&cancelAnimationFrame(E)}}const ZE=SE,JE=xE,WE=vE,eT=EE,tT=bE,Bp=yE,nT=_E,aT=(n,a,s)=>{const o=new Map,c={platform:XE,...s},d={...c.platform,_c:o};return pE(n,a,{...c,platform:d})};var iT=typeof document<"u",sT=function(){},al=iT?w.useLayoutEffect:sT;function ml(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let s,o,c;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==a.length)return!1;for(o=s;o--!==0;)if(!ml(n[o],a[o]))return!1;return!0}if(c=Object.keys(n),s=c.length,s!==Object.keys(a).length)return!1;for(o=s;o--!==0;)if(!{}.hasOwnProperty.call(a,c[o]))return!1;for(o=s;o--!==0;){const d=c[o];if(!(d==="_owner"&&n.$$typeof)&&!ml(n[d],a[d]))return!1}return!0}return n!==n&&a!==a}function hv(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function jp(n,a){const s=hv(n);return Math.round(a*s)/s}function nd(n){const a=w.useRef(n);return al(()=>{a.current=n}),a}function rT(n){n===void 0&&(n={});const{placement:a="bottom",strategy:s="absolute",middleware:o=[],platform:c,elements:{reference:d,floating:f}={},transform:m=!0,whileElementsMounted:g,open:h}=n,[v,y]=w.useState({x:0,y:0,strategy:s,placement:a,middlewareData:{},isPositioned:!1}),[S,x]=w.useState(o);ml(S,o)||x(o);const[E,k]=w.useState(null),[A,C]=w.useState(null),L=w.useCallback(B=>{B!==X.current&&(X.current=B,k(B))},[]),V=w.useCallback(B=>{B!==Z.current&&(Z.current=B,C(B))},[]),F=d||E,j=f||A,X=w.useRef(null),Z=w.useRef(null),$=w.useRef(v),ee=g!=null,ce=nd(g),ge=nd(c),he=nd(h),ve=w.useCallback(()=>{if(!X.current||!Z.current)return;const B={placement:a,strategy:s,middleware:S};ge.current&&(B.platform=ge.current),aT(X.current,Z.current,B).then(re=>{const T={...re,isPositioned:he.current!==!1};we.current&&!ml($.current,T)&&($.current=T,Qd.flushSync(()=>{y(T)}))})},[S,a,s,ge,he]);al(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(B=>({...B,isPositioned:!1})))},[h]);const we=w.useRef(!1);al(()=>(we.current=!0,()=>{we.current=!1}),[]),al(()=>{if(F&&(X.current=F),j&&(Z.current=j),F&&j){if(ce.current)return ce.current(F,j,ve);ve()}},[F,j,ve,ce,ee]);const me=w.useMemo(()=>({reference:X,floating:Z,setReference:L,setFloating:V}),[L,V]),O=w.useMemo(()=>({reference:F,floating:j}),[F,j]),Q=w.useMemo(()=>{const B={position:s,left:0,top:0};if(!O.floating)return B;const re=jp(O.floating,v.x),T=jp(O.floating,v.y);return m?{...B,transform:"translate("+re+"px, "+T+"px)",...hv(O.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:re,top:T}},[s,m,O.floating,v.x,v.y]);return w.useMemo(()=>({...v,update:ve,refs:me,elements:O,floatingStyles:Q}),[v,ve,me,O,Q])}const oT=n=>{function a(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:o,padding:c}=typeof n=="function"?n(s):n;return o&&a(o)?o.current!=null?Bp({element:o.current,padding:c}).fn(s):{}:o?Bp({element:o,padding:c}).fn(s):{}}}},lT=(n,a)=>({...ZE(n),options:[n,a]}),cT=(n,a)=>({...JE(n),options:[n,a]}),uT=(n,a)=>({...nT(n),options:[n,a]}),dT=(n,a)=>({...WE(n),options:[n,a]}),fT=(n,a)=>({...eT(n),options:[n,a]}),hT=(n,a)=>({...tT(n),options:[n,a]}),gT=(n,a)=>({...oT(n),options:[n,a]});var mT="Arrow",gv=w.forwardRef((n,a)=>{const{children:s,width:o=10,height:c=5,...d}=n;return q.jsx(ii.svg,{...d,ref:a,width:o,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:q.jsx("polygon",{points:"0,0 30,0 15,10"})})});gv.displayName=mT;var pT=gv,mv="Popper",[pv,yv]=Jy(mv),[TA,vv]=pv(mv),bv="PopperAnchor",wv=w.forwardRef((n,a)=>{const{__scopePopper:s,virtualRef:o,...c}=n,d=vv(bv,s),f=w.useRef(null),m=ai(a,f),g=w.useRef(null);return w.useEffect(()=>{const h=g.current;g.current=o?.current||f.current,h!==g.current&&d.onAnchorChange(g.current)}),o?null:q.jsx(ii.div,{...c,ref:m})});wv.displayName=bv;var nf="PopperContent",[yT,vT]=pv(nf),Sv=w.forwardRef((n,a)=>{const{__scopePopper:s,side:o="bottom",sideOffset:c=0,align:d="center",alignOffset:f=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:x="optimized",onPlaced:E,...k}=n,A=vv(nf,s),[C,L]=w.useState(null),V=ai(a,pe=>L(pe)),[F,j]=w.useState(null),X=iE(F),Z=X?.width??0,$=X?.height??0,ee=o+(d!=="center"?"-"+d:""),ce=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ge=Array.isArray(h)?h:[h],he=ge.length>0,ve={padding:ce,boundary:ge.filter(wT),altBoundary:he},{refs:we,floatingStyles:me,placement:O,isPositioned:Q,middlewareData:B}=rT({strategy:"fixed",placement:ee,whileElementsMounted:(...pe)=>FE(...pe,{animationFrame:x==="always"}),elements:{reference:A.anchor},middleware:[lT({mainAxis:c+$,alignmentAxis:f}),g&&cT({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?uT():void 0,...ve}),g&&dT({...ve}),fT({...ve,apply:({elements:pe,rects:le,availableWidth:Ve,availableHeight:vt})=>{const{width:bt,height:lt}=le.reference,on=pe.floating.style;on.setProperty("--radix-popper-available-width",`${Ve}px`),on.setProperty("--radix-popper-available-height",`${vt}px`),on.setProperty("--radix-popper-anchor-width",`${bt}px`),on.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),F&&gT({element:F,padding:m}),ST({arrowWidth:Z,arrowHeight:$}),S&&hT({strategy:"referenceHidden",...ve})]}),[re,T]=Ev(O),Y=bl(E);vr(()=>{Q&&Y?.()},[Q,Y]);const W=B.arrow?.x,H=B.arrow?.y,J=B.arrow?.centerOffset!==0,[ie,se]=w.useState();return vr(()=>{C&&se(window.getComputedStyle(C).zIndex)},[C]),q.jsx("div",{ref:we.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:Q?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:q.jsx(yT,{scope:s,placedSide:re,onArrowChange:j,arrowX:W,arrowY:H,shouldHideArrow:J,children:q.jsx(ii.div,{"data-side":re,"data-align":T,...k,ref:V,style:{...k.style,animation:Q?void 0:"none"}})})})});Sv.displayName=nf;var xv="PopperArrow",bT={top:"bottom",right:"left",bottom:"top",left:"r
61ight"},_v=w.forwardRef(function(a,s){const{__scopePopper:o,...c}=a,d=vT(xv,o),f=bT[d.placedSide];return q.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:q.jsx(pT,{...c,ref:s,style:{...c.style,display:"block"}})})});_v.displayName=xv;function wT(n){return n!==null}var ST=n=>({name:"transformOrigin",options:n,fn(a){const{placement:s,rects:o,middlewareData:c}=a,f=c.arrow?.centerOffset!==0,m=f?0:n.arrowWidth,g=f?0:n.arrowHeight,[h,v]=Ev(s),y={start:"0%",center:"50%",end:"100%"}[v],S=(c.arrow?.x??0)+m/2,x=(c.arrow?.y??0)+g/2;let E="",k="";return h==="bottom"?(E=f?y:`${S}px`,k=`${-g}px`):h==="top"?(E=f?y:`${S}px`,k=`${o.floating.height+g}px`):h==="right"?(E=`${-g}px`,k=f?y:`${x}px`):h==="left"&&(E=`${o.floating.width+g}px`,k=f?y:`${x}px`),{data:{x:E,y:k}}}});function Ev(n){const[a,s="center"]=n.split("-");return[a,s]}var xT=wv,_T=Sv,ET=_v,[El,RA]=Jy("Tooltip",[yv]),af=yv(),Tv="TooltipProvider",TT=700,Hp="tooltip.open",[RT,Rv]=El(Tv),Av=n=>{const{__scopeTooltip:a,delayDuration:s=TT,skipDelayDuration:o=300,disableHoverableContent:c=!1,children:d}=n,f=w.useRef(!0),m=w.useRef(!1),g=w.useRef(0);return w.useEffect(()=>{const h=g.current;return()=>window.clearTimeout(h)},[]),q.jsx(RT,{scope:a,isOpenDelayedRef:f,delayDuration:s,onOpen:w.useCallback(()=>{window.clearTimeout(g.current),f.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>f.current=!0,o)},[o]),isPointerInTransitRef:m,onPointerInTransitChange:w.useCallback(h=>{m.current=h},[]),disableHoverableContent:c,children:d})};Av.displayName=Tv;var Cv="Tooltip",[AA,Tl]=El(Cv),Cd="TooltipTrigger",AT=w.forwardRef((n,a)=>{const{__scopeTooltip:s,...o}=n,c=Tl(Cd,s),d=Rv(Cd,s),f=af(s),m=w.useRef(null),g=ai(a,m,c.onTriggerChange),h=w.useRef(!1),v=w.useRef(!1),y=w.useCallback(()=>h.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),q.jsx(xT,{asChild:!0,...f,children:q.jsx(ii.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...o,ref:g,onPointerMove:Gn(n.onPointerMove,S=>{S.pointerType!=="touch"&&!v.current&&!d.isPointerInTransitRef.current&&(c.onTriggerEnter(),v.current=!0)}),onPointerLeave:Gn(n.onPointerLeave,()=>{c.onTriggerLeave(),v.current=!1}),onPointerDown:Gn(n.onPointerDown,()=>{c.open&&c.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Gn(n.onFocus,()=>{h.current||c.onOpen()}),onBlur:Gn(n.onBlur,c.onClose),onClick:Gn(n.onClick,c.onClose)})})});AT.displayName=Cd;var CT="TooltipPortal",[CA,OT]=El(CT,{forceMount:void 0}),as="TooltipContent",kT=w.forwardRef((n,a)=>{const s=OT(as,n.__scopeTooltip),{forceMount:o=s.forceMount,side:c="top",...d}=n,f=Tl(as,n.__scopeTooltip);return q.jsx(Wy,{present:o||f.open,children:f.disableHoverableContent?q.jsx(Ov,{side:c,...d,ref:a}):q.jsx(MT,{side:c,...d,ref:a})})}),MT=w.forwardRef((n,a)=>{const s=Tl(as,n.__scopeTooltip),o=Rv(as,n.__scopeTooltip),c=w.useRef(null),d=ai(a,c),[f,m]=w.useState(null),{trigger:g,onClose:h}=s,v=c.current,{onPointerInTransitChange:y}=o,S=w.useCallback(()=>{m(null),y(!1)},[y]),x=w.useCallback((E,k)=>{const A=E.currentTarget,C={x:E.clientX,y:E.clientY},L=zT(C,A.getBoundingClientRect()),V=LT(C,L),F=BT(k.getBoundingClientRect()),j=HT([...V,...F]);m(j),y(!0)},[y]);return w.useEffect(()=>()=>S(),[S]),w.useEffect(()=>{if(g&&v){const E=A=>x(A,v),k=A=>x(A,g);return g.addEventListener("pointerleave",E),v.addEventListener("pointerleave",k),()=>{g.removeEventListener("pointerleave",E),v.removeEventListener("pointerleave",k)}}},[g,v,x,S]),w.useEffect(()=>{if(f){const E=k=>{const A=k.target,C={x:k.clientX,y:k.clientY},L=g?.contains(A)||v?.contains(A),V=!jT(C,f);L?S():V&&(S(),h())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[g,v,f,h,S]),q.jsx(Ov,{...n,ref:d})}),[NT,DT]=El(Cv,{isInside:!1}),UT=L1("TooltipContent"),Ov=w.forwardRef((n,a)=>{const{__scopeTooltip:s,children:o,"aria-label":c,onEscapeKeyDown:d,onPointerDownOutside:f,...m}=n,g=Tl(as,s),h=af(s),{onClose:v}=g;return w.useEffect(()=>(document.addEventListener(Hp,v),()=>document.removeEventListener(Hp,v)),[v]),w.useEffect(()=>{if(g.trigger){const y=S=>{S.target?.contains(g.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[g.trigger,v]),q.jsx(tv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:q.jsxs(_T,{"data-state":g.
vendor: 10,026 bytes, line 61
61stateAttribute,...h,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[q.jsx(UT,{children:o}),q.jsx(NT,{scope:s,isInside:!0,children:q.jsx(Y1,{id:g.contentId,role:"tooltip",children:c||o})})]})})});kT.displayName=as;var kv="TooltipArrow",qT=w.forwardRef((n,a)=>{const{__scopeTooltip:s,...o}=n,c=af(s);return DT(kv,s).isInside?null:q.jsx(ET,{...c,...o,ref:a})});qT.displayName=kv;function zT(n,a){const s=Math.abs(a.top-n.y),o=Math.abs(a.bottom-n.y),c=Math.abs(a.right-n.x),d=Math.abs(a.left-n.x);switch(Math.min(s,o,c,d)){case d:return"left";case c:return"right";case s:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function LT(n,a,s=5){const o=[];switch(a){case"top":o.push({x:n.x-s,y:n.y+s},{x:n.x+s,y:n.y+s});break;case"bottom":o.push({x:n.x-s,y:n.y-s},{x:n.x+s,y:n.y-s});break;case"left":o.push({x:n.x+s,y:n.y-s},{x:n.x+s,y:n.y+s});break;case"right":o.push({x:n.x-s,y:n.y-s},{x:n.x-s,y:n.y+s});break}return o}function BT(n){const{top:a,right:s,bottom:o,left:c}=n;return[{x:c,y:a},{x:s,y:a},{x:s,y:o},{x:c,y:o}]}function jT(n,a){const{x:s,y:o}=n;let c=!1;for(let d=0,f=a.length-1;d<a.length;f=d++){const m=a[d],g=a[f],h=m.x,v=m.y,y=g.x,S=g.y;v>o!=S>o&&s<(y-h)*(o-v)/(S-v)+h&&(c=!c)}return c}function HT(n){const a=n.slice();return a.sort((s,o)=>s.x<o.x?-1:s.x>o.x?1:s.y<o.y?-1:s.y>o.y?1:0),VT(a)}function VT(n){if(n.length<=1)return n.slice();const a=[];for(let o=0;o<n.length;o++){const c=n[o];for(;a.length>=2;){const d=a[a.length-1],f=a[a.length-2];if((d.x-f.x)*(c.y-f.y)>=(d.y-f.y)*(c.x-f.x))a.pop();else break}a.push(c)}a.pop();const s=[];for(let o=n.length-1;o>=0;o--){const c=n[o];for(;s.length>=2;){const d=s[s.length-1],f=s[s.length-2];if((d.x-f.x)*(c.y-f.y)>=(d.y-f.y)*(c.x-f.x))s.pop();else break}s.push(c)}return s.pop(),a.length===1&&s.length===1&&a[0].x===s[0].x&&a[0].y===s[0].y?a:a.concat(s)}var PT=Av;function Mv(n){var a,s,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(a=0;a<c;a++)n[a]&&(s=Mv(n[a]))&&(o&&(o+=" "),o+=s)}else for(s in n)n[s]&&(o&&(o+=" "),o+=s);return o}function Nv(){for(var n,a,s=0,o="",c=arguments.length;s<c;s++)(n=arguments[s])&&(a=Mv(n))&&(o&&(o+=" "),o+=a);return o}const sf="-",QT=n=>{const a=YT(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:f=>{const m=f.split(sf);return m[0]===""&&m.length!==1&&m.shift(),Dv(m,a)||IT(f)},getConflictingClassGroupIds:(f,m)=>{const g=s[f]||[];return m&&o[f]?[...g,...o[f]]:g}}},Dv=(n,a)=>{if(n.length===0)return a.classGroupId;const s=n[0],o=a.nextPart.get(s),c=o?Dv(n.slice(1),o):void 0;if(c)return c;if(a.validators.length===0)return;const d=n.join(sf);return a.validators.find(({validator:f})=>f(d))?.classGroupId},Vp=/^\[(.+)\]$/,IT=n=>{if(Vp.test(n)){const a=Vp.exec(n)[1],s=a?.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},YT=n=>{const{theme:a,classGroups:s}=n,o={nextPart:new Map,validators:[]};for(const c in s)Od(s[c],o,c,a);return o},Od=(n,a,s,o)=>{n.forEach(c=>{if(typeof c=="string"){const d=c===""?a:Pp(a,c);d.classGroupId=s;return}if(typeof c=="function"){if(GT(c)){Od(c(o),a,s,o);return}a.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([d,f])=>{Od(f,Pp(a,d),s,o)})})},Pp=(n,a)=>{let s=n;return a.split(sf).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},GT=n=>n.isThemeGetter,$T=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,o=new Map;const c=(d,f)=>{s.set(d,f),a++,a>n&&(a=0,o=s,s=new Map)};return{get(d){let f=s.get(d);if(f!==void 0)return f;if((f=o.get(d))!==void 0)return c(d,f),f},set(d,f){s.has(d)?s.set(d,f):c(d,f)}}},kd="!",Md=":",XT=Md.length,KT=n=>{const{prefix:a,experimentalParseClassName:s}=n;let o=c=>{const d=[];let f=0,m=0,g=0,h;for(let E=0;E<c.length;E++){let k=c[E];if(f===0&&m===0){if(k===Md){d.push(c.slice(g,E)),g=E+XT;continue}if(k==="/"){h=E;continue}}k==="["?f++:k==="]"?f--:k==="("?m++:k===")"&&m--}const v=d.length===0?c:c.substring(g),y=FT(v),S=y!==v,x=h&&h>g?h-g:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:y,maybePostfixModifierPosition:x}};if(a){const c=a+Md,d=o;o=f=>f.startsWith(c)?d(f.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(s){const c=o;o=d=>s({className:d,parseClassName:c})}return o},FT=n=>n.endsWith(kd)?n.substring(0,n.length-1):n.startsWith(kd)?n.substring(1):n,ZT=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const c=[];let d=[];return o.forEach(f=>{f[0]==="["||a[f]?(c.push(...d.sort(),f),d=[]):d.push(f)}),c.push(...d.sort()),c}},JT=n=>({cache:$T(n.cacheSize),parseClassName:KT(n),sortModifiers:ZT(n),...QT(n)}),WT=/\s+/,eR=(n,a)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:d}=a,f=[],m=n.trim().split(WT);let g="";for(let h=m.length-1;h>=0;h-=1){const v=m[h],{isExternal:y,modifiers:S,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:k}=s(v);if(y){g=v+(g.length>0?" "+g:g);continue}let A=!!k,C=o(A?E.substring(0,k):E);if(!C){if(!A){g=v+(g.length>0?" "+g:g);continue}if(C=o(E),!C){g=v+(g.length>0?" "+g:g);continue}A=!1}const L=d(S).join(":"),V=x?L+kd:L,F=V+C;if(f.includes(F))continue;f.push(F);const j=c(C,A);for(let X=0;X<j.length;++X){const Z=j[X];f.push(V+Z)}g=v+(g.length>0?" "+g:g)}return g};function tR(){let n=0,a,s,o="";for(;n<arguments.length;)(a=arguments[n++])&&(s=Uv(a))&&(o&&(o+=" "),o+=s);return o}const Uv=n=>{if(typeof n=="string")return n;let a,s="";for(let o=0;o<n.length;o++)n[o]&&(a=Uv(n[o]))&&(s&&(s+=" "),s+=a);return s};function nR(n,...a){let s,o,c,d=f;function f(g){const h=a.reduce((v,y)=>y(v),n());return s=JT(h),o=s.cache.get,c=s.cache.set,d=m,m(g)}function m(g){const h=o(g);if(h)return h;const v=eR(g,s);return c(g,v),v}return function(){return d(tR.apply(null,arguments))}}const nt=n=>{const a=s=>s[n]||[];return a.isThemeGetter=!0,a},qv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aR=/^\d+\/\d+$/,iR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ki=n=>aR.test(n),xe=n=>!!n&&!Number.isNaN(Number(n)),Ta=n=>!!n&&Number.isInteger(Number(n)),ad=n=>n.endsWith("%")&&xe(n.slice(0,-1)),Yn=n=>iR.test(n),cR=()=>!0,uR=n=>sR.test(n)&&!rR.test(n),Lv=()=>!1,dR=n=>oR.test(n),fR=n=>lR.test(n),hR=n=>!ne(n)&&!ae(n),gR=n=>ls(n,Hv,Lv),ne=n=>qv.test(n),Wa=n=>ls(n,Vv,uR),id=n=>ls(n,bR,xe),Qp=n=>ls(n,Bv,Lv),mR=n=>ls(n,jv,fR),Fo=n=>ls(n,Pv,dR),ae=n=>zv.test(n),cr=n=>cs(n,Vv),pR=n=>cs(n,wR),Ip=n=>cs(n,Bv),yR=n=>cs(n,Hv),vR=n=>cs(n,jv),Zo=n=>cs(n,Pv,!0),ls=(n,a,s)=>{const o=qv.exec(n);return o?o[1]?a(o[1]):s(o[2]):!1},cs=(n,a,s=!1)=>{const o=zv.exec(n);return o?o[1]?a(o[1]):s:!1},Bv=n=>n==="position"||n==="percentage",jv=n=>n==="image"||n==="url",Hv=n=>n==="length"||n==="size"||n==="bg-size",Vv=n=>n==="length",bR=n=>n==="number",wR=n=>n==="family-name",Pv=n=>n==="shadow",SR=()=>{const n=nt("color"),a=nt("font"),s=nt("text"),o=nt("font-weight"),c=nt("tracking"),d=nt("leading"),f=nt("breakpoint"),m=nt("container"),g=nt("spacing"),h=nt("radius"),v=nt("shadow"),y=nt("inset-shadow"),S=nt("text-shadow"),x=nt("drop-shadow"),E=nt("blur"),k=nt("perspective"),A=nt("aspect"),C=nt("ease"),L=nt("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...F(),ae,ne],X=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],$=()=>[ae,ne,g],ee=()=>[Ki,"full","auto",...$()],ce=()=>[Ta,"none","subgrid",ae,ne],ge=()=>["auto",{span:["full",Ta,ae,ne]},Ta,ae,ne],he=()=>[Ta,"auto",ae,ne],ve=()=>["auto","min","max","fr",ae,ne],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...$()],Q=()=>[Ki,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],B=()=>[n,ae,ne],re=()=>[...F(),Ip,Qp,{position:[ae,ne]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",yR,gR,{size:[ae,ne]}],W=()=>[ad,cr,Wa],H=()=>["","none","full",h,ae,ne],J=()=>["",xe,cr,Wa],ie=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[xe,ad,Ip,Qp],le=()=>["","none",E,ae,ne],Ve=()=>["none",xe,ae,ne],vt=()=>["none",xe,ae,ne],bt=()=>[xe,ae,ne],lt=()=>[Ki,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yn],breakpoint:[Yn],color:[cR],container:[Yn],"drop-shadow":[Yn],ease:["in","out","in-out"],font:[hR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yn],shadow:[Yn],spacing:["px",xe],text:[Yn],"text-shadow":[Yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ki,ne,ae,A]}
vendor: 5,647 bytes, line 61
61],container:["container"],columns:[{columns:[xe,ne,ae,m]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Ta,"auto",ae,ne]}],basis:[{basis:[Ki,"full","auto",m,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,Ki,"auto","initial","none",ne]}],grow:[{grow:["",xe,ae,ne]}],shrink:[{shrink:["",xe,ae,ne]}],order:[{order:[Ta,"first","last","none",ae,ne]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[m,"screen",...Q()]}],"min-w":[{"min-w":[m,"screen","none",...Q()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",s,cr,Wa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ae,id]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ad,ne]}],"font-family":[{font:[pR,ne,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ae,ne]}],"line-clamp":[{"line-clamp":[xe,"none",ae,id]}],leading:[{leading:[d,...$()]}],"list-image":[{"list-image":["none",ae,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",ae,Wa]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[xe,"auto",ae,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ta,ae,ne],radial:["",ae,ne],conic:[Ta,ae,ne]},vR,mR]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:W()}
61],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,754 bytes, line 61
61],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,ae,ne]}],"outline-w":[{outline:["",xe,cr,Wa]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",v,Zo,Fo]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",y,Zo,Fo]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[xe,Wa]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",S,Zo,Fo]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[xe,ae,ne]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ae,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,ne]}],filter:[{filter:["","none",ae,ne]}],blur:[{blur:le()}],brightness:[{brightness:[xe,ae,ne]}],contrast:[{contrast:[xe,ae,ne]}],"drop-shadow":[{"drop-shadow":["","none",x,Zo,Fo]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",xe,ae,ne]}],"hue-rotate":[{"hue-rotate":[xe,ae,ne]}],invert:[{invert:["",xe,ae,ne]}],saturate:[{saturate:[xe,ae,ne]}],sepia:[{sepia:["",xe,ae,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,ne]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[xe,ae,ne]}],"backdrop-contrast":[{"backdrop-contrast":[xe,ae,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,ae,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,ae,ne]}],"backdrop-invert":[{"backdrop-invert":["",xe,ae,ne]}],"backdrop-opacity":[{"backdrop-opacity":[xe,ae,ne]}],"backdrop-saturate":[{"backdrop-saturate":[xe,ae,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,ae,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",ae,ne]}],ease:[{ease:["linear","initial",C,ae,ne]}],delay:[{delay:[xe,ae,ne]}],animate:[{animate:["none",L,ae,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ae,ne]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:Ve()}],"rotate-x":[{"rotate-x":Ve()}],"rotate-y":[{"rotate-y":Ve()}],"rotate-z":[{"rotate-z":Ve()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:bt()}],"skew-x":[{"skew-x":bt()}],"skew-y":[{"skew-y":bt()}],transform:[{transform:[ae,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:lt()}],"translate-x":[{"translate-x":lt()}],"translate-y":[{"translate-y":lt()}],"translate-z":[{"translate-z":lt()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 6,284 bytes, line 61
61],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae,ne]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[xe,cr,Wa,id]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},xR=nR(SR);function si(...n){return xR(Nv(n))}function _R({delayDuration:n=0,...a}){return q.jsx(PT,{"data-hercules-id":"src/components/ui/tooltip.tsx:11:4","data-hercules-name":"TooltipPrimitive.Provider","data-slot":"tooltip-provider",delayDuration:n,...a})}const ER={authority:"https://hercules.app",client_id:"nwEFFSiuZazylrYVAANndCkdJcVLzBag",redirect_uri:window.location.origin,response_type:"code",scope:"openid profile email"};function TR({children:n}){const a=w.useCallback(()=>{window.history.replaceState({},document.title,window.location.pathname)},[]),s=w.useCallback(()=>{window.location.pathname=""},[]);return q.jsx(s1,{"data-hercules-id":"src/components/providers/auth.tsx:24:4","data-hercules-name":"ReactAuthProvider",...ER,onSigninCallback:a,onSignoutCallback:s,children:n})}var Rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Al=typeof window>"u"||"Deno"in globalThis;function an(){}function RR(n,a){return typeof n=="function"?n(a):n}function AR(n){return typeof n=="number"&&n>=0&&n!==1/0}function CR(n,a){return Math.max(n+(a||0)-Date.now(),0)}function Nd(n,a){return typeof n=="function"?n(a):n}function OR(n,a){return typeof n=="function"?n(a):n}function Yp(n,a){const{type:s="all",exact:o,fetchStatus:c,predicate:d,queryKey:f,stale:m}=n;if(f){if(o){if(a.queryHash!==rf(f,a.options))return!1}else if(!xr(a.queryKey,f))return!1}if(s!=="all"){const g=a.isActive();if(s==="active"&&!g||s==="inactive"&&g)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||c&&c!==a.state.fetchStatus||d&&!d(a))}function Gp(n,a){const{exact:s,status:o,predicate:c,mutationKey:d}=n;if(d){if(!a.options.mutationKey)return!1;
vendor: 3,915 bytes, line 61
61if(s){if(Sr(a.options.mutationKey)!==Sr(d))return!1}else if(!xr(a.options.mutationKey,d))return!1}return!(o&&a.state.status!==o||c&&!c(a))}function rf(n,a){return(a?.queryKeyHashFn||Sr)(n)}function Sr(n){return JSON.stringify(n,(a,s)=>Dd(s)?Object.keys(s).sort().reduce((o,c)=>(o[c]=s[c],o),{}):s)}function xr(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(s=>xr(n[s],a[s])):!1}function Qv(n,a){if(n===a)return n;const s=$p(n)&&$p(a);if(s||Dd(n)&&Dd(a)){const o=s?n:Object.keys(n),c=o.length,d=s?a:Object.keys(a),f=d.length,m=s?[]:{},g=new Set(o);let h=0;for(let v=0;v<f;v++){const y=s?v:d[v];(!s&&g.has(y)||s)&&n[y]===void 0&&a[y]===void 0?(m[y]=void 0,h++):(m[y]=Qv(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&h++)}return c===f&&h===c?n:m}return a}function $p(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Dd(n){if(!Xp(n))return!1;const a=n.constructor;if(a===void 0)return!0;const s=a.prototype;return!(!Xp(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Xp(n){return Object.prototype.toString.call(n)==="[object Object]"}function kR(n){return new Promise(a=>{setTimeout(a,n)})}function MR(n,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,a):s.structuralSharing!==!1?Qv(n,a):a}function NR(n,a,s=0){const o=[...n,a];return s&&o.length>s?o.slice(1):o}function DR(n,a,s=0){const o=[a,...n];return s&&o.length>s?o.slice(0,-1):o}var of=Symbol();function Iv(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===of?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var UR=class extends Rl{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Al&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Yv=new UR,qR=class extends Rl{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Al&&window.addEventListener){const a=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},pl=new qR;function zR(){let n,a;const s=new Promise((c,d)=>{n=c,a=d});s.status="pending",s.catch(()=>{});function o(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{o({status:"fulfilled",value:c}),n(c)},s.reject=c=>{o({status:"rejected",reason:c}),a(c)},s}function LR(n){return Math.min(1e3*2**n,3e4)}function Gv(n){return(n??"online")==="online"?pl.isOnline():!0}var Ud=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function $v(n){let a=!1,s=0,o;const c=zR(),d=()=>c.status!=="pending",f=k=>{if(!d()){const A=new Ud(k);S(A),n.onCancel?.(A)}},m=()=>{a=!0},g=()=>{a=!1},h=()=>Yv.isFocused()&&(n.networkMode==="always"||pl.isOnline())&&n.canRun(),v=()=>Gv(n.networkMode)&&n.canRun(),y=k=>{d()||(o?.(),c.resolve(k))},S=k=>{d()||(o?.(),c.reject(k))},x=()=>new Promise(k=>{o=A=>{(d()||h())&&k(A)},n.onPause?.()}).then(()=>{o=void 0,d()||n.onContinue?.()}),E=()=>
vendor: 6,090 bytes, line 61
61{if(d())return;let k;const A=s===0?n.initialPromise:void 0;try{k=A??n.fn()}catch(C){k=Promise.reject(C)}Promise.resolve(k).then(y).catch(C=>{if(d())return;const L=n.retry??(Al?0:3),V=n.retryDelay??LR,F=typeof V=="function"?V(s,C):V,j=L===!0||typeof L=="number"&&s<L||typeof L=="function"&&L(s,C);if(a||!j){S(C);return}s++,n.onFail?.(s,C),kR(F).then(()=>h()?void 0:x()).then(()=>{a?S(C):E()})})};return{promise:c,status:()=>c.status,cancel:f,continue:()=>(o?.(),c),cancelRetry:m,continueRetry:g,canStart:v,start:()=>(v()?E():x().then(E),c)}}var BR=n=>setTimeout(n,0);function jR(){let n=[],a=0,s=m=>{m()},o=m=>{m()},c=BR;const d=m=>{a?n.push(m):c(()=>{s(m)})},f=()=>{const m=n;n=[],m.length&&c(()=>{o(()=>{m.forEach(g=>{s(g)})})})};return{batch:m=>{let g;a++;try{g=m()}finally{a--,a||f()}return g},batchCalls:m=>(...g)=>{d(()=>{m(...g)})},schedule:d,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{o=m},setScheduler:m=>{c=m}}}var _t=jR(),Xv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),AR(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Al?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},HR=class extends Xv{#e;#t;#n;#i;#a;#r;#o;constructor(n){super(),this.#o=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=PR(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const s=MR(this.state.data,n,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),s}setState(n,a){this.#s({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#a?.promise;return this.#a?.cancel(n),a?a.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>OR(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===of||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Nd(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!CR(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},c=()=>{const m=Iv(this.options,a),h=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(v),v})();return this.#o=!1,this.options.persister?this.options.persister(m,h,this):m(h)},f=(()=>{const m={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return o(m),m})();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#s({type:"fetch",meta:f.fetchOptions?.meta}),this.#a=$v({initialPromise:a?.initialPromise,fn:f.fetchFn,onCancel:m=>{m instanceof Ud&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(m,g)=>{this.#s({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Ud){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#s({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#s(n){const a=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...VR(s.data,this.options),fetchMeta:n.meta??null};case"success":const o={...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const c=n.error;
vendor: 4,367 bytes, line 61
61return{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=a(this.state),_t.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function VR(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gv(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function PR(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,s=a!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var QR=class extends Rl{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,a,s){const o=a.queryKey,c=a.queryHash??rf(o,a);let d=this.get(c);return d||(d=new HR({client:n,queryKey:o,queryHash:c,options:n.defaultQueryOptions(a),state:s,defaultOptions:n.getQueryDefaults(o)}),this.add(d)),d}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#e.get(n.queryHash);a&&(n.destroy(),a===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){_t.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Yp(a,s))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(s=>Yp(n,s)):a}notify(n){_t.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){_t.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){_t.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},IR=class extends Xv{#e;#t;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#e=[],this.state=n.state||YR(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(a=>a!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#i({type:"continue"})};this.#n=$v({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(c,d)=>{this.#i({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",o=!this.#n.canStart();try{if(s)a();else{this.#i({type:"pending",variables:n,isPaused:o}),await this.#t.config.onMutate?.(n,this);const d=await this.options.onMutate?.(n);d!==this.state.context&&this.#i({type:"pending",context:d,variables:n,isPaused:o})}const c=await this.#n.start();return await this.#t.config.onSuccess?.(c,n,this.state.context,this),await this.options.onSuccess?.(c,n,this.state.context),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(c,null,n,this.state.context),this.#i({type:"success",data:c}),c}catch(c){try{throw await this.#t.config.onError?.(c,n,this.state.context,this),await this.options.onError?.(c,n,this.state.context),await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,c,n,this.state.context),c}finally{this.#i({type:"error",error:c})}}finally{this.#t.runNext(this)}}#i(n){const a=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};
vendor: 17,294 bytes, lines 61-111
61case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),_t.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function YR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var GR=class extends Rl{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,a,s){const o=new IR({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:s});return this.add(o),o}add(n){this.#e.add(n);const a=Jo(n);if(typeof a=="string"){const s=this.#t.get(a);s?s.push(n):this.#t.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const a=Jo(n);if(typeof a=="string"){const s=this.#t.get(a);if(s)if(s.length>1){const o=s.indexOf(n);o!==-1&&s.splice(o,1)}else s[0]===n&&this.#t.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Jo(n);if(typeof a=="string"){const o=this.#t.get(a)?.find(c=>c.state.status==="pending");return!o||o===n}else return!0}runNext(n){const a=Jo(n);return typeof a=="string"?this.#t.get(a)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){_t.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Gp(a,s))}findAll(n={}){return this.getAll().filter(a=>Gp(n,a))}notify(n){_t.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return _t.batch(()=>Promise.all(n.map(a=>a.continue().catch(an))))}};function Jo(n){return n.options.scope?.id}function Kp(n){return{onFetch:(a,s)=>{const o=a.options,c=a.fetchOptions?.meta?.fetchMore?.direction,d=a.state.data?.pages||[],f=a.state.data?.pageParams||[];let m={pages:[],pageParams:[]},g=0;const h=async()=>{let v=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(a.signal.aborted?v=!0:a.signal.addEventListener("abort",()=>{v=!0}),a.signal)})},S=Iv(a.options,a.fetchOptions),x=async(E,k,A)=>{if(v)return Promise.reject();if(k==null&&E.pages.length)return Promise.resolve(E);const L=(()=>{const X={client:a.client,queryKey:a.queryKey,pageParam:k,direction:A?"backward":"forward",meta:a.options.meta};return y(X),X})(),V=await S(L),{maxPages:F}=a.options,j=A?DR:NR;return{pages:j(E.pages,V,F),pageParams:j(E.pageParams,k,F)}};if(c&&d.length){const E=c==="backward",k=E?$R:Fp,A={pages:d,pageParams:f},C=k(o,A);m=await x(A,C,E)}else{const E=n??d.length;do{const k=g===0?f[0]??o.initialPageParam:Fp(o,m);if(g>0&&k==null)break;m=await x(m,k),g++}while(g<E)}return m};a.options.persister?a.fetchFn=()=>a.options.persister?.(h,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s):a.fetchFn=h}}}function Fp(n,{pages:a,pageParams:s}){const o=a.length-1;return a.length>0?n.getNextPageParam(a[o],a,s[o],s):void 0}function $R(n,{pages:a,pageParams:s}){return a.length>0?n.getPreviousPageParam?.(a[0],a,s[0],s):void 0}var XR=class{#e;#t;#n;#i;#a;#r;#o;#s;constructor(n={}){this.#e=n.queryCache||new QR,this.#t=n.mutationCache||new GR,this.#n=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=Yv.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=pl.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),s=this.#e.build(this,a),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Nd(a.staleTime,s))&&this.prefetchQuery(a),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:a,state:s})=>{const o=s.data;return[a,o]})}setQueryData(n,a,s){const o=this.defaultQueryOptions({queryKey:n}),d=this.#e.get(o.queryHash)?.state.data,f=RR(a,d);if(f!==void 0)return this.#e.build(this,o).setData(f,{...s,manual:!0})}setQueriesData(n,a,s){return _t.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,a,s)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state}removeQueries(n){const a=this.#e;_t.batch(()=>{a.findAll(n).forEach(s=>{a.remove(s)})})}resetQueries(n,a){const s=this.#e;return _t.batch(()=>(s.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const s={revert:!0,...a},o=_t.batch(()=>this.#e.findAll(n).map(c=>c.cancel(s)));return Promise.all(o).then(an).catch(an)}invalidateQueries(n,a={}){return _t.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const s={...a,cancelRefetch:a.cancelRefetch??!0},o=_t.batch(()=>this.#e.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,s);return s.throwOnError||(d=d.catch(an)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(o).then(an)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const s=this.#e.build(this,a);return s.isStaleByTime(Nd(a.staleTime,s))?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(an).catch(an)}fetchInfiniteQuery(n){return n.behavior=Kp(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(an).catch(an)}ensureInfiniteQueryData(n){return n.behavior=Kp(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return pl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#i.set(Sr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#i.values()],s={};return a.forEach(o=>{xr(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,a){this.#a.set(Sr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#a.values()],s={};return a.forEach(o=>{xr(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=rf(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===of&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},KR=w.createContext(void 0),FR=({client:n,children:a})=>(w.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),q.jsx(KR.Provider,{value:n,children:a}));const ZR=new XR;function JR({children:n}){return q.jsx(FR,{"data-hercules-id":"src/components/providers/query-client.tsx:14:4","data-hercules-name":"ReactQueryClientProvider",client:ZR,children:n})}function WR({children:n}){return q.jsx(TR,{"data-hercules-id":"src/components/providers/default.tsx:13:4","data-hercules-name":"AuthProvider",children:q.jsx(i_,{"data-hercules-id":"src/components/providers/default.tsx:14:6","data-hercules-name":"ConvexProviderWithAuth",client:v_,useAuth:o1,children:q.jsx(JR,{"data-hercules-id":"src/components/providers/default.tsx:15:8","data-hercules-name":"QueryClientProvider",children:q.jsx(_R,{"data-hercules-id":"src/components/providers/default.tsx:16:10","data-hercules-name":"TooltipProvider",children:q.jsxs(d_,{"data-hercules-id":"src/components/providers/default.tsx:17:12","data-hercules-name":"ThemeProvider",attribute:"class",defaultTheme:"system",enableSystem:!0,children:[q.jsx(q1,{"data-hercules-id":"src/components/providers/default.tsx:18:14","data-hercules-name":"Toaster"}),n]})})})})})}const Zp=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Jp=Nv,Kv=(n,a)=>s=>{var o;if(a?.variants==null)return Jp(n,s?.class,s?.className);const{variants:c,defaultVariants:d}=a,f=Object.keys(c).map(h=>{const v=s?.[h],y=d?.[h];if(v===null)return null;const S=Zp(v)||Zp(y);return c[h][S]}),m=s&&Object.entries(s).reduce((h,v)=>{let[y,S]=v;return S===void 0||(h[y]=S),h},{}),g=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((h,v)=>{let{class:y,className:S,...x}=v;return Object.entries(x).every(E=>{let[k,A]=E;return Array.isArray(A)?A.includes({...d,...m}[k]):{...d,...m}[k]===A})?[...h,y,S]:h},[]);return Jp(n,f,g,s?.class,s?.className)},eA=Kv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer disabled:cursor-auto",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function qd({className:n,variant:a,size:s,asChild:o=!1,...c}){const d=o?Ky:"button";return q.jsx(d,{"data-hercules-id":"src/components/ui/button.tsx:51:4","data-hercules-name":"Comp","data-slot":"button",className:si(eA({variant:a,size:s,className:n})),...c})}function sd({className:n,...a}){return q.jsx("div",{"data-hercules-id":"src/components/ui/card.tsx:7:4","data-hercules-name":"div","data-slot":"card",className:si("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...a})}function rd({className:n,...a}){return q.jsx("div",{"data-hercules-id":"src/components/ui/card.tsx:20:4","data-hercules-name":"div","data-slot":"card-header",className:si("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...a})}function od({className:n,...a}){return q.jsx("div",{"data-hercules-id":"src/components/ui/card.tsx:33:4","data-hercules-name":"div","data-slot":"card-title",className:si("leading-none font-semibold",n),...a})}function ld({className:n,...a}){return q.jsx("div",{"data-hercules-id":"src/components/ui/card.tsx:43:4","data-hercules-name":"div","data-slot":"card-description",className:si("text-muted-foreground text-sm",n),...a})}function cd({className:n,...a}){return q.jsx("div",{"data-hercules-id":"src/components/ui/card.tsx:66:4","data-hercules-name":"div","data-slot":"card-content",className:si("px-6",n),...a})}const tA=Kv("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Wo({className:n,variant:a,asChild:s=!1,...o}){const c=s?Ky:"span";return q.jsx(c,{"data-hercules-id":"src/components/ui/badge.tsx:38:4","data-hercules-name":"Comp","data-slot":"badge",className:si(tA({variant:a}),n),...o})}/**
62 * @license lucide-react v0.542.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const nA=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aA=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,s,o)=>o?o.toUpperCase():s.toLowerCase()),Wp=n=>{const a=aA(n);return a.charAt(0).toUpperCase()+a.slice(1)},Fv=(...n)=>n.filter((a,s,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===s).join(" ").trim(),iA=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
67 * @license lucide-react v0.542.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */var sA={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72 * @license lucide-react v0.542.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const rA=w.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:f,...m},g)=>w.createElement("svg",{ref:g,...sA,width:a,height:a,stroke:n,strokeWidth:o?Number(s)*24/Number(a):s,className:Fv("lucide",c),...!d&&!iA(m)&&{"aria-hidden":"true"},...m},[...f.map(([h,v])=>w.createElement(h,v)),...Array.isArray(d)?d:[d]]));/**
77 * @license lucide-react v0.542.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const Ma=(n,a)=>{const s=w.forwardRef(({className:o,...c},d)=>w.createElement(rA,{ref:d,iconNode:a,className:Fv(`lucide-${nA(Wp(n))}`,`lucide-${n}`,o),...c}));return s.displayName=Wp(n),s};/**
82 * @license lucide-react v0.542.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const oA=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],lA=Ma("chart-column",oA);/**
87 * @license lucide-react v0.542.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const cA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ey=Ma("chevron-right",cA);/**
92 * @license lucide-react v0.542.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const uA=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],dA=Ma("coins",uA);/**
97 * @license lucide-react v0.542.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const fA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],hA=Ma("globe",fA);/**
102 * @license lucide-react v0.542.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const gA=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],mA=Ma("lock",gA);/**
107 * @license lucide-react v0.542.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const pA=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
111y:"oel41y"}]],yA=Ma("shield",pA);/**
112 * @license lucide-react v0.542.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const vA=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],bA=Ma("trending-up",vA);/**
117 * @license lucide-react v0.542.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const wA=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],SA=Ma("users",wA);function xA(){w.useEffect(()=>{document.title="BitMart Login | Cryptocurrency Exchange to Buy & Sell Bitcoin, Ethereum, and Trending Tokens";const s=document.querySelector('meta[name="description"]');s&&s.setAttribute("content","Login today to BitMart – the trusted cryptocurrency exchange where you can buy, sell, and trade Bitcoin, Ethereum, and trending tokens. Secure your Bitmart Login now.");const o=document.querySelector('meta[name="keywords"]');o&&o.setAttribute("content","Bitmart Login, BitMart Exchange, Buy Bitcoin, Sell Ethereum, Crypto Trading, Cryptocurrency Exchange, Digital Assets")},[]);const n=[{icon:q.jsx(dA,{"data-hercules-id":"src/pages/Index.tsx:27:12","data-hercules-name":"Coins",className:"size-6"}),title:"1000+ Digital Assets",description:"Trade Bitcoin, Ethereum, DeFi tokens, and emerging cryptocurrencies"},{icon:q.jsx(yA,{"data-hercules-id":"src/pages/Index.tsx:32:12","data-hercules-name":"Shield",className:"size-6"}),title:"Bank-Grade Security",description:"Cold storage, 2FA, and compliance with top-tier risk control systems"},{icon:q.jsx(hA,{"data-hercules-id":"src/pages/Index.tsx:37:12","data-hercules-name":"Globe",className:"size-6"}),title:"Global Access",description:"Available in 180+ countries with 24/7 customer support"},{icon:q.jsx(lA,{"data-hercules-id":"src/pages/Index.tsx:42:12","data-hercules-name":"BarChart3",className:"size-6"}),title:"Advanced Trading Tools",description:"Professional charts, real-time data, and automated trading features"}],a=["Visit the official BitMart website","Click on the Login button at the top right","Enter your email or phone number and password","Complete the security check and enter your 2FA code","Access your dashboard to start trading"];return q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:57:4","data-hercules-name":"div",className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[q.jsx("header",{"data-hercules-id":"src/pages/Index.tsx:59:6","data-hercules-name":"header",className:"bg-slate-900 text-white",children:q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:60:8","data-hercules-name":"div",className:"container mx-auto px-4 py-8 text-center",children:[q.jsx("h1",{"data-hercules-id":"src/pages/Index.tsx:61:10","data-hercules-name":"h1",className:"text-3xl md:text-4xl font-bold mb-4 text-balance",children:"Login Today to Check New Trending Tokens"}),q.jsx("p",{"data-hercules-id":"src/pages/Index.tsx:64:10","data-hercules-name":"p",className:"text-xl text-slate-300 text-balance",children:"BitMart - Cryptocurrency Exchange | Buy & Sell Bitcoin, Ethereum"}),q.jsx("div",{"data-hercules-id":"src/pages/Index.tsx:67:10","data-hercules-name":"div",className:"mt-6",children:q.jsxs(qd,{"data-hercules-id":"src/pages/Index.tsx:68:12","data-hercules-name":"Button",size:"lg",className:"bg-blue-600 hover:bg-blue-700 text-white px-8",children:["Access BitMart Login",q.jsx(ey,{"data-hercules-id":"src/pages/Index.tsx:70:14","data-hercules-name":"ChevronRight",className:"ml-2 size-4"})]})})]})}),q.jsxs("main",{"data-hercules-id":"src/pages/Index.tsx:77:6","data-hercules-name":"main",className:"container mx-auto px-4 py-12 max-w-6xl",children:[q.jsxs("section",{"data-hercules-id":"src/pages/Index.tsx:79:8","data-hercules-name":"section",className:"mb-16",children:[q.jsx("h2",{"data-hercules-id":"src/pages/Index.tsx:80:10","data-hercules-name":"h2",className:"text-3xl font-bold text-slate-900 mb-6 text-center",children:"Why Choose Bitmart Login?"}),q.jsxs("p",{"data-hercules-id":"src/pages/Index.tsx:83:10","data-hercules-name":"p",className:"text-lg text-slate-700 mb-8 text-center max-w-4xl mx-auto text-balance",children:["The world of cryptocurrency moves quickly, and staying ahead means using the right exchange.",q.jsx("strong",{"data-hercules-id":"src/pages/Index.tsx:85:12","data-hercules-name":"strong",className:"text-slate-900",children:" Bitmart Login"})," provides you with direct access to a global marketplace where traders, investors, and crypto enthusiasts buy and sell Bitcoin, Ethereum, and hundreds of trending tokens."]}),q.jsx("div",{"data-hercules-id":"src/pages/Index.tsx:89:10","data-hercules-name":"div",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:n.map((s,o)=>q.jsxs(sd,{"data-hercules-id":"src/pages/Index.tsx:91:14","data-hercules-name":"Card",className:"text-center border-slate-200 hover:shadow-lg transition-shadow",children:[q.jsxs(rd,{"data-hercules-id":"src/pages/Index.tsx:92:16","data-hercules-name":"CardHeader",className:"pb-4",children:[q.jsx("div",{"data-hercules-id":"src/pages/Index.tsx:93:18","data-hercules-name":"div",className:"mx-auto bg-blue-100 rounded-full p-3 w-fit mb-4",children:s.icon}),q.jsx(od,{"data-hercules-id":"src/pages/Index.tsx:96:18","data-hercules-name":"CardTitle",className:"text-lg",children:s.title})]}),q.jsx(cd,{"data-hercules-id":"src/pages/Index.tsx:98:16","data-hercules-name":"CardContent",children:q.jsx(ld,{"data-hercules-id":"src/pages/Index.tsx:99:18","data-hercules-name":"CardDescription",className:"text-slate-600",children:s.description})})]},o))})]}),q.jsx("section",{"data-hercules-id":"src/pages/Index.tsx:109:8","data-hercules-name":"section",className:"mb-16",children:q.jsx("div",{"data-hercules-id":"src/pages/Index.tsx:110:10","data-hercules-name":"div",className:"bg-green-50 border-l-4 border-green-500 p-6 rounded-r-lg",children:q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:111:12","data-hercules-name":"div",className:"flex items-start",children:[q.jsx(mA,{"data-hercules-id":"src/pages/Index.tsx:112:14","data-hercules-name":"Lock",className:"size-6 text-green-600 mr-4 mt-1"}),q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:113:14","data-hercules-name":"div",children:[q.jsx("h3",{"data-hercules-id":"src/pages/Index.tsx:114:16","data-hercules-name":"h3",className:"text-xl font-semibold text-slate-900 mb-2",children:"Secure & Simple Login Process"}),q.jsx("p",{"data-hercules-id":"src/pages/Index.tsx:117:16","data-hercules-name":"p",className:"text-slate-700 mb-4",children:"When it comes to trading crypto, security is everything. BitMart ensures a safe and efficie
121nt login process with two-factor authentication, email verification, and encrypted account protection."}),q.jsx("div",{"data-hercules-id":"src/pages/Index.tsx:121:16","data-hercules-name":"div",className:"bg-amber-100 border border-amber-300 rounded-lg p-4",children:q.jsxs("p",{"data-hercules-id":"src/pages/Index.tsx:122:18","data-hercules-name":"p",className:"text-amber-800",children:[q.jsx("strong",{"data-hercules-id":"src/pages/Index.tsx:123:20","data-hercules-name":"strong",children:"Security Tip:"})," Always bookmark the official BitMart Login page to avoid phishing websites and keep your credentials secure."]})})]})]})})}),q.jsx("section",{"data-hercules-id":"src/pages/Index.tsx:133:8","data-hercules-name":"section",className:"mb-16",children:q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:134:10","data-hercules-name":"div",className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:135:12","data-hercules-name":"div",children:[q.jsx("h2",{"data-hercules-id":"src/pages/Index.tsx:136:14","data-hercules-name":"h2",className:"text-3xl font-bold text-slate-900 mb-6",children:"Discover New Trending Tokens"}),q.jsx("p",{"data-hercules-id":"src/pages/Index.tsx:139:14","data-hercules-name":"p",className:"text-lg text-slate-700 mb-6",children:"One of the biggest advantages of using BitMart is the early access to new and trending tokens. The exchange frequently lists innovative projects before they hit mainstream adoption."}),q.jsxs("p",{"data-hercules-id":"src/pages/Index.tsx:143:14","data-hercules-name":"p",className:"text-slate-700 mb-6",children:["By logging in regularly, you can research, analyze, and trade tokens that have the potential to grow rapidly. Staying active with your ",q.jsx("em",{"data-hercules-id":"src/pages/Index.tsx:145:58","data-hercules-name":"em",className:"text-blue-600",children:"Bitmart Login"})," ensures you never miss an opportunity."]}),q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:148:14","data-hercules-name":"div",className:"flex flex-wrap gap-2",children:[q.jsx(Wo,{"data-hercules-id":"src/pages/Index.tsx:149:16","data-hercules-name":"Badge",variant:"secondary",className:"bg-blue-100 text-blue-800",children:"Bitcoin (BTC)"}),q.jsx(Wo,{"data-hercules-id":"src/pages/Index.tsx:150:16","data-hercules-name":"Badge",variant:"secondary",className:"bg-purple-100 text-purple-800",children:"Ethereum (ETH)"}),q.jsx(Wo,{"data-hercules-id":"src/pages/Index.tsx:151:16","data-hercules-name":"Badge",variant:"secondary",className:"bg-green-100 text-green-800",children:"DeFi Tokens"}),q.jsx(Wo,{"data-hercules-id":"src/pages/Index.tsx:152:16","data-hercules-name":"Badge",variant:"secondary",className:"bg-orange-100 text-orange-800",children:"Web3 Projects"})]})]}),q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:155:12","data-hercules-name":"div",className:"bg-gradient-to-br from-blue-50 to-purple-50 p-8 rounded-xl",children:[q.jsx(bA,{"data-hercules-id":"src/pages/Index.tsx:156:14","data-hercules-name":"TrendingUp",className:"size-12 text-blue-600 mb-4"}),q.jsx("h3",{"data-hercules-id":"src/pages/Index.tsx:157:14","data-hercules-name":"h3",className:"text-xl font-semibold mb-4",children:"Stay Ahead of the Market"}),q.jsx("p",{"data-hercules-id":"src/pages/Index.tsx:158:14","data-hercules-name":"p",className:"text-slate-600",children:"Access real-time market data, advanced charting tools, and instant notifications for new token listings and price movements."})]})]})}),q.jsxs("section",{"data-hercules-id":"src/pages/Index.tsx:167:8","data-hercules-name":"section",className:"mb-16",children:[q.jsx("h2",{"data-hercules-id":"src/pages/Index.tsx:168:10","data-hercules-name":"h2",className:"text-3xl font-bold text-slate-900 mb-8 text-center",children:"How to Start with Bitmart Login"}),q.jsxs(sd,{"data-hercules-id":"src/pages/Index.tsx:171:10","data-hercules-name":"Card",className:"max-w-2xl mx-auto",children:[q.jsxs(rd,{"data-hercules-id":"src/pages/Index.tsx:172:12","data-hercules-name":"CardHeader",children:[q.jsxs(od,{"data-hercules-id":"src/pages/Index.tsx:173:14","data-hercules-name":"CardTitle",className:"flex items-center",children:[q.jsx(SA,{"data-hercules-id":"src/pages/Index.tsx:174:16","data-hercules-name":"Users",className:"size-6 mr-2"}),"Getting Started is Simple"]}),q.jsx(ld,{"data-hercules-id":"src/pages/Index.tsx:177:14","data-hercules-name":"CardDescription",children:"Follow these steps to access your BitMart account and start trading"})]}),q.jsx(cd,{"data-hercules-id":"src/pages/Index.tsx:181:12","data-hercules-name":"CardContent",children:q.jsx("ol",{"data-hercules-id":"src/pages/Index.tsx:182:14","data-hercules-name":"ol",className:"space-y-4",children:a.map((s,o)=>q.jsxs("li",{"data-hercules-id":"src/pages/Index.tsx:184:18","data-hercules-name":"li",className:"flex items-start",children:[q.jsx("span",{"data-hercules-id":"src/pages/Index.tsx:185:20","data-hercules-name":"span",className:"bg-blue-600 text-white rounded-full size-6 flex items-center justify-center text-sm font-semibold mr-3 mt-0.5",children:o+1}),q.jsx("span",{"data-hercules-id":"src/pages/Index.tsx:188:20","data-hercules-name":"span",className:"text-slate-700",children:s})]},o))})})]})]}),q.jsx("section",{"data-hercules-id":"src/pages/Index.tsx:197:8","data-hercules-name":"section",className:"mb-16",children:q.jsxs(sd,{"data-hercules-id":"src/pages/Index.tsx:198:10","data-hercules-name":"Card",className:"bg-slate-50 border-slate-200",children:[q.jsxs(rd,{"data-hercules-id":"src/pages/Index.tsx:199:12","data-hercules-name":"CardHeader",children:[q.jsx(od,{"data-hercules-id":"src/pages/Index.tsx:200:14","data-hercules-name":"CardTitle",className:"text-2xl",children:"SEO-Optimized for Better Discovery"}),q.jsx(ld,{"data-hercules-id":"src/pages/Index.tsx:201:14","data-hercules-name":"CardDescription",className:"text-base",children:"Enhanced visibility for cryptocurrency trading searches"})]}),q.jsxs(cd,{"data-hercules-id":"src/pages/Index.tsx:205:12","data-hercules-name":"CardContent",children:[q.jsxs("p",{"data-hercules-id":"src/pages/Index.tsx:206:14","data-hercules-name":"p",className:"text-slate-700 mb-4",children:["For users searching on Google, Bing, and other search engines, our platform is optimized with relevant keywords. Titles like ",q.jsx("em",{"data-hercules-id":"src/pages/Index.tsx:208:52","data-hercules-name":"em",className:"text-blue-600",children:'"BitMart Login | Cryptocurrency Exchange to Buy & Sell Bitcoin, Ethereum, and Trending Tokens"'})," help ensure maximum visibility."]}),q.jsx("p",{"data-hercules-id":"src/pages/Index.tsx:210:14","data-hercules-name":"p",className:"text-slate-700",children:'Strategic placement of keywords such as "Bitmart Login" across headings, meta descriptions, and content boosts search ranking potential while maintaining natural readability.'})]})]})}),q.jsxs("section",{"data-hercules-id":"src/pages/Index.tsx:219:8","data-hercules-name":"section",className:"text-center bg-gradient-to-r from-blue-600 to-purple-600 rounded-xl p-12 text-white",children:[q.jsx("h2",{"data-hercules-id":"src/pages/Index.tsx:220:10","data-hercules-name":"h2",className:"text-3xl font-bold mb-4 text-balance",children:"Stay Ahead with BitMart"}),q.jsxs("p",{"data-hercules-id":"src/pages/Index.tsx:223:10","data-hercules-name":"p",className:"text-xl mb-8 text-balance max-w-3xl mx-auto opacity-90",children:["The crypto space rewards speed and knowledge. By using ",q.jsx("strong",{"data-hercules-id":"src/pages/Index.tsx:224:67","data-hercules-name":"strong",children:"Bitmart Login"})," daily, you can track price movements, identify new token listings, and execute trades quickly."]}),q.jsx("p",{"data-hercules-id":"src/pages/Index.tsx:227:10","data-hercules-name":"p",className:"mb-8 text-lg opacity-90 max-w-2xl mx-auto text-balance",children:"Whether you're buying Bitcoin, selling Ethereum, or exploring DeFi and Web3 projects, BitMart makes the experience smooth and reliable."}),q.jsxs(qd,{"data-hercules-id":"src/pages/Index.tsx:231:10","data-hercules-name":"Button",size:"lg",variant:"secondary",className:"bg-white text-blue-600 hover:bg-gray-100",children:["Start Trading Now",q.jsx(ey,{"data-hercules-id":"src/pages/Index.tsx:233:12","data-hercules-name":"ChevronRight",className:"ml-2 size-4"})]})]})]}),q.jsx("footer",{"data-hercules-id":"src/pages/Index.tsx:239:6","data-hercules-name":"footer",className:"bg-slate-900 text-white py-8",children:q.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:240:8","data-hercules-name":"div",className:"container mx-auto px-4 text-center",children:[q.jsxs("p",{"data-hercules-id":"src/pages/Index.tsx:241:10","data-hercules-name":"p",className:"text-slate-300",children:["© 2025 BitMart Exchange. All rights reserved. |",q.jsx("a",{"data-hercules-id":"src/pages/Index.tsx:243:12","data-hercules-name":"a",href:"https://www.bitmart.com/",className:"text-blue-400 hover:text-blue-300 ml-1",children:"Official BitMart Login"})]}),q.jsx("p",{"data-hercules-id":"src/pages/Index.tsx:247:10","data-hercules-name":"p",className:"text-sm text-slate-400 mt-2",children:"BitMart continues to grow as one of the top global exchanges by combining security, innovation, and accessibility."})]})})]})}function _A(){const n=ka();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",n.pathname)},[n.pathname]),q.jsx("div",{"data-hercules-id":"src/pages/NotFound.tsx:17:4","data-hercules-name":"div",className:"min-h-screen flex items-center justify-center bg-background",children:q.jsxs("div",{"data-hercules-id":"src/pages/NotFound.tsx:18:6","data-hercules-name":"div",className:"text-center space-y-6",children:[q.jsxs("div",{"data-hercules-id":"src/pages/NotFound.tsx:19:8","data-hercules-name":"div",className:"space-y-2",children:[q.jsx("h1",{"data-hercules-id":"src/pages/NotFound.tsx:20:10","data-hercules-name":"h1",className:"text-6xl font-bold text-muted-foreground",children:"404"}),q.jsx("h2",{"data-hercules-id":"src/pages/NotFound.tsx:21:10","data-hercules-name":"h2",className:"text-2xl font-semibold",children:"Page Not Found"})]}),q.jsx("p",{"data-hercules-id":"src/pages/NotFound.tsx:23:8","data-hercules-name":"p",className:"text-lg text-muted-foreground max-w-md mx-auto",children:"This page does not exist."}),q.jsx("div",{"data-hercules-id":"src/pages/NotFound.tsx:26:8","data-hercules-name":"div",className:"pt-4",children:q.jsx(qd,{"data-hercules-id":"src/pages/NotFound.tsx:27:10","data-hercules-name":"Button",asChild:!0,children:q.jsx(Pd,{"data-hercules-id":"src/pages/NotFound.tsx:28:12","data-hercules-name":"Link",to:"/",children:"Return to Home"})})})]})})}function EA(){return q.jsx(WR,{"data-hercules-id":"src/App.tsx:9:4","data-hercules-name":"DefaultProviders",children:q.jsx(AS,{"data-hercules-id":"src/App.tsx:10:6","data-hercules-name":"BrowserRouter",children:q.jsxs(iS,{"data-hercules-id":"src/App.tsx:11:8","data-hercules-name":"Routes",children:[q.jsx(dd,{"data-hercules-id":"src/App.tsx:12:10","data-hercules-name":"Route",path:"/",element:q.jsx(xA,{"data-hercules-id":"src/App.tsx:12:35","data-hercules-name":"Index"})}),q.jsx(dd,{"data-hercules-id":"src/App.tsx:14:10","data-hercules-name":"Route",path:"*",element:q.jsx(_A,{"data-hercules-id":"src/App.tsx:14:35","data-hercules-name":"NotFound"})})]})})})}hw.createRoot(document.getElementById("root")).render(q.jsx(w.StrictMode,{"data-hercules-id":"src/main.tsx:7:2","data-hercules-name":"StrictMode",children:q.jsx(EA,{"data-hercules-id":"src/main.tsx:8:4","data-hercules-name":"App"})}));

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.