PageSourceSearch

https://vault-key.vercel.app/assets/index-CB8csm6M.js

js vault-key.vercel.app collected 2026-10-03 07:58:57 UTC 785,698 bytes, 346 lines download raw bytes

vendor: 4,828 bytes, lines 1-17
1var M2=Object.defineProperty;var O2=(e,n,a)=>n in e?M2(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a;var Xd=(e,n,a)=>O2(e,typeof n!="symbol"?n+"":n,a);function D2(e,n){for(var a=0;a<n.length;a++){const i=n[a];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();var k2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lp={exports:{}},Yc={};/**
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 tx;function P2(){if(tx)return Yc;tx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(i,s,c){var u=null;if(c!==void 0&&(u=""+c),s.key!==void 0&&(u=""+s.key),"key"in s){c={};for(var f in s)f!=="key"&&(c[f]=s[f])}else c=s;return s=c.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:c}}return Yc.Fragment=n,Yc.jsx=a,Yc.jsxs=a,Yc}var nx;function L2(){return nx||(nx=1,lp.exports=P2()),lp.exports}var m=L2(),cp={exports:{}},vt={};/**
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 rx;function I2(){if(rx)return vt;rx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.iterator;function E(P){return P===null||typeof P!="object"?null:(P=x&&P[x]||P["@@iterator"],typeof P=="function"?P:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function M(P,se,_e){this.props=P,this.context=se,this.refs=R,this.updater=_e||N}M.prototype.isReactComponent={},M.prototype.setState=function(P,se){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,se,"setState")},M.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function D(){}D.prototype=M.prototype;function $(P,se,_e){this.props=P,this.context=se,this.refs=R,this.updater=_e||N}var I=$.prototype=new D;I.constructor=$,T(I,M.prototype),I.isPureReactComponent=!0;var ee=Array.isArray,z={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function ie(P,se,_e,Ne,de,He){return _e=He.ref,{$$typeof:e,type:P,key:se,ref:_e!==void 0?_e:null,props:He}}function be(P,se){return ie(P.type,se,void 0,void 0,void 0,P.props)}function me(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function xe(P){var se={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(_e){return se[_e]})}var Re=/\/+/g;function Ve(P,se){return typeof P=="object"&&P!==null&&P.key!=null?xe(""+P.key):se.toString(36)}function Ue(){}function Ye(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(Ue,Ue):(P.status="pending",P.then(function(se){P.status==="pending"&&(P.status="fulfilled",P.value=se)},function(se){P.status==="pending"&&(P.status="rejected",P.reason=se)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function tt(P,se,_e,Ne,de){var He=typeof P;(He==="undefined"||He==="boolean")&&(P=null);var $e=!1;if(P===null)$e=!0;
vendor: 5,462 bytes, line 17
17else switch(He){case"bigint":case"string":case"number":$e=!0;break;case"object":switch(P.$$typeof){case e:case n:$e=!0;break;case b:return $e=P._init,tt($e(P._payload),se,_e,Ne,de)}}if($e)return de=de(P),$e=Ne===""?"."+Ve(P,0):Ne,ee(de)?(_e="",$e!=null&&(_e=$e.replace(Re,"$&/")+"/"),tt(de,se,_e,"",function(Ie){return Ie})):de!=null&&(me(de)&&(de=be(de,_e+(de.key==null||P&&P.key===de.key?"":(""+de.key).replace(Re,"$&/")+"/")+$e)),se.push(de)),1;$e=0;var ct=Ne===""?".":Ne+":";if(ee(P))for(var ft=0;ft<P.length;ft++)Ne=P[ft],He=ct+Ve(Ne,ft),$e+=tt(Ne,se,_e,He,de);else if(ft=E(P),typeof ft=="function")for(P=ft.call(P),ft=0;!(Ne=P.next()).done;)Ne=Ne.value,He=ct+Ve(Ne,ft++),$e+=tt(Ne,se,_e,He,de);else if(He==="object"){if(typeof P.then=="function")return tt(Ye(P),se,_e,Ne,de);throw se=String(P),Error("Objects are not valid as a React child (found: "+(se==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":se)+"). If you meant to render a collection of children, use an array instead.")}return $e}function pe(P,se,_e){if(P==null)return P;var Ne=[],de=0;return tt(P,Ne,"","",function(He){return se.call(_e,He,de++)}),Ne}function Me(P){if(P._status===-1){var se=P._result;se=se(),se.then(function(_e){(P._status===0||P._status===-1)&&(P._status=1,P._result=_e)},function(_e){(P._status===0||P._status===-1)&&(P._status=2,P._result=_e)}),P._status===-1&&(P._status=0,P._result=se)}if(P._status===1)return P._result.default;throw P._result}var B=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var se=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(se))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function K(){}return vt.Children={map:pe,forEach:function(P,se,_e){pe(P,function(){se.apply(this,arguments)},_e)},count:function(P){var se=0;return pe(P,function(){se++}),se},toArray:function(P){return pe(P,function(se){return se})||[]},only:function(P){if(!me(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},vt.Component=M,vt.Fragment=a,vt.Profiler=s,vt.PureComponent=$,vt.StrictMode=i,vt.Suspense=p,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,vt.act=function(){throw Error("act(...) is not supported in production builds of React.")},vt.cache=function(P){return function(){return P.apply(null,arguments)}},vt.cloneElement=function(P,se,_e){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var Ne=T({},P.props),de=P.key,He=void 0;if(se!=null)for($e in se.ref!==void 0&&(He=void 0),se.key!==void 0&&(de=""+se.key),se)!q.call(se,$e)||$e==="key"||$e==="__self"||$e==="__source"||$e==="ref"&&se.ref===void 0||(Ne[$e]=se[$e]);var $e=arguments.length-2;if($e===1)Ne.children=_e;else if(1<$e){for(var ct=Array($e),ft=0;ft<$e;ft++)ct[ft]=arguments[ft+2];Ne.children=ct}return ie(P.type,de,void 0,void 0,He,Ne)},vt.createContext=function(P){return P={$$typeof:u,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:c,_context:P},P},vt.createElement=function(P,se,_e){var Ne,de={},He=null;if(se!=null)for(Ne in se.key!==void 0&&(He=""+se.key),se)q.call(se,Ne)&&Ne!=="key"&&Ne!=="__self"&&Ne!=="__source"&&(de[Ne]=se[Ne]);var $e=arguments.length-2;if($e===1)de.children=_e;else if(1<$e){for(var ct=Array($e),ft=0;ft<$e;ft++)ct[ft]=arguments[ft+2];de.children=ct}if(P&&P.defaultProps)for(Ne in $e=P.defaultProps,$e)de[Ne]===void 0&&(de[Ne]=$e[Ne]);return ie(P,He,void 0,void 0,null,de)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(P){return{$$typeof:f,render:P}},vt.isValidElement=me,vt.lazy=function(P){return{$$typeof:b,_payload:{_status:-1,_result:P},_init:Me}},vt.memo=function(P,se){return{$$typeof:g,type:P,compare:se===void 0?null:se}},vt.startTransition=function(P){var se=z.T,_e={};z.T=_e;try{var Ne=P(),de=z.S;de!==null&&de(_e,Ne),typeof Ne=="object"&&Ne!==null&&typeof Ne.then=="function"&&Ne.then(K,B)}catch(He){B(He)}finally{z.T=se}},vt.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},vt.use=function(P){return z.H.use(P)},vt.useActionState=function(P,se,_e){return z.H.useActionState(P,se,_e)},vt.useCallback=function(P,se){return z.H.useCallback(P,se)},vt.useContext=function(P){return z.H.useContext(P)},vt.useDebugValue=function(){},vt.useDeferredValue=function(P,se){return z.H.useDeferredValue(P,se)},vt.useEffect=function(P,se){return z.H.useEffect(P,se)},vt.useId=function(){return z.H.useId()},vt.useImperativeHandle=function(P,se,_e){return z.H.useImperativeHandle(P,se,_e)},vt.useInsertionEffect=function(P,se){return z.H.useInsertionEffect(P,se)},vt.useLayoutEffect=function(P,se){return z.H.useLayoutEffect(P,se)},vt.useMemo=function(P,se){return z.H.useMemo(P,se)},vt.useOptimistic=function(P,se){return z.H.useOptimistic(P,se)},vt.useReducer=function(P,se,_e){return z.H.useReducer(P,se,_e)},vt.useRef=function(P){return z.H.useRef(P)},vt.useState=function(P){return z.H.useState(P)},vt.useSyncExternalStore=function(P,se,_e){return z.H.useSyncExternalStore(P,se,_e)},vt.useTransition=function(){return z.H.useTransition()},vt.version="19.0.0",vt}var ax;function kg(){return ax||(ax=1,cp.exports=I2()),cp.exports}
vendor: 11,161 bytes, lines 17-43
17var S=kg();const In=Dg(S),z2=D2({__proto__:null,default:In},[S]);var up={exports:{}},Xc={},dp={exports:{}},fp={};/**
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 ix;function V2(){return ix||(ix=1,function(e){function n(pe,Me){var B=pe.length;pe.push(Me);e:for(;0<B;){var K=B-1>>>1,P=pe[K];if(0<s(P,Me))pe[K]=Me,pe[B]=P,B=K;else break e}}function a(pe){return pe.length===0?null:pe[0]}function i(pe){if(pe.length===0)return null;var Me=pe[0],B=pe.pop();if(B!==Me){pe[0]=B;e:for(var K=0,P=pe.length,se=P>>>1;K<se;){var _e=2*(K+1)-1,Ne=pe[_e],de=_e+1,He=pe[de];if(0>s(Ne,B))de<P&&0>s(He,Ne)?(pe[K]=He,pe[de]=B,K=de):(pe[K]=Ne,pe[_e]=B,K=_e);else if(de<P&&0>s(He,B))pe[K]=He,pe[de]=B,K=de;else break e}}return Me}function s(pe,Me){var B=pe.sortIndex-Me.sortIndex;return B!==0?B:pe.id-Me.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],g=[],b=1,x=null,E=3,N=!1,T=!1,R=!1,M=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function I(pe){for(var Me=a(g);Me!==null;){if(Me.callback===null)i(g);else if(Me.startTime<=pe)i(g),Me.sortIndex=Me.expirationTime,n(p,Me);else break;Me=a(g)}}function ee(pe){if(R=!1,I(pe),!T)if(a(p)!==null)T=!0,Ye();else{var Me=a(g);Me!==null&&tt(ee,Me.startTime-pe)}}var z=!1,q=-1,ie=5,be=-1;function me(){return!(e.unstable_now()-be<ie)}function xe(){if(z){var pe=e.unstable_now();be=pe;var Me=!0;try{e:{T=!1,R&&(R=!1,D(q),q=-1),N=!0;var B=E;try{t:{for(I(pe),x=a(p);x!==null&&!(x.expirationTime>pe&&me());){var K=x.callback;if(typeof K=="function"){x.callback=null,E=x.priorityLevel;var P=K(x.expirationTime<=pe);if(pe=e.unstable_now(),typeof P=="function"){x.callback=P,I(pe),Me=!0;break t}x===a(p)&&i(p),I(pe)}else i(p);x=a(p)}if(x!==null)Me=!0;else{var se=a(g);se!==null&&tt(ee,se.startTime-pe),Me=!1}}break e}finally{x=null,E=B,N=!1}Me=void 0}}finally{Me?Re():z=!1}}}var Re;if(typeof $=="function")Re=function(){$(xe)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,Ue=Ve.port2;Ve.port1.onmessage=xe,Re=function(){Ue.postMessage(null)}}else Re=function(){M(xe,0)};function Ye(){z||(z=!0,Re())}function tt(pe,Me){q=M(function(){pe(e.unstable_now())},Me)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(pe){pe.callback=null},e.unstable_continueExecution=function(){T||N||(T=!0,Ye())},e.unstable_forceFrameRate=function(pe){0>pe||125<pe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<pe?Math.floor(1e3/pe):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_getFirstCallbackNode=function(){return a(p)},e.unstable_next=function(pe){switch(E){case 1:case 2:case 3:var Me=3;break;default:Me=E}var B=E;E=Me;try{return pe()}finally{E=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(pe,Me){switch(pe){case 1:case 2:case 3:case 4:case 5:break;default:pe=3}var B=E;E=pe;try{return Me()}finally{E=B}},e.unstable_scheduleCallback=function(pe,Me,B){var K=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?K+B:K):B=K,pe){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=B+P,pe={id:b++,callback:Me,priorityLevel:pe,startTime:B,expirationTime:P,sortIndex:-1},B>K?(pe.sortIndex=B,n(g,pe),a(p)===null&&pe===a(g)&&(R?(D(q),q=-1):R=!0,tt(ee,B-K))):(pe.sortIndex=P,n(p,pe),T||N||(T=!0,Ye())),pe},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(pe){var Me=E;return function(){var B=E;E=Me;try{return pe.apply(this,arguments)}finally{E=B}}}}(fp)),fp}var ox;function U2(){return ox||(ox=1,dp.exports=V2()),dp.exports}var hp={exports:{}},Qn={};/**
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 sx;function B2(){if(sx)return Qn;sx=1;var e=kg();function n(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,g,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:x==null?null:""+x,children:p,containerInfo:g,implementation:b}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Qn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Qn.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return c(p,g,null,b)},Qn.flushSync=function(p){var g=u.T,b=i.p;try{if(u.T=null,i.p=2,p)return p()}finally{u.T=g,i.p=b,i.d.f()}},Qn.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},Qn.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Qn.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,x=f(b,g.crossOrigin),E=typeof g.integrity=="string"?g.integrity:void 0,N=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:E,fetchPriority:N}):b==="script"&&i.d.X(p,{crossOrigin:x,integrity:E,fetchPriority:N,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Qn.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=f(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},Qn.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,x=f(b,g.crossOrigin);i.d.L(p,b,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Qn.preloadModule=function(p,g){if(typeof p=="string")if(g){var b=f(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},Qn.requestFormReset=function(p){i.d.r(p)},Qn.unstable_batchedUpdates=function(p,g){return p(g)},Qn.useFormState=function(p,g,b){return u.H.useFormState(p,g,b)},Qn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Qn.version="19.0.0",Qn}var lx;function L1(){if(lx)return hp.exports;lx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),hp.exports=B2(),hp.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 cx;function $2(){if(cx)return Xc;cx=1;var e=U2(),n=kg(),a=L1();function i(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var c=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),N=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),ee=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function q(t){return t===null||typeof t!="object"?null:(t=z&&t[z]||t["@@iterator"],typeof t=="function"?t:null)}var ie=Symbol.for("react.client.reference");function be(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ie?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case p:return"Fragment";case f:return"Portal";case b:return"Profiler";case g:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case N:return(t.displayName||"Context")+".Provider";case E:return(t._context.displayName||"Context")+".Consumer";case T:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case D:return r=t.displayName||null,r!==null?r:be(t.type)||"Memo";case $:r=t._payload,t=t._init;try{return be(t(r))}catch{}}return null}var me=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe=Object.assign,Re,Ve;function Ue(t){if(Re===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);Re=r&&r[1]||"",Ve=-1<o.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+Re+t+Ve}var Ye=!1;function tt(t,r){if(!t||Ye)return"";Ye=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(Se){var ge=Se}Reflect.construct(t,[],Oe)}else{try{Oe.call()}catch(Se){ge=Se}t.call(Oe.prototype)}}else{try{throw Error()}catch(Se){ge=Se}(Oe=t())&&typeof Oe.catch=="function"&&Oe.catch(function(){})}}
vendor: 4,815 bytes, lines 43-48
43catch(Se){if(Se&&ge&&typeof Se.stack=="string")return[Se.stack,ge.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=l.DetermineComponentFrameRoot(),_=v[0],k=v[1];if(_&&k){var F=_.split(`
44`),re=k.split(`
45`);for(h=l=0;l<F.length&&!F[l].includes("DetermineComponentFrameRoot");)l++;for(;h<re.length&&!re[h].includes("DetermineComponentFrameRoot");)h++;if(l===F.length||h===re.length)for(l=F.length-1,h=re.length-1;1<=l&&0<=h&&F[l]!==re[h];)h--;for(;1<=l&&0<=h;l--,h--)if(F[l]!==re[h]){if(l!==1||h!==1)do if(l--,h--,0>h||F[l]!==re[h]){var Ae=`
46`+F[l].replace(" at new "," at ");return t.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",t.displayName)),Ae}while(1<=l&&0<=h);break}}}finally{Ye=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?Ue(o):""}function pe(t){switch(t.tag){case 26:case 27:case 5:return Ue(t.type);case 16:return Ue("Lazy");case 13:return Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 15:return t=tt(t.type,!1),t;case 11:return t=tt(t.type.render,!1),t;case 1:return t=tt(t.type,!0),t;default:return""}}function Me(t){try{var r="";do r+=pe(t),t=t.return;while(t);return r}catch(o){return`
47Error generating stack: `+o.message+`
48`+o.stack}}function B(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function K(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function P(t){if(B(t)!==t)throw Error(i(188))}function se(t){var r=t.alternate;if(!r){if(r=B(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,l=r;;){var h=o.return;if(h===null)break;var v=h.alternate;if(v===null){if(l=h.return,l!==null){o=l;continue}break}if(h.child===v.child){for(v=h.child;v;){if(v===o)return P(h),t;if(v===l)return P(h),r;v=v.sibling}throw Error(i(188))}if(o.return!==l.return)o=h,l=v;else{for(var _=!1,k=h.child;k;){if(k===o){_=!0,o=h,l=v;break}if(k===l){_=!0,l=h,o=v;break}k=k.sibling}if(!_){for(k=v.child;k;){if(k===o){_=!0,o=v,l=h;break}if(k===l){_=!0,l=v,o=h;break}k=k.sibling}if(!_)throw Error(i(189))}}if(o.alternate!==l)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function _e(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=_e(t),r!==null)return r;t=t.sibling}return null}var Ne=Array.isArray,de=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He={pending:!1,data:null,method:null,action:null},$e=[],ct=-1;function ft(t){return{current:t}}function Ie(t){0>ct||(t.current=$e[ct],$e[ct]=null,ct--)}function Ct(t,r){ct++,$e[ct]=t.current,t.current=r}var vn=ft(null),St=ft(null),ln=ft(null),ra=ft(null);function tn(t,r){switch(Ct(ln,r),Ct(St,t),Ct(vn,null),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)&&(r=r.namespaceURI)?jb(r):0;break;default:if(t=t===8?r.parentNode:r,r=t.tagName,t=t.namespaceURI)t=jb(t),r=Mb(t,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Ie(vn),Ct(vn,r)}function Dr(){Ie(vn),Ie(St),Ie(ln)}function Aa(t){t.memoizedState!==null&&Ct(ra,t);var r=vn.current,o=Mb(r,t.type);r!==o&&(Ct(St,t),Ct(vn,o))}function br(t){St.current===t&&(Ie(vn),Ie(St)),ra.current===t&&(Ie(ra),Fc._currentValue=He)}var fr=Object.prototype.hasOwnProperty,aa=e.unstable_scheduleCallback,Rn=e.unstable_cancelCallback,To=e.unstable_shouldYield,_a=e.unstable_requestPaint,Kn=e.unstable_now,Na=e.unstable_getCurrentPriorityLevel,xr=e.unstable_ImmediatePriority,wr=e.unstable_UserBlockingPriority,ia=e.unstable_NormalPriority,Ca=e.unstable_LowPriority,Za=e.unstable_IdlePriority,Qa=e.log,kr=e.unstable_setDisableYieldValue,Sr=null,hn=null;function Pr(t){if(hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Sr,t,void 0,(t.current.flags&128)===128)}catch{}}function Xe(t){if(typeof Qa=="function"&&kr(t),hn&&typeof hn.setStrictMode=="function")try{hn.setStrictMode(Sr,t)}catch{}}var nn=Math.clz32?Math.clz32:Fe,Lr=Math.log,Oi=Math.LN2;function Fe(t){return t>>>=0,t===0?32:31-(Lr(t)/Oi|0)|0}var Ta=128,Ja=4194304;function hr(t){var r=t&42;if(r!==0)return r;switch(t&-t){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: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;
vendor: 4,802 bytes, line 48
48case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ei(t,r){var o=t.pendingLanes;if(o===0)return 0;var l=0,h=t.suspendedLanes,v=t.pingedLanes,_=t.warmLanes;t=t.finishedLanes!==0;var k=o&134217727;return k!==0?(o=k&~h,o!==0?l=hr(o):(v&=k,v!==0?l=hr(v):t||(_=k&~_,_!==0&&(l=hr(_))))):(k=o&~h,k!==0?l=hr(k):v!==0?l=hr(v):t||(_=o&~_,_!==0&&(l=hr(_)))),l===0?0:r!==0&&r!==l&&(r&h)===0&&(h=l&-l,_=r&-r,h>=_||h===32&&(_&4194176)!==0)?r:l}function oa(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function Wl(t,r){switch(t){case 1:case 2:case 4:case 8:return r+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+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 ws(){var t=Ta;return Ta<<=1,(Ta&4194176)===0&&(Ta=128),t}function sa(){var t=Ja;return Ja<<=1,(Ja&62914560)===0&&(Ja=4194304),t}function Ir(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function la(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Di(t,r,o,l,h,v){var _=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var k=t.entanglements,F=t.expirationTimes,re=t.hiddenUpdates;for(o=_&~o;0<o;){var Ae=31-nn(o),Oe=1<<Ae;k[Ae]=0,F[Ae]=-1;var ge=re[Ae];if(ge!==null)for(re[Ae]=null,Ae=0;Ae<ge.length;Ae++){var Se=ge[Ae];Se!==null&&(Se.lane&=-536870913)}o&=~Oe}l!==0&&Pt(t,l,0),v!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=v&~(_&~r))}function Pt(t,r,o){t.pendingLanes|=r,t.suspendedLanes&=~r;var l=31-nn(r);t.entangledLanes|=r,t.entanglements[l]=t.entanglements[l]|1073741824|o&4194218}function rn(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var l=31-nn(o),h=1<<l;h&r|t[l]&r&&(t[l]|=r),o&=~h}}function Ro(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ti(){var t=de.p;return t!==0?t:(t=window.event,t===void 0?32:Xb(t.type))}function ki(t,r){var o=de.p;try{return de.p=t,r()}finally{de.p=o}}var rr=Math.random().toString(36).slice(2),bn="__reactFiber$"+rr,Yt="__reactProps$"+rr,ar="__reactContainer$"+rr,mr="__reactEvents$"+rr,Pi="__reactListeners$"+rr,Zl="__reactHandles$"+rr,Er="__reactResources$"+rr,Ra="__reactMarker$"+rr;function Ar(t){delete t[bn],delete t[Yt],delete t[mr],delete t[Pi],delete t[Zl]}function zr(t){var r=t[bn];if(r)return r;for(var o=t.parentNode;o;){if(r=o[ar]||o[bn]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=kb(t);t!==null;){if(o=t[bn])return o;t=kb(t)}return r}t=o,o=t.parentNode}return null}function Vr(t){if(t=t[bn]||t[ar]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Lt(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function zn(t){var r=t[Er];return r||(r=t[Er]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function jt(t){t[Ra]=!0}var Li=new Set,Yn={};function pr(t,r){ir(t,r),ir(t+"Capture",r)}function ir(t,r){for(Yn[t]=r,t=0;t<r.length;t++)Li.add(r[t])}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ca=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]*$"),jo={},ua={};function Ss(t){return fr.call(ua,t)?!0:fr.call(jo,t)?!1:ca.test(t)?ua[t]=!0:(jo[t]=!0,!1)}function gt(t,r,o){if(Ss(r))if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+o)}}function O(t,r,o){if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+o)}}function U(t,r,o,l){if(l===null)t.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(r,o,""+l)}}function V(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function W(t){var r=t.type;
vendor: 5,447 bytes, line 48
48return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function J(t){var r=W(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,v=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return h.call(this)},set:function(_){l=""+_,v.call(this,_)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(_){l=""+_},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function oe(t){t._valueTracker||(t._valueTracker=J(t))}function we(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),l="";return t&&(l=W(t)?t.checked?"true":"false":t.value),t=l,t!==o?(r.setValue(t),!0):!1}function je(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ke=/[\n"\\]/g;function Te(t){return t.replace(ke,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function De(t,r,o,l,h,v,_,k){t.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.type=_:t.removeAttribute("type"),r!=null?_==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+V(r)):t.value!==""+V(r)&&(t.value=""+V(r)):_!=="submit"&&_!=="reset"||t.removeAttribute("value"),r!=null?ht(t,_,V(r)):o!=null?ht(t,_,V(o)):l!=null&&t.removeAttribute("value"),h==null&&v!=null&&(t.defaultChecked=!!v),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?t.name=""+V(k):t.removeAttribute("name")}function et(t,r,o,l,h,v,_,k){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.type=v),r!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||r!=null))return;o=o!=null?""+V(o):"",r=r!=null?""+V(r):o,k||r===t.value||(t.value=r),t.defaultValue=r}l=l??h,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=k?t.checked:!!l,t.defaultChecked=!!l,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(t.name=_)}function ht(t,r,o){r==="number"&&je(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function xt(t,r,o,l){if(t=t.options,r){r={};for(var h=0;h<o.length;h++)r["$"+o[h]]=!0;for(o=0;o<t.length;o++)h=r.hasOwnProperty("$"+t[o].value),t[o].selected!==h&&(t[o].selected=h),h&&l&&(t[o].defaultSelected=!0)}else{for(o=""+V(o),r=null,h=0;h<t.length;h++){if(t[h].value===o){t[h].selected=!0,l&&(t[h].defaultSelected=!0);return}r!==null||t[h].disabled||(r=t[h])}r!==null&&(r.selected=!0)}}function Tt(t,r,o){if(r!=null&&(r=""+V(r),r!==t.value&&(t.value=r),o==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=o!=null?""+V(o):""}function Xt(t,r,o,l){if(r==null){if(l!=null){if(o!=null)throw Error(i(92));if(Ne(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),r=o}o=V(r),t.defaultValue=o,l=t.textContent,l===o&&l!==""&&l!==null&&(t.value=l)}function Ze(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var jn=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 Ii(t,r,o){var l=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?l?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":l?t.setProperty(r,o):typeof o!="number"||o===0||jn.has(r)?r==="float"?t.cssFloat=o:t[r]=(""+o).trim():t[r]=o+"px"}function zi(t,r,o){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,o!=null){for(var l in o)!o.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var h in r)l=r[h],r.hasOwnProperty(h)&&o[h]!==l&&Ii(t,h,l)}else for(var v in r)r.hasOwnProperty(v)&&Ii(t,v,r[v])}function Nn(t){if(t.indexOf("-")===-1)return!1;switch(t){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 ja=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"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ni=/^[\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 _r(t){return ni.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Es=null;function As(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Wt=null,Un=null;function Vi(t){var r=Vr(t);if(r&&(t=r.stateNode)){var o=t[Yt]||null;e:switch(t=r.stateNode,r.type){case"input":if(De(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Te(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var l=o[r];if(l!==t&&l.form===t.form){var h=l[Yt]||null;if(!h)throw Error(i(90));De(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<o.length;r++)l=o[r],l.form===t.form&&we(l)}break e;case"textarea":Tt(t,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&xt(t,!!o.multiple,r,!1)}}}var ri=!1;function _s(t,r,o){if(ri)return t(r,o);ri=!0;try{var l=t(r);return l}finally{if(ri=!1,(Wt!==null||Un!==null)&&(Rd(),Wt&&(r=Wt,t=Un,Un=Wt=null,Vi(r),t)))for(r=0;r<t.length;r++)Vi(t[r])}}function gr(t,r){var o=t.stateNode;if(o===null)return null;var l=o[Yt]||null;if(l===null)return null;o=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var Ql=!1;if(Vn)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Ql=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{Ql=!1}var Ur=null,Ns=null,Ui=null;function Bi(){if(Ui)return Ui;var t,r=Ns,o=r.length,l,h="value"in Ur?Ur.value:Ur.textContent,v=h.length;for(t=0;t<o&&r[t]===h[t];t++);var _=o-t;for(l=1;l<=_&&r[o-l]===h[v-l];l++);return Ui=h.slice(t,1<l?1-l:void 0)}function $i(t){var r=t.keyCode;
vendor: 4,843 bytes, line 48
48return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Mo(){return!0}function qu(){return!1}function xn(t){function r(o,l,h,v,_){this._reactName=o,this._targetInst=h,this.type=l,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var k in t)t.hasOwnProperty(k)&&(o=t[k],this[k]=o?o(v):v[k]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Mo:qu,this.isPropagationStopped=qu,this}return xe(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Mo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Mo)},persist:function(){},isPersistent:Mo}),r}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cs=xn(ai),Ma=xe({},ai,{view:0,detail:0}),Ts=xn(Ma),Oo,Jl,Do,Rs=xe({},Ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ii,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Do&&(Do&&t.type==="mousemove"?(Oo=t.screenX-Do.screenX,Jl=t.screenY-Do.screenY):Jl=Oo=0,Do=t),Oo)},movementY:function(t){return"movementY"in t?t.movementY:Jl}}),js=xn(Rs),ec=xe({},Rs,{dataTransfer:0}),Hu=xn(ec),Ms=xe({},Ma,{relatedTarget:0}),Fi=xn(Ms),Os=xe({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),Gu=xn(Os),Sh=xe({},ai,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ds=xn(Sh),tc=xe({},ai,{data:0}),ks=xn(tc),nc={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rc={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"},Mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ko(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Mn[t])?!!r[t]:!1}function ii(){return ko}var Ku=xe({},Ma,{key:function(t){if(t.key){var r=nc[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=$i(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?rc[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ii,charCode:function(t){return t.type==="keypress"?$i(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$i(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ps=xn(Ku),Yu=xe({},Rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ac=xn(Yu),Ls=xe({},Ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ii}),ic=xn(Ls),oi=xe({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),oc=xn(oi),sc=xe({},Rs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Is=xn(sc),lc=xe({},ai,{newState:0,oldState:0}),Xu=xn(lc),Eh=[9,13,27,32],Po=Vn&&"CompositionEvent"in window,Oa=null;Vn&&"documentMode"in document&&(Oa=document.documentMode);var Ah=Vn&&"TextEvent"in window&&!Oa,zs=Vn&&(!Po||Oa&&8<Oa&&11>=Oa),Vs=" ",Wu=!1;function cc(t,r){switch(t){case"keyup":return Eh.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zu(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var si=!1;function Qu(t,r){switch(t){case"compositionend":return Zu(r);case"keypress":return r.which!==32?null:(Wu=!0,Vs);case"textInput":return t=r.data,t===Vs&&Wu?null:t;default:return null}}function _h(t,r){if(si)return t==="compositionend"||!Po&&cc(t,r)?(t=Bi(),Ui=Ns=Ur=null,si=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;
vendor: 4,173 bytes, line 48
48if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return zs&&r.locale!=="ko"?null:r.data;default:return null}}var Ju={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 Us(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!Ju[t.type]:r==="textarea"}function uc(t,r,o,l){Wt?Un?Un.push(l):Un=[l]:Wt=l,r=kd(r,"onChange"),0<r.length&&(o=new Cs("onChange","change",null,o,l),t.push({event:o,listeners:r}))}var qi=null,Lo=null;function Nh(t){_b(t,0)}function Bs(t){var r=Lt(t);if(we(r))return t}function Io(t,r){if(t==="change")return r}var Br=!1;if(Vn){var Zt;if(Vn){var Hi="oninput"in document;if(!Hi){var or=document.createElement("div");or.setAttribute("oninput","return;"),Hi=typeof or.oninput=="function"}Zt=Hi}else Zt=!1;Br=Zt&&(!document.documentMode||9<document.documentMode)}function ed(){qi&&(qi.detachEvent("onpropertychange",$s),Lo=qi=null)}function $s(t){if(t.propertyName==="value"&&Bs(Lo)){var r=[];uc(r,Lo,t,As(t)),_s(Nh,r)}}function td(t,r,o){t==="focusin"?(ed(),qi=r,Lo=o,qi.attachEvent("onpropertychange",$s)):t==="focusout"&&ed()}function li(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Bs(Lo)}function dc(t,r){if(t==="click")return Bs(r)}function Gi(t,r){if(t==="input"||t==="change")return Bs(r)}function Da(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Wn=typeof Object.is=="function"?Object.is:Da;function d(t,r){if(Wn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),l=Object.keys(r);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var h=o[l];if(!fr.call(r,h)||!Wn(t[h],r[h]))return!1}return!0}function y(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function w(t,r){var o=y(t);t=0;for(var l;o;){if(o.nodeType===3){if(l=t+o.textContent.length,t<=r&&l>=r)return{node:o,offset:r-t};t=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=y(o)}}function A(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?A(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function C(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=je(t.document);r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=je(t.document)}return r}function j(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function L(t,r){var o=C(r);r=t.focusedElem;var l=t.selectionRange;if(o!==r&&r&&r.ownerDocument&&A(r.ownerDocument.documentElement,r)){if(l!==null&&j(r)){if(t=l.start,o=l.end,o===void 0&&(o=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(o,r.value.length);else if(o=(t=r.ownerDocument||document)&&t.defaultView||window,o.getSelection){o=o.getSelection();var h=r.textContent.length,v=Math.min(l.start,h);l=l.end===void 0?v:Math.min(l.end,h),!o.extend&&v>l&&(h=l,l=v,v=h),h=w(r,v);var _=w(r,l);h&&_&&(o.rangeCount!==1||o.anchorNode!==h.node||o.anchorOffset!==h.offset||o.focusNode!==_.node||o.focusOffset!==_.offset)&&(t=t.createRange(),t.setStart(h.node,h.offset),o.removeAllRanges(),v>l?(o.addRange(t),o.extend(_.node,_.offset)):(t.setEnd(_.node,_.offset),o.addRange(t)))}}for(t=[],o=r;o=o.parentNode;)o.nodeType===1&&t.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)o=t[r],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var H=Vn&&"documentMode"in document&&11>=document.documentMode,Y=null,Z=null,ae=null,G=!1;function ce(t,r,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;G||Y==null||Y!==je(l)||(l=Y,"selectionStart"in l&&j(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 19,267 bytes, line 48
48sNode:l.focusNode,focusOffset:l.focusOffset}),ae&&d(ae,l)||(ae=l,l=kd(Z,"onSelect"),0<l.length&&(r=new Cs("onSelect","select",null,r,o),t.push({event:r,listeners:l}),r.target=Y)))}function X(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var ne={animationend:X("Animation","AnimationEnd"),animationiteration:X("Animation","AnimationIteration"),animationstart:X("Animation","AnimationStart"),transitionrun:X("Transition","TransitionRun"),transitionstart:X("Transition","TransitionStart"),transitioncancel:X("Transition","TransitionCancel"),transitionend:X("Transition","TransitionEnd")},le={},te={};Vn&&(te=document.createElement("div").style,"AnimationEvent"in window||(delete ne.animationend.animation,delete ne.animationiteration.animation,delete ne.animationstart.animation),"TransitionEvent"in window||delete ne.transitionend.transition);function fe(t){if(le[t])return le[t];if(!ne[t])return t;var r=ne[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in te)return le[t]=r[o];return t}var ye=fe("animationend"),ve=fe("animationiteration"),Ee=fe("animationstart"),Pe=fe("transitionrun"),qe=fe("transitionstart"),Le=fe("transitioncancel"),ze=fe("transitionend"),Ge=new Map,Be="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 scrollEnd toggle touchMove waiting wheel".split(" ");function Ke(t,r){Ge.set(t,r),pr(r,[t])}var at=[],dt=0,yt=0;function On(){for(var t=dt,r=yt=dt=0;r<t;){var o=at[r];at[r++]=null;var l=at[r];at[r++]=null;var h=at[r];at[r++]=null;var v=at[r];if(at[r++]=null,l!==null&&h!==null){var _=l.pending;_===null?h.next=h:(h.next=_.next,_.next=h),l.pending=h}v!==0&&zo(o,h,v)}}function st(t,r,o,l){at[dt++]=t,at[dt++]=r,at[dt++]=o,at[dt++]=l,yt|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function wn(t,r,o,l){return st(t,r,o,l),Sn(t)}function Qt(t,r){return st(t,null,null,r),Sn(t)}function zo(t,r,o){t.lanes|=o;var l=t.alternate;l!==null&&(l.lanes|=o);for(var h=!1,v=t.return;v!==null;)v.childLanes|=o,l=v.alternate,l!==null&&(l.childLanes|=o),v.tag===22&&(t=v.stateNode,t===null||t._visibility&1||(h=!0)),t=v,v=v.return;h&&r!==null&&t.tag===3&&(v=t.stateNode,h=31-nn(o),v=v.hiddenUpdates,t=v[h],t===null?v[h]=[r]:t.push(r),r.lane=o|536870912)}function Sn(t){if(50<Lc)throw Lc=0,Om=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var yr={},Fs=new WeakMap;function $r(t,r){if(typeof t=="object"&&t!==null){var o=Fs.get(t);return o!==void 0?o:(r={value:t,source:r,stack:Me(r)},Fs.set(t,r),r)}return{value:t,source:r,stack:Me(r)}}var qs=[],Hs=0,nd=null,rd=0,Fr=[],qr=0,Vo=null,ci=1,ui="";function Uo(t,r){qs[Hs++]=rd,qs[Hs++]=nd,nd=t,rd=r}function bv(t,r,o){Fr[qr++]=ci,Fr[qr++]=ui,Fr[qr++]=Vo,Vo=t;var l=ci;t=ui;var h=32-nn(l)-1;l&=~(1<<h),o+=1;var v=32-nn(r)+h;if(30<v){var _=h-h%5;v=(l&(1<<_)-1).toString(32),l>>=_,h-=_,ci=1<<32-nn(r)+h|o<<h|l,ui=v+t}else ci=1<<v|o<<h|l,ui=t}function Ch(t){t.return!==null&&(Uo(t,1),bv(t,1,0))}function Th(t){for(;t===nd;)nd=qs[--Hs],qs[Hs]=null,rd=qs[--Hs],qs[Hs]=null;for(;t===Vo;)Vo=Fr[--qr],Fr[qr]=null,ui=Fr[--qr],Fr[qr]=null,ci=Fr[--qr],Fr[qr]=null}var sr=null,Bn=null,Ot=!1,da=null,ka=!1,Rh=Error(i(519));function Bo(t){var r=Error(i(418,""));throw mc($r(r,t)),Rh}function xv(t){var r=t.stateNode,o=t.type,l=t.memoizedProps;switch(r[bn]=t,r[Yt]=l,o){case"dialog":Rt("cancel",r),Rt("close",r);break;case"iframe":case"object":case"embed":Rt("load",r);break;case"video":case"audio":for(o=0;o<zc.length;o++)Rt(zc[o],r);break;case"source":Rt("error",r);break;case"img":case"image":case"link":Rt("error",r),Rt("load",r);break;case"details":Rt("toggle",r);break;case"input":Rt("invalid",r),et(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),oe(r);break;case"select":Rt("invalid",r);break;case"textarea":Rt("invalid",r),Xt(r,l.value,l.defaultValue,l.children),oe(r)}o=l.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||l.suppressHydrationWarning===!0||Rb(r.textContent,o)?(l.popover!=null&&(Rt("beforetoggle",r),Rt("toggle",r)),l.onScroll!=null&&Rt("scroll",r),l.onScrollEnd!=null&&Rt("scrollend",r),l.onClick!=null&&(r.onclick=Pd),r=!0):r=!1,r||Bo(t)}function wv(t){for(sr=t.return;sr;)switch(sr.tag){case 3:case 27:ka=!0;return;case 5:case 13:ka=!1;return;default:sr=sr.return}}function fc(t){if(t!==sr)return!1;if(!Ot)return wv(t),Ot=!0,!1;var r=!1,o;if((o=t.tag!==3&&t.tag!==27)&&((o=t.tag===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||Xm(t.type,t.memoizedProps)),o=!o),o&&(r=!0),r&&Bn&&Bo(t),wv(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(o=t.data,o==="/$"){if(r===0){Bn=ha(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++;t=t.nextSibling}Bn=null}}else Bn=sr?ha(t.stateNode.nextSibling):null;return!0}function hc(){Bn=sr=null,Ot=!1}function mc(t){da===null?da=[t]:da.push(t)}var pc=Error(i(460)),Sv=Error(i(474)),jh={then:function(){}};function Ev(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ad(){}function Av(t,r,o){switch(o=t[o],o===void 0?t.push(r):o!==r&&(r.then(ad,ad),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,t===pc?Error(i(483)):t;default:if(typeof r.status=="string")r.then(ad,ad);else{if(t=qt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(l){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=l}},function(l){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,t===pc?Error(i(483)):t}throw gc=r,pc}}var gc=null;function _v(){if(gc===null)throw Error(i(459));var t=gc;return gc=null,t}var Gs=null,yc=0;function id(t){var r=yc;return yc+=1,Gs===null&&(Gs=[]),Av(Gs,t,r)}function vc(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function od(t,r){throw r.$$typeof===c?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function Nv(t){var r=t._init;return r(t._payload)}function Cv(t){function r(ue,Q){if(t){var he=ue.deletions;he===null?(ue.deletions=[Q],ue.flags|=16):he.push(Q)}}function o(ue,Q){if(!t)return null;for(;Q!==null;)r(ue,Q),Q=Q.sibling;return null}function l(ue){for(var Q=new Map;ue!==null;)ue.key!==null?Q.set(ue.key,ue):Q.set(ue.index,ue),ue=ue.sibling;return Q}function h(ue,Q){return ue=ao(ue,Q),ue.index=0,ue.sibling=null,ue}function v(ue,Q,he){return ue.index=he,t?(he=ue.alternate,he!==null?(he=he.index,he<Q?(ue.flags|=33554434,Q):he):(ue.flags|=33554434,Q)):(ue.flags|=1048576,Q)}function _(ue){return t&&ue.alternate===null&&(ue.flags|=33554434),ue}function k(ue,Q,he,Ce){return Q===null||Q.tag!==6?(Q=Am(he,ue.mode,Ce),Q.return=ue,Q):(Q=h(Q,he),Q.return=ue,Q)}function F(ue,Q,he,Ce){var We=he.type;return We===p?Ae(ue,Q,he.props.children,Ce,he.key):Q!==null&&(Q.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===$&&Nv(We)===Q.type)?(Q=h(Q,he.props),vc(Q,he),Q.return=ue,Q):(Q=Ad(he.type,he.key,he.props,null,ue.mode,Ce),vc(Q,he),Q.return=ue,Q)}function re(ue,Q,he,Ce){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==he.containerInfo||Q.stateNode.implementation!==he.implementation?(Q=_m(he,ue.mode,Ce),Q.return=ue,Q):(Q=h(Q,he.children||[]),Q.return=ue,Q)}function Ae(ue,Q,he,Ce,We){return Q===null||Q.tag!==7?(Q=Zo(he,ue.mode,Ce,We),Q.return=ue,Q):(Q=h(Q,he),Q.return=ue,Q)}function Oe(ue,Q,he){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=Am(""+Q,ue.mode,he),Q.return=ue,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case u:return he=Ad(Q.type,Q.key,Q.props,null,ue.mode,he),vc(he,Q),he.return=ue,he;case f:return Q=_m(Q,ue.mode,he),Q.return=ue,Q;case $:var Ce=Q._init;return Q=Ce(Q._payload),Oe(ue,Q,he)}if(Ne(Q)||q(Q))return Q=Zo(Q,ue.mode,he,null),Q.return=ue,Q;if(typeof Q.then=="function")return Oe(ue,id(Q),he);if(Q.$$typeof===N)return Oe(ue,wd(ue,Q),he);od(ue,Q)}return null}function ge(ue,Q,he,Ce){var We=Q!==null?Q.key:null;if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return We!==null?null:k(ue,Q,""+he,Ce);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case u:return he.key===We?F(ue,Q,he,Ce):null;case f:return he.key===We?re(ue,Q,he,Ce):null;case $:return We=he._init,he=We(he._payload),ge(ue,Q,he,Ce)}if(Ne(he)||q(he))return We!==null?null:Ae(ue,Q,he,Ce,null);if(typeof he.then=="function")return ge(ue,Q,id(he),Ce);if(he.$$typeof===N)return ge(ue,Q,wd(ue,he),Ce);od(ue,he)}return null}function Se(ue,Q,he,Ce,We){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return ue=ue.get(he)||null,k(Q,ue,""+Ce,We);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case u:return ue=ue.get(Ce.key===null?he:Ce.key)||null,F(Q,ue,Ce,We);case f:return ue=ue.get(Ce.key===null?he:Ce.key)||null,re(Q,ue,Ce,We);case $:var At=Ce._init;return Ce=At(Ce._payload),Se(ue,Q,he,Ce,We)}if(Ne(Ce)||q(Ce))return ue=ue.get(he)||null,Ae(Q,ue,Ce,We,null);if(typeof Ce.then=="function")return Se(ue,Q,he,id(Ce),We);if(Ce.$$typeof===N)return Se(ue,Q,he,wd(Q,Ce),We);od(Q,Ce)}return null}function nt(ue,Q,he,Ce){for(var We=null,At=null,rt=Q,it=Q=0,Pn=null;rt!==null&&it<he.length;it++){rt.index>it?(Pn=rt,rt=null):Pn=rt.sibling;var Dt=ge(ue,rt,he[it],Ce);if(Dt===null){rt===null&&(rt=Pn);break}t&&rt&&Dt.alternate===null&&r(ue,rt),Q=v(Dt,Q,it),At===null?We=Dt:At.sibling=Dt,At=Dt,rt=Pn}if(it===he.length)return o(ue,rt),Ot&&Uo(ue,it),We;if(rt===null){for(;it<he.length;it++)rt=Oe(ue,he[it],Ce),rt!==null&&(Q=v(rt,Q,it),At===null?We=rt:At.sibling=rt,At=rt);return Ot&&Uo(ue,it),We}for(rt=l(rt);it<he.length;it++)Pn=Se(rt,ue,it,he[it],Ce),Pn!==null&&(t&&Pn.alternate!==null&&rt.delete(Pn.key===null?it:Pn.key),Q=v(Pn,Q,it),At===null?We=Pn:At.sibling=Pn,At=Pn);return t&&rt.forEach(function(fo){return r(ue,fo)}),Ot&&Uo(ue,it),We}function mt(ue,Q,he,Ce){if(he==null)throw Error(i(151));for(var We=null,At=null,rt=Q,it=Q=0,Pn=null,Dt=he.next();rt!==null&&!Dt.done;it++,Dt=he.next()){rt.index>it?(Pn=rt,rt=null):Pn=rt.sibling;var fo=ge(ue,rt,Dt.value,Ce);if(fo===null){rt===null&&(rt=Pn);break}t&&rt&&fo.alternate===null&&r(ue,rt),Q=v(fo,Q,it),At===null?We=fo:At.sibling=fo,At=fo,rt=Pn}if(Dt.done)return o(ue,rt),Ot&&Uo(ue,it),We;if(rt===null){for(;!Dt.done;it++,Dt=he.next())Dt=Oe(ue,Dt.value,Ce),Dt!==null&&(Q=v(Dt,Q,it),At===null?We=Dt:At.sibling=Dt,At=Dt);return Ot&&Uo(ue,it),We}for(rt=l(rt);!Dt.done;it++,Dt=he.next())Dt=Se(rt,ue,it,Dt.value,Ce),Dt!==null&&(t&&Dt.alternate!==null&&rt.delete(Dt.key===null?it:Dt.key),Q=v(Dt,Q,it),At===null?We=Dt:At.sibling=Dt,At=Dt);return t&&rt.forEach(function(j2){return r(ue,j2)}),Ot&&Uo(ue,it),We}function dn(ue,Q,he,Ce){if(typeof he=="object"&&he!==null&&he.type===p&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case u:e:{for(var We=he.key;Q!==null;){if(Q.key===We){if(We=he.type,We===p){if(Q.tag===7){o(ue,Q.sibling),Ce=h(Q,he.props.children),Ce.return=ue,ue=Ce;break e}}else if(Q.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===$&&Nv(We)===Q.type){o(ue,Q.sibling),Ce=h(Q,he.props),vc(Ce,he),Ce.return=ue,ue=Ce;break e}o(ue,Q);break}else r(ue,Q);Q=Q.sibling}he.type===p?(Ce=Zo(he.props.children,ue.mode,Ce,he.key),Ce.return=ue,ue=Ce):(Ce=Ad(he.type,he.key,he.props,null,ue.mode,Ce),vc(Ce,he),Ce.return=ue,ue=Ce)}return _(ue);case f:e:{for(We=he.key;Q!==null;){if(Q.key===We)if(Q.tag===4&&Q.stateNode.containerInfo===he.containerInfo&&Q.stateNode.implementation===he.implementation){o(ue,Q.sibling),Ce=h(Q,he.children||[]),Ce.return=ue,ue=Ce;break e}else{o(ue,Q);break}else r(ue,Q);Q=Q.sibling}Ce=_m(he,ue.mode,Ce),Ce.return=ue,ue=Ce}return _(ue);case $:return We=he._init,he=We(he._payload),dn(ue,Q,he,Ce)}if(Ne(he))return nt(ue,Q,he,Ce);if(q(he)){if(We=q(he),typeof We!="function")throw Error(i(150));return he=We.call(he),mt(ue,Q,he,Ce)}if(typeof he.then=="function")return dn(ue,Q,id(he),Ce);if(he.$$typeof===N)return dn(ue,Q,wd(ue,he),Ce);od(ue,he)}return typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint"?(he=""+he,Q!==null&&Q.tag===6?(o(ue,Q.sibling),Ce=h(Q,he),Ce.return=ue,ue=Ce):(o(ue,Q),Ce=Am(he,ue.mode,Ce),Ce.return=ue,ue=Ce),_(ue)):o(ue,Q)}return function(ue,Q,he,Ce){try{yc=0;var We=dn(ue,Q,he,Ce);return Gs=null,We}catch(rt){if(rt===pc)throw rt;var At=Yr(29,rt,null,ue.mode);return At.lanes=Ce,At.return=ue,At}finally{}}}var $o=Cv(!0),Tv=Cv(!1),Ks=ft(null),sd=ft(0);function Rv(t,r){t=wi,Ct(sd,t),Ct(Ks,r),wi=t|r.baseLanes}function Mh(){Ct(sd,wi),Ct(Ks,Ks.current)}function Oh(){wi=sd.current,Ie(Ks),Ie(sd)}var Hr=ft(null),Pa=null;function Ki(t){var r=t.alternate;Ct(Cn,Cn.current&1),Ct(Hr,t),Pa===null&&(r===null||Ks.current!==null||r.memoizedState!==null)&&(Pa=t)}function jv(t){if(t.tag===22){if(Ct(Cn,Cn.current),Ct(Hr,t),Pa===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(Pa=t)}}else Yi()}function Yi(){Ct(Cn,Cn.current),Ct(Hr,Hr.current)}function di(t){Ie(Hr),Pa===t&&(Pa=null),Ie(Cn)}var Cn=ft(0);function ld(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var yC=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(o,l){t.push(l)}};this.abort=function(){r.aborted=!0,t.forEach(function(o){return o()})}},vC=e.unstable_scheduleCallback,bC=e.unstable_NormalPriority,Tn={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dh(){return{controller:new yC,data:new Map,refCount:0}}function bc(t){t.refCount--,t.refCount===0&&vC(bC,function(){t.controller.abort()})}var xc=null,kh=0,Ys=0,Xs=null;function xC(t,r){if(xc===null){var o=xc=[];kh=0,Ys=Um(),Xs={status:"pending",value:void 0,then:function(l){o.push(l)}}}return kh++,r.then(Mv,Mv),r}function Mv(){if(--kh===0&&xc!==null){Xs!==null&&(Xs.status="fulfilled");var t=xc;xc=null,Ys=0,Xs=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function wC(t,r){var o=[],l={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return t.then(function(){l.status="fulfilled",l.value=r;for(var h=0;h<o.length;h++)(0,o[h])(r)},function(h){for(l.status="rejected",l.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),l}var Ov=me.S;me.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&xC(t,r),Ov!==null&&Ov(t,r)};var Fo=ft(null);function Ph(){var t=Fo.current;return t!==null?t:qt.pooledCache}function cd(t,r){r===null?Ct(Fo,Fo.current):Ct(Fo,r.pool)}function Dv(){var t=Ph();return t===null?null:{parent:Tn._currentValue,pool:t}}var Xi=0,Et=null,Vt=null,En=null,ud=!1,Ws=!1,qo=!1,dd=0,wc=0,Zs=null,SC=0;function mn(){throw Error(i(321))}function Lh(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!Wn(t[o],r[o]))return!1;return!0}function Ih(t,r,o,l,h,v){return Xi=v,Et=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,me.H=t===null||t.memoizedState===null?Ho:Wi,qo=!1,v=o(l,h),qo=!1,Ws&&(v=Pv(r,o,l,h)),kv(t),v}function kv(t){me.H=La;var r=Vt!==null&&Vt.next!==null;if(Xi=0,En=Vt=Et=null,ud=!1,wc=0,Zs=null,r)throw Error(i(300));t===null||Dn||(t=t.dependencies,t!==null&&xd(t)&&(Dn=!0))}function Pv(t,r,o,l){Et=t;var h=0;do{if(Ws&&(Zs=null),wc=0,Ws=!1,25<=h)throw Error(i(301));if(h+=1,En=Vt=null,t.updateQueue!=null){var v=t.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}me.H=Go,v=r(o,l)}while(Ws);return v}function EC(){var t=me.H,r=t.useState()[0];return r=typeof r.then=="function"?Sc(r):r,t=t.useState()[0],(Vt!==null?Vt.memoizedState:null)!==t&&(Et.flags|=1024),r}function zh(){var t=dd!==0;return dd=0,t}function Vh(t,r,o){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o}function Uh(t){if(ud){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}ud=!1}Xi=0,En=Vt=Et=null,Ws=!1,wc=dd=0,Zs=null}function vr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?Et.memoizedState=En=t:En=En.next=t,En}function An(){if(Vt===null){var t=Et.alternate;t=t!==null?t.memoizedState:null}else t=Vt.next;var r=En===null?Et.memoizedState:En.next;if(r!==null)En=r,Vt=t;else{if(t===null)throw Et.alternate===null?Error(i(467)):Error(i(310));Vt=t,t={memoizedState:Vt.memoizedState,baseState:Vt.baseState,baseQueue:Vt.baseQueue,queue:Vt.queue,next:null},En===null?Et.memoizedState=En=t:En=En.next=t}return En}var fd;fd=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Sc(t){var r=wc;return wc+=1,Zs===null&&(Zs=[]),t=Av(Zs,t,r),r=Et,(En===null?r.memoizedState:En.next)===null&&(r=r.alternate,me.H=r===null||r.memoizedState===null?Ho:Wi),t}function hd(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sc(t);if(t.$$typeof===N)return Zn(t)}throw Error(i(438,String(t)))}function Bh(t){var r=null,o=Et.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var l=Et.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=fd(),Et.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(t),l=0;l<t;l++)o[l]=ee;return r.index++,o}function fi(t,r){return typeof r=="function"?r(t):r}function md(t){var r=An();return $h(r,Vt,t)}function $h(t,r,o){var l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var h=t.baseQueue,v=l.pending;if(v!==null){if(h!==null){var _=h.next;h.next=v.next,v.next=_}r.baseQueue=h=v,l.pending=null}if(v=t.baseState,h===null)t.memoizedState=v;else{r=h.next;var k=_=null,F=null,re=r,Ae=!1;do{var Oe=re.lane&-536870913;if(Oe!==re.lane?(Mt&Oe)===Oe:(Xi&Oe)===Oe){var ge=re.revertLane;if(ge===0)F!==null&&(F=F.next={lane:0,revertLane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),Oe===Ys&&(Ae=!0);else if((Xi&ge)===ge){re=re.next,ge===Ys&&(Ae=!0);continue}else Oe={lane:0,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},F===null?(k=F=Oe,_=v):F=F.next=Oe,Et.lanes|=ge,io|=ge;Oe=re.action,qo&&o(v,Oe),v=re.hasEagerState?re.eagerState:o(v,Oe)}else ge={lane:Oe,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},F===null?(k=F=ge,_=v):F=F.next=ge,Et.lanes|=Oe,io|=Oe;re=re.next}
vendor: 5,087 bytes, line 48
48while(re!==null&&re!==r);if(F===null?_=v:F.next=k,!Wn(v,t.memoizedState)&&(Dn=!0,Ae&&(o=Xs,o!==null)))throw o;t.memoizedState=v,t.baseState=_,t.baseQueue=F,l.lastRenderedState=v}return h===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Fh(t){var r=An(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var l=o.dispatch,h=o.pending,v=r.memoizedState;if(h!==null){o.pending=null;var _=h=h.next;do v=t(v,_.action),_=_.next;while(_!==h);Wn(v,r.memoizedState)||(Dn=!0),r.memoizedState=v,r.baseQueue===null&&(r.baseState=v),o.lastRenderedState=v}return[v,l]}function Lv(t,r,o){var l=Et,h=An(),v=Ot;if(v){if(o===void 0)throw Error(i(407));o=o()}else o=r();var _=!Wn((Vt||h).memoizedState,o);if(_&&(h.memoizedState=o,Dn=!0),h=h.queue,Gh(Vv.bind(null,l,h,t),[t]),h.getSnapshot!==r||_||En!==null&&En.memoizedState.tag&1){if(l.flags|=2048,Qs(9,zv.bind(null,l,h,o,r),{destroy:void 0},null),qt===null)throw Error(i(349));v||(Xi&60)!==0||Iv(l,r,o)}return o}function Iv(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Et.updateQueue,r===null?(r=fd(),Et.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function zv(t,r,o,l){r.value=o,r.getSnapshot=l,Uv(r)&&Bv(t)}function Vv(t,r,o){return o(function(){Uv(r)&&Bv(t)})}function Uv(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!Wn(t,o)}catch{return!0}}function Bv(t){var r=Qt(t,2);r!==null&&lr(r,t,2)}function qh(t){var r=vr();if(typeof t=="function"){var o=t;if(t=o(),qo){Xe(!0);try{o()}finally{Xe(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:t},r}function $v(t,r,o,l){return t.baseState=o,$h(t,Vt,typeof l=="function"?l:fi)}function AC(t,r,o,l,h){if(yd(t))throw Error(i(485));if(t=r.action,t!==null){var v={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){v.listeners.push(_)}};me.T!==null?o(!0):v.isTransition=!1,l(v),o=r.pending,o===null?(v.next=r.pending=v,Fv(r,v)):(v.next=o.next,r.pending=o.next=v)}}function Fv(t,r){var o=r.action,l=r.payload,h=t.state;if(r.isTransition){var v=me.T,_={};me.T=_;try{var k=o(h,l),F=me.S;F!==null&&F(_,k),qv(t,r,k)}catch(re){Hh(t,r,re)}finally{me.T=v}}else try{v=o(h,l),qv(t,r,v)}catch(re){Hh(t,r,re)}}function qv(t,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(l){Hv(t,r,l)},function(l){return Hh(t,r,l)}):Hv(t,r,o)}function Hv(t,r,o){r.status="fulfilled",r.value=o,Gv(r),t.state=o,r=t.pending,r!==null&&(o=r.next,o===r?t.pending=null:(o=o.next,r.next=o,Fv(t,o)))}function Hh(t,r,o){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=o,Gv(r),r=r.next;while(r!==l)}t.action=null}function Gv(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Kv(t,r){return r}function Yv(t,r){if(Ot){var o=qt.formState;if(o!==null){e:{var l=Et;if(Ot){if(Bn){t:{for(var h=Bn,v=ka;h.nodeType!==8;){if(!v){h=null;break t}if(h=ha(h.nextSibling),h===null){h=null;break t}}v=h.data,h=v==="F!"||v==="F"?h:null}if(h){Bn=ha(h.nextSibling),l=h.data==="F!";break e}}Bo(l)}l=!1}l&&(r=o[0])}}return o=vr(),o.memoizedState=o.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kv,lastRenderedState:r},o.queue=l,o=f0.bind(null,Et,l),l.dispatch=o,l=qh(!1),v=Zh.bind(null,Et,!1,l.queue),l=vr(),h={state:r,dispatch:null,action:t,pending:null},l.queue=h,o=AC.bind(null,Et,h,v,o),h.dispatch=o,l.memoizedState=t,[r,o,!1]}function Xv(t){var r=An();return Wv(r,Vt,t)}function Wv(t,r,o){r=$h(t,r,Kv)[0],t=md(fi)[0],r=typeof r=="object"&&r!==null&&typeof r.then=="function"?Sc(r):r;var l=An(),h=l.queue,v=h.dispatch;return o!==l.memoizedState&&(Et.flags|=2048,Qs(9,_C.bind(null,h,o),{destroy:void 0},null)),[r,v,t]}function _C(t,r){t.action=r}function Zv(t){var r=An(),o=Vt;if(o!==null)return Wv(r,o,t);An(),r=r.memoizedState,o=An();var l=o.queue.dispatch;return o.memoizedState=t,[r,l,!1]}function Qs(t,r,o,l){return t={tag:t,create:r,inst:o,deps:l,next:null},r=Et.updateQueue,r===null&&(r=fd(),Et.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=t.next=t:(l=o.next,o.next=t,t.next=l,r.lastEffect=t),t}function Qv(){return An().memoizedState}function pd(t,r,o,l){var h=vr();Et.flags|=t,h.memoizedState=Qs(1|r,o,{destroy:void 0},l===void 0?null:l)}function gd(t,r,o,l){var h=An();l=l===void 0?null:l;var v=h.memoizedState.inst;Vt!==null&&l!==null&&Lh(l,Vt.memoizedState.deps)?h.memoizedState=Qs(r,o,v,l):(Et.flags|=t,h.memoizedState=Qs(1|r,o,v,l))}function Jv(t,r){pd(8390656,8,t,r)}function Gh(t,r){gd(2048,8,t,r)}function e0(t,r){return gd(4,2,t,r)}function t0(t,r){return gd(4,4,t,r)}function n0(t,r){if(typeof r=="function"){t=t();var o=r(t);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function r0(t,r,o){o=o!=null?o.concat([t]):null,gd(4,4,n0.bind(null,r,t),o)}function Kh(){}function a0(t,r){var o=An();r=r===void 0?null:r;var l=o.memoizedState;return r!==null&&Lh(r,l[1])?l[0]:(o.memoizedState=[t,r],t)}function i0(t,r){var o=An();r=r===void 0?null:r;var l=o.memoizedState;
vendor: 4,634 bytes, line 48
48if(r!==null&&Lh(r,l[1]))return l[0];if(l=t(),qo){Xe(!0);try{t()}finally{Xe(!1)}}return o.memoizedState=[l,r],l}function Yh(t,r,o){return o===void 0||(Xi&1073741824)!==0?t.memoizedState=r:(t.memoizedState=o,t=sb(),Et.lanes|=t,io|=t,o)}function o0(t,r,o,l){return Wn(o,r)?o:Ks.current!==null?(t=Yh(t,o,l),Wn(t,r)||(Dn=!0),t):(Xi&42)===0?(Dn=!0,t.memoizedState=o):(t=sb(),Et.lanes|=t,io|=t,r)}function s0(t,r,o,l,h){var v=de.p;de.p=v!==0&&8>v?v:8;var _=me.T,k={};me.T=k,Zh(t,!1,r,o);try{var F=h(),re=me.S;if(re!==null&&re(k,F),F!==null&&typeof F=="object"&&typeof F.then=="function"){var Ae=wC(F,l);Ec(t,r,Ae,Rr(t))}else Ec(t,r,l,Rr(t))}catch(Oe){Ec(t,r,{then:function(){},status:"rejected",reason:Oe},Rr())}finally{de.p=v,me.T=_}}function NC(){}function Xh(t,r,o,l){if(t.tag!==5)throw Error(i(476));var h=l0(t).queue;s0(t,h,r,He,o===null?NC:function(){return c0(t),o(l)})}function l0(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:He,baseState:He,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:He},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function c0(t){var r=l0(t).next.queue;Ec(t,r,{},Rr())}function Wh(){return Zn(Fc)}function u0(){return An().memoizedState}function d0(){return An().memoizedState}function CC(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var o=Rr();t=Ji(o);var l=eo(r,t,o);l!==null&&(lr(l,r,o),Nc(l,r,o)),r={cache:Dh()},t.payload=r;return}r=r.return}}function TC(t,r,o){var l=Rr();o={lane:l,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},yd(t)?h0(r,o):(o=wn(t,r,o,l),o!==null&&(lr(o,t,l),m0(o,r,l)))}function f0(t,r,o){var l=Rr();Ec(t,r,o,l)}function Ec(t,r,o,l){var h={lane:l,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(yd(t))h0(r,h);else{var v=t.alternate;if(t.lanes===0&&(v===null||v.lanes===0)&&(v=r.lastRenderedReducer,v!==null))try{var _=r.lastRenderedState,k=v(_,o);if(h.hasEagerState=!0,h.eagerState=k,Wn(k,_))return st(t,r,h,0),qt===null&&On(),!1}catch{}finally{}if(o=wn(t,r,h,l),o!==null)return lr(o,t,l),m0(o,r,l),!0}return!1}function Zh(t,r,o,l){if(l={lane:2,revertLane:Um(),action:l,hasEagerState:!1,eagerState:null,next:null},yd(t)){if(r)throw Error(i(479))}else r=wn(t,o,l,2),r!==null&&lr(r,t,2)}function yd(t){var r=t.alternate;return t===Et||r!==null&&r===Et}function h0(t,r){Ws=ud=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function m0(t,r,o){if((o&4194176)!==0){var l=r.lanes;l&=t.pendingLanes,o|=l,r.lanes=o,rn(t,o)}}var La={readContext:Zn,use:hd,useCallback:mn,useContext:mn,useEffect:mn,useImperativeHandle:mn,useLayoutEffect:mn,useInsertionEffect:mn,useMemo:mn,useReducer:mn,useRef:mn,useState:mn,useDebugValue:mn,useDeferredValue:mn,useTransition:mn,useSyncExternalStore:mn,useId:mn};La.useCacheRefresh=mn,La.useMemoCache=mn,La.useHostTransitionStatus=mn,La.useFormState=mn,La.useActionState=mn,La.useOptimistic=mn;var Ho={readContext:Zn,use:hd,useCallback:function(t,r){return vr().memoizedState=[t,r===void 0?null:r],t},useContext:Zn,useEffect:Jv,useImperativeHandle:function(t,r,o){o=o!=null?o.concat([t]):null,pd(4194308,4,n0.bind(null,r,t),o)},useLayoutEffect:function(t,r){return pd(4194308,4,t,r)},useInsertionEffect:function(t,r){pd(4,2,t,r)},useMemo:function(t,r){var o=vr();r=r===void 0?null:r;var l=t();if(qo){Xe(!0);try{t()}finally{Xe(!1)}}return o.memoizedState=[l,r],l},useReducer:function(t,r,o){var l=vr();if(o!==void 0){var h=o(r);if(qo){Xe(!0);try{o(r)}finally{Xe(!1)}}}else h=r;return l.memoizedState=l.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},l.queue=t,t=t.dispatch=TC.bind(null,Et,t),[l.memoizedState,t]},useRef:function(t){var r=vr();return t={current:t},r.memoizedState=t},useState:function(t){t=qh(t);var r=t.queue,o=f0.bind(null,Et,r);return r.dispatch=o,[t.memoizedState,o]},useDebugValue:Kh,useDeferredValue:function(t,r){var o=vr();return Yh(o,t,r)},useTransition:function(){var t=qh(!1);return t=s0.bind(null,Et,t.queue,!0,!1),vr().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,o){var l=Et,h=vr();if(Ot){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),qt===null)throw Error(i(349));(Mt&60)!==0||Iv(l,r,o)}h.memoizedState=o;var v={value:o,getSnapshot:r};return h.queue=v,Jv(Vv.bind(null,l,v,t),[t]),l.flags|=2048,Qs(9,zv.bind(null,l,v,o,r),{destroy:void 0},null),o},useId:function(){var t=vr(),r=qt.identifierPrefix;if(Ot){var o=ui,l=ci;
48o=(l&~(1<<32-nn(l)-1)).toString(32)+o,r=":"+r+"R"+o,o=dd++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=SC++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},useCacheRefresh:function(){return vr().memoizedState=CC.bind(null,Et)}};Ho.useMemoCache=Bh,Ho.useHostTransitionStatus=Wh,Ho.useFormState=Yv,Ho.useActionState=Yv,Ho.useOptimistic=function(t){var r=vr();r.memoizedState=r.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=Zh.bind(null,Et,!0,o),o.dispatch=r,[t,r]};var Wi={readContext:Zn,use:hd,useCallback:a0,useContext:Zn,useEffect:Gh,useImperativeHandle:r0,useInsertionEffect:e0,useLayoutEffect:t0,useMemo:i0,useReducer:md,useRef:Qv,useState:function(){return md(fi)},useDebugValue:Kh,useDeferredValue:function(t,r){var o=An();return o0(o,Vt.memoizedState,t,r)},useTransition:function(){var t=md(fi)[0],r=An().memoizedState;return[typeof t=="boolean"?t:Sc(t),r]},useSyncExternalStore:Lv,useId:u0};Wi.useCacheRefresh=d0,Wi.useMemoCache=Bh,Wi.useHostTransitionStatus=Wh,Wi.useFormState=Xv,Wi.useActionState=Xv,Wi.useOptimistic=function(t,r){var o=An();return $v(o,Vt,t,r)};var Go={readContext:Zn,use:hd,useCallback:a0,useContext:Zn,useEffect:Gh,useImperativeHandle:r0,useInsertionEffect:e0,useLayoutEffect:t0,useMemo:i0,useReducer:Fh,useRef
vendor: 17,786 bytes, line 48
48:Qv,useState:function(){return Fh(fi)},useDebugValue:Kh,useDeferredValue:function(t,r){var o=An();return Vt===null?Yh(o,t,r):o0(o,Vt.memoizedState,t,r)},useTransition:function(){var t=Fh(fi)[0],r=An().memoizedState;return[typeof t=="boolean"?t:Sc(t),r]},useSyncExternalStore:Lv,useId:u0};Go.useCacheRefresh=d0,Go.useMemoCache=Bh,Go.useHostTransitionStatus=Wh,Go.useFormState=Zv,Go.useActionState=Zv,Go.useOptimistic=function(t,r){var o=An();return Vt!==null?$v(o,Vt,t,r):(o.baseState=t,[t,o.queue.dispatch])};function Qh(t,r,o,l){r=t.memoizedState,o=o(l,r),o=o==null?r:xe({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Jh={isMounted:function(t){return(t=t._reactInternals)?B(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var l=Rr(),h=Ji(l);h.payload=r,o!=null&&(h.callback=o),r=eo(t,h,l),r!==null&&(lr(r,t,l),Nc(r,t,l))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var l=Rr(),h=Ji(l);h.tag=1,h.payload=r,o!=null&&(h.callback=o),r=eo(t,h,l),r!==null&&(lr(r,t,l),Nc(r,t,l))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=Rr(),l=Ji(o);l.tag=2,r!=null&&(l.callback=r),r=eo(t,l,o),r!==null&&(lr(r,t,o),Nc(r,t,o))}};function p0(t,r,o,l,h,v,_){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,v,_):r.prototype&&r.prototype.isPureReactComponent?!d(o,l)||!d(h,v):!0}function g0(t,r,o,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,l),r.state!==t&&Jh.enqueueReplaceState(r,r.state,null)}function Ko(t,r){var o=r;if("ref"in r){o={};for(var l in r)l!=="ref"&&(o[l]=r[l])}if(t=t.defaultProps){o===r&&(o=xe({},o));for(var h in t)o[h]===void 0&&(o[h]=t[h])}return o}var vd=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function y0(t){vd(t)}function v0(t){console.error(t)}function b0(t){vd(t)}function bd(t,r){try{var o=t.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function x0(t,r,o){try{var l=t.onCaughtError;l(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function em(t,r,o){return o=Ji(o),o.tag=3,o.payload={element:null},o.callback=function(){bd(t,r)},o}function w0(t){return t=Ji(t),t.tag=3,t}function S0(t,r,o,l){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var v=l.value;t.payload=function(){return h(v)},t.callback=function(){x0(r,o,l)}}var _=o.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(t.callback=function(){x0(r,o,l),typeof h!="function"&&(oo===null?oo=new Set([this]):oo.add(this));var k=l.stack;this.componentDidCatch(l.value,{componentStack:k!==null?k:""})})}function RC(t,r,o,l,h){if(o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=o.alternate,r!==null&&_c(r,o,h,!0),o=Hr.current,o!==null){switch(o.tag){case 13:return Pa===null?Pm():o.alternate===null&&un===0&&(un=3),o.flags&=-257,o.flags|=65536,o.lanes=h,l===jh?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([l]):r.add(l),Im(t,l,h)),!1;case 22:return o.flags|=65536,l===jh?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([l]):o.add(l)),Im(t,l,h)),!1}throw Error(i(435,o.tag))}return Im(t,l,h),Pm(),!1}if(Ot)return r=Hr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,l!==Rh&&(t=Error(i(422),{cause:l}),mc($r(t,o)))):(l!==Rh&&(r=Error(i(423),{cause:l}),mc($r(r,o))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,l=$r(l,o),h=em(t.stateNode,l,h),pm(t,h),un!==4&&(un=2)),!1;var v=Error(i(520),{cause:l});if(v=$r(v,o),kc===null?kc=[v]:kc.push(v),un!==4&&(un=2),r===null)return!0;l=$r(l,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,t=h&-h,o.lanes|=t,t=em(o.stateNode,l,t),pm(o,t),!1;case 1:if(r=o.type,v=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(oo===null||!oo.has(v))))return o.flags|=65536,h&=-h,o.lanes|=h,h=w0(h),S0(h,t,o,l),pm(o,h),!1}o=o.return}while(o!==null);return!1}var E0=Error(i(461)),Dn=!1;function $n(t,r,o,l){r.child=t===null?Tv(r,null,o,l):$o(r,t.child,o,l)}function A0(t,r,o,l,h){o=o.render;var v=r.ref;if("ref"in l){var _={};for(var k in l)k!=="ref"&&(_[k]=l[k])}else _=l;return Xo(r),l=Ih(t,r,o,_,v,h),k=zh(),t!==null&&!Dn?(Vh(t,r,h),hi(t,r,h)):(Ot&&k&&Ch(r),r.flags|=1,$n(t,r,l,h),r.child)}function _0(t,r,o,l,h){if(t===null){var v=o.type;return typeof v=="function"&&!Em(v)&&v.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=v,N0(t,r,v,l,h)):(t=Ad(o.type,null,l,r,r.mode,h),t.ref=r.ref,t.return=r,r.child=t)}if(v=t.child,!cm(t,h)){var _=v.memoizedProps;if(o=o.compare,o=o!==null?o:d,o(_,l)&&t.ref===r.ref)return hi(t,r,h)}return r.flags|=1,t=ao(v,l),t.ref=r.ref,t.return=r,r.child=t}function N0(t,r,o,l,h){if(t!==null){var v=t.memoizedProps;if(d(v,l)&&t.ref===r.ref)if(Dn=!1,r.pendingProps=l=v,cm(t,h))(t.flags&131072)!==0&&(Dn=!0);else return r.lanes=t.lanes,hi(t,r,h)}return tm(t,r,o,l,h)}function C0(t,r,o){var l=r.pendingProps,h=l.children,v=(r.stateNode._pendingVisibility&2)!==0,_=t!==null?t.memoizedState:null;if(Ac(t,r),l.mode==="hidden"||v){if((r.flags&128)!==0){if(l=_!==null?_.baseLanes|o:o,t!==null){for(h=r.child=t.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;r.childLanes=v&~l}else r.childLanes=0,r.child=null;return T0(t,r,l,o)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&cd(r,_!==null?_.cachePool:null),_!==null?Rv(r,_):Mh(),jv(r);else return r.lanes=r.childLanes=536870912,T0(t,r,_!==null?_.baseLanes|o:o,o)}else _!==null?(cd(r,_.cachePool),Rv(r,_),Yi(),r.memoizedState=null):(t!==null&&cd(r,null),Mh(),Yi());return $n(t,r,h,o),r.child}function T0(t,r,o,l){var h=Ph();return h=h===null?null:{parent:Tn._currentValue,pool:h},r.memoizedState={baseLanes:o,cachePool:h},t!==null&&cd(r,null),Mh(),jv(r),t!==null&&_c(t,r,l,!0),null}function Ac(t,r){var o=r.ref;if(o===null)t!==null&&t.ref!==null&&(r.flags|=2097664);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(r.flags|=2097664)}}function tm(t,r,o,l,h){return Xo(r),o=Ih(t,r,o,l,void 0,h),l=zh(),t!==null&&!Dn?(Vh(t,r,h),hi(t,r,h)):(Ot&&l&&Ch(r),r.flags|=1,$n(t,r,o,h),r.child)}function R0(t,r,o,l,h,v){return Xo(r),r.updateQueue=null,o=Pv(r,l,o,h),kv(t),l=zh(),t!==null&&!Dn?(Vh(t,r,v),hi(t,r,v)):(Ot&&l&&Ch(r),r.flags|=1,$n(t,r,o,v),r.child)}function j0(t,r,o,l,h){if(Xo(r),r.stateNode===null){var v=yr,_=o.contextType;typeof _=="object"&&_!==null&&(v=Zn(_)),v=new o(l,v),r.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Jh,r.stateNode=v,v._reactInternals=r,v=r.stateNode,v.props=l,v.state=r.memoizedState,v.refs={},hm(r),_=o.contextType,v.context=typeof _=="object"&&_!==null?Zn(_):yr,v.state=r.memoizedState,_=o.getDerivedStateFromProps,typeof _=="function"&&(Qh(r,o,_,l),v.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(_=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),_!==v.state&&Jh.enqueueReplaceState(v,v.state,null),Tc(r,l,v,h),Cc(),v.state=r.memoizedState),typeof v.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(t===null){v=r.stateNode;var k=r.memoizedProps,F=Ko(o,k);v.props=F;var re=v.context,Ae=o.contextType;_=yr,typeof Ae=="object"&&Ae!==null&&(_=Zn(Ae));var Oe=o.getDerivedStateFromProps;Ae=typeof Oe=="function"||typeof v.getSnapshotBeforeUpdate=="function",k=r.pendingProps!==k,Ae||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(k||re!==_)&&g0(r,v,l,_),Qi=!1;var ge=r.memoizedState;v.state=ge,Tc(r,l,v,h),Cc(),re=r.memoizedState,k||ge!==re||Qi?(typeof Oe=="function"&&(Qh(r,o,Oe,l),re=r.memoizedState),(F=Qi||p0(r,o,F,l,ge,re,_))?(Ae||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(r.flags|=4194308)):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=re),v.props=l,v.state=re,v.context=_,l=F):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{v=r.stateNode,mm(t,r),_=r.memoizedProps,Ae=Ko(o,_),v.props=Ae,Oe=r.pendingProps,ge=v.context,re=o.contextType,F=yr,typeof re=="object"&&re!==null&&(F=Zn(re)),k=o.getDerivedStateFromProps,(re=typeof k=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==Oe||ge!==F)&&g0(r,v,l,F),Qi=!1,ge=r.memoizedState,v.state=ge,Tc(r,l,v,h),Cc();var Se=r.memoizedState;_!==Oe||ge!==Se||Qi||t!==null&&t.dependencies!==null&&xd(t.dependencies)?(typeof k=="function"&&(Qh(r,o,k,l),Se=r.memoizedState),(Ae=Qi||p0(r,o,Ae,l,ge,Se,F)||t!==null&&t.dependencies!==null&&xd(t.dependencies))?(re||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(l,Se,F),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(l,Se,F)),typeof v.componentDidUpdate=="function"&&(r.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof v.componentDidUpdate!="function"||_===t.memoizedProps&&ge===t.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===t.memoizedProps&&ge===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=Se),v.props=l,v.state=Se,v.context=F,l=Ae):(typeof v.componentDidUpdate!="function"||_===t.memoizedProps&&ge===t.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===t.memoizedProps&&ge===t.memoizedState||(r.flags|=1024),l=!1)}return v=l,Ac(t,r),l=(r.flags&128)!==0,v||l?(v=r.stateNode,o=l&&typeof o.getDerivedStateFromError!="function"?null:v.render(),r.flags|=1,t!==null&&l?(r.child=$o(r,t.child,null,h),r.child=$o(r,null,o,h)):$n(t,r,o,h),r.memoizedState=v.state,t=r.child):t=hi(t,r,h),t}function M0(t,r,o,l){return hc(),r.flags|=256,$n(t,r,o,l),r.child}var nm={dehydrated:null,treeContext:null,retryLane:0};function rm(t){return{baseLanes:t,cachePool:Dv()}}function am(t,r,o){return t=t!==null?t.childLanes&~o:0,r&&(t|=Xr),t}function O0(t,r,o){var l=r.pendingProps,h=!1,v=(r.flags&128)!==0,_;if((_=v)||(_=t!==null&&t.memoizedState===null?!1:(Cn.current&2)!==0),_&&(h=!0,r.flags&=-129),_=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ot){if(h?Ki(r):Yi(),Ot){var k=Bn,F;if(F=k){e:{for(F=k,k=ka;F.nodeType!==8;){if(!k){k=null;break e}if(F=ha(F.nextSibling),F===null){k=null;break e}}k=F}k!==null?(r.memoizedState={dehydrated:k,treeContext:Vo!==null?{id:ci,overflow:ui}:null,retryLane:536870912},F=Yr(18,null,null,0),F.stateNode=k,F.return=r,r.child=F,sr=r,Bn=null,F=!0):F=!1}F||Bo(r)}if(k=r.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return k.data==="$!"?r.lanes=16:r.lanes=536870912,null;di(r)}return k=l.children,l=l.fallback,h?(Yi(),h=r.mode,k=om({mode:"hidden",children:k},h),l=Zo(l,h,o,null),k.return=r,l.return=r,k.sibling=l,r.child=k,h=r.child,h.memoizedState=rm(o),h.childLanes=am(t,_,o),r.memoizedState=nm,l):(Ki(r),im(r,k))}if(F=t.memoizedState,F!==null&&(k=F.dehydrated,k!==null)){if(v)r.flags&256?(Ki(r),r.flags&=-257,r=sm(t,r,o)):r.memoizedState!==null?(Yi(),r.child=t.child,r.flags|=128,r=null):(Yi(),h=l.fallback,k=r.mode,l=om({mode:"visible",children:l.children},k),h=Zo(h,k,o,null),h.flags|=2,l.return=r,h.return=r,l.sibling=h,r.child=l,$o(r,t.child,null,o),l=r.child,l.memoizedState=rm(o),l.childLanes=am(t,_,o),r.memoizedState=nm,r=h);else if(Ki(r),k.data==="$!"){if(_=k.nextSibling&&k.nextSibling.dataset,_)var re=_.dgst;_=re,l=Error(i(419)),l.stack="",l.digest=_,mc({value:l,source:null,stack:null}),r=sm(t,r,o)}else if(Dn||_c(t,r,o,!1),_=(o&t.childLanes)!==0,Dn||_){if(_=qt,_!==null){if(l=o&-o,(l&42)!==0)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=(l&(_.suspendedLanes|o))!==0?0:l,l!==0&&l!==F.retryLane)throw F.retryLane=l,Qt(t,l),lr(_,t,l),E0}k.data==="$?"||Pm(),r=sm(t,r,o)}else k.data==="$?"?(r.flags|=128,r.child=t.child,r=qC.bind(null,t),k._reactRetry=r,r=null):(t=F.treeContext,Bn=ha(k.nextSibling),sr=r,Ot=!0,da=null,ka=!1,t!==null&&(Fr[qr++]=ci,Fr[qr++]=ui,Fr[qr++]=Vo,ci=t.id,ui=t.overflow,Vo=r),r=im(r,l.children),r.flags|=4096);return r}return h?(Yi(),h=l.fallback,k=r.mode,F=t.child,re=F.sibling,l=ao(F,{mode:"hidden",children:l.children}),l.subtreeFlags=F.subtreeFlags&31457280,re!==null?h=ao(re,h):(h=Zo(h,k,o,null),h.flags|=2),h.return=r,l.return=r,l.sibling=h,r.child=l,l=h,h=r.child,k=t.child.memoizedState,k===null?k=rm(o):(F=k.cachePool,F!==null?(re=Tn._currentValue,F=F.parent!==re?{parent:re,pool:re}:F):F=Dv(),k={baseLanes:k.baseLanes|o,cachePool:F}),h.memoizedState=k,h.childLanes=am(t,_,o),r.memoizedState=nm,l):(Ki(r),o=t.child,t=o.sibling,o=ao(o,{mode:"visible",children:l.children}),o.return=r,o.sibling=null,t!==null&&(_=r.deletions,_===null?(r.deletions=[t],r.flags|=16):_.push(t)),r.child=o,r.memoizedState=null,o)}function im(t,r){return r=om({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function om(t,r){return ab(t,r,0,null)}function sm(t,r,o){return $o(r,t.child,null,o),t=im(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function D0(t,r,o){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),dm(t.return,r,o)}function lm(t,r,o,l,h){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:h}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=o,v.tailMode=h)}function k0(t,r,o){var l=r.pendingProps,h=l.revealOrder,v=l.tail;if($n(t,r,l.children,o),l=Cn.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&D0(t,o,r);else if(t.tag===19)D0(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(Ct(Cn,l),h){case"forwards":for(o=r.child,h=null;o!==null;)t=o.alternate,t!==null&&ld(t)===null&&(h=o),o=o.sibling;o=h,o===null?(h=r.child,r.child=null):(h=o.sibling,o.sibling=null),lm(r,!1,h,o,v);break;case"backwards":for(o=null,h=r.child,r.child=null;h!==null;){if(t=h.alternate,t!==null&&ld(t)===null){r.child=h;break}t=h.sibling,h.sibling=o,o=h,h=t}lm(r,!0,o,null,v);break;case"together":lm(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function hi(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),io|=r.lanes,(o&r.childLanes)===0)if(t!==null){if(_c(t,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=ao(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=ao(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function cm(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&xd(t)))}function jC(t,r,o){switch(r.tag){case 3:tn(r,r.stateNode.containerInfo),Zi(r,Tn,t.memoizedState.cache),hc();break;case 27:case 5:Aa(r);break;case 4:tn(r,r.stateNode.containerInfo);break;case 10:Zi(r,r.type,r.memoizedProps.value);break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(Ki(r),r.flags|=128,null):(o&r.child.childLanes)!==0?O0(t,r,o):(Ki(r),t=hi(t,r,o),t!==null?t.sibling:null);Ki(r);break;case 19:var h=(t.flags&128)!==0;if(l=(o&r.childLanes)!==0,l||(_c(t,r,o,!1),l=(o&r.childLanes)!==0),h){if(l)return k0(t,r,o);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Ct(Cn,Cn.current),l)break;return null;case 22:case 23:return r.lanes=0,C0(t,r,o);case 24:Zi(r,Tn,t.memoizedState.cache)}return hi(t,r,o)}function P0(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps)Dn=!0;else{if(!cm(t,o)&&(r.flags&128)===0)return Dn=!1,jC(t,r,o);Dn=(t.flags&131072)!==0}else Dn=!1,Ot&&(r.flags&1048576)!==0&&bv(r,rd,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var l=r.elementType,h=l._init;if(l=h(l._payload),r.type=l,typeof l=="function")Em(l)?(t=Ko(l,t),r.tag=1,r=j0(null,r,l,t,o)):(r.tag=0,r=tm(null,r,l,t,o));else{if(l!=null){if(h=l.$$typeof,h===T){r.tag=11,r=A0(null,r,l,t,o);break e}else if(h===D){r.tag=14,r=_0(null,r,l,t,o);break e}}throw r=be(l)||l,Error(i(306,r,""))}}return r;case 0:return tm(t,r,r.type,r.pendingProps,o);case 1:return l=r.type,h=Ko(l,r.pendingProps),j0(t,r,l,h,o);case 3:e:{if(tn(r,r.stateNode.containerInfo),t===null)throw Error(i(387));var v=r.pendingProps;h=r.memoizedState,l=h.element,mm(t,r),Tc(r,v,null,o);var _=r.memoizedState;
vendor: 5,190 bytes, line 48
48if(v=_.cache,Zi(r,Tn,v),v!==h.cache&&fm(r,[Tn],o,!0),Cc(),v=_.element,h.isDehydrated)if(h={element:v,isDehydrated:!1,cache:_.cache},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){r=M0(t,r,v,o);break e}else if(v!==l){l=$r(Error(i(424)),r),mc(l),r=M0(t,r,v,o);break e}else for(Bn=ha(r.stateNode.containerInfo.firstChild),sr=r,Ot=!0,da=null,ka=!0,o=Tv(r,null,v,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(hc(),v===l){r=hi(t,r,o);break e}$n(t,r,v,o)}r=r.child}return r;case 26:return Ac(t,r),t===null?(o=zb(r.type,null,r.pendingProps,null))?r.memoizedState=o:Ot||(o=r.type,t=r.pendingProps,l=Ld(ln.current).createElement(o),l[bn]=r,l[Yt]=t,Fn(l,o,t),jt(l),r.stateNode=l):r.memoizedState=zb(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Aa(r),t===null&&Ot&&(l=r.stateNode=Pb(r.type,r.pendingProps,ln.current),sr=r,ka=!0,Bn=ha(l.firstChild)),l=r.pendingProps.children,t!==null||Ot?$n(t,r,l,o):r.child=$o(r,null,l,o),Ac(t,r),r.child;case 5:return t===null&&Ot&&((h=l=Bn)&&(l=o2(l,r.type,r.pendingProps,ka),l!==null?(r.stateNode=l,sr=r,Bn=ha(l.firstChild),ka=!1,h=!0):h=!1),h||Bo(r)),Aa(r),h=r.type,v=r.pendingProps,_=t!==null?t.memoizedProps:null,l=v.children,Xm(h,v)?l=null:_!==null&&Xm(h,_)&&(r.flags|=32),r.memoizedState!==null&&(h=Ih(t,r,EC,null,null,o),Fc._currentValue=h),Ac(t,r),$n(t,r,l,o),r.child;case 6:return t===null&&Ot&&((t=o=Bn)&&(o=s2(o,r.pendingProps,ka),o!==null?(r.stateNode=o,sr=r,Bn=null,t=!0):t=!1),t||Bo(r)),null;case 13:return O0(t,r,o);case 4:return tn(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=$o(r,null,l,o):$n(t,r,l,o),r.child;case 11:return A0(t,r,r.type,r.pendingProps,o);case 7:return $n(t,r,r.pendingProps,o),r.child;case 8:return $n(t,r,r.pendingProps.children,o),r.child;case 12:return $n(t,r,r.pendingProps.children,o),r.child;case 10:return l=r.pendingProps,Zi(r,r.type,l.value),$n(t,r,l.children,o),r.child;case 9:return h=r.type._context,l=r.pendingProps.children,Xo(r),h=Zn(h),l=l(h),r.flags|=1,$n(t,r,l,o),r.child;case 14:return _0(t,r,r.type,r.pendingProps,o);case 15:return N0(t,r,r.type,r.pendingProps,o);case 19:return k0(t,r,o);case 22:return C0(t,r,o);case 24:return Xo(r),l=Zn(Tn),t===null?(h=Ph(),h===null&&(h=qt,v=Dh(),h.pooledCache=v,v.refCount++,v!==null&&(h.pooledCacheLanes|=o),h=v),r.memoizedState={parent:l,cache:h},hm(r),Zi(r,Tn,h)):((t.lanes&o)!==0&&(mm(t,r),Tc(r,null,null,o),Cc()),h=t.memoizedState,v=r.memoizedState,h.parent!==l?(h={parent:l,cache:l},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),Zi(r,Tn,l)):(l=v.cache,Zi(r,Tn,l),l!==h.cache&&fm(r,[Tn],o,!0))),$n(t,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}var um=ft(null),Yo=null,mi=null;function Zi(t,r,o){Ct(um,r._currentValue),r._currentValue=o}function pi(t){t._currentValue=um.current,Ie(um)}function dm(t,r,o){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===o)break;t=t.return}}function fm(t,r,o,l){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var v=h.dependencies;if(v!==null){var _=h.child;v=v.firstContext;e:for(;v!==null;){var k=v;v=h;for(var F=0;F<r.length;F++)if(k.context===r[F]){v.lanes|=o,k=v.alternate,k!==null&&(k.lanes|=o),dm(v.return,o,t),l||(_=null);break e}v=k.next}}else if(h.tag===18){if(_=h.return,_===null)throw Error(i(341));_.lanes|=o,v=_.alternate,v!==null&&(v.lanes|=o),dm(_,o,t),_=null}else _=h.child;if(_!==null)_.return=h;else for(_=h;_!==null;){if(_===t){_=null;break}if(h=_.sibling,h!==null){h.return=_.return,_=h;break}_=_.return}h=_}}function _c(t,r,o,l){t=null;for(var h=r,v=!1;h!==null;){if(!v){if((h.flags&524288)!==0)v=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var _=h.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var k=h.type;Wn(h.pendingProps.value,_.value)||(t!==null?t.push(k):t=[k])}}else if(h===ra.current){if(_=h.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(Fc):t=[Fc])}h=h.return}t!==null&&fm(r,t,o,l),r.flags|=262144}function xd(t){for(t=t.firstContext;t!==null;){if(!Wn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Xo(t){Yo=t,mi=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zn(t){return L0(Yo,t)}function wd(t,r){return Yo===null&&Xo(t),L0(t,r)}function L0(t,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},mi===null){if(t===null)throw Error(i(308));mi=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else mi=mi.next=r;return o}var Qi=!1;function hm(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mm(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ji(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function eo(t,r,o){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(on&2)!==0){var h=l.pending;
vendor: 5,199 bytes, line 48
48return h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r,r=Sn(t),zo(t,null,o),r}return st(t,l,r,o),Sn(t)}function Nc(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194176)!==0)){var l=r.lanes;l&=t.pendingLanes,o|=l,r.lanes=o,rn(t,o)}}function pm(t,r){var o=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var h=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var _={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?h=v=_:v=v.next=_,o=o.next}while(o!==null);v===null?h=v=r:v=v.next=r}else h=v=r;o={baseState:l.baseState,firstBaseUpdate:h,lastBaseUpdate:v,shared:l.shared,callbacks:l.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}var gm=!1;function Cc(){if(gm){var t=Xs;if(t!==null)throw t}}function Tc(t,r,o,l){gm=!1;var h=t.updateQueue;Qi=!1;var v=h.firstBaseUpdate,_=h.lastBaseUpdate,k=h.shared.pending;if(k!==null){h.shared.pending=null;var F=k,re=F.next;F.next=null,_===null?v=re:_.next=re,_=F;var Ae=t.alternate;Ae!==null&&(Ae=Ae.updateQueue,k=Ae.lastBaseUpdate,k!==_&&(k===null?Ae.firstBaseUpdate=re:k.next=re,Ae.lastBaseUpdate=F))}if(v!==null){var Oe=h.baseState;_=0,Ae=re=F=null,k=v;do{var ge=k.lane&-536870913,Se=ge!==k.lane;if(Se?(Mt&ge)===ge:(l&ge)===ge){ge!==0&&ge===Ys&&(gm=!0),Ae!==null&&(Ae=Ae.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var nt=t,mt=k;ge=r;var dn=o;switch(mt.tag){case 1:if(nt=mt.payload,typeof nt=="function"){Oe=nt.call(dn,Oe,ge);break e}Oe=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=mt.payload,ge=typeof nt=="function"?nt.call(dn,Oe,ge):nt,ge==null)break e;Oe=xe({},Oe,ge);break e;case 2:Qi=!0}}ge=k.callback,ge!==null&&(t.flags|=64,Se&&(t.flags|=8192),Se=h.callbacks,Se===null?h.callbacks=[ge]:Se.push(ge))}else Se={lane:ge,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Ae===null?(re=Ae=Se,F=Oe):Ae=Ae.next=Se,_|=ge;if(k=k.next,k===null){if(k=h.shared.pending,k===null)break;Se=k,k=Se.next,Se.next=null,h.lastBaseUpdate=Se,h.shared.pending=null}}while(!0);Ae===null&&(F=Oe),h.baseState=F,h.firstBaseUpdate=re,h.lastBaseUpdate=Ae,v===null&&(h.shared.lanes=0),io|=_,t.lanes=_,t.memoizedState=Oe}}function I0(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function z0(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)I0(o[t],r)}function Rc(t,r){try{var o=r.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var h=l.next;o=h;do{if((o.tag&t)===t){l=void 0;var v=o.create,_=o.inst;l=v(),_.destroy=l}o=o.next}while(o!==h)}}catch(k){Ft(r,r.return,k)}}function to(t,r,o){try{var l=r.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var v=h.next;l=v;do{if((l.tag&t)===t){var _=l.inst,k=_.destroy;if(k!==void 0){_.destroy=void 0,h=r;var F=o;try{k()}catch(re){Ft(h,F,re)}}}l=l.next}while(l!==v)}}catch(re){Ft(r,r.return,re)}}function V0(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;try{z0(r,o)}catch(l){Ft(t,t.return,l)}}}function U0(t,r,o){o.props=Ko(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(l){Ft(t,r,l)}}function Wo(t,r){try{var o=t.ref;if(o!==null){var l=t.stateNode;switch(t.tag){case 26:case 27:case 5:var h=l;break;default:h=l}typeof o=="function"?t.refCleanup=o(h):o.current=h}}catch(v){Ft(t,r,v)}}function Nr(t,r){var o=t.ref,l=t.refCleanup;if(o!==null)if(typeof l=="function")try{l()}catch(h){Ft(t,r,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){Ft(t,r,h)}else o.current=null}function B0(t){var r=t.type,o=t.memoizedProps,l=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&l.focus();break e;case"img":o.src?l.src=o.src:o.srcSet&&(l.srcset=o.srcSet)}}catch(h){Ft(t,t.return,h)}}function $0(t,r,o){try{var l=t.stateNode;t2(l,t.type,o,r),l[Yt]=r}catch(h){Ft(t,t.return,h)}}function F0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function ym(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||F0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function vm(t,r,o){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(t,r):o.insertBefore(t,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(t,o)):(r=o,r.appendChild(t)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Pd));else if(l!==4&&l!==27&&(t=t.child,t!==null))for(vm(t,r,o),t=t.sibling;t!==null;)vm(t,r,o),t=t.sibling}function Sd(t,r,o){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(l!==4&&l!==27&&(t=t.child,t!==null))for(Sd(t,r,o),t=t.sibling;t!==null;)Sd(t,r,o),t=t.sibling}var gi=!1,cn=!1,bm=!1,q0=typeof WeakSet=="function"?WeakSet:Set,kn=null,H0=!1;function MC(t,r){if(t=t.containerInfo,Km=$d,t=C(t),j(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;
vendor: 6,650 bytes, line 48
48var h=l.anchorOffset,v=l.focusNode;l=l.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var _=0,k=-1,F=-1,re=0,Ae=0,Oe=t,ge=null;t:for(;;){for(var Se;Oe!==o||h!==0&&Oe.nodeType!==3||(k=_+h),Oe!==v||l!==0&&Oe.nodeType!==3||(F=_+l),Oe.nodeType===3&&(_+=Oe.nodeValue.length),(Se=Oe.firstChild)!==null;)ge=Oe,Oe=Se;for(;;){if(Oe===t)break t;if(ge===o&&++re===h&&(k=_),ge===v&&++Ae===l&&(F=_),(Se=Oe.nextSibling)!==null)break;Oe=ge,ge=Oe.parentNode}Oe=Se}o=k===-1||F===-1?null:{start:k,end:F}}else o=null}o=o||{start:0,end:0}}else o=null;for(Ym={focusedElem:t,selectionRange:o},$d=!1,kn=r;kn!==null;)if(r=kn,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,kn=t;else for(;kn!==null;){switch(r=kn,v=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&v!==null){t=void 0,o=r,h=v.memoizedProps,v=v.memoizedState,l=o.stateNode;try{var nt=Ko(o.type,h,o.elementType===o.type);t=l.getSnapshotBeforeUpdate(nt,v),l.__reactInternalSnapshotBeforeUpdate=t}catch(mt){Ft(o,o.return,mt)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,o=t.nodeType,o===9)Qm(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Qm(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=r.sibling,t!==null){t.return=r.return,kn=t;break}kn=r.return}return nt=H0,H0=!1,nt}function G0(t,r,o){var l=o.flags;switch(o.tag){case 0:case 11:case 15:vi(t,o),l&4&&Rc(5,o);break;case 1:if(vi(t,o),l&4)if(t=o.stateNode,r===null)try{t.componentDidMount()}catch(k){Ft(o,o.return,k)}else{var h=Ko(o.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(h,r,t.__reactInternalSnapshotBeforeUpdate)}catch(k){Ft(o,o.return,k)}}l&64&&V0(o),l&512&&Wo(o,o.return);break;case 3:if(vi(t,o),l&64&&(l=o.updateQueue,l!==null)){if(t=null,o.child!==null)switch(o.child.tag){case 27:case 5:t=o.child.stateNode;break;case 1:t=o.child.stateNode}try{z0(l,t)}catch(k){Ft(o,o.return,k)}}break;case 26:vi(t,o),l&512&&Wo(o,o.return);break;case 27:case 5:vi(t,o),r===null&&l&4&&B0(o),l&512&&Wo(o,o.return);break;case 12:vi(t,o);break;case 13:vi(t,o),l&4&&X0(t,o);break;case 22:if(h=o.memoizedState!==null||gi,!h){r=r!==null&&r.memoizedState!==null||cn;var v=gi,_=cn;gi=h,(cn=r)&&!_?no(t,o,(o.subtreeFlags&8772)!==0):vi(t,o),gi=v,cn=_}l&512&&(o.memoizedProps.mode==="manual"?Wo(o,o.return):Nr(o,o.return));break;default:vi(t,o)}}function K0(t){var r=t.alternate;r!==null&&(t.alternate=null,K0(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Ar(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var _n=null,Cr=!1;function yi(t,r,o){for(o=o.child;o!==null;)Y0(t,r,o),o=o.sibling}function Y0(t,r,o){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Sr,o)}catch{}switch(o.tag){case 26:cn||Nr(o,r),yi(t,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:cn||Nr(o,r);var l=_n,h=Cr;for(_n=o.stateNode,yi(t,r,o),o=o.stateNode,r=o.attributes;r.length;)o.removeAttributeNode(r[0]);Ar(o),_n=l,Cr=h;break;case 5:cn||Nr(o,r);case 6:h=_n;var v=Cr;if(_n=null,yi(t,r,o),_n=h,Cr=v,_n!==null)if(Cr)try{t=_n,l=o.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)}catch(_){Ft(o,r,_)}else try{_n.removeChild(o.stateNode)}catch(_){Ft(o,r,_)}break;case 18:_n!==null&&(Cr?(r=_n,o=o.stateNode,r.nodeType===8?Zm(r.parentNode,o):r.nodeType===1&&Zm(r,o),Kc(r)):Zm(_n,o.stateNode));break;case 4:l=_n,h=Cr,_n=o.stateNode.containerInfo,Cr=!0,yi(t,r,o),_n=l,Cr=h;break;case 0:case 11:case 14:case 15:cn||to(2,o,r),cn||to(4,o,r),yi(t,r,o);break;case 1:cn||(Nr(o,r),l=o.stateNode,typeof l.componentWillUnmount=="function"&&U0(o,r,l)),yi(t,r,o);break;case 21:yi(t,r,o);break;case 22:cn||Nr(o,r),cn=(l=cn)||o.memoizedState!==null,yi(t,r,o),cn=l;break;default:yi(t,r,o)}}function X0(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Kc(t)}catch(o){Ft(r,r.return,o)}}function OC(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new q0),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new q0),r;default:throw Error(i(435,t.tag))}}function xm(t,r){var o=OC(t);r.forEach(function(l){var h=HC.bind(null,t,l);o.has(l)||(o.add(l),l.then(h,h))})}function Gr(t,r){var o=r.deletions;if(o!==null)for(var l=0;l<o.length;l++){var h=o[l],v=t,_=r,k=_;e:for(;k!==null;){switch(k.tag){case 27:case 5:_n=k.stateNode,Cr=!1;break e;case 3:_n=k.stateNode.containerInfo,Cr=!0;break e;case 4:_n=k.stateNode.containerInfo,Cr=!0;break e}k=k.return}if(_n===null)throw Error(i(160));Y0(v,_,h),_n=null,Cr=!1,v=h.alternate,v!==null&&(v.return=null),h.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)W0(r,t),r=r.sibling}var fa=null;function W0(t,r){var o=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Gr(r,t),Kr(t),l&4&&(to(3,t,t.return),Rc(3,t),to(5,t,t.return));break;case 1:Gr(r,t),Kr(t),l&512&&(cn||o===null||Nr(o,o.return)),l&64&&gi&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?l:o.concat(l))));break;case 26:var h=fa;if(Gr(r,t),Kr(t),l&512&&(cn||o===null||Nr(o,o.return)),l&4){var v=o!==null?o.memoizedState:null;if(l=t.memoizedState,o===null)if(l===null)if(t.stateNode===null){e:{l=t.type,o=t.memoizedProps,h=h.ownerDocument||h;t:switch(l){case"title":v=h.getElementsByTagName("title")[0],(!v||v[Ra]||v[bn]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=h.createElement(l),h.head.insertBefore(v,h.querySelector("head > title"))),Fn(v,l,o),v[bn]=t,jt(v),l=v;break e;case"link":var _=Bb("link","href",h).get(l+(o.href||""));if(_){for(var k=0;k<_.length;k++)if(v=_[k],v.getAttribute("href")===(o.href==null?null:o.href)&&v.getAttribute("rel")===(o.rel==null?null:o.rel)&&v.getAttribute("title")===(o.title==null?null:o.title)&&v.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){_.splice(k,1);break t}}v=h.createElement(l),Fn(v,l,o),h.head.appendChild(v);break;case"meta":if(_=Bb("meta","content",h).get(l+(o.content||""))){for(k=0;k<_.length;k++)if(v=_[k],v.getAttribute("content")===(o.content==null?null:""+o.content)&&v.getAttribute("name")===(o.name==null?null:o.name)&&v.getAttribute("property")===(o.property==null?null:o.property)&&v.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&v.getAttribute("charset")===(o.charSet==null?null:o.charSet)){_.
vendor: 4,573 bytes, line 48
48splice(k,1);break t}}v=h.createElement(l),Fn(v,l,o),h.head.appendChild(v);break;default:throw Error(i(468,l))}v[bn]=t,jt(v),l=v}t.stateNode=l}else $b(h,t.type,t.stateNode);else t.stateNode=Ub(h,l,t.memoizedProps);else v!==l?(v===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):v.count--,l===null?$b(h,t.type,t.stateNode):Ub(h,l,t.memoizedProps)):l===null&&t.stateNode!==null&&$0(t,t.memoizedProps,o.memoizedProps)}break;case 27:if(l&4&&t.alternate===null){h=t.stateNode,v=t.memoizedProps;try{for(var F=h.firstChild;F;){var re=F.nextSibling,Ae=F.nodeName;F[Ra]||Ae==="HEAD"||Ae==="BODY"||Ae==="SCRIPT"||Ae==="STYLE"||Ae==="LINK"&&F.rel.toLowerCase()==="stylesheet"||h.removeChild(F),F=re}for(var Oe=t.type,ge=h.attributes;ge.length;)h.removeAttributeNode(ge[0]);Fn(h,Oe,v),h[bn]=t,h[Yt]=v}catch(nt){Ft(t,t.return,nt)}}case 5:if(Gr(r,t),Kr(t),l&512&&(cn||o===null||Nr(o,o.return)),t.flags&32){h=t.stateNode;try{Ze(h,"")}catch(nt){Ft(t,t.return,nt)}}l&4&&t.stateNode!=null&&(h=t.memoizedProps,$0(t,h,o!==null?o.memoizedProps:h)),l&1024&&(bm=!0);break;case 6:if(Gr(r,t),Kr(t),l&4){if(t.stateNode===null)throw Error(i(162));l=t.memoizedProps,o=t.stateNode;try{o.nodeValue=l}catch(nt){Ft(t,t.return,nt)}}break;case 3:if(Vd=null,h=fa,fa=Id(r.containerInfo),Gr(r,t),fa=h,Kr(t),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Kc(r.containerInfo)}catch(nt){Ft(t,t.return,nt)}bm&&(bm=!1,Z0(t));break;case 4:l=fa,fa=Id(t.stateNode.containerInfo),Gr(r,t),Kr(t),fa=l;break;case 12:Gr(r,t),Kr(t);break;case 13:Gr(r,t),Kr(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Rm=Kn()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,xm(t,l)));break;case 22:if(l&512&&(cn||o===null||Nr(o,o.return)),F=t.memoizedState!==null,re=o!==null&&o.memoizedState!==null,Ae=gi,Oe=cn,gi=Ae||F,cn=Oe||re,Gr(r,t),cn=Oe,gi=Ae,Kr(t),r=t.stateNode,r._current=t,r._visibility&=-3,r._visibility|=r._pendingVisibility&2,l&8192&&(r._visibility=F?r._visibility&-2:r._visibility|1,F&&(r=gi||cn,o===null||re||r||Js(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))e:for(o=null,r=t;;){if(r.tag===5||r.tag===26||r.tag===27){if(o===null){re=o=r;try{if(h=re.stateNode,F)v=h.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=re.stateNode,k=re.memoizedProps.style;var Se=k!=null&&k.hasOwnProperty("display")?k.display:null;_.style.display=Se==null||typeof Se=="boolean"?"":(""+Se).trim()}}catch(nt){Ft(re,re.return,nt)}}}else if(r.tag===6){if(o===null){re=r;try{re.stateNode.nodeValue=F?"":re.memoizedProps}catch(nt){Ft(re,re.return,nt)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=t.updateQueue,l!==null&&(o=l.retryQueue,o!==null&&(l.retryQueue=null,xm(t,o))));break;case 19:Gr(r,t),Kr(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,xm(t,l)));break;case 21:break;default:Gr(r,t),Kr(t)}}function Kr(t){var r=t.flags;if(r&2){try{if(t.tag!==27){e:{for(var o=t.return;o!==null;){if(F0(o)){var l=o;break e}o=o.return}throw Error(i(160))}switch(l.tag){case 27:var h=l.stateNode,v=ym(t);Sd(t,v,h);break;case 5:var _=l.stateNode;l.flags&32&&(Ze(_,""),l.flags&=-33);var k=ym(t);Sd(t,k,_);break;case 3:case 4:var F=l.stateNode.containerInfo,re=ym(t);vm(t,re,F);break;default:throw Error(i(161))}}}catch(Ae){Ft(t,t.return,Ae)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Z0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;Z0(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function vi(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)G0(t,r.alternate,r),r=r.sibling}function Js(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:to(4,r,r.return),Js(r);break;case 1:Nr(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&U0(r,r.return,o),Js(r);break;case 26:case 27:case 5:Nr(r,r.return),Js(r);break;case 22:Nr(r,r.return),r.memoizedState===null&&Js(r);break;default:Js(r)}t=t.sibling}}function no(t,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,h=t,v=r,_=v.flags;switch(v.tag){case 0:case 11:case 15:no(h,v,o),Rc(4,v);break;case 1:if(no(h,v,o),l=v,h=l.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(re){Ft(l,l.return,re)}if(l=v,h=l.updateQueue,h!==null){var k=l.stateNode;try{var F=h.shared.hiddenCallbacks;
vendor: 20,699 bytes, line 48
48if(F!==null)for(h.shared.hiddenCallbacks=null,h=0;h<F.length;h++)I0(F[h],k)}catch(re){Ft(l,l.return,re)}}o&&_&64&&V0(v),Wo(v,v.return);break;case 26:case 27:case 5:no(h,v,o),o&&l===null&&_&4&&B0(v),Wo(v,v.return);break;case 12:no(h,v,o);break;case 13:no(h,v,o),o&&_&4&&X0(h,v);break;case 22:v.memoizedState===null&&no(h,v,o),Wo(v,v.return);break;default:no(h,v,o)}r=r.sibling}}function wm(t,r){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&bc(o))}function Sm(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&bc(t))}function ro(t,r,o,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Q0(t,r,o,l),r=r.sibling}function Q0(t,r,o,l){var h=r.flags;switch(r.tag){case 0:case 11:case 15:ro(t,r,o,l),h&2048&&Rc(9,r);break;case 3:ro(t,r,o,l),h&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&bc(t)));break;case 12:if(h&2048){ro(t,r,o,l),t=r.stateNode;try{var v=r.memoizedProps,_=v.id,k=v.onPostCommit;typeof k=="function"&&k(_,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(F){Ft(r,r.return,F)}}else ro(t,r,o,l);break;case 23:break;case 22:v=r.stateNode,r.memoizedState!==null?v._visibility&4?ro(t,r,o,l):jc(t,r):v._visibility&4?ro(t,r,o,l):(v._visibility|=4,el(t,r,o,l,(r.subtreeFlags&10256)!==0)),h&2048&&wm(r.alternate,r);break;case 24:ro(t,r,o,l),h&2048&&Sm(r.alternate,r);break;default:ro(t,r,o,l)}}function el(t,r,o,l,h){for(h=h&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var v=t,_=r,k=o,F=l,re=_.flags;switch(_.tag){case 0:case 11:case 15:el(v,_,k,F,h),Rc(8,_);break;case 23:break;case 22:var Ae=_.stateNode;_.memoizedState!==null?Ae._visibility&4?el(v,_,k,F,h):jc(v,_):(Ae._visibility|=4,el(v,_,k,F,h)),h&&re&2048&&wm(_.alternate,_);break;case 24:el(v,_,k,F,h),h&&re&2048&&Sm(_.alternate,_);break;default:el(v,_,k,F,h)}r=r.sibling}}function jc(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=t,l=r,h=l.flags;switch(l.tag){case 22:jc(o,l),h&2048&&wm(l.alternate,l);break;case 24:jc(o,l),h&2048&&Sm(l.alternate,l);break;default:jc(o,l)}r=r.sibling}}var Mc=8192;function tl(t){if(t.subtreeFlags&Mc)for(t=t.child;t!==null;)J0(t),t=t.sibling}function J0(t){switch(t.tag){case 26:tl(t),t.flags&Mc&&t.memoizedState!==null&&x2(fa,t.memoizedState,t.memoizedProps);break;case 5:tl(t);break;case 3:case 4:var r=fa;fa=Id(t.stateNode.containerInfo),tl(t),fa=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=Mc,Mc=16777216,tl(t),Mc=r):tl(t));break;default:tl(t)}}function eb(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Oc(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var l=r[o];kn=l,nb(l,t)}eb(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tb(t),t=t.sibling}function tb(t){switch(t.tag){case 0:case 11:case 15:Oc(t),t.flags&2048&&to(9,t,t.return);break;case 3:Oc(t);break;case 12:Oc(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&4&&(t.return===null||t.return.tag!==13)?(r._visibility&=-5,Ed(t)):Oc(t);break;default:Oc(t)}}function Ed(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var l=r[o];kn=l,nb(l,t)}eb(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:to(8,r,r.return),Ed(r);break;case 22:o=r.stateNode,o._visibility&4&&(o._visibility&=-5,Ed(r));break;default:Ed(r)}t=t.sibling}}function nb(t,r){for(;kn!==null;){var o=kn;switch(o.tag){case 0:case 11:case 15:to(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var l=o.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:bc(o.memoizedState.cache)}if(l=o.child,l!==null)l.return=o,kn=l;else e:for(o=t;kn!==null;){l=kn;var h=l.sibling,v=l.return;if(K0(l),l===o){kn=null;break e}if(h!==null){h.return=v,kn=h;break e}kn=v}}}function DC(t,r,o,l){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(t,r,o,l){return new DC(t,r,o,l)}function Em(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ao(t,r){var o=t.alternate;return o===null?(o=Yr(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&31457280,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function rb(t,r){t.flags&=31457282;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,r=o.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Ad(t,r,o,l,h,v){var _=0;if(l=t,typeof t=="function")Em(t)&&(_=1);else if(typeof t=="string")_=v2(t,o,vn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case p:return Zo(o.children,h,v,r);case g:_=8,h|=24;break;case b:return t=Yr(12,o,r,h|2),t.elementType=b,t.lanes=v,t;case R:return t=Yr(13,o,r,h),t.elementType=R,t.lanes=v,t;case M:return t=Yr(19,o,r,h),t.elementType=M,t.lanes=v,t;case I:return ab(o,h,v,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case x:case N:_=10;break e;case E:_=9;break e;case T:_=11;break e;case D:_=14;break e;case $:_=16,l=null;break e}_=29,o=Error(i(130,t===null?"null":typeof t,"")),l=null}return r=Yr(_,o,r,h),r.elementType=t,r.type=l,r.lanes=v,r}function Zo(t,r,o,l){return t=Yr(7,t,l,r),t.lanes=o,t}function ab(t,r,o,l){t=Yr(22,t,l,r),t.elementType=I,t.lanes=o;var h={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var v=h._current;if(v===null)throw Error(i(456));if((h._pendingVisibility&2)===0){var _=Qt(v,2);_!==null&&(h._pendingVisibility|=2,lr(_,v,2))}},attach:function(){var v=h._current;if(v===null)throw Error(i(456));if((h._pendingVisibility&2)!==0){var _=Qt(v,2);_!==null&&(h._pendingVisibility&=-3,lr(_,v,2))}}};return t.stateNode=h,t}function Am(t,r,o){return t=Yr(6,t,null,r),t.lanes=o,t}function _m(t,r,o){return r=Yr(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function bi(t){t.flags|=4}function ib(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Fb(r)){if(r=Hr.current,r!==null&&((Mt&4194176)===Mt?Pa!==null:(Mt&62914560)!==Mt&&(Mt&536870912)===0||r!==Pa))throw gc=jh,Sv;t.flags|=8192}}function _d(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?sa():536870912,t.lanes|=r,rl|=r)}function Dc(t,r){if(!Ot)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function an(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,l=0;if(r)for(var h=t.child;h!==null;)o|=h.lanes|h.childLanes,l|=h.subtreeFlags&31457280,l|=h.flags&31457280,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)o|=h.lanes|h.childLanes,l|=h.subtreeFlags,l|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=l,t.childLanes=o,r}function kC(t,r,o){var l=r.pendingProps;switch(Th(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return an(r),null;case 1:return an(r),null;case 3:return o=r.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),pi(Tn),Dr(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(fc(r)?bi(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,da!==null&&(Dm(da),da=null))),an(r),null;case 26:return o=r.memoizedState,t===null?(bi(r),o!==null?(an(r),ib(r,o)):(an(r),r.flags&=-16777217)):o?o!==t.memoizedState?(bi(r),an(r),ib(r,o)):(an(r),r.flags&=-16777217):(t.memoizedProps!==l&&bi(r),an(r),r.flags&=-16777217),null;case 27:br(r),o=ln.current;var h=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==l&&bi(r);else{if(!l){if(r.stateNode===null)throw Error(i(166));return an(r),null}t=vn.current,fc(r)?xv(r):(t=Pb(h,l,o),r.stateNode=t,bi(r))}return an(r),null;case 5:if(br(r),o=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&bi(r);else{if(!l){if(r.stateNode===null)throw Error(i(166));return an(r),null}if(t=vn.current,fc(r))xv(r);else{switch(h=Ld(ln.current),t){case 1:t=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:t=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":t=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":t=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":t=h.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}t[bn]=r,t[Yt]=l;e:for(h=r.child;h!==null;){if(h.tag===5||h.tag===6)t.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===r)break e;for(;h.sibling===null;){if(h.return===null||h.return===r)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}r.stateNode=t;e:switch(Fn(t,o,l),o){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&bi(r)}}return an(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&bi(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(i(166));if(t=ln.current,fc(r)){if(t=r.stateNode,o=r.memoizedProps,l=null,h=sr,h!==null)switch(h.tag){case 27:case 5:l=h.memoizedProps}t[bn]=r,t=!!(t.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||Rb(t.nodeValue,o)),t||Bo(r)}else t=Ld(t).createTextNode(l),t[bn]=r,r.stateNode=t}return an(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=fc(r),l!==null&&l.dehydrated!==null){if(t===null){if(!h)throw Error(i(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[bn]=r}else hc(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;an(r),h=!1}else da!==null&&(Dm(da),da=null),h=!0;if(!h)return r.flags&256?(di(r),r):(di(r),null)}if(di(r),(r.flags&128)!==0)return r.lanes=o,r;if(o=l!==null,t=t!==null&&t.memoizedState!==null,o){l=r.child,h=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(h=l.alternate.memoizedState.cachePool.pool);var v=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(v=l.memoizedState.cachePool.pool),v!==h&&(l.flags|=2048)}return o!==t&&o&&(r.child.flags|=8192),_d(r,r.updateQueue),an(r),null;case 4:return Dr(),t===null&&qm(r.stateNode.containerInfo),an(r),null;case 10:return pi(r.type),an(r),null;case 19:if(Ie(Cn),h=r.memoizedState,h===null)return an(r),null;if(l=(r.flags&128)!==0,v=h.rendering,v===null)if(l)Dc(h,!1);else{if(un!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(v=ld(t),v!==null){for(r.flags|=128,Dc(h,!1),t=v.updateQueue,r.updateQueue=t,_d(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)rb(o,t),o=o.sibling;return Ct(Cn,Cn.current&1|2),r.child}t=t.sibling}h.tail!==null&&Kn()>Nd&&(r.flags|=128,l=!0,Dc(h,!1),r.lanes=4194304)}else{if(!l)if(t=ld(v),t!==null){if(r.flags|=128,l=!0,t=t.updateQueue,r.updateQueue=t,_d(r,t),Dc(h,!0),h.tail===null&&h.tailMode==="hidden"&&!v.alternate&&!Ot)return an(r),null}else 2*Kn()-h.renderingStartTime>Nd&&o!==536870912&&(r.flags|=128,l=!0,Dc(h,!1),r.lanes=4194304);h.isBackwards?(v.sibling=r.child,r.child=v):(t=h.last,t!==null?t.sibling=v:r.child=v,h.last=v)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=Kn(),r.sibling=null,t=Cn.current,Ct(Cn,l?t&1|2:t&1),r):(an(r),null);case 22:case 23:return di(r),Oh(),l=r.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(o&536870912)!==0&&(r.flags&128)===0&&(an(r),r.subtreeFlags&6&&(r.flags|=8192)):an(r),o=r.updateQueue,o!==null&&_d(r,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==o&&(r.flags|=2048),t!==null&&Ie(Fo),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),pi(Tn),an(r),null;case 25:return null}throw Error(i(156,r.tag))}function PC(t,r){switch(Th(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return pi(Tn),Dr(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return br(r),null;case 13:if(di(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));hc()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Ie(Cn),null;case 4:return Dr(),null;case 10:return pi(r.type),null;case 22:case 23:return di(r),Oh(),t!==null&&Ie(Fo),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return pi(Tn),null;case 25:return null;default:return null}}function ob(t,r){switch(Th(r),r.tag){case 3:pi(Tn),Dr();break;case 26:case 27:case 5:br(r);break;case 4:Dr();break;case 13:di(r);break;case 19:Ie(Cn);break;case 10:pi(r.type);break;case 22:case 23:di(r),Oh(),t!==null&&Ie(Fo);break;case 24:pi(Tn)}}var LC={getCacheForType:function(t){var r=Zn(Tn),o=r.data.get(t);return o===void 0&&(o=t(),r.data.set(t,o)),o}},IC=typeof WeakMap=="function"?WeakMap:Map,on=0,qt=null,_t=null,Mt=0,Ht=0,Tr=null,xi=!1,nl=!1,Nm=!1,wi=0,un=0,io=0,Qo=0,Cm=0,Xr=0,rl=0,kc=null,Ia=null,Tm=!1,Rm=0,Nd=1/0,Cd=null,oo=null,Td=!1,Jo=null,Pc=0,jm=0,Mm=null,Lc=0,Om=null;function Rr(){if((on&2)!==0&&Mt!==0)return Mt&-Mt;if(me.T!==null){var t=Ys;return t!==0?t:Um()}return ti()}function sb(){Xr===0&&(Xr=(Mt&536870912)===0||Ot?ws():536870912);var t=Hr.current;return t!==null&&(t.flags|=32),Xr}function lr(t,r,o){(t===qt&&Ht===2||t.cancelPendingCommit!==null)&&(al(t,0),Si(t,Mt,Xr,!1)),la(t,o),((on&2)===0||t!==qt)&&(t===qt&&((on&2)===0&&(Qo|=o),un===4&&Si(t,Mt,Xr,!1)),za(t))}function lb(t,r,o){if((on&6)!==0)throw Error(i(327));var l=!o&&(r&60)===0&&(r&t.expiredLanes)===0||oa(t,r),h=l?UC(t,r):Lm(t,r,!0),v=l;do{if(h===0){nl&&!l&&Si(t,r,0,!1);break}else if(h===6)Si(t,r,0,!xi);else{if(o=t.current.alternate,v&&!zC(o)){h=Lm(t,r,!1),v=!1;continue}if(h===2){if(v=r,t.errorRecoveryDisabledLanes&v)var _=0;else _=t.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){r=_;e:{var k=t;h=kc;var F=k.current.memoizedState.isDehydrated;if(F&&(al(k,_).flags|=256),_=Lm(k,_,!1),_!==2){if(Nm&&!F){k.errorRecoveryDisabledLanes|=v,Qo|=v,h=4;break e}v=Ia,Ia=h,v!==null&&Dm(v)}h=_}if(v=!1,h!==2)continue}}if(h===1){al(t,0),Si(t,r,0,!0);break}e:{switch(l=t,h){case 0:case 1:throw Error(i(345));case 4:if((r&4194176)===r){Si(l,r,Xr,!xi);break e}break;case 2:Ia=null;break;case 3:case 5:break;default:throw Error(i(329))}if(l.finishedWork=o,l.finishedLanes=r,(r&62914560)===r&&(v=Rm+300-Kn(),10<v)){if(Si(l,r,Xr,!xi),ei(l,0)!==0)break e;l.timeoutHandle=Ob(cb.bind(null,l,o,Ia,Cd,Tm,r,Xr,Qo,rl,xi,2,-0,0),v);break e}cb(l,o,Ia,Cd,Tm,r,Xr,Qo,rl,xi,0,-0,0)}}break}while(!0);za(t)}function Dm(t){Ia===null?Ia=t:Ia.push.apply(Ia,t)}function cb(t,r,o,l,h,v,_,k,F,re,Ae,Oe,ge){var Se=r.subtreeFlags;if((Se&8192||(Se&16785408)===16785408)&&($c={stylesheets:null,count:0,unsuspend:b2},J0(r),r=w2(),r!==null)){t.cancelPendingCommit=r(gb.bind(null,t,o,l,h,_,k,F,1,Oe,ge)),Si(t,v,_,!re);return}gb(t,o,l,h,_,k,F,Ae,Oe,ge)}function zC(t){for(var r=t;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var l=0;l<o.length;l++){var h=o[l],v=h.getSnapshot;h=h.value;try{if(!Wn(v(),h))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Si(t,r,o,l){r&=~Cm,r&=~Qo,t.suspendedLanes|=r,t.pingedLanes&=~r,l&&(t.warmLanes|=r),l=t.expirationTimes;for(var h=r;0<h;){var v=31-nn(h),_=1<<v;l[v]=-1,h&=~_}o!==0&&Pt(t,o,r)}function Rd(){return(on&6)===0?(Ic(0),!1):!0}function km(){if(_t!==null){if(Ht===0)var t=_t.return;else t=_t,mi=Yo=null,Uh(t),Gs=null,yc=0,t=_t;for(;t!==null;)ob(t.alternate,t),t=t.return;_t=null}}function al(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,r2(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),km(),qt=t,_t=o=ao(t.current,null),Mt=r,Ht=0,Tr=null,xi=!1,nl=oa(t,r),Nm=!1,rl=Xr=Cm=Qo=io=un=0,Ia=kc=null,Tm=!1,(r&8)!==0&&(r|=r&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=r;0<l;){var h=31-nn(l),v=1<<h;r|=t[h],l&=~v}return wi=r,On(),o}function ub(t,r){Et=null,me.H=La,r===pc?(r=_v(),Ht=3):r===Sv?(r=_v(),Ht=4):Ht=r===E0?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Tr=r,_t===null&&(un=1,bd(t,$r(r,t.current)))}function db(){var t=me.H;return me.H=La,t===null?La:t}function fb(){var t=me.A;return me.A=LC,t}function Pm(){un=4,xi||(Mt&4194176)!==Mt&&Hr.current!==null||(nl=!0),(io&134217727)===0&&(Qo&134217727)===0||qt===null||Si(qt,Mt,Xr,!1)}function Lm(t,r,o){var l=on;on|=2;var h=db(),v=fb();(qt!==t||Mt!==r)&&(Cd=null,al(t,r)),r=!1;var _=un;e:do try{if(Ht!==0&&_t!==null){var k=_t,F=Tr;switch(Ht){case 8:km(),_=6;break e;case 3:case 2:case 6:Hr.current===null&&(r=!0);var re=Ht;if(Ht=0,Tr=null,il(t,k,F,re),o&&nl){_=0;break e}break;default:re=Ht,Ht=0,Tr=null,il(t,k,F,re)}}VC(),_=un;break}catch(Ae){ub(t,Ae)}while(!0);return r&&t.shellSuspendCounter++,mi=Yo=null,on=l,me.H=h,me.A=v,_t===null&&(qt=null,Mt=0,On()),_}function VC(){for(;_t!==null;)hb(_t)}function UC(t,r){var o=on;on|=2;var l=db(),h=fb();qt!==t||Mt!==r?(Cd=null,Nd=Kn()+500,al(t,r)):nl=oa(t,r);e:do try{if(Ht!==0&&_t!==null){r=_t;var v=Tr;t:switch(Ht){case 1:Ht=0,Tr=null,il(t,r,v,1);break;case 2:if(Ev(v)){Ht=0,Tr=null,mb(r);break}r=function(){Ht===2&&qt===t&&(Ht=7),za(t)},v.then(r,r);break e;case 3:Ht=7;break e;case 4:Ht=5;break e;case 7:Ev(v)?(Ht=0,Tr=null,mb(r)):(Ht=0,Tr=null,il(t,r,v,7));break;case 5:var _=null;switch(_t.tag){case 26:_=_t.memoizedState;case 5:case 27:var k=_t;if(!_||Fb(_)){Ht=0,Tr=null;var F=k.sibling;if(F!==null)_t=F;else{var re=k.return;re!==null?(_t=re,jd(re)):_t=null}break t}}Ht=0,Tr=null,il(t,r,v,5);break;case 6:Ht=0,Tr=null,il(t,r,v,6);break;case 8:km(),un=6;break e;default:throw Error(i(462))}}BC();break}catch(Ae){ub(t,Ae)}while(!0);return mi=Yo=null,me.H=l,me.A=h,on=o,_t!==null?0:(qt=null,Mt=0,On(),un)}function BC(){for(;_t!==null&&!To();)hb(_t)}function hb(t){var r=P0(t.alternate,t,wi);t.memoizedProps=t.pendingProps,r===null?jd(t):_t=r}function mb(t){var r=t,o=r.alternate;switch(r.tag){case 15:case 0:r=R0(o,r,r.pendingProps,r.type,void 0,Mt);break;case 11:r=R0(o,r,r.pendingProps,r.type.render,r.ref,Mt);break;case 5:Uh(r);default:ob(o,r),r=_t=rb(r,wi),r=P0(o,r,wi)}t.memoizedProps=t.pendingProps,r===null?jd(t):_t=r}function il(t,r,o,l){mi=Yo=null,Uh(r),Gs=null,yc=0;var h=r.return;try{if(RC(t,h,r,o,Mt)){un=1,bd(t,$r(o,t.current)),_t=null;return}}catch(v){if(h!==null)throw _t=h,v;un=1,bd(t,$r(o,t.current)),_t=null;return}r.flags&32768?(Ot||l===1?t=!0:nl||(Mt&536870912)!==0?t=!1:(xi=t=!0,(l===2||l===3||l===6)&&(l=Hr.current,l!==null&&l.tag===13&&(l.flags|=16384))),pb(r,t)):jd(r)}
48function jd(t){var r=t;do{if((r.flags&32768)!==0){pb(r,xi);return}t=r.return;var o=kC(r.alternate,r,wi);if(o!==null){_t=o;return}if(r=r.sibling,r!==null){_t=r;return}_t=r=t}while(r!==null);un===0&&(un=5)}function pb(t,r){do{var o=PC(t.alternate,t);if(o!==null){o.flags&=32767,_t=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(t=t.sibling,t!==null)){_t=t;return}_t=t=o}while(t!==null);un=6,_t=null}function gb(t,r,o,l,h,v,_,k,F,re){var Ae=me.T,Oe=de.p;try{de.p=2,me.T=null,$C(t,r,o,l,Oe,h,v,_,k,F,re)}finally{me.T=Ae,de.p=Oe}}function $C(t,r,o,l,h,v,_,k){do ol();while(Jo!==null);if((on&6)!==0)throw Error(i(327));var F=t.finishedWork;if(l=t.finishedLanes,F===null)return null;if(t.finishedWork=null,t.finishedLanes=0,F===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var re=F.lanes|F.childLanes;if(re|=yt,Di(t,l,re,v,_,k),t===qt&&(_t=qt=null,Mt=0),(F.subtreeFlags&10256)===0&&(F.flags&10256)===0||Td||(Td=!0,jm=re,Mm=o,GC(ia,function(){return ol(),null})),o=(F.flags&15990)!==0,(F.subtreeFlags&15990)!==0||o?(o=me.T,me.T=null,v=de.p,de.p=2,_=on,on|=4,MC(t,F),W0(F,t),L(Ym,t.containerInfo),$d=!!Km,Ym=Km=null,t.current=F,G0(t,F.alternate,F),_a(),on=_,de.p=v,me.T=o):t.current=F,Td?(Td=!1,Jo=t,Pc=l):yb(t,re),re=t.pendingLanes,re===0&&(oo=null),Pr(F.stateNode),za(t),r!==null)for(h=t.onRecoverableError,F=0;F<r.length;F++)re=r[F],h(re.value,{componentStack:re.stack});return(Pc&3)!==0&&ol(),re=t.pendingLanes,(l&4194218)!==0&&(re&42)!==0?t===Om?Lc++:(Lc=0,Om=t):Lc=0,Ic(0),null}function yb(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,bc(r)))}function ol(){if(Jo!==null){var t=Jo,r=jm;jm=0;var o=Ro(Pc),l=me.T,h=de.p;try{if(de.p=32>o?32:o,me.T=null,Jo===null)var v=!1;else{o=Mm,Mm=null;var _=Jo,k=Pc;if(Jo=null,Pc=0,(on&6)!==0)throw Error(i(331));var F=on;if(on|=4,tb(_.current),Q0(_,_.current,k,o),on=F,Ic(0,!1),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Sr,_)}catch{}v=!0}return v}finally{de.p=h,me.T=l,yb(t,r)}}return!1}function vb(t,r,o){r=$r(o,r),r=em(t.stateNode,r,2),t=eo(t,r,2),t!==null&&(la(t,2),za(t))}function Ft(t,r,o){if(t.tag===3)vb(t,t,o);else for(;r!==null;){if(r.tag===3){vb(r,t,o);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(oo===null||!oo.has(l))){t=$r(o,t),o=w0(2),l=eo(r,o,2),l!==null&&(S0(o,l,r,t),la(l,2),za(l));break}}r=r.return}}function Im(t,r,o){var l=t.pingCache;if(l===null){l=t.pingCache=new IC;var h=new Set;l.set(r,h)}else h=l.get(r),h===void 0&&(h=new Set,l.set(r,h));h.has(o)||(Nm=!0,h.add(o),t=FC.bind(null,t,r,o),r.then(t,t))}function FC(t,r,o){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,qt===t&&(Mt&o)===o&&(un===4||un===3&&(Mt&62914560)===Mt&&300>Kn()-Rm?(on&2)===0&&al(t,0):Cm|=o,rl===Mt&&(rl=0)),za(t)}function bb(t,r){r===0&&(r=sa()),t=Qt(t,r),t!==null&&(la(t,r),za(t))}function qC(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),bb(t,o)}function HC(t,r){var o=0;switch(t.tag){case 13:var l=t.stateNode,h=t.memoizedState;h!==null&&(o=h.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(r),bb(t,o)}function GC(t,r){return aa(t,r)}var Md=null,sl=null,zm=!1,Od=!1,Vm=!1,es=0;function za(t){t!==sl&&t.next===null&&(sl===null?Md=sl=t:sl=sl.next=t),Od=!0,zm||(zm=!0,YC(KC))}function Ic(t,r){if(!Vm&&Od){Vm=!0;do for(var o=!1,l=Md;l!==null;){if(t!==0){var h=l.pendingLanes;if(h===0)var v=0;else{var _=l.suspendedLanes,k=l.pingedLanes;v=(1<<31-nn(42|t)+1)-1,v&=h&~(_&~k),v=v&201326677?v&201326677|1:v?v|2:0}v!==0&&(o=!0,Sb(l,v))}else v=Mt,v=ei(l,l===qt?v:0),(v&3)===0||oa(l,v)||(o=!0,Sb(l,v));l=l.next}while(o);Vm=!1}}function KC(){Od=zm=!1;var t=0;es!==0&&(n2()&&(t=es),es=0);for(var r=Kn(),o=null,l=Md;l!==null;){var h=l.next,v=xb(l,r);v===0?(l.next=null,o===null?Md=h:o.next=h,h===null&&(sl=o)):(o=l,(t!==0||(v&3)!==0)&&(Od=!0)),l=h}Ic(t)}function xb(t,r){for(var o=t.suspendedLanes,l=t.pingedLanes,h=t.expirationTimes,v=t.pendingLanes&-62914561;0<v;){var _=31-nn(v),k=1<<_,F=h[_];F===-1?((k&o)===0||(k&l)!==0)&&(h[_]=Wl(k,r)):F<=r&&(t.expiredLanes|=k),v&=~k}if(r=qt,o=Mt,o=ei(t,t===r?o:0),l=t.callbackNode,o===0||t===r&&Ht===2||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Rn(l),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||oa(t,o)){if(r=o&-o,r===t.callbackPriority)return r;
vendor: 12,491 bytes, lines 48-49
48switch(l!==null&&Rn(l),Ro(o)){case 2:case 8:o=wr;break;case 32:o=ia;break;case 268435456:o=Za;break;default:o=ia}return l=wb.bind(null,t),o=aa(o,l),t.callbackPriority=r,t.callbackNode=o,r}return l!==null&&l!==null&&Rn(l),t.callbackPriority=2,t.callbackNode=null,2}function wb(t,r){var o=t.callbackNode;if(ol()&&t.callbackNode!==o)return null;var l=Mt;return l=ei(t,t===qt?l:0),l===0?null:(lb(t,l,r),xb(t,Kn()),t.callbackNode!=null&&t.callbackNode===o?wb.bind(null,t):null)}function Sb(t,r){if(ol())return null;lb(t,r,!0)}function YC(t){a2(function(){(on&6)!==0?aa(xr,t):t()})}function Um(){return es===0&&(es=ws()),es}function Eb(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:_r(""+t)}function Ab(t,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,t.id&&o.setAttribute("form",t.id),r.parentNode.insertBefore(o,r),t=new FormData(t),o.parentNode.removeChild(o),t}function XC(t,r,o,l,h){if(r==="submit"&&o&&o.stateNode===h){var v=Eb((h[Yt]||null).action),_=l.submitter;_&&(r=(r=_[Yt]||null)?Eb(r.formAction):_.getAttribute("formAction"),r!==null&&(v=r,_=null));var k=new Cs("action","action",null,l,h);t.push({event:k,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(es!==0){var F=_?Ab(h,_):new FormData(h);Xh(o,{pending:!0,data:F,method:h.method,action:v},null,F)}}else typeof v=="function"&&(k.preventDefault(),F=_?Ab(h,_):new FormData(h),Xh(o,{pending:!0,data:F,method:h.method,action:v},v,F))},currentTarget:h}]})}}for(var Bm=0;Bm<Be.length;Bm++){var $m=Be[Bm],WC=$m.toLowerCase(),ZC=$m[0].toUpperCase()+$m.slice(1);Ke(WC,"on"+ZC)}Ke(ye,"onAnimationEnd"),Ke(ve,"onAnimationIteration"),Ke(Ee,"onAnimationStart"),Ke("dblclick","onDoubleClick"),Ke("focusin","onFocus"),Ke("focusout","onBlur"),Ke(Pe,"onTransitionRun"),Ke(qe,"onTransitionStart"),Ke(Le,"onTransitionCancel"),Ke(ze,"onTransitionEnd"),ir("onMouseEnter",["mouseout","mouseover"]),ir("onMouseLeave",["mouseout","mouseover"]),ir("onPointerEnter",["pointerout","pointerover"]),ir("onPointerLeave",["pointerout","pointerover"]),pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pr("onBeforeInput",["compositionend","keypress","textInput","paste"]),pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zc="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(" "),QC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zc));function _b(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var l=t[o],h=l.event;l=l.listeners;e:{var v=void 0;if(r)for(var _=l.length-1;0<=_;_--){var k=l[_],F=k.instance,re=k.currentTarget;if(k=k.listener,F!==v&&h.isPropagationStopped())break e;v=k,h.currentTarget=re;try{v(h)}catch(Ae){vd(Ae)}h.currentTarget=null,v=F}else for(_=0;_<l.length;_++){if(k=l[_],F=k.instance,re=k.currentTarget,k=k.listener,F!==v&&h.isPropagationStopped())break e;v=k,h.currentTarget=re;try{v(h)}catch(Ae){vd(Ae)}h.currentTarget=null,v=F}}}}function Rt(t,r){var o=r[mr];o===void 0&&(o=r[mr]=new Set);var l=t+"__bubble";o.has(l)||(Nb(r,t,2,!1),o.add(l))}function Fm(t,r,o){var l=0;r&&(l|=4),Nb(o,t,l,r)}var Dd="_reactListening"+Math.random().toString(36).slice(2);function qm(t){if(!t[Dd]){t[Dd]=!0,Li.forEach(function(o){o!=="selectionchange"&&(QC.has(o)||Fm(o,!1,t),Fm(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Dd]||(r[Dd]=!0,Fm("selectionchange",!1,r))}}function Nb(t,r,o,l){switch(Xb(r)){case 2:var h=A2;break;case 8:h=_2;break;default:h=rp}o=h.bind(null,r,o,t),h=void 0,!Ql||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),l?h!==void 0?t.addEventListener(r,o,{capture:!0,passive:h}):t.addEventListener(r,o,!0):h!==void 0?t.addEventListener(r,o,{passive:h}):t.addEventListener(r,o,!1)}function Hm(t,r,o,l,h){var v=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var _=l.tag;if(_===3||_===4){var k=l.stateNode.containerInfo;if(k===h||k.nodeType===8&&k.parentNode===h)break;if(_===4)for(_=l.return;_!==null;){var F=_.tag;if((F===3||F===4)&&(F=_.stateNode.containerInfo,F===h||F.nodeType===8&&F.parentNode===h))return;_=_.return}for(;k!==null;){if(_=zr(k),_===null)return;if(F=_.tag,F===5||F===6||F===26||F===27){l=v=_;continue e}k=k.parentNode}}l=l.return}_s(function(){var re=v,Ae=As(o),Oe=[];e:{var ge=Ge.get(t);if(ge!==void 0){var Se=Cs,nt=t;switch(t){case"keypress":if($i(o)===0)break e;case"keydown":case"keyup":Se=Ps;break;case"focusin":nt="focus",Se=Fi;break;case"focusout":nt="blur",Se=Fi;break;case"beforeblur":case"afterblur":Se=Fi;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Se=js;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Se=Hu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Se=ic;break;case ye:case ve:case Ee:Se=Gu;break;case ze:Se=oc;break;case"scroll":case"scrollend":Se=Ts;break;case"wheel":Se=Is;break;case"copy":case"cut":case"paste":Se=Ds;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Se=ac;break;case"toggle":case"beforetoggle":Se=Xu}var mt=(r&4)!==0,dn=!mt&&(t==="scroll"||t==="scrollend"),ue=mt?ge!==null?ge+"Capture":null:ge;mt=[];for(var Q=re,he;Q!==null;){var Ce=Q;if(he=Ce.stateNode,Ce=Ce.tag,Ce!==5&&Ce!==26&&Ce!==27||he===null||ue===null||(Ce=gr(Q,ue),Ce!=null&&mt.push(Vc(Q,Ce,he))),dn)break;Q=Q.return}0<mt.length&&(ge=new Se(ge,nt,null,o,Ae),Oe.push({event:ge,listeners:mt}))}}if((r&7)===0){e:{if(ge=t==="mouseover"||t==="pointerover",Se=t==="mouseout"||t==="pointerout",ge&&o!==Es&&(nt=o.relatedTarget||o.fromElement)&&(zr(nt)||nt[ar]))break e;if((Se||ge)&&(ge=Ae.window===Ae?Ae:(ge=Ae.ownerDocument)?ge.defaultView||ge.parentWindow:window,Se?(nt=o.relatedTarget||o.toElement,Se=re,nt=nt?zr(nt):null,nt!==null&&(dn=B(nt),mt=nt.tag,nt!==dn||mt!==5&&mt!==27&&mt!==6)&&(nt=null)):(Se=null,nt=re),Se!==nt)){if(mt=js,Ce="onMouseLeave",ue="onMouseEnter",Q="mouse",(t==="pointerout"||t==="pointerover")&&(mt=ac,Ce="onPointerLeave",ue="onPointerEnter",Q="pointer"),dn=Se==null?ge:Lt(Se),he=nt==null?ge:Lt(nt),ge=new mt(Ce,Q+"leave",Se,o,Ae),ge.target=dn,ge.relatedTarget=he,Ce=null,zr(Ae)===re&&(mt=new mt(ue,Q+"enter",nt,o,Ae),mt.target=he,mt.relatedTarget=dn,Ce=mt),dn=Ce,Se&&nt)t:{for(mt=Se,ue=nt,Q=0,he=mt;he;he=ll(he))Q++;for(he=0,Ce=ue;Ce;Ce=ll(Ce))he++;for(;0<Q-he;)mt=ll(mt),Q--;for(;0<he-Q;)ue=ll(ue),he--;for(;Q--;){if(mt===ue||ue!==null&&mt===ue.alternate)break t;mt=ll(mt),ue=ll(ue)}mt=null}else mt=null;Se!==null&&Cb(Oe,ge,Se,mt,!1),nt!==null&&dn!==null&&Cb(Oe,dn,nt,mt,!0)}}e:{if(ge=re?Lt(re):window,Se=ge.nodeName&&ge.nodeName.toLowerCase(),Se==="select"||Se==="input"&&ge.type==="file")var We=Io;else if(Us(ge))if(Br)We=Gi;else{We=li;var At=td}else Se=ge.nodeName,!Se||Se.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?re&&Nn(re.elementType)&&(We=Io):We=dc;if(We&&(We=We(t,re))){uc(Oe,We,o,Ae);break e}At&&At(t,ge,re),t==="focusout"&&re&&ge.type==="number"&&re.memoizedProps.value!=null&&ht(ge,"number",ge.value)}switch(At=re?Lt(re):window,t){case"focusin":(Us(At)||At.contentEditable==="true")&&(Y=At,Z=re,ae=null);break;case"focusout":ae=Z=Y=null;break;case"mousedown":G=!0;break;case"contextmenu":case"mouseup":case"dragend":G=!1,ce(Oe,o,Ae);break;case"selectionchange":if(H)break;case"keydown":case"keyup":ce(Oe,o,Ae)}var rt;if(Po)e:{switch(t){case"compositionstart":var it="onCompositionStart";break e;case"compositionend":it="onCompositionEnd";break e;case"compositionupdate":it="onCompositionUpdate";break e}it=void 0}else si?cc(t,o)&&(it="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(it="onCompositionStart");it&&(zs&&o.locale!=="ko"&&(si||it!=="onCompositionStart"?it==="onCompositionEnd"&&si&&(rt=Bi()):(Ur=Ae,Ns="value"in Ur?Ur.value:Ur.textContent,si=!0)),At=kd(re,it),0<At.length&&(it=new ks(it,t,null,o,Ae),Oe.push({event:it,listeners:At}),rt?it.data=rt:(rt=Zu(o),rt!==null&&(it.data=rt)))),(rt=Ah?Qu(t,o):_h(t,o))&&(it=kd(re,"onBeforeInput"),0<it.length&&(At=new ks("onBeforeInput","beforeinput",null,o,Ae),Oe.push({event:At,listeners:it}),At.data=rt)),XC(Oe,t,re,o,Ae)}_b(Oe,r)})}function Vc(t,r,o){return{instance:t,listener:r,currentTarget:o}}function kd(t,r){for(var o=r+"Capture",l=[];t!==null;){var h=t,v=h.stateNode;h=h.tag,h!==5&&h!==26&&h!==27||v===null||(h=gr(t,o),h!=null&&l.unshift(Vc(t,h,v)),h=gr(t,r),h!=null&&l.push(Vc(t,h,v))),t=t.return}return l}function ll(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Cb(t,r,o,l,h){for(var v=r._reactName,_=[];o!==null&&o!==l;){var k=o,F=k.alternate,re=k.stateNode;if(k=k.tag,F!==null&&F===l)break;k!==5&&k!==26&&k!==27||re===null||(F=re,h?(re=gr(o,v),re!=null&&_.unshift(Vc(o,re,F))):h||(re=gr(o,v),re!=null&&_.push(Vc(o,re,F)))),o=o.return}_.length!==0&&t.push({event:r,listeners:_})}var JC=/\r\n?/g,e2=/\u0000|\uFFFD/g;function Tb(t){return(typeof t=="string"?t:""+t).replace(JC,`
49`).replace(e2,"")}function Rb(t,r){return r=Tb(r),Tb(t)===r}function Pd(){}function Ut(t,r,o,l,h,v){switch(o){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||Ze(t,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&Ze(t,""+l);break;case"className":O(t,"class",l);break;case"tabIndex":O(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":O(t,o,l);break;case"style":zi(t,l,v);break;case"data":if(r!=="object"){O(t,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||o!=="href")){t.removeAttribute(o);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(o);break}l=_r(""+l),t.setAttribute(o,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(o,"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 v=="function"&&(o==="formAction"?(r!=="input"&&Ut(t,r,"name",h.name,h,null),Ut(t,r,"formEncType",h.formEncType,h,null),Ut(t,r,"formMethod",h.formMethod,h,null),Ut(t,r,"formTarget",h.formTarget,h,null)):(Ut(t,r,"encType",h.encType,h,null),Ut(t,r,"method",h.method,h,null),Ut(t,r,"target",h.target,h,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(o);break}l=_r(""+l),t.setAttribute(o,l);break;case"onClick":l!=null&&(t.onclick=Pd);break;case"onScroll":l!=null&&Rt("scroll",t);break;case"onScrollEnd":l!=null&&Rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(o=l.__html,o!=null){if(h.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}o=_r(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(o,""+l):t.removeAttribute(o);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":l===!0?t.setAttribute(o,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(o,l):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(o,l):t.removeAttribute(o);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(o):t.setAttribute(o,l);break;case"popover":Rt("beforetoggle",t),Rt("toggle",t),gt(t,"popover",l);break;case"xlinkActuate":U(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":U(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":U(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":U(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":U(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":U(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":U(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":U(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":U(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gt(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=ja.get(o)||o,gt(t,o,l))}}function Gm(t,r,o,l,h,v){switch(o){case"style":zi(t,l,v);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(o=l.__html,o!=null){if(h.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof l=="string"?Ze(t,l):(typeof l=="number"||typeof l=="bigint")&&Ze(t,""+l);break;case"onScroll":l!=null&&Rt("scroll",t);break;case"onScrollEnd":l!=null&&Rt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Pd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yn.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(h=o.endsWith("Capture"),r=o.slice(2,h?o.length-7:void 0),v=t[Yt]||null,v=v!=null?v[o]:null,typeof v=="function"&&t.removeEventListener(r,v,h),typeof l=="function")){typeof v!="function"&&v!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(r,l,h);break e}o in t?t[o]=l:l===!0?t.setAttribute(o,""):gt(t,o,l)}}}function Fn(t,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",t),Rt("load",t);var l=!1,h=!1,v;for(v in o)if(o.hasOwnProperty(v)){var _=o[v];if(_!=null)switch(v){case"src":l=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ut(t,r,v,_,o,null)}}h&&Ut(t,r,"srcSet",o.srcSet,o,null),l&&Ut(t,r,"src",o.src,o,null);return;case"input":Rt("invalid",t);var k=v=_=h=null,F=null,re=null;for(l in o)if(o.hasOwnProperty(l)){var Ae=o[l];if(Ae!=null)switch(l){case"name":h=Ae;break;case"type":_=Ae;break;case"checked":F=Ae;break;case"defaultChecked":re=Ae;break;case"value":v=Ae;break;case"defaultValue":k=Ae;break;case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(i(137,r));break;default:Ut(t,r,l,Ae,o,null)}}et(t,v,k,F,re,_,h,!1),oe(t);return;case"select":Rt("invalid",t),l=_=v=null;for(h in o)if(o.hasOwnProperty(h)&&(k=o[h],k!=null))switch(h){case"value":v=k;break;case"defaultValue":_=k;break;case"multiple":l=k;default:Ut(t,r,h,k,o,null)}r=v,o=_,t.multiple=!!l,r!=null?xt(t,!!l,r,!1):o!=null&&xt(t,!!l,o,!0);return;case"textarea":Rt("invalid",t),v=h=l=null;for(_ in o)if(o.hasOwnProperty(_)&&(k=o[_],k!=null))switch(_){case"value":l=k;break;case"defaultValue":h=k;break;case"children":v=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(i(91));break;default:Ut(t,r,_,k,o,null)}Xt(t,l,h,v),oe(t);return;case"option":for(F in o)if(o.hasOwnProperty(F)&&(l=o[F],l!=null))switch(F){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ut(t,r,F,l,o,null)}return;case"dialog":Rt("cancel",t),Rt("close",t);break;case"iframe":case"object":Rt("load",t);break;case"video":case"audio":for(l=0;l<zc.length;l++)Rt(zc[l],t);break;case"image":Rt("error",t),Rt("load",t);break;case"details":Rt("toggle",t);break;case"embed":case"source":case"link":Rt("error",t),Rt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in o)if(o.hasOwnProperty(re)&&(l=o[re],l!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ut(t,r,re,l,o,null)}return;default:if(Nn(r)){for(Ae in o)o.hasOwnProperty(Ae)&&(l=o[Ae],l!==void 0&&Gm(t,r,Ae,l,o,void 0));return}}for(k in o)o.hasOwnProperty(k)&&(l=o[k],l!=null&&Ut(t,r,k,l,o,null))}function t2(t,r,o,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,v=null,_=null,k=null,F=null,re=null,Ae=null;for(Se in o){var Oe=o[Se];if(o.hasOwnProperty(Se)&&Oe!=null)switch(Se){case"checked":break;case"value":break;case"defaultValue":F=Oe;default:l.hasOwnProperty(Se)||Ut(t,r,Se,null,l,Oe)}}for(var ge in l){var Se=l[ge];if(Oe=o[ge],l.hasOwnProperty(ge)&&(Se!=null||Oe!=null))switch(ge){case"type":v=Se;break;case"name":h=Se;break;case"checked":re=Se;break;case"defaultChecked":Ae=Se;break;case"value":_=Se;break;case"defaultValue":k=Se;break;case"children":case"dangerouslySetInnerHTML":if(Se!=null)throw Error(i(137,r));break;default:Se!==Oe&&Ut(t,r,ge,Se,l,Oe)}}De(t,_,k,F,re,Ae,v,h);return;case"select":Se=_=k=ge=null;for(v in o)if(F=o[v],o.hasOwnProperty(v)&&F!=null)switch(v){case"value":break;case"multiple":Se=F;default:l.hasOwnProperty(v)||Ut(t,r,v,null,l,F)}for(h in l)if(v=l[h],F=o[h],l.hasOwnProperty(h)&&(v!=null||F!=null))switch(h){case"value":ge=v;break;case"defaultValue":k=v;break;case"multiple":_=v;default:v!==F&&Ut(t,r,h,v,l,F)}r=k,o=_,l=Se,ge!=null?xt(t,!!o,ge,!1):!!l!=!!o&&(r!=null?xt(t,!!o,r,!0):xt(t,!!o,o?[]:"",!1));return;case"textarea":Se=ge=null;for(k in o)if(h=o[k],o.hasOwnProperty(k)&&h!=null&&!l.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ut(t,r,k,null,l,h)}for(_ in l)if(h=l[_],v=o[_],l.hasOwnProperty(_)&&(h!=null||v!=null))switch(_){case"value":ge=h;break;case"defaultValue":Se=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(i(91));break;default:h!==v&&Ut(t,r,_,h,l,v)}Tt(t,ge,Se);return;case"option":for(var nt in o)if(ge=o[nt],o.hasOwnProperty(nt)&&ge!=null&&!l.hasOwnProperty(nt))switch(nt){case"selected":t.selected=!1;break;default:Ut(t,r,nt,null,l,ge)}for(F in l)if(ge=l[F],Se=o[F],l.hasOwnProperty(F)&&ge!==Se&&(ge!=null||Se!=null))switch(F){case"selected":t.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:Ut(t,r,F,ge,l,Se)}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 mt in o)ge=o[mt],o.hasOwnProperty(mt)&&ge!=null&&!l.hasOwnProperty(mt)&&Ut(t,r,mt,null,l,ge);
vendor: 4,500 bytes, line 49
49for(re in l)if(ge=l[re],Se=o[re],l.hasOwnProperty(re)&&ge!==Se&&(ge!=null||Se!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(i(137,r));break;default:Ut(t,r,re,ge,l,Se)}return;default:if(Nn(r)){for(var dn in o)ge=o[dn],o.hasOwnProperty(dn)&&ge!==void 0&&!l.hasOwnProperty(dn)&&Gm(t,r,dn,void 0,l,ge);for(Ae in l)ge=l[Ae],Se=o[Ae],!l.hasOwnProperty(Ae)||ge===Se||ge===void 0&&Se===void 0||Gm(t,r,Ae,ge,l,Se);return}}for(var ue in o)ge=o[ue],o.hasOwnProperty(ue)&&ge!=null&&!l.hasOwnProperty(ue)&&Ut(t,r,ue,null,l,ge);for(Oe in l)ge=l[Oe],Se=o[Oe],!l.hasOwnProperty(Oe)||ge===Se||ge==null&&Se==null||Ut(t,r,Oe,ge,l,Se)}var Km=null,Ym=null;function Ld(t){return t.nodeType===9?t:t.ownerDocument}function jb(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mb(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Xm(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Wm=null;function n2(){var t=window.event;return t&&t.type==="popstate"?t===Wm?!1:(Wm=t,!0):(Wm=null,!1)}var Ob=typeof setTimeout=="function"?setTimeout:void 0,r2=typeof clearTimeout=="function"?clearTimeout:void 0,Db=typeof Promise=="function"?Promise:void 0,a2=typeof queueMicrotask=="function"?queueMicrotask:typeof Db<"u"?function(t){return Db.resolve(null).then(t).catch(i2)}:Ob;function i2(t){setTimeout(function(){throw t})}function Zm(t,r){var o=r,l=0;do{var h=o.nextSibling;if(t.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"){if(l===0){t.removeChild(h),Kc(r);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=h}while(o);Kc(r)}function Qm(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Qm(o),Ar(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function o2(t,r,o,l){for(;t.nodeType===1;){var h=o;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ra])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(v=t.getAttribute("rel"),v==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(v!==h.rel||t.getAttribute("href")!==(h.href==null?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(v=t.getAttribute("src"),(v!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&v&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var v=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===v)return t}else return t;if(t=ha(t.nextSibling),t===null)break}return null}function s2(t,r,o){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=ha(t.nextSibling),t===null))return null;return t}function ha(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}function kb(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return t;r--}else o==="/$"&&r++}t=t.previousSibling}return null}function Pb(t,r,o){switch(r=Ld(o),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}var Wr=new Map,Lb=new Set;function Id(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var Ei=de.d;de.d={f:l2,r:c2,D:u2,C:d2,L:f2,m:h2,X:p2,S:m2,M:g2};function l2(){var t=Ei.f(),r=Rd();return t||r}function c2(t){var r=Vr(t);r!==null&&r.tag===5&&r.type==="form"?c0(r):Ei.r(t)}var cl=typeof document>"u"?null:document;function Ib(t,r,o){var l=cl;if(l&&typeof r=="string"&&r){var h=Te(r);
vendor: 3,591 bytes, line 49
49h='link[rel="'+t+'"][href="'+h+'"]',typeof o=="string"&&(h+='[crossorigin="'+o+'"]'),Lb.has(h)||(Lb.add(h),t={rel:t,crossOrigin:o,href:r},l.querySelector(h)===null&&(r=l.createElement("link"),Fn(r,"link",t),jt(r),l.head.appendChild(r)))}}function u2(t){Ei.D(t),Ib("dns-prefetch",t,null)}function d2(t,r){Ei.C(t,r),Ib("preconnect",t,r)}function f2(t,r,o){Ei.L(t,r,o);var l=cl;if(l&&t&&r){var h='link[rel="preload"][as="'+Te(r)+'"]';r==="image"&&o&&o.imageSrcSet?(h+='[imagesrcset="'+Te(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(h+='[imagesizes="'+Te(o.imageSizes)+'"]')):h+='[href="'+Te(t)+'"]';var v=h;switch(r){case"style":v=ul(t);break;case"script":v=dl(t)}Wr.has(v)||(t=xe({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),Wr.set(v,t),l.querySelector(h)!==null||r==="style"&&l.querySelector(Uc(v))||r==="script"&&l.querySelector(Bc(v))||(r=l.createElement("link"),Fn(r,"link",t),jt(r),l.head.appendChild(r)))}}function h2(t,r){Ei.m(t,r);var o=cl;if(o&&t){var l=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+Te(l)+'"][href="'+Te(t)+'"]',v=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=dl(t)}if(!Wr.has(v)&&(t=xe({rel:"modulepreload",href:t},r),Wr.set(v,t),o.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Bc(v)))return}l=o.createElement("link"),Fn(l,"link",t),jt(l),o.head.appendChild(l)}}}function m2(t,r,o){Ei.S(t,r,o);var l=cl;if(l&&t){var h=zn(l).hoistableStyles,v=ul(t);r=r||"default";var _=h.get(v);if(!_){var k={loading:0,preload:null};if(_=l.querySelector(Uc(v)))k.loading=5;else{t=xe({rel:"stylesheet",href:t,"data-precedence":r},o),(o=Wr.get(v))&&Jm(t,o);var F=_=l.createElement("link");jt(F),Fn(F,"link",t),F._p=new Promise(function(re,Ae){F.onload=re,F.onerror=Ae}),F.addEventListener("load",function(){k.loading|=1}),F.addEventListener("error",function(){k.loading|=2}),k.loading|=4,zd(_,r,l)}_={type:"stylesheet",instance:_,count:1,state:k},h.set(v,_)}}}function p2(t,r){Ei.X(t,r);var o=cl;if(o&&t){var l=zn(o).hoistableScripts,h=dl(t),v=l.get(h);v||(v=o.querySelector(Bc(h)),v||(t=xe({src:t,async:!0},r),(r=Wr.get(h))&&ep(t,r),v=o.createElement("script"),jt(v),Fn(v,"link",t),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},l.set(h,v))}}function g2(t,r){Ei.M(t,r);var o=cl;if(o&&t){var l=zn(o).hoistableScripts,h=dl(t),v=l.get(h);v||(v=o.querySelector(Bc(h)),v||(t=xe({src:t,async:!0,type:"module"},r),(r=Wr.get(h))&&ep(t,r),v=o.createElement("script"),jt(v),Fn(v,"link",t),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},l.set(h,v))}}function zb(t,r,o,l){var h=(h=ln.current)?Id(h):null;if(!h)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=ul(o.href),o=zn(h).hoistableStyles,l=o.get(r),l||(l={type:"style",instance:null,count:0,state:null},o.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=ul(o.href);var v=zn(h).hoistableStyles,_=v.get(t);if(_||(h=h.ownerDocument||h,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(t,_),(v=h.querySelector(Uc(t)))&&!v._p&&(_.instance=v,_.state.loading=5),Wr.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy}
vendor: 13,786 bytes, line 49
49,Wr.set(t,o),v||y2(h,t,o,_.state))),r&&l===null)throw Error(i(528,""));return _}if(r&&l!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=dl(o),o=zn(h).hoistableScripts,l=o.get(r),l||(l={type:"script",instance:null,count:0,state:null},o.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function ul(t){return'href="'+Te(t)+'"'}function Uc(t){return'link[rel="stylesheet"]['+t+"]"}function Vb(t){return xe({},t,{"data-precedence":t.precedence,precedence:null})}function y2(t,r,o,l){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=t.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),Fn(r,"link",o),jt(r),t.head.appendChild(r))}function dl(t){return'[src="'+Te(t)+'"]'}function Bc(t){return"script[async]"+t}function Ub(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+Te(o.href)+'"]');if(l)return r.instance=l,jt(l),l;var h=xe({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),jt(l),Fn(l,"style",h),zd(l,o.precedence,t),r.instance=l;case"stylesheet":h=ul(o.href);var v=t.querySelector(Uc(h));if(v)return r.state.loading|=4,r.instance=v,jt(v),v;l=Vb(o),(h=Wr.get(h))&&Jm(l,h),v=(t.ownerDocument||t).createElement("link"),jt(v);var _=v;return _._p=new Promise(function(k,F){_.onload=k,_.onerror=F}),Fn(v,"link",l),r.state.loading|=4,zd(v,o.precedence,t),r.instance=v;case"script":return v=dl(o.src),(h=t.querySelector(Bc(v)))?(r.instance=h,jt(h),h):(l=o,(h=Wr.get(v))&&(l=xe({},o),ep(l,h)),t=t.ownerDocument||t,h=t.createElement("script"),jt(h),Fn(h,"link",l),t.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,zd(l,o.precedence,t));return r.instance}function zd(t,r,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,v=h,_=0;_<l.length;_++){var k=l[_];if(k.dataset.precedence===r)v=k;else if(v!==h)break}v?v.parentNode.insertBefore(t,v.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(t,r.firstChild))}function Jm(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function ep(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Vd=null;function Bb(t,r,o){if(Vd===null){var l=new Map,h=Vd=new Map;h.set(o,l)}else h=Vd,l=h.get(o),l||(l=new Map,h.set(o,l));if(l.has(t))return l;for(l.set(t,null),o=o.getElementsByTagName(t),h=0;h<o.length;h++){var v=o[h];if(!(v[Ra]||v[bn]||t==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var _=v.getAttribute(r)||"";_=t+_;var k=l.get(_);k?k.push(v):l.set(_,[v])}}return l}function $b(t,r,o){t=t.ownerDocument||t,t.head.insertBefore(o,r==="title"?t.querySelector("head > title"):null)}function v2(t,r,o){if(o===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Fb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var $c=null;function b2(){}function x2(t,r,o){if($c===null)throw Error(i(475));var l=$c;if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var h=ul(o.href),v=t.querySelector(Uc(h));if(v){t=v._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Ud.bind(l),t.then(l,l)),r.state.loading|=4,r.instance=v,jt(v);return}v=t.ownerDocument||t,o=Vb(o),(h=Wr.get(h))&&Jm(o,h),v=v.createElement("link"),jt(v);var _=v;_._p=new Promise(function(k,F){_.onload=k,_.onerror=F}),Fn(v,"link",o),r.instance=v}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(l.count++,r=Ud.bind(l),t.addEventListener("load",r),t.addEventListener("error",r))}}function w2(){if($c===null)throw Error(i(475));var t=$c;return t.stylesheets&&t.count===0&&tp(t,t.stylesheets),0<t.count?function(r){var o=setTimeout(function(){if(t.stylesheets&&tp(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(o)}}:null}function Ud(){if(this.count--,this.count===0){if(this.stylesheets)tp(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Bd=null;function tp(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Bd=new Map,r.forEach(S2,t),Bd=null,Ud.call(t))}function S2(t,r){if(!(r.state.loading&4)){var o=Bd.get(t);if(o)var l=o.get(null);else{o=new Map,Bd.set(t,o);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<h.length;v++){var _=h[v];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(o.set(_.dataset.precedence,_),l=_)}l&&o.set(null,l)}h=r.instance,_=h.getAttribute("data-precedence"),v=o.get(_)||l,v===l&&o.set(null,h),o.set(_,h),this.count++,l=Ud.bind(this),h.addEventListener("load",l),h.addEventListener("error",l),v?v.parentNode.insertBefore(h,v.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),r.state.loading|=4}}var Fc={$$typeof:N,Provider:null,Consumer:null,_currentValue:He,_currentValue2:He,_threadCount:0};function E2(t,r,o,l,h,v,_,k){this.tag=1,this.containerInfo=t,this.finishedWork=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=Ir(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ir(0),this.hiddenUpdates=Ir(null),this.identifierPrefix=l,this.onUncaughtError=h,this.onCaughtError=v,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function qb(t,r,o,l,h,v,_,k,F,re,Ae,Oe){return t=new E2(t,r,o,_,k,F,re,Oe),r=1,v===!0&&(r|=24),v=Yr(3,null,null,r),t.current=v,v.stateNode=t,r=Dh(),r.refCount++,t.pooledCache=r,r.refCount++,v.memoizedState={element:l,isDehydrated:o,cache:r},hm(v),t}function Hb(t){return t?(t=yr,t):yr}function Gb(t,r,o,l,h,v){h=Hb(h),l.context===null?l.context=h:l.pendingContext=h,l=Ji(r),l.payload={element:o},v=v===void 0?null:v,v!==null&&(l.callback=v),o=eo(t,l,r),o!==null&&(lr(o,t,r),Nc(o,t,r))}function Kb(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function np(t,r){Kb(t,r),(t=t.alternate)&&Kb(t,r)}function Yb(t){if(t.tag===13){var r=Qt(t,67108864);r!==null&&lr(r,t,67108864),np(t,67108864)}}var $d=!0;function A2(t,r,o,l){var h=me.T;me.T=null;var v=de.p;try{de.p=2,rp(t,r,o,l)}finally{de.p=v,me.T=h}}function _2(t,r,o,l){var h=me.T;me.T=null;var v=de.p;try{de.p=8,rp(t,r,o,l)}finally{de.p=v,me.T=h}}function rp(t,r,o,l){if($d){var h=ap(l);if(h===null)Hm(t,r,l,Fd,o),Wb(t,l);else if(C2(h,t,r,o,l))l.stopPropagation();else if(Wb(t,l),r&4&&-1<N2.indexOf(t)){for(;h!==null;){var v=Vr(h);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var _=hr(v.pendingLanes);if(_!==0){var k=v;for(k.pendingLanes|=2,k.entangledLanes|=2;_;){var F=1<<31-nn(_);k.entanglements[1]|=F,_&=~F}za(v),(on&6)===0&&(Nd=Kn()+500,Ic(0))}}break;case 13:k=Qt(v,2),k!==null&&lr(k,v,2),Rd(),np(v,2)}if(v=ap(l),v===null&&Hm(t,r,l,Fd,o),v===h)break;h=v}h!==null&&l.stopPropagation()}else Hm(t,r,l,null,o)}}function ap(t){return t=As(t),ip(t)}var Fd=null;function ip(t){if(Fd=null,t=zr(t),t!==null){var r=B(t);if(r===null)t=null;else{var o=r.tag;if(o===13){if(t=K(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Fd=t,null}function Xb(t){switch(t){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(Na()){case xr:return 2;case wr:return 8;case ia:case Ca:return 32;case Za:return 268435456;default:return 32}default:return 32}}var op=!1,so=null,lo=null,co=null,qc=new Map,Hc=new Map,uo=[],N2="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 Wb(t,r){switch(t){case"focusin":case"focusout":so=null;break;case"dragenter":case"dragleave":lo=null;break;case"mouseover":case"mouseout":co=null;break;case"pointerover":case"pointerout":qc.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hc.delete(r.pointerId)}}function Gc(t,r,o,l,h,v){return t===null||t.nativeEvent!==v?(t={blockedOn:r,domEventName:o,eventSystemFlags:l,nativeEvent:v,targetContainers:[h]},r!==null&&(r=Vr(r),r!==null&&Yb(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),t)}function C2(t,r,o,l,h){switch(r){case"focusin":return so=Gc(so,t,r,o,l,h),!0;case"dragenter":return lo=Gc(lo,t,r,o,l,h),!0;case"mouseover":return co=Gc(co,t,r,o,l,h),!0;case"pointerover":var v=h.pointerId;return qc.set(v,Gc(qc.get(v)||null,t,r,o,l,h)),!0;case"gotpointercapture":return v=h.pointerId,Hc.set(v,Gc(Hc.get(v)||null,t,r,o,l,h)),!0}return!1}function Zb(t){var r=zr(t.target);if(r!==null){var o=B(r);if(o!==null){if(r=o.tag,r===13){if(r=K(o),r!==null){t.blockedOn=r,ki(t.priority,function(){if(o.tag===13){var l=Rr(),h=Qt(o,l);h!==null&&lr(h,o,l),np(o,l)}});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qd(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=ap(t.nativeEvent);if(o===null){o=t.nativeEvent;var l=new o.constructor(o.type,o);Es=l,o.target.dispatchEvent(l),Es=null}else return r=Vr(o),r!==null&&Yb(r),t.blockedOn=o,!1;r.shift()}return!0}function Qb(t,r,o){qd(t)&&o.delete(r)}function T2(){op=!1,so!==null&&qd(so)&&(so=null),lo!==null&&qd(lo)&&(lo=null),co!==null&&qd(co)&&(co=null),qc.forEach(Qb),Hc.forEach(Qb)}function Hd(t,r){t.blockedOn===r&&(t.blockedOn=null,op||(op=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,T2)))}var Gd=null;function Jb(t){Gd!==t&&(Gd=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gd===t&&(Gd=null);for(var r=0;r<t.length;r+=3){var o=t[r],l=t[r+1],h=t[r+2];if(typeof l!="function"){if(ip(l||o)===null)continue;break}var v=Vr(o);v!==null&&(t.splice(r,3),r-=3,Xh(v,{pending:!0,data:h,method:o.method,action:l},l,h))}}))}function Kc(t){function r(F){return Hd(F,t)}so!==null&&Hd(so,t),lo!==null&&Hd(lo,t),co!==null&&Hd(co,t),qc.forEach(r),Hc.forEach(r);for(var o=0;o<uo.length;o++){var l=uo[o];l.blockedOn===t&&(l.blockedOn=null)}for(;0<uo.length&&(o=uo[0],o.blockedOn===null);)Zb(o),o.blockedOn===null&&uo.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(l=0;l<o.length;l+=3){var h=o[l],v=o[l+1],_=h[Yt]||null;if(typeof v=="function")_||Jb(o);else if(_){var k=null;if(v&&v.hasAttribute("formAction")){if(h=v,_=v[Yt]||null)k=_.formAction;else if(ip(h)!==null)continue}else k=_.action;typeof k=="function"?o[l+1]=k:(o.splice(l,3),l-=3),Jb(o)}}}function sp(t){this._internalRoot=t}Kd.prototype.render=sp.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var o=r.current,l=Rr();Gb(o,l,t,r,null,null)},Kd.prototype.unmount=sp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;t.tag===0&&ol(),Gb(t.current,2,null,t,null,null),Rd(),r[ar]=null}};function Kd(t){this._internalRoot=t}Kd.prototype.unstable_scheduleHydration=function(t){if(t){var r=ti();t={blockedOn:null,target:t,priority:r};for(var o=0;o<uo.length&&r!==0&&r<uo[o].priority;o++);uo.splice(o,0,t),o===0&&Zb(t)}
49};var ex=n.version;if(ex!=="19.0.0")throw Error(i(527,ex,"19.0.0"));de.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=se(r),t=t!==null?_e(t):null,t=t===null?null:t.stateNode,t};var R2={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:me,findFiberByHostInstance:zr,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yd.isDisabled&&Yd.supportsFiber)try{Sr=Yd.inject(R2),hn=Yd}catch{}}return Xc.createRoot=function(t,r){if(!s(t))throw Error(i(299));var o=!1,l="",h=y0,v=v0,_=b0,k=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(_=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(k=r.unstable_transitionCallbacks)),r=qb(t,1,!1,null,null,o,l,h,v,_,k,null),t[ar]=r.current,qm(t.nodeType===8?t.parentNode:t),new sp(r)},Xc.hydrateRoot=function(t,r,o){if(!s(t))throw Error(i(299));var l=!1,h="",v=y0,_=v0,k=b0,F=null,re=null;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(k=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(F=o.unstable_transitionCallbacks),o.formState!==void 0&&(re=o.formState)),r=qb(t,1,!0,r,o??null,l,h,v,_,k,F,re),r.context=Hb(null),o=r.current,l=Rr(),h=Ji(l),h.callback=null,eo(o,h,l),r.current.lanes=l,la(r,l),za(r),t[ar]=r.current,qm(t),new Kd(r)},Xc.version="19.0.0",Xc}var ux;function F2(){if(ux)return up.exports;ux=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),up.exports=$2(),up.exports}var q2=F2(),Wc={},dx;function H2(){if(dx)return Wc;dx=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.parse=u,Wc.serialize=g;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,c=(()=>{const E=function(){};return E.prototype=Object.create(null),E})();function u(E,N){const T=new c,R=E.length;if(R<2)return T;const M=(N==null?void 0:N.decode)||b;let D=0;do{const $=E.indexOf("=",D);if($===-1)break;const I=E.indexOf(";",D),ee=I===-1?R:I;if($>ee){D=E.lastIndexOf(";",$-1)+1;continue}const z=f(E,D,$),q=p(E,$,z),ie=E.slice(z,q);if(T[ie]===void 0){let be=f(E,$+1,ee),me=p(E,ee,be);const xe=M(E.slice(be,me));T[ie]=xe}D=ee+1}while(D<R);return T}function f(E,N,T){do{const R=E.charCodeAt(N);if(R!==32&&R!==9)return N}while(++N<T);return T}function p(E,N,T){for(;N>T;){const R=E.charCodeAt(--N);if(R!==32&&R!==9)return N+1}return T}function g(E,N,T){const R=(T==null?void 0:T.encode)||encodeURIComponent;if(!e.test(E))throw new TypeError(`argument name is invalid: ${E}`);const M=R(N);if(!n.test(M))throw new TypeError(`argument val is invalid: ${N}`);let D=E+"="+M;if(!T)return D;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);D+="; Max-Age="+T.maxAge}if(T.domain){if(!a.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);D+="; Domain="+T.domain}if(T.path){if(!i.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);D+="; Path="+T.path}if(T.expires){if(!x(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invali
49d: ${T.expires}`);D+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(D+="; HttpOnly"),T.secure&&(D+="; Secure"),T.partitioned&&(D+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":D+="; Priority=Low";break;case"medium":D+="; Priority=Medium";break;case"high":D+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":D+="; SameSite=Strict";break;case"lax":D+="; SameSite=Lax";break;case"none":D+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return D}function b(E){if(E.indexOf("%")===-1)return E;try{return decodeURIComponent(E)}catch{return E}}function x(E){return s.call(E)==="[object Date]"}return Wc}H2();/**
50 * react-router v7.4.1
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 fx="popstate";function G2(e={}){function n(i,s){let{pathname:c,search:u,hash:f}=i.location;return qp("",{pathname:c,search:u,hash:f},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function a(i,s){return typeof s=="string"?s:mu(s)}return Y2(n,a,null,e)}function en(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function ya(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function K2(){return Math.random().toString(36).substring(2,10)}function hx(e,n){return{usr:e.state,key:e.key,idx:n}}function qp(e,n,a=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?zl(n):n,state:a,key:n&&n.key||i||K2()}}function mu({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function zl(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function Y2(e,n,a,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,u=s.history,f="POP",p=null,g=b();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function b(){return(u.state||{idx:null}).idx}function x(){f="POP";let M=b(),D=M==null?null:M-g;g=M,p&&p({action:f,location:R.location,delta:D})}function E(M,D){f="PUSH";let $=qp(R.location,M,D);g=b()+1;let I=hx($,g),ee=R.createHref($);try{u.pushState(I,"",ee)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(ee)}c&&p&&p({action:f,location:R.location,delta:1})}function N(M,D){f="REPLACE";let $=qp(R.location,M,D);g=b();let I=hx($,g),ee=R.createHref($);u.replaceState(I,"",ee),c&&p&&p({action:f,location:R.location,delta:0})}function T(M){let D=s.location.origin!=="null"?s.location.origin:s.location.href,$=typeof M=="string"?M:mu(M);return $=$.replace(/ $/,"%20"),en(D,`No window.location.(origin|href) available to create URL for href: ${$}`),new URL($,D)}let R={get action(){return f},get location(){return e(s,u)},listen(M){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(fx,x),p=M,()=>{s.removeEventListener(fx,x),p=null}},createHref(M){return n(s,M)},createURL:T,encodeLocation(M){let D=T(M);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:E,replace:N,go(M){return u.go(M)}};return R}function I1(e,n,a="/"){return X2(e,n,a,!1)}function X2(e,n,a,i){let s=typeof n=="string"?zl(n):n,c=Ci(s.pathname||"/",a);if(c==null)return null;let u=z1(e);W2(u);let f=null;for(let p=0;f==null&&p<u.length;++p){let g=sT(c);f=iT(u[p],g,i)}return f}function z1(e,n=[],a=[],i=""){let s=(c,u,f)=>{let p={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};p.relativePath.startsWith("/")&&(en(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=Ni([i,p.relativePath]),b=a.concat(p);c.children&&c.children.length>0&&(en(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),z1(c.children,n,b,g)),!(c.path==null&&!c.index)&&n.push({path:g,score:rT(g,c.index),routesMeta:b})};return e.forEach((c,u)=>{var f;if(c.path===""||!((f=c.path)!=null&&f.includes("?")))s(c,u);else for(let p of V1(c.path))s(c,u,p)}),n}function V1(e){let n=e.split("/");if(n.length===0)return[];let[a,...i]=n,s=a.endsWith("?"),c=a.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let u=V1(i.join("/")),f=[];return f.push(...u.map(p=>p===""?c:[c,p].join("/"))),s&&f.push(...u),f.map(p=>e.startsWith("/")&&p===""?"/":p)}function W2(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:aT(n.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var Z2=/^:[\w-]+$/,Q2=3,J2=2,eT=1,tT=10,nT=-2,mx=e=>e==="*";function rT(e,n){let a=e.split("/"),i=a.length;return a.some(mx)&&(i+=nT),n&&(i+=J2),a.filter(s=>!mx(s)).reduce((s,c)=>s+(Z2.test(c)?Q2:c===""?eT:tT),i)}function aT(e,n){return e.length===n.length&&e.slice(0,-1).every((i,s)=>i===n[s])?e[e.length-1]-n[n.length-1]:0}function iT(e,n,a=!1){let{routesMeta:i}=e,s={},c="/",u=[];for(let f=0;f<i.length;++f){let p=i[f],g=f===i.length-1,b=c==="/"?n:n.slice(c.length)||"/",x=Of({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},b),E=p.route;if(!x&&g&&a&&!i[i.length-1].route.index&&(x=Of({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!x)return null;
58Object.assign(s,x.params),u.push({params:s,pathname:Ni([c,x.pathname]),pathnameBase:dT(Ni([c,x.pathnameBase])),route:E}),x.pathnameBase!=="/"&&(c=Ni([c,x.pathnameBase]))}return u}function Of(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,i]=oT(e.path,e.caseSensitive,e.end),s=n.match(a);if(!s)return null;let c=s[0],u=c.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:i.reduce((g,{paramName:b,isOptional:x},E)=>{if(b==="*"){let T=f[E]||"";u=c.slice(0,c.length-T.length).replace(/(.)\/+$/,"$1")}const N=f[E];return x&&!N?g[b]=void 0:g[b]=(N||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:u,pattern:e}}function oT(e,n=!1,a=!0){ya(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,p)=>(i.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function sT(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return ya(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Ci(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,i=e.charAt(a);return i&&i!=="/"?null:e.slice(a)||"/"}function lT(e,n="/"){let{pathname:a,search:i="",hash:s=""}=typeof e=="string"?zl(e):e;return{pathname:a?a.startsWith("/")?a:cT(a,n):n,search:fT(i),hash:hT(s)}}function cT(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function mp(e,n,a,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function uT(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function Pg(e){let n=uT(e);return n.map((a,i)=>i===n.length-1?a.pathname:a.pathnameBase)}function Lg(e,n,a,i=!1){let s;typeof e=="string"?s=zl(e):(s={...e},en(!s.pathname||!s.pathname.includes("?"),mp("?","pathname","search",s)),en(!s.pathname||!s.pathname.includes("#"),mp("#","pathname","hash",s)),en(!s.search||!s.search.includes("#"),mp("#","search","hash",s)));let c=e===""||s.pathname==="",u=c?"/":s.pathname,f;if(u==null)f=a;else{let x=n.length-1;if(!i&&u.startsWith("..")){let E=u.split("/");for(;E[0]==="..";)E.shift(),x-=1;s.pathname=E.join("/")}f=x>=0?n[x]:"/"}let p=lT(s,f),g=u&&u!=="/"&&u.endsWith("/"),b=(c||u===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(g||b)&&(p.pathname+="/"),p}var Ni=e=>e.join("/").replace(/\/\/+/g,"/"),dT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var U1=["POST","PUT","PATCH","DELETE"];new Set(U1);var pT=["GET",...U1];new Set(pT);var Vl=S.createContext(null);Vl.displayName="DataRouter";var rh=S.createContext(null);rh.displayName="DataRouterState";var B1=S.createContext({isTransitioning:!1});B1.displayName="ViewTransition";var gT=S.createContext(new Map);gT.displayName="Fetchers";var yT=S.createContext(null);yT.displayName="Await";var wa=S.createContext(null);wa.displayName="Navigation";var Ou=S.createContext(null);Ou.displayName="Location";var Ya=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ya.displayName="Route";var Ig=S.createContext(null);Ig.displayName="RouteError";function vT(e,{relative:n}={}){en(Ul(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=S.useContext(wa),{hash:s,pathname:c,search:u}=Du(e,{relative:n}),f=c;return a!=="/"&&(f=c==="/"?a:Ni([a,c])),i.createHref({pathname:f,search:u,hash:s})}function Ul(){return S.useContext(Ou)!=null}function Sa(){return en(Ul(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Ou).location}var $1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function F1(e){S.useContext(wa).static||S.useLayoutEffect(e)}function ps(){let{isDataRoute:e}=S.useContext(Ya);
58return e?MT():bT()}function bT(){en(Ul(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Vl),{basename:n,navigator:a}=S.useContext(wa),{matches:i}=S.useContext(Ya),{pathname:s}=Sa(),c=JSON.stringify(Pg(i)),u=S.useRef(!1);return F1(()=>{u.current=!0}),S.useCallback((p,g={})=>{if(ya(u.current,$1),!u.current)return;if(typeof p=="number"){a.go(p);return}let b=Lg(p,JSON.parse(c),s,g.relative==="path");e==null&&n!=="/"&&(b.pathname=b.pathname==="/"?n:Ni([n,b.pathname])),(g.replace?a.replace:a.push)(b,g.state,g)},[n,a,c,s,e])}S.createContext(null);function Du(e,{relative:n}={}){let{matches:a}=S.useContext(Ya),{pathname:i}=Sa(),s=JSON.stringify(Pg(a));return S.useMemo(()=>Lg(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function xT(e,n){return q1(e,n)}function q1(e,n,a,i){var $;en(Ul(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:c}=S.useContext(wa),{matches:u}=S.useContext(Ya),f=u[u.length-1],p=f?f.params:{},g=f?f.pathname:"/",b=f?f.pathnameBase:"/",x=f&&f.route;{let I=x&&x.path||"";H1(g,!x||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${I}">) 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="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let E=Sa(),N;if(n){let I=typeof n=="string"?zl(n):n;en(b==="/"||(($=I.pathname)==null?void 0:$.startsWith(b)),`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 "${b}" but pathname "${I.pathname}" was given in the \`location\` prop.`),N=I}else N=E;let T=N.pathname||"/",R=T;if(b!=="/"){let I=b.replace(/^\//,"").split("/");R="/"+T.replace(/^\//,"").split("/").slice(I.length).join("/")}let M=!c&&a&&a.matches&&a.matches.length>0?a.matches:I1(e,{pathname:R});ya(x||M!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),ya(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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 D=_T(M&&M.map(I=>Object.assign({},I,{params:Object.assign({},p,I.params),pathname:Ni([b,s.encodeLocation?s.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?b:Ni([b,s.encodeLocation?s.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),u,a,i);return n&&D?S.createElement(Ou.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},D):D}function wT(){let e=jT(),n=mT(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:c},"ErrorBoundary")," or"," ",S.createElement("code",{style:c},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},n),a?S.createElement("pre",{style:s},a):null,u)}var ST=S.createElement(wT,null),ET=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?S.createElement(Ya.Provider,{value:this.props.routeContext},S.createElement(Ig.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function AT({routeContext:e,match:n,children:a}){let i=S.useContext(Vl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Ya.Provider,{value:e},a)}function _T(e,n=[],a=null,i=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let s=e,c=a==null?void 0:a.errors;if(c!=null){let p=s.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);en(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let u=!1,f=-1;if(a)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=p),g.route.id){let{loaderData:b,errors:x}
60=a,E=g.route.loader&&!b.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||E){u=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((p,g,b)=>{let x,E=!1,N=null,T=null;a&&(x=c&&g.route.id?c[g.route.id]:void 0,N=g.route.errorElement||ST,u&&(f<0&&b===0?(H1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,T=null):f===b&&(E=!0,T=g.route.hydrateFallbackElement||null)));let R=n.concat(s.slice(0,b+1)),M=()=>{let D;return x?D=N:E?D=T:g.route.Component?D=S.createElement(g.route.Component,null):g.route.element?D=g.route.element:D=p,S.createElement(AT,{match:g,routeContext:{outlet:p,matches:R,isDataRoute:a!=null},children:D})};return a&&(g.route.ErrorBoundary||g.route.errorElement||b===0)?S.createElement(ET,{location:a.location,revalidation:a.revalidation,component:N,error:x,children:M(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):M()},null)}function zg(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function NT(e){let n=S.useContext(Vl);return en(n,zg(e)),n}function CT(e){let n=S.useContext(rh);return en(n,zg(e)),n}function TT(e){let n=S.useContext(Ya);return en(n,zg(e)),n}function Vg(e){let n=TT(e),a=n.matches[n.matches.length-1];return en(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function RT(){return Vg("useRouteId")}function jT(){var i;let e=S.useContext(Ig),n=CT("useRouteError"),a=Vg("useRouteError");return e!==void 0?e:(i=n.errors)==null?void 0:i[a]}function MT(){let{router:e}=NT("useNavigate"),n=Vg("useNavigate"),a=S.useRef(!1);return F1(()=>{a.current=!0}),S.useCallback(async(s,c={})=>{ya(a.current,$1),a.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:n,...c}))},[e,n])}var px={};function H1(e,n,a){!n&&!px[e]&&(px[e]=!0,ya(!1,a))}S.memo(OT);function OT({routes:e,future:n,state:a}){return q1(e,void 0,a,n)}function DT({to:e,replace:n,state:a,relative:i}){en(Ul(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=S.useContext(wa);ya(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=S.useContext(Ya),{pathname:u}=Sa(),f=ps(),p=Lg(e,Pg(c),u,i==="path"),g=JSON.stringify(p);return S.useEffect(()=>{f(JSON.parse(g),{replace:n,state:a,relative:i})},[f,g,i,n,a]),null}function vl(e){en(!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 kT({basename:e="/",children:n=null,location:a,navigationType:i="POP",navigator:s,static:c=!1}){en(!Ul(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:u,navigator:s,static:c,future:{}}),[u,s,c]);typeof a=="string"&&(a=zl(a));let{pathname:p="/",search:g="",hash:b="",state:x=null,key:E="default"}=a,N=S.useMemo(()=>{let T=Ci(p,u);return T==null?null:{location:{pathname:T,search:g,hash:b,state:x,key:E},navigationType:i}},[u,p,g,b,x,E,i]);return ya(N!=null,`<Router basename="${u}"> is not able to match the URL "${p}${g}${b}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:S.createElement(wa.Provider,{value:f},S.createElement(Ou.Provider,{children:n,value:N}))}function PT({children:e,location:n}){return xT(Hp(e),n)}function Hp(e,n=[]){let a=[];return S.Children.forEach(e,(i,s)=>{if(!S.isValidElement(i))return;let c=[...n,s];if(i.type===S.Fragment){a.push.apply(a,Hp(i.props.children,c));return}en(i.type===vl,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),en(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,
60shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=Hp(i.props.children,c)),a.push(u)}),a}var gf="get",yf="application/x-www-form-urlencoded";function ah(e){return e!=null&&typeof e.tagName=="string"}function LT(e){return ah(e)&&e.tagName.toLowerCase()==="button"}function IT(e){return ah(e)&&e.tagName.toLowerCase()==="form"}function zT(e){return ah(e)&&e.tagName.toLowerCase()==="input"}function VT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UT(e,n){return e.button===0&&(!n||n==="_self")&&!VT(e)}var Wd=null;function BT(){if(Wd===null)try{new FormData(document.createElement("form"),0),Wd=!1}catch{Wd=!0}return Wd}var $T=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pp(e){return e!=null&&!$T.has(e)?(ya(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yf}"`),null):e}function FT(e,n){let a,i,s,c,u;if(IT(e)){let f=e.getAttribute("action");i=f?Ci(f,n):null,a=e.getAttribute("method")||gf,s=pp(e.getAttribute("enctype"))||yf,c=new FormData(e)}else if(LT(e)||zT(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||f.getAttribute("action");if(i=p?Ci(p,n):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||gf,s=pp(e.getAttribute("formenctype"))||pp(f.getAttribute("enctype"))||yf,c=new FormData(f,e),!BT()){let{name:g,type:b,value:x}=e;if(b==="image"){let E=g?`${g}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else g&&c.append(g,x)}}else{if(ah(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=gf,i=null,s=yf,u=e}return c&&s==="text/plain"&&(u=c,c=void 0),{action:i,method:a.toLowerCase(),encType:s,formData:c,body:u}}function Ug(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function qT(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function HT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function GT(e,n,a){let i=await Promise.all(e.map(async s=>{let c=n.routes[s.route.id];if(c){let u=await qT(c,a);return u.links?u.links():[]}return[]}));return WT(i.flat(1).filter(HT).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function gx(e,n,a,i,s,c){let u=(p,g)=>a[g]?p.route.id!==a[g].route.id:!0,f=(p,g)=>{var b;return a[g].pathname!==p.pathname||((b=a[g].route.path)==null?void 0:b.endsWith("*"))&&a[g].params["*"]!==p.params["*"]};return c==="assets"?n.filter((p,g)=>u(p,g)||f(p,g)):c==="data"?n.filter((p,g)=>{var x;let b=i.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(u(p,g)||f(p,g))return!0;if(p.route.shouldRevalidate){let E=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((x=a[0])==null?void 0:x.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function KT(e,n,{includeHydrateFallback:a}={}){return YT(e.map(i=>{let s=n.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),a&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function YT(e){return[...new Set(e)]}function XT(e){let n={},a=Object.keys(e).sort();for(let i of a)n[i]=e[i];return n}function WT(e,n){let a=new Set;return new Set(n),e.reduce((i,s)=>{let c=JSON.stringify(XT(s));return a.has(c)||(a.add(c),i.push({key:c,link:s})),i},[])}function ZT(e,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname="_root.data":n&&Ci(a.pathname,n)==="/"?a.pathname=`${n.replace(/\/$/,"")}/_root.data`:a.pathname=`${a.pathname.replace(/\/$/,"")}.data`,a}function G1(){let e=S.useContext(Vl);
60return Ug(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function QT(){let e=S.useContext(rh);return Ug(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Bg=S.createContext(void 0);Bg.displayName="FrameworkContext";function K1(){let e=S.useContext(Bg);return Ug(e,"You must render this element inside a <HydratedRouter> element"),e}function JT(e,n){let a=S.useContext(Bg),[i,s]=S.useState(!1),[c,u]=S.useState(!1),{onFocus:f,onBlur:p,onMouseEnter:g,onMouseLeave:b,onTouchStart:x}=n,E=S.useRef(null);S.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let R=D=>{D.forEach($=>{u($.isIntersecting)})},M=new IntersectionObserver(R,{threshold:.5});return E.current&&M.observe(E.current),()=>{M.disconnect()}}},[e]),S.useEffect(()=>{if(i){let R=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(R)}}},[i]);let N=()=>{s(!0)},T=()=>{s(!1),u(!1)};return a?e!=="intent"?[c,E,{}]:[c,E,{onFocus:Zc(f,N),onBlur:Zc(p,T),onMouseEnter:Zc(g,N),onMouseLeave:Zc(b,T),onTouchStart:Zc(x,N)}]:[!1,E,{}]}function Zc(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function eR({page:e,...n}){let{router:a}=G1(),i=S.useMemo(()=>I1(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?S.createElement(nR,{page:e,matches:i,...n}):null}function tR(e){let{manifest:n,routeModules:a}=K1(),[i,s]=S.useState([]);return S.useEffect(()=>{let c=!1;return GT(e,n,a).then(u=>{c||s(u)}),()=>{c=!0}},[e,n,a]),i}function nR({page:e,matches:n,...a}){let i=Sa(),{manifest:s,routeModules:c}=K1(),{basename:u}=G1(),{loaderData:f,matches:p}=QT(),g=S.useMemo(()=>gx(e,n,p,s,i,"data"),[e,n,p,s,i]),b=S.useMemo(()=>gx(e,n,p,s,i,"assets"),[e,n,p,s,i]),x=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let T=new Set,R=!1;if(n.forEach(D=>{var I;let $=s.routes[D.route.id];!$||!$.hasLoader||(!g.some(ee=>ee.route.id===D.route.id)&&D.route.id in f&&((I=c[D.route.id])!=null&&I.shouldRevalidate)||$.hasClientLoader?R=!0:T.add(D.route.id))}),T.size===0)return[];let M=ZT(e,u);return R&&T.size>0&&M.searchParams.set("_routes",n.filter(D=>T.has(D.route.id)).map(D=>D.route.id).join(",")),[M.pathname+M.search]},[u,f,i,s,g,n,e,c]),E=S.useMemo(()=>KT(b,s),[b,s]),N=tR(b);return S.createElement(S.Fragment,null,x.map(T=>S.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...a})),E.map(T=>S.createElement("link",{key:T,rel:"modulepreload",href:T,...a})),N.map(({key:T,link:R})=>S.createElement("link",{key:T,...R})))}function rR(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var Y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y1&&(window.__reactRouterVersion="7.4.1")}catch{}function aR({basename:e,children:n,window:a}){let i=S.useRef();i.current==null&&(i.current=G2({window:a,v5Compat:!0}));let s=i.current,[c,u]=S.useState({action:s.action,location:s.location}),f=S.useCallback(p=>{S.startTransition(()=>u(p))},[u]);return S.useLayoutEffect(()=>s.listen(f),[s,f]),S.createElement(kT,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:s})}var X1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Va=S.forwardRef(function({onClick:n,discover:a="render",prefetch:i="none",relative:s,reloadDocument:c,replace:u,state:f,target:p,to:g,preventScrollReset:b,viewTransition:x,...E},N){let{basename:T}=S.useContext(wa),R=typeof g=="string"&&X1.test(g),M,D=!1;if(typeof g=="string"&&R&&(M=g,Y1))try{let me=new URL(window.location.href),xe=g.startsWith("//")?new URL(me.protocol+g):new URL(g),Re=Ci(xe.pathname,T);xe.origin===me.origin&&Re!=null?g=Re+xe.search+xe.hash:D=!0}catch{ya(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let $=vT(g,{relative:s}),[I,ee,z]=JT(i,E),q=lR(g,{replace:u,state:f,target:p,preventScrollReset:b,relative:s,viewTransition:x});function ie(me){n&&n(me),me.defaultPrevented||q(me)}let be=S.createElement("a",{...E,...z,href:M||$,onClick:D||c?n:ie,ref:rR(N,ee),target:p,"data-discover":!R&&a==="render"?"true":void 0});return I&&!R?S.createElement(S.Fragment,null,be,S.createElement(eR,{page:$})):be});Va.displayName="Link";var iR=S.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:i="",end:s=!1,style:c,to:u,viewTransition:f,children:p,...g},b){let x=Du(u,{relative:g.relative}),E=Sa(),N=S.useContext(rh),{navigator:T,basename:R}=S.useContext(wa),M=N!=null&&hR(x)&&f===!0,D=T.encodeLocation?T.encodeLocation(x).pathname:x.pathname,$=E.pathname,I=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;a||($=$.toLowerCase(),I=I?I.toLowerCase():null,D=D.toLowerCase()),I&&R&&(I=Ci(I,R)||I);const ee=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let z=$===D||!s&&$.startsWith(D)&&$.charAt(ee)==="/",q=I!=null&&(I===D||!s&&I.startsWith(D)&&I.charAt(D.length)==="/"),ie={isActive:z,isPending:q,isTransitioning:M},be=z?n:void 0,me;typeof i=="function"?me=i(ie):me=[i,z?"active":null,q?"pending":null,M?"transitioning":null].filter(
60Boolean).join(" ");let xe=typeof c=="function"?c(ie):c;return S.createElement(Va,{...g,"aria-current":be,className:me,ref:b,style:xe,to:u,viewTransition:f},typeof p=="function"?p(ie):p)});iR.displayName="NavLink";var oR=S.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:i,replace:s,state:c,method:u=gf,action:f,onSubmit:p,relative:g,preventScrollReset:b,viewTransition:x,...E},N)=>{let T=dR(),R=fR(f,{relative:g}),M=u.toLowerCase()==="get"?"get":"post",D=typeof f=="string"&&X1.test(f),$=I=>{if(p&&p(I),I.defaultPrevented)return;I.preventDefault();let ee=I.nativeEvent.submitter,z=(ee==null?void 0:ee.getAttribute("formmethod"))||u;T(ee||I.currentTarget,{fetcherKey:n,method:z,navigate:a,replace:s,state:c,relative:g,preventScrollReset:b,viewTransition:x})};return S.createElement("form",{ref:N,method:M,action:R,onSubmit:i?p:$,...E,"data-discover":!D&&e==="render"?"true":void 0})});oR.displayName="Form";function sR(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function W1(e){let n=S.useContext(Vl);return en(n,sR(e)),n}function lR(e,{target:n,replace:a,state:i,preventScrollReset:s,relative:c,viewTransition:u}={}){let f=ps(),p=Sa(),g=Du(e,{relative:c}
60);return S.useCallback(b=>{if(UT(b,n)){b.preventDefault();let x=a!==void 0?a:mu(p)===mu(g);f(e,{replace:x,state:i,preventScrollReset:s,relative:c,viewTransition:u})}},[p,f,g,a,i,n,e,s,c,u])}var cR=0,uR=()=>`__${String(++cR)}__`;function dR(){let{router:e}=W1("useSubmit"),{basename:n}=S.useContext(wa),a=RT();return S.useCallback(async(i,s={})=>{let{action:c,method:u,encType:f,formData:p,body:g}=FT(i,n);if(s.navigate===!1){let b=s.fetcherKey||uR();await e.fetch(b,a,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||u,formEncType:s.encType||f,flushSync:s.flushSync})}else await e.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||u,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:a,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,n,a])}function fR(e,{relative:n}={}){let{basename:a}=S.useContext(wa),i=S.useContext(Ya);en(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...Du(e||".",{relative:n})},u=Sa();if(e==null){c.search=u.search;let f=new URLSearchParams(c.search),p=f.getAll("index");if(p.some(b=>b==="")){f.delete("index"),p.filter(x=>x).forEach(x=>f.append("index",x));let b=f.toString();c.search=b?`?${b}`:""}}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:Ni([a,c.pathname])),mu(c)}function hR(e,n={}){let a=S.useContext(B1);en(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=W1("useViewTransitionState"),s=Du(e,{relative:n.relative});if(!a.isTransitioning)return!1;let c=Ci(a.currentLocation.pathname,i)||a.currentLocation.pathname,u=Ci(a.nextLocation.pathname,i)||a.nextLocation.pathname;return Of(s.pathname,u)!=null||Of(s.pathname,c)!=null}new TextEncoder;var $g=L1();const mR=Dg($g),pR={theme:"system",setTheme:()=>null},Z1=S.createContext(pR);function gR({children:e,defaultTheme:n="system",storageKey:a="vite-ui-theme",...i}){const[s,c]=S.useState(()=>localStorage.getItem(a)||n);S.useEffect(()=>{const f=window.document.documentElement;if(f.classList.remove("light","dark"),s==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";f.classList.add(p);return}f.classList.add(s)},[s]);const u={theme:s,setTheme:f=>{localStorage.setItem(a,f),c(f)}};return m.jsx(Z1.Provider,{...i,value:u,children:e})}const yR=()=>{const e=S.useContext(Z1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var gs=(e=>
60(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.ConnectionLost="CONNECTION_WAS_LOST",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(gs||{}),Bl=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(Bl||{}),Fg=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e))(Fg||{}),mo=(e=>(e.PROVIDER="magic_3pw_provider",e.ADDRESS="magic_3pw_address",e.CHAIN_ID="magic_3pw_chainId",e))(mo||{}),vR=(e=>(e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e.Web3ModalSelected="web3modal_selected",e))(vR||{}),ut=(e=>
60(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e))(ut||{}),bR=["magic_intermediary_event","magic_nft_checkout","mc_login"],yo=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e.MAGIC_PONG="MAGIC_PONG",e.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",e.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",e))(yo||{}),pu=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e.MAGIC_PING="MAGIC_PING",e))(pu||{}),xR=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(xR||{}),wR=(e=>(e.Retry="retry",e))(wR||{}),SR=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(SR||{}),ma=(e=>(e.VerifyEmailOtp="verify-email-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e))(ma||{}),tu=(e=>(e.VerifySmsOtp="verify-sms-otp",e.Cancel="cancel",e.Retry="retry",e))(tu||{}),ER=(e=>(e.SmsOTPSent="sms-otp-sent",e.InvalidSmsOtp="invalid-sms-otp",e.ExpiredSmsOtp="expired-sms-otp",e))(ER||{}),AR=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.InvalidMfaOtp="invalid-mfa-otp",e.ExpiredEmailOtp="expired-email-otp",e.MfaSentHandle="mfa-sent-handle",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e))(AR||{}),Gp=(e=>(e.Retry="device-retry",e))(Gp||{}),_R=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(_R||{}),ga=(e=>
vendor: 4,479 bytes, line 60
60(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e.VerifyMFACode="Recency/verify-mfa-code",e))(ga||{}),NR=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(NR||{}),jr=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(jr||{}),CR=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(CR||{}),TR=(e=>(e.IDTokenCreated="Auth/id-token-created",e))(TR||{}),RR=(e=>(e.Cancel="Farcaster/cancel",e))(RR||{}),jR=(e=>(e.MFASecretGenerated="mfa-secret-generated",e.InvalidMFAOtp="invalid-mfa-otp",e.MFARecoveryCodes="mfa-recovery-codes",e))(jR||{}),nu=(e=>(e.VerifyMFACode="verify-mfa-code",e.Cancel="cancel-mfa-setup",e))(nu||{}),MR=(e=>(e.MFACodeRequested="mfa-code-requested",e.InvalidMFAOtp="invalid-mfa-otp",e.InvalidRecoveryCode="invalid-recovery-code",e))(MR||{}),as=(e=>(e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.Cancel="cancel-mfa-disable",e))(as||{}),OR=(e=>(e.Harmony="HARMONY",e))(OR||{}),Q1=(e=>(e.ClosedByUser="closed-by-user",e))(Q1||{}),J1=(e=>(e.ClosedByUser="closed-by-user-on-received",e))(J1||{}),DR=(e=>(e.EnterNewPhoneNumber="enter-new-phone-number",e.EnterOtpCode="enter-otp-code",e.RecoveryFactorAlreadyExists="recovery-factor-already-exists",e.MalformedPhoneNumber="malformed-phone-number",e.InvalidOtpCode="invalid-otp-code",e))(DR||{}),Ai=(e=>(e.SendNewPhoneNumber="send-new-phone-number",e.SendOtpCode="send-otp-code",e.Cancel="cancel",e.StartEditPhoneNumber="start-edit-phone-number",e))(Ai||{}),kR=(e=>(e.PhoneNumber="phone_number",e))(kR||{}),PR=(e=>(e.SmsOtpSent="sms-otp-sent",e.LoginThrottled="login-throttled",e.InvalidSmsOtp="invalid-sms-otp",e.SmsVerified="sms-verified",e.AccountRecovered="account-recovered",e.UpdateEmailRequired="update-email-required",e))(PR||{}),_i=(e=>(e.Cancel="cancel",e.VerifyOtp="verify-otp-code",e.ResendSms="resend-sms-otp",e.UpdateEmail="update-email",e))(_i||{}),ru=(e=>(e.Success="nft-checkout-success",e.Failure="nft-checkout-failure",e.Initiated="nft-checkout-initiated",e.Disconnect="disconnect",e))(ru||{}),LR=(e=>(e.WalletInfoFetched="Wallet/wallet-info-fetched",e))(LR||{}),IR=(e=>(e.CloseMagicWindow="close-magic-window",e))(IR||{}),gp={},zR=Object.create,ih=Object.defineProperty,VR=Object.defineProperties,UR=Object.getOwnPropertyDescriptor,BR=Object.getOwnPropertyDescriptors,$R=Object.getOwnPropertyNames,yx=Object.getOwnPropertySymbols,FR=Object.getPrototypeOf,eS=Object.prototype.hasOwnProperty,qR=Object.prototype.propertyIsEnumerable,vx=(e,n,a)=>n in e?ih(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,oh=(e,n)=>{for(var a in n||(n={}))eS.call(n,a)&&vx(e,a,n[a]);if(yx)for(var a of yx(n))qR.call(n,a)&&vx(e,a,n[a]);return e},qg=(e,n)=>VR(e,BR(n)),HR=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),GR=(e,n)=>{for(var a in n)ih(e,a,{get:n[a],enumerable:!0})},KR=(e,n,a,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of $R(n))!eS.call(e,s)&&s!==a&&ih(e,s,{get:()=>n[s],enumerable:!(i=UR(n,s))||i.enumerable});return e},YR=(e,n,a)=>(a=e!=null?zR(FR(e)):{},KR(!e||!e.__esModule?ih(a,"default",{value:e,enumerable:!0}):a,e)),yn=(e,n,a)=>new Promise((i,s)=>{var c=p=>{try{f(a.next(p))}catch(g){s(g)}},u=p=>{try{f(a.throw(p))}catch(g){s(g)}},f=p=>p.done?i(p.value):Promise.resolve(p.value).then(c,u);f((a=a.apply(e,n)).next())}),XR=HR((e,n)=>{var a=Object.prototype.hasOwnProperty,i="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(i=!1));function c(g,b,x){this.fn=g,this.context=b,this.once=x||!1}
vendor: 5,145 bytes, line 60
60function u(g,b,x,E,N){if(typeof x!="function")throw new TypeError("The listener must be a function");var T=new c(x,E||g,N),R=i?i+b:b;return g._events[R]?g._events[R].fn?g._events[R]=[g._events[R],T]:g._events[R].push(T):(g._events[R]=T,g._eventsCount++),g}function f(g,b){--g._eventsCount===0?g._events=new s:delete g._events[b]}function p(){this._events=new s,this._eventsCount=0}p.prototype.eventNames=function(){var g=[],b,x;if(this._eventsCount===0)return g;for(x in b=this._events)a.call(b,x)&&g.push(i?x.slice(1):x);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(b)):g},p.prototype.listeners=function(g){var b=i?i+g:g,x=this._events[b];if(!x)return[];if(x.fn)return[x.fn];for(var E=0,N=x.length,T=new Array(N);E<N;E++)T[E]=x[E].fn;return T},p.prototype.listenerCount=function(g){var b=i?i+g:g,x=this._events[b];return x?x.fn?1:x.length:0},p.prototype.emit=function(g,b,x,E,N,T){var R=i?i+g:g;if(!this._events[R])return!1;var M=this._events[R],D=arguments.length,$,I;if(M.fn){switch(M.once&&this.removeListener(g,M.fn,void 0,!0),D){case 1:return M.fn.call(M.context),!0;case 2:return M.fn.call(M.context,b),!0;case 3:return M.fn.call(M.context,b,x),!0;case 4:return M.fn.call(M.context,b,x,E),!0;case 5:return M.fn.call(M.context,b,x,E,N),!0;case 6:return M.fn.call(M.context,b,x,E,N,T),!0}for(I=1,$=new Array(D-1);I<D;I++)$[I-1]=arguments[I];M.fn.apply(M.context,$)}else{var ee=M.length,z;for(I=0;I<ee;I++)switch(M[I].once&&this.removeListener(g,M[I].fn,void 0,!0),D){case 1:M[I].fn.call(M[I].context);break;case 2:M[I].fn.call(M[I].context,b);break;case 3:M[I].fn.call(M[I].context,b,x);break;case 4:M[I].fn.call(M[I].context,b,x,E);break;default:if(!$)for(z=1,$=new Array(D-1);z<D;z++)$[z-1]=arguments[z];M[I].fn.apply(M[I].context,$)}}return!0},p.prototype.on=function(g,b,x){return u(this,g,b,x,!1)},p.prototype.once=function(g,b,x){return u(this,g,b,x,!0)},p.prototype.removeListener=function(g,b,x,E){var N=i?i+g:g;if(!this._events[N])return this;if(!b)return f(this,N),this;var T=this._events[N];if(T.fn)T.fn===b&&(!E||T.once)&&(!x||T.context===x)&&f(this,N);else{for(var R=0,M=[],D=T.length;R<D;R++)(T[R].fn!==b||E&&!T[R].once||x&&T[R].context!==x)&&M.push(T[R]);M.length?this._events[N]=M.length===1?M[0]:M:f(this,N)}return this},p.prototype.removeAllListeners=function(g){var b;return g?(b=i?i+g:g,this._events[b]&&f(this,b)):(this._events=new s,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=i,p.EventEmitter=p,typeof n<"u"&&(n.exports=p)});function WR(e){let n={exports:{}};return e(n,n.exports),n.exports}var ZR=Number.MAX_SAFE_INTEGER||9007199254740991,Hg={MAX_LENGTH:256,MAX_SAFE_INTEGER:ZR,MAX_SAFE_COMPONENT_LENGTH:16},QR=typeof process=="object"&&gp&&gp.NODE_DEBUG&&/\bsemver\b/i.test(gp.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},zt=QR,ku=WR(function(e,n){let{MAX_SAFE_COMPONENT_LENGTH:a}=Hg,i=(n=e.exports={}).re=[],s=n.src=[],c=n.t={},u=0,f=(p,g,b)=>{let x=u++;zt(x,g),c[p]=x,s[x]=g,i[x]=new RegExp(g,b?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","[0-9]+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),f("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${s[c.NUMERICIDENTIFIER]}|${s[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NUMERICIDENTIFIERLOOSE]}|${s[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER","[0-9A-Za-z-]+"),f("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),f("FULL",`^${s[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),f("LOOSE",`^${s[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),f("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?(?:$|[^\\d])`),f("COERCERTL",s[c.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",f("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${s[c.LONECARET]}
60\\s+`,!0),n.caretTrimReplace="$1^",f("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0.0.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),bx=/^[0-9]+$/,JR=(e,n)=>{let a=bx.test(e),i=bx.test(n);return a&&i&&(e=+e,n=+n),e===n?0:a&&!i?-1:i&&!a?1:e<n?-1:1},ej={compareIdentifiers:JR},{MAX_LENGTH:xx,MAX_SAFE_INTEGER:Zd}=Hg,{re:wx,t:Sx}=ku,{compareIdentifiers:Qc}=ej,Hn=class{constructor(e,n){if(n&&typeof n=="object"||(n={loose:!!n,includePrerelease:!1}),e instanceof Hn){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>xx)throw new TypeError(`version is longer than ${xx} characters`);zt("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let a=e.trim().match(n.loose?wx[Sx.LOOSE]:wx[Sx.FULL]);if(!a)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>Zd||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Zd||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Zd||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Zd)return s}return i}):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(zt("SemVer.compare",this.version,this.options,e),!(e instanceof Hn)){if(typeof e=="string"&&e===this.version)return 0;e=new Hn(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Hn||(e=new Hn(e,this.options)),Qc(this.major,e.major)||Qc(this.minor,e.minor)||Qc(this.patch,e.patch)}comparePre(e){if(e instanceof Hn||(e=new Hn(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let a=this.prerelease[n],i=e.prerelease[n];if(zt("prerelease compare",n,a,i),a===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(a===void 0)return-1;if(a!==i)return Qc(a,i)}while(++n)}compareBuild(e){e instanceof Hn||(e=new Hn(e,this.options));let n=0;do{let a=this.build[n],i=e.build[n];if(zt("prerelease compare",n,a,i),a===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(a===void 0)return-1;if(a!==i)return Qc(a,i)}while(++n)}inc(e,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);a===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},tj=(e,n,a)=>new Hn(e,a).compare(new Hn(n,a)),$l=tj,nj=(e,n,a)=>$l(e,n,a)===0,rj=nj,aj=(e,n,a)=>$l(e,n,a)!==0,ij=aj,oj=(e,n,a)=>$l(e,n,a)>0,sj=oj,lj=(e,n,a)=>$l(e,n,a)>=0,cj=lj,uj=(e,n,a)=>$l(e,n,a)<0,dj=uj,fj=(e,n,a)=>$l(e,n,a)<=0,hj=fj,mj=(e,n,a,i)=>{switch(n){case"===":return typeof e=="object"&&(e=e.version),typeof a=="object"&&(a=a.version),e===a;case"!==":return typeof e=="object"&&(e=e.version),typeof a=="object"&&(a=a.version),e!==a;case"":case"=":case"==":return rj(e,a,i);case"!=":return ij(e,a,i);case">":return sj(e,a,i);case">=":return cj(e,a,i);case"<":return dj(e,a,i);case"<=":return hj(e,a,i);default:throw new TypeError(`Invalid operator: ${n}`)}},yp=mj,Jc=Symbol("SemVer ANY"),gu=class{static get ANY(){return Jc}constructor(e,n){if(n&&typeof n=="object"||(n={loose:!!n,includePrerelease:!1}),e instanceof gu){if(e.loose===!!n.loose)return e;e=e.value}zt("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Jc?this.value="":this.value=this.operator+this.semver.version,zt("comp",this)}parse(e){let n=this.options.loose?Ex[Ax.COMPARATORLOOSE]:Ex[Ax.COMPARATOR],a=e.match(n);if(!a)throw new TypeError(`Invalid comparator: ${e}`);this.operator=a[1]!==void 0?a[1]:"",this.operator==="="&&(this.operator=""),a[2]?this.semver=new Hn(a[2],this.options.loose):this.semver=Jc}toString(){return this.value}test(e){if(zt("Comparator.test",e,this.options.loose),this.semver===Jc||e===Jc)return!0;
vendor: 7,212 bytes, line 60
60if(typeof e=="string")try{e=new Hn(e,this.options)}catch{return!1}return yp(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof gu))throw new TypeError("a Comparator is required");if(n&&typeof n=="object"||(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""||new Nl(e.value,n).test(this.value);if(e.operator==="")return e.value===""||new Nl(this.value,n).test(e.semver);let a=!(this.operator!==">="&&this.operator!==">"||e.operator!==">="&&e.operator!==">"),i=!(this.operator!=="<="&&this.operator!=="<"||e.operator!=="<="&&e.operator!=="<"),s=this.semver.version===e.semver.version,c=!(this.operator!==">="&&this.operator!=="<="||e.operator!==">="&&e.operator!=="<="),u=yp(this.semver,"<",e.semver,n)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),f=yp(this.semver,">",e.semver,n)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return a||i||s&&c||u||f}},{re:Ex,t:Ax}=ku,Nl=class{constructor(e,n){if(n&&typeof n=="object"||(n={loose:!!n,includePrerelease:!1}),e instanceof Nl)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new Nl(e.raw,n);if(e instanceof gu)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(a=>this.parseRange(a.trim())).filter(a=>a.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:n}=this.options;e=e.trim();let a=n?tr[Gn.HYPHENRANGELOOSE]:tr[Gn.HYPHENRANGE];e=e.replace(a,Cj(this.options.includePrerelease)),zt("hyphen replace",e),e=e.replace(tr[Gn.COMPARATORTRIM],pj),zt("comparator trim",e,tr[Gn.COMPARATORTRIM]),e=(e=(e=e.replace(tr[Gn.TILDETRIM],gj)).replace(tr[Gn.CARETTRIM],yj)).split(/\s+/).join(" ");let i=n?tr[Gn.COMPARATORLOOSE]:tr[Gn.COMPARATOR];return e.split(" ").map(s=>vj(s,this.options)).join(" ").split(/\s+/).map(s=>Nj(s,this.options)).filter(this.options.loose?s=>!!s.match(i):()=>!0).map(s=>new gu(s,this.options))}intersects(e,n){if(!(e instanceof Nl))throw new TypeError("a Range is required");return this.set.some(a=>_x(a,n)&&e.set.some(i=>_x(i,n)&&a.every(s=>i.every(c=>s.intersects(c,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Hn(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Tj(this.set[n],e,this.options))return!0;return!1}},{re:tr,t:Gn,comparatorTrimReplace:pj,tildeTrimReplace:gj,caretTrimReplace:yj}=ku,_x=(e,n)=>{let a=!0,i=e.slice(),s=i.pop();for(;a&&i.length;)a=i.every(c=>s.intersects(c,n)),s=i.pop();return a},vj=(e,n)=>(zt("comp",e,n),e=wj(e,n),zt("caret",e),e=bj(e,n),zt("tildes",e),e=Ej(e,n),zt("xrange",e),e=_j(e,n),zt("stars",e),e),cr=e=>!e||e.toLowerCase()==="x"||e==="*",bj=(e,n)=>e.trim().split(/\s+/).map(a=>xj(a,n)).join(" "),xj=(e,n)=>{let a=n.loose?tr[Gn.TILDELOOSE]:tr[Gn.TILDE];return e.replace(a,(i,s,c,u,f)=>{let p;return zt("tilde",e,i,s,c,u,f),cr(s)?p="":cr(c)?p=`>=${s}.0.0 <${+s+1}.0.0-0`:cr(u)?p=`>=${s}.${c}.0 <${s}.${+c+1}.0-0`:f?(zt("replaceTilde pr",f),p=`>=${s}.${c}.${u}-${f} <${s}.${+c+1}.0-0`):p=`>=${s}.${c}.${u} <${s}.${+c+1}.0-0`,zt("tilde return",p),p})},wj=(e,n)=>e.trim().split(/\s+/).map(a=>Sj(a,n)).join(" "),Sj=(e,n)=>{zt("caret",e,n);let a=n.loose?tr[Gn.CARETLOOSE]:tr[Gn.CARET],i=n.includePrerelease?"-0":"";return e.replace(a,(s,c,u,f,p)=>{let g;return zt("caret",e,s,c,u,f,p),cr(c)?g="":cr(u)?g=`>=${c}.0.0${i} <${+c+1}.0.0-0`:cr(f)?g=c==="0"?`>=${c}.${u}.0${i} <${c}.${+u+1}.0-0`:`>=${c}.${u}.0${i} <${+c+1}.0.0-0`:p?(zt("replaceCaret pr",p),g=c==="0"?u==="0"?`>=${c}.${u}.${f}-${p} <${c}.${u}.${+f+1}-0`:`>=${c}.${u}.${f}-${p} <${c}.${+u+1}.0-0`:`>=${c}.${u}.${f}-${p} <${+c+1}.0.0-0`):(zt("no pr"),g=c==="0"?u==="0"?`>=${c}.${u}.${f}${i} <${c}.${u}.${+f+1}-0`:`>=${c}.${u}.${f}${i} <${c}.${+u+1}.0-0`:`>=${c}.${u}.${f} <${+c+1}.0.0-0`),zt("caret return",g),g})},Ej=(e,n)=>(zt("replaceXRanges",e,n),e.split(/\s+/).map(a=>Aj(a,n)).join(" ")),Aj=(e,n)=>{e=e.trim();let a=n.loose?tr[Gn.XRANGELOOSE]:tr[Gn.XRANGE];return e.replace(a,(i,s,c,u,f,p)=>{zt("xRange",e,i,s,c,u,f,p);let g=cr(c),b=g||cr(u),x=b||cr(f),E=x;return s==="="&&E&&(s=""),p=n.includePrerelease?"-0":"",g?i=s===">"||s==="<"?"<0.0.0-0":"*":s&&E?(b&&(u=0),f=0,s===">"?(s=">=",b?(c=+c+1,u=0,f=0):(u=+u+1,f=0)):s==="<="&&(s="<",b?c=+c+1:u=+u+1),s==="<"&&(p="-0"),i=`${s+c}.${u}.${f}${p}`):b?i=`>=${c}.0.0${p} <${+c+1}.0.0-0`:x&&(i=`>=${c}.${u}.0${p} <${c}.${+u+1}.0-0`),zt("xRange return",i),i})},_j=(e,n)=>(zt("replaceStars",e,n),e.trim().replace(tr[Gn.STAR],"")),Nj=(e,n)=>(zt("replaceGTE0",e,n),e.trim().replace(tr[n.includePrerelease?Gn.GTE0PRE:Gn.GTE0],"")),Cj=e=>(n,a,i,s,c,u,f,p,g,b,x,E,N)=>`${a=cr(i)?"":cr(s)?`>=${i}.0.0${e?"-0":""}`:cr(c)?`>=${i}.${s}.0${e?"-0":""}`:u?`>=${a}`:`>=${a}${e?"-0":""}`} ${p=cr(g)?"":cr(b)?`<${+g+1}.0.0-0`:cr(x)?`<${g}.${+b+1}.0-0`:E?`<=${g}.${b}.${x}-${E}`:e?`<${g}.${b}.${+x+1}-0`:`<=${p}`}`.trim(),Tj=(e,n,a)=>{for(let i=0;i<e.length;i++)if(!e[i].test(n))return!1;if(n.prerelease.length&&!a.includePrerelease){for(let i=0;i<e.length;i++)if(zt(e[i].semver),e[i].semver!==gu.ANY&&e[i].semver.prerelease.length>0){let s=e[i].semver;if(s.major===n.major&&s.minor===n.minor&&s.patch===n.patch)return!0}return!1}return!0},Rj=(e,n,a)=>{try{n=new Nl(n,a)}catch{return!1}return n.test(e)},{MAX_LENGTH:jj}=Hg,{re:Nx,t:Cx}=ku,Mj=(e,n)=>{if(n&&typeof n=="object"||(n={loose:!!n,includePrerelease:!1}),e instanceof Hn)return e;if(typeof e!="string"||e.length>jj||!(n.loose?Nx[Cx.LOOSE]:Nx[Cx.FULL]).test(e))return null;try{return new Hn(e,n)}catch{return null}},Oj=Mj,{re:Qd,t:Jd}=ku,Dj=(e,n)=>{if(e instanceof Hn)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;let a=null;if((n=n||{}).rtl){let i;for(;(i=Qd[Jd.COERCERTL].exec(e))&&(!a||a.index+a[0].length!==e.length);)a&&i.index+i[0].length===a.index+a[0].length||(a=i),Qd[Jd.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Qd[Jd.COERCERTL].lastIndex=-1}else a=e.match(Qd[Jd.COERCE]);return a===null?null:Oj(`${a[2]}.${a[3]||"0"}.${a[4]||"0"}`,n)};function kj(e){return String.fromCharCode(parseInt(e.slice(1),16))}function Pj(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function Lj(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,kj))}function Ij(e){return decodeURIComponent(Array.from(atob(e),Pj).join(""))}function tS(e){return Lj(JSON.stringify(e))}function zj(e){return JSON.parse(Ij(e))}function au(e){return typeof e>"u"}function Vj(e){return e===null}function nS(e){return Vj(e)||au(e)}function Uj(e){return nS(e)?!1:!au(e.jsonrpc)&&!au(e.id)&&(!au(e.result)||!au(e.error))}function Bj(e){return nS(e)?!1:typeof e=="number"&&Object.values(Fg).includes(e)}function Df(e){if(!e)return!0;for(let n in e)if(Object.hasOwnProperty.call(e,n))return!1;return!0}var Gt={};function $j(e,n){return Object.assign(Gt,n),e}var Fj={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"}
vendor: 2,390 bytes, lines 60-64
60,ys=class extends Error{constructor(e,n){super(`Magic SDK Error: [${e}] ${n}`),this.code=e,this.rawMessage=n,this.__proto__=Error,Object.setPrototypeOf(this,ys.prototype)}},kf=class extends Error{constructor(e){super(),this.__proto__=Error;let n=Number(e==null?void 0:e.code);this.rawMessage=(e==null?void 0:e.message)||"Internal error",this.code=Bj(n)?n:Fg.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(e==null?void 0:e.data)||void 0,Object.setPrototypeOf(this,kf.prototype)}},Pu=class{constructor(e,n){this.code=e,this.rawMessage=n,this.message=`Magic SDK Warning: [${e}] ${n}`}log(){console.warn(this.message)}},rS=class extends Error{constructor(e,n,a,i){super(`Magic Extension Error (${e.name}): [${n}] ${a}`),this.code=n,this.rawMessage=a,this.data=i,this.__proto__=Error,Object.setPrototypeOf(this,rS.prototype)}},Tx=class{constructor(e,n,a){this.code=n,this.rawMessage=a,this.message=`Magic Extension Warning (${e.name}): [${n}] ${a}`}log(){console.warn(this.message)}};function qj(){return new ys(gs.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function aS(){return new ys(gs.ModalNotReady,"Modal is not ready")}function Hj(){return new ys(gs.MalformedResponse,"Response from the Magic iframe is malformed.")}function Gj(e){return new ys(gs.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function Kj(e){let n=`Some extensions are incompatible with \`${Gt.sdkName}@${Gt.version}\`:`;return e.filter(a=>typeof a.compat<"u"&&a.compat!==null).forEach(a=>{let i=a.compat[Gt.sdkName];typeof i=="string"?n+=`
61  - Extension \`${a.name}\` supports version(s) \`${i}\``:i||(n+=`
62  - Extension \`${a.name}\` does not support ${Gt.platform} environments.`)}),new ys(gs.IncompatibleExtensions,n)}function Yj(e){let n=a=>{let i=a+1,s=i%10,c=i%100;return s===1&&c!==11?`${i}st`:s===2&&c!==12?`${i}nd`:s===3&&c!==13?`${i}rd`:`${i}th`};return new ys(gs.InvalidArgument,`Invalid ${n(e.argument)} argument given to \`${e.procedure}\`.
63  Expected: \`${e.expected}\`
64  Received: \`${e.received}\``)}function Xj(){return new Pu(Bl.DuplicateIframe,"Duplicate iframes found.")}function Wj(){return new Pu(Bl.SyncWeb3Method,"Non-async web3 methods are deprecated 
64in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}function Zj(){return new Pu(Bl.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`<iframe>\` is automatically wrapped by a WebView pointed at \`${Gt.defaultEndpoint}\`. Changing this default behavior will lead to unexpected results and potentially security-threatening bugs.`)}function Qj(e){let{method:n,removalVersions:a,useInstead:i}=e,s=a[Gt.sdkName],c=i?` Use \`${i}\` instead.`:"",u=`\`${n}\` will be removed from \`${Gt.sdkName}\` in version \`${s}\`.${c}`;return new Pu(Bl.DeprecationNotice,u)}function*Jj(){let e=0;for(;;)e<Number.MAX_SAFE_INTEGER?yield++e:e=0}var eM=Jj();function iS(){return eM.next().value}var oS=Symbol("Payload pre-processed by Magic SDK");function sS(e){return Object.defineProperty(e,oS,{value:!0,enumerable:!1}),e}function tM(e){return!!e[oS]}function Pf(e){var n,a,i;return tM(e)||(e.jsonrpc=(n=e.jsonrpc)!=null?n:"2.0",e.id=iS(),e.method=(a=e.method)!=null?a:"noop",e.params=(i=e.params)!=null?i:[],sS(e)),e}function kt(e,n=[]){return sS({params:n,method:e,jsonrpc:"2.0",id:iS()})}var Gg=class{constructor(e){e instanceof Gg?(this._jsonrpc=e.payload.jsonrpc,this._id=e.payload.id,this._result=e.payload.result,this._error=e.payload.error):Uj(e)?(this._jsonrpc=e.jsonrpc,this._id=e.id,this._result=e.result,this._error=e.error):(this._jsonrpc=e.jsonrpc,this._id=e.id,this._result=void 0,this._error=void 0)}applyError(e){return this._error=e,this}applyResult(e){return this._result=e,this}get hasError(){return typeof this._error<"u"&&this._error!==null}get hasResult(){return typeof this._result<"u"}get payload(){return{jsonrpc:this._jsonrpc,id:this._id,result:this._result,error:this._error}}},nM=YR(XR()),rM=class extends nM.default{};function lS(){let e=new rM;return{emitter:e,createChainingEmitterMethod:(n,a)=>(...i)=>(e[n].apply(e,i),a),createBoundEmitterMethod:n=>(...a)=>e[n].apply(e,a)}}var cS=Symbol("isPromiEvent");function aM(e){return!!e[cS]}function Ba(e){let n=uS(e),{createBoundEmitterMethod:a,createChainingEmitterMethod:i}=lS(),s=Symbol("Promise.then"),c=Symbol("Promise.catch"),u=Symbol("Promise.finally"),f=(b,x)=>(...E)=>{let N=x[b].apply(x,E);return p(N)},p=b=>Object.assign(b,{[cS]:!0,[s]:b[s]||b.then,[c]:b[c]||b.catch,[u]:b[u]||b.finally,then:f(s,b),catch:f(c,b),finally:f(u,b),on:i("on",b),once:i("once",b),addListener:i("addListener",b),off:i("off",b),removeListener:i("removeListener",b),removeAllListeners:i("removeAllListeners",b),emit:a("emit"),eventNames:a("eventNames"),listeners:a("listeners"),listenerCount:a("listenerCount")}),g=p(n.then(b=>(g.emit("done",b),g.emit("settled"),b),b=>{throw g.emit("error",b),g.emit("settled"),b}));return g.on(J1.ClosedByUser,()=>{g.emit(Q1.ClosedByUser)}
64),g}function uS(e){return new Promise((n,a)=>{let i=e(n,a);Promise.resolve(i).catch(a)})}var Ao=class{constructor(e){this.sdk=e}get overlay(){return this.sdk.overlay}request(e){if(this.sdk.thirdPartyWallets.isConnected&&!bR.includes(e.method))return Ba((s,c)=>{this.sdk.thirdPartyWallets.requestOverride(e).then(s).catch(c)});let n=this.overlay.post(pu.MAGIC_HANDLE_REQUEST,Pf(e)),a=Ba((s,c)=>{n.then(u=>{if(i(),u.hasError)c(new kf(u.payload.error));else if(u.hasResult)s(u.payload.result);else throw Hj()}).catch(u=>{i(),c(u)})}),i=this.overlay.on(yo.MAGIC_HANDLE_EVENT,s=>{var c;let{response:u}=s.data;if(u.id===e.id&&((c=u.result)!=null&&c.event)){let{event:f,params:p=[]}=u.result;a.emit(f,...p)}});return a}createIntermediaryEvent(e,n){return a=>{let i=kt(ut.IntermediaryEvent,[{payloadId:n,eventType:e,args:a}]);this.request(i)}}};function iM(e,n){let[a]=e.split(".").map(Number);return a>=n}var oM={"magic-sdk":"v18.0.0","@magic-sdk/react-native":"v14.0.0","@magic-sdk/react-native-bare":"v19.0.0","@magic-sdk/react-native-expo":"v19.0.0"},sM=class extends Ao{loginWithMagicLink(e){let n=Gt.sdkName==="@magic-sdk/react-native"||Gt.sdkName==="@magic-sdk/react-native-bare"||Gt.sdkName==="@magic-sdk/react-native-expo";if(n&&iM(Gt.version,19))throw new Error("loginWithMagicLink() is deprecated for this package, please utlize a passcode method like loginWithSMS or loginWithEmailOTP instead.");n&&Qj({method:"auth.loginWithMagicLink()",removalVersions:oM,useInstead:"auth.loginWithEmailOTP()"}).log();let{email:a,showUI:i=!0,redirectURI:s,overrides:c,lifespan:u}=e,f=kt(this.sdk.testMode?ut.LoginWithMagicLinkTestMode:ut.LoginWithMagicLink,[{email:a,showUI:i,redirectURI:s,overrides:c,lifespan:u}]);return this.request(f)}loginWithSMS(e){let{phoneNumber:n,showUI:a=!0,lifespan:i}=e,s=kt(this.sdk.testMode?ut.LoginWithSmsTestMode:ut.LoginWithSms,[{phoneNumber:n,showUI:a,lifespan:i}]),c=this.request(s);return!a&&c&&(c.on(tu.VerifySmsOtp,u=>{this.createIntermediaryEvent(tu.VerifySmsOtp,s.id)(u)}),c.on(tu.Cancel,()=>{this.createIntermediaryEvent(tu.Cancel,s.id)()})),c}loginWithEmailOTP(e){let{email:n,showUI:a,deviceCheckUI:i,overrides:s,lifespan:c}=e,u=kt(this.sdk.testMode?ut.LoginWithEmailOTPTestMode:ut.LoginWithEmailOTP,[{email:n,showUI:a,deviceCheckUI:i,overrides:s,lifespan:c}]),f=this.request(u);return!i&&f&&f.on(Gp.Retry,()=>{this.createIntermediaryEvent(Gp.Retry,u.id)()}),!a&&f&&(f.on(ma.VerifyEmailOtp,p=>{this.createIntermediaryEvent(ma.VerifyEmailOtp,u.id)(p)}),f.on(ma.VerifyMFACode,p=>{this.createIntermediaryEvent(ma.VerifyMFACode,u.id)(p)}),f.on(ma.LostDevice,()=>{this.createIntermediaryEvent(ma.LostDevice,u.id)()}),f.on(ma.VerifyRecoveryCode,p=>{this.createIntermediaryEvent(ma.VerifyRecoveryCode,u.id)(p)}),f.on(ma.Cancel,()=>{this.createIntermediaryEvent(ma.Cancel,u.id)()})),f}loginWithCredential(e){let{credentialOrQueryString:n,lifespan:a}=e||{},i=n??"";if(!n&&Gt.platform==="web"){i=window.location.search;let c=window.location.origin+window.location.pathname;window.history.replaceState(null,"",c)}let s=kt(this.sdk.testMode?ut.LoginWithCredentialTestMode:ut.LoginWithCredential,[i,a]);return this.request(s)}setAuthorizationToken(e){let n=kt(ut.SetAuthorizationToken,[{jwt:e}]);return this.request(n)}updateEmailWithUI(e){let{email:n,showUI:a=!0}=e,i=kt(this.sdk.testMode?ut.UpdateEmailTestMode:ut.UpdateEmail,[{email:n,showUI:a}]),s=this.request(i);return a||(s.on(ga.Retry,()=>{this.createIntermediaryEvent(ga.Retry,i.id)()}),s.on(ga.Cancel,()=>{this.createIntermediaryEvent(ga.Cancel,i.id)()}),s.on(ga.VerifyEmailOtp,c=>{this.createIntermediaryEvent(ga.VerifyEmailOtp,i.id)(c)}),s.on(ga.VerifyMFACode,c=>{this.createIntermediaryEvent(ga.VerifyMFACode,i.id)(c)}),s.on(jr.RetryWithNewEmail,c=>{this.createIntermediaryEvent(jr.RetryWithNewEmail,i.id)(c)}),s.on(jr.Cancel,()=>{this.createIntermediaryEvent(jr.Cancel,i.id)()}),s.on(jr.VerifyEmailOtp,c=>{this.createIntermediaryEvent(jr.VerifyEmailOtp,i.id)(c)})),s}},dS={};GR(dS,{clear:()=>lM,getItem:()=>ea,iterate:()=>fS,key:()=>uM,keys:()=>dM,length:()=>cM,removeItem:()=>Lf,setItem:()=>vo});var ef;function _o(e){return(...n)=>yn(this,null,function*(){return ef||(ef=yield Gt.configureStorage()),yield ef.ready(),ef[e](...n)})}var ea=_o("getItem"),vo=_o("setItem"),Lf=_o("removeItem"),lM=_o("clear"),cM=_o("length"),uM=_o("key"),dM=_o("keys"),fS=_o("iterate");function fM(){let e=window.crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&191|128;let n="";return n+=e[0].toString(16),n+=e[1].toString(16),n+=e[2].toString(16),n+=e[3].toString(16),n+="-",n+=e[4].toString(16),n+=e[5].toString(16),n+="-",n+=e[6].toString(16),n+=e[7].toString(16),n+="-",n+=e[8].toString(16),n+=e[9].toString(16),n+="-",n+=e[10].toString(16),n+=e[11].toString(16),n+=e[12].toString(16),n+=e[13].toString(16),n+=e[14].toString(16),n+=e[15].toString(16),n}var hS="STORE_KEY_PRIVATE_KEY",Kp="STORE_KEY_PUBLIC_JWK",mS="ECDSA",hM="P-256",mM={name:mS,namedCurve:hM};function sh(){let e=typeof window<"u"&&!!window.crypto,n=e&&!!window.crypto.subtle;return e&&n}function pM(){return yn(this,null,function*(){let e=yield gM();if(!e){console.info("unable to create public key or webcrypto is unsupported");return}let{subtle:n}=window.crypto,a=yield ea(hS);if(!a||!n){console.info("unable to find private key or webcrypto unsupported");return}let i={iat:Math.floor(new Date().getTime()/1e3),jti:fM()},s={typ:"dpop+jwt",alg:"ES256",jwk:e},c={protected:Rx(JSON.stringify(s)),claims:Rx(JSON.stringify(i))},u=vM(`${c.protected}.${c.claims}`),f={name:mS,hash:{name:"SHA-256"}},p=xM(new Uint8Array(yield n.sign(f,a,u)));return`${c.protected}.${c.claims}.${p}`})}function gM(){return yn(this,null,function*(){if(!sh()){console.info("webcrypto is not supported");return}return(yield ea(Kp))||(yield yM()),ea(Kp)})}function yM(){return yn(this,null,function*(){let{subtle:e}=window.crypto,n=yield e.generateKey(mM,!1,["sign"]),a=yield e.exportKey("jwk",n.publicKey);yield vo(hS,n.privateKey),yield vo(Kp,a)})}function Rx(e){return pS(bM(e))}function vM(e){return new TextEncoder().encode(e)}function pS(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+/g,"")}function bM(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(n,a)=>String.fromCharCode(parseInt(a,16)))}function xM(e){let n="";return e.forEach(a=>{n+=String.fromCharCode(a)}),pS(n)}
64var Kg="ds",Yg="ek",Xg="iv",Wg="AES-GCM",wM=256;function gS(){return yn(this,null,function*(){let e=[];yield fS((n,a,i)=>{a.startsWith(`${Kg}_`)&&e.push(a)});for(let n of e)yield Lf(n)})}function yS(e){let n="",a=new Uint8Array(e),i=a.byteLength;for(let s=0;s<i;s++)n+=String.fromCharCode(a[s]);return window.btoa(n)}function vS(e){let n=window.atob(e),a=n.length,i=new Uint8Array(a);for(let s=0;s<a;s++)i[s]=n.charCodeAt(s);return i.buffer}function SM(){return yn(this,null,function*(){if(!sh()){console.info("webcrypto is not supported");return}let{crypto:e}=window;return(yield ea(Xg))||e.getRandomValues(new Uint8Array(12))})}function EM(){return yn(this,null,function*(){if(!sh()){console.info("webcrypto is not supported");return}let{subtle:e}=window.crypto;return(yield ea(Yg))||(yield e.generateKey({name:Wg,length:wM},!1,["encrypt","decrypt"]))})}function AM(e,n){return yn(this,null,function*(){let a=yield SM(),i=yield EM();if(!a||!i||!e)return;let s=vS(e),{subtle:c}=window.crypto,u=yield c.encrypt({name:Wg,iv:a},i,s),f=yS(u);yield vo(`${Kg}_${n}`,f),yield vo(Yg,i),yield vo(Xg,a)})}function _M(e){return yn(this,null,function*(){let n=yield ea(`${Kg}_${e}`),a=yield ea(Xg),i=yield ea(Yg);if(!a||!n||!i||!sh())return;let{subtle:s}=window.crypto,c=yield s.decrypt({name:Wg,iv:a},i,vS(n));return yS(c)})}function If(e,n){return n?new URL(e,n):new URL(e)}var NM=class extends Ao{constructor(){super(...arguments),this.localForageIsLoggedInKey="magic_auth_is_logged_in",this.userLoggedOutCallbacks=[]}getIdToken(e){let n=kt(this.sdk.testMode?ut.GetIdTokenTestMode:ut.GetIdToken,[e]);return this.request(n)}generateIdToken(e){let n=kt(this.sdk.testMode?ut.GenerateIdTokenTestMode:ut.GenerateIdToken,[e]);return this.request(n)}getInfo(){let e=kt(ut.GetInfo,[]);return this.request(e)}isLoggedIn(){return Ba((e,n)=>yn(this,null,function*(){try{let a=!1;this.sdk.useStorageCache&&(a=(yield ea(this.localForageIsLoggedInKey))==="true",a&&e(!0));let i=kt(this.sdk.testMode?ut.IsLoggedInTestMode:ut.IsLoggedIn),s=yield this.request(i);this.sdk.useStorageCache&&(s?vo(this.localForageIsLoggedInKey,!0):Lf(this.localForageIsLoggedInKey),a&&!s&&this.emitUserLoggedOut(!0)),e(s)}catch(a){n(a)}}))}logout(){return Lf(this.localForageIsLoggedInKey),gS(),Ba((e,n)=>yn(this,null,function*(){try{let a=kt(this.sdk.testMode?ut.LogoutTestMode:ut.Logout),i=yield this.request(a);this.sdk.useStorageCache&&this.emitUserLoggedOut(i),e(i)}catch(a){n(a)}}))}requestInfoWithUI(e){let n=kt(ut.RequestUserInfoWithUI,e?[e]:[]);return this.request(n)}showSettings(e){let{showUI:n=!0}=e||{},a=kt(this.sdk.testMode?ut.UserSettingsTestMode:ut.UserSettings,[e]),i=this.request(a);return!n&&i&&(i.on(Ai.SendNewPhoneNumber,s=>{this.createIntermediaryEvent(Ai.SendNewPhoneNumber,a.id)(s)}),i.on(Ai.SendOtpCode,s=>{this.createIntermediaryEvent(Ai.SendOtpCode,a.id)(s)}),i.on(Ai.StartEditPhoneNumber,()=>{this.createIntermediaryEvent(Ai.StartEditPhoneNumber,a.id)()}),i.on(Ai.Cancel,()=>{this.createIntermediaryEvent(Ai.Cancel,a.id)()}),i.on(ga.VerifyEmailOtp,s=>{this.createIntermediaryEvent(ga.VerifyEmailOtp,a.id)(s)})),i}recoverAccount(e){let{email:n,showUI:a}=e,i=kt(this.sdk.testMode?ut.RecoverAccountTestMode:ut.RecoverAccount,[{email:n,showUI:a}]),s=this.request(i);return!a&&s&&(s.on(_i.Cancel,()=>{this.createIntermediaryEvent(_i.Cancel,i.id)()}),s.on(_i.ResendSms,()=>{this.createIntermediaryEvent(_i.ResendSms,i.id)()}),s.on(_i.VerifyOtp,c=>{this.createIntermediaryEvent(_i.VerifyOtp,i.id)(c)}),s.on(_i.UpdateEmail,c=>{this.createIntermediaryEvent(_i.UpdateEmail,i.id)(c)}),s.on(jr.Cancel,()=>{this.createIntermediaryEvent(jr.Cancel,i.id)()}),s.on(jr.RetryWithNewEmail,c=>{this.createIntermediaryEvent(jr.RetryWithNewEmail,i.id)(c)}),s.on(jr.VerifyEmailOtp,c=>{this.createIntermediaryEvent(jr.VerifyEmailOtp,i.id)(c)})),s}revealPrivateKey(){let e=kt(ut.RevealPK);return this.request(e)}onUserLoggedOut(e){this.userLoggedOutCallbacks.push(e)}enableMFA(e){let{showUI:n=!0}=e,a=kt(ut.EnableMFA,[{showUI:n}]),i=this.request(a);return!n&&i&&(i.on(nu.VerifyMFACode,s=>{this.createIntermediaryEvent(nu.VerifyMFACode,a.id)(s)}),i.on(nu.Cancel,()=>{this.createIntermediaryEvent(nu.Cancel,a.id)()})),i}disableMFA(e){let{showUI:n=!0}=e,a=kt(ut.DisableMFA,[{showUI:n}]),i=this.request(a);return!n&&i&&(i.on(as.VerifyMFACode,s=>{this.createIntermediaryEvent(as.VerifyMFACode,a.id)(s)}),i.on(as.LostDevice,s=>{this.createIntermediaryEvent(as.LostDevice,a.id)(s)}),i.on(as.Cancel,()=>{this.createIntermediaryEvent(as.Cancel,a.id)()})),i}emitUserLoggedOut(e){this.userLoggedOutCallbacks.forEach(n=>
64{n(e)})}},CM=class extends Ao{connectWithUI(e){let n=Ba((a,i)=>yn(this,null,function*(){try{let s=kt(ut.Login,[oh({enabledWallets:this.sdk.thirdPartyWallets.enabledWallets},e)]),c=this.request(s);this.sdk.thirdPartyWallets.eventListeners.forEach(({event:f,callback:p})=>{c.on(f,()=>p(s.id))}),c.on("id-token-created",f=>{n.emit("id-token-created",f)});let u=yield c;u.error&&i(u),a(u)}catch(s){i(s)}}));return n}showUI(e){return this.request(kt(ut.ShowUI,[e]))}showAddress(){return this.request(kt(ut.ShowAddress))}showSendTokensUI(){return this.request(kt(ut.ShowSendTokensUI))}showOnRamp(){return this.request(kt(ut.ShowOnRamp))}showNFTs(){return this.request(kt(ut.ShowNFTs))}showBalances(){return this.request(kt(ut.ShowBalances))}sendGaslessTransaction(e,n){return this.request(kt(ut.SendGaslessTransaction,[e,n]))}},TM=class extends Ao{constructor(){super(...arguments),this.eventListeners=[],this.enabledWallets={},this.isConnected=!1}resetThirdPartyWalletState(){localStorage.removeItem(mo.PROVIDER),localStorage.removeItem(mo.ADDRESS),localStorage.removeItem(mo.CHAIN_ID),this.isConnected=!1}requestOverride(e){if(e.method===ut.Login)return this.resetThirdPartyWalletState(),super.request(e);if(e.method===ut.GetInfo)return this.getInfo(e);if(e.method===ut.IsLoggedIn)return this.isLoggedIn(e);if(e.method===ut.Logout)return this.logout(e);switch(localStorage.getItem(mo.PROVIDER)){case"web3modal":return this.web3modalRequest(e);default:return this.resetThirdPartyWalletState(),super.request(e)}}isLoggedIn(e){switch(localStorage.getItem(mo.PROVIDER)){case"web3modal":return this.web3modalIsLoggedIn();default:return this.resetThirdPartyWalletState(),super.request(e)}}getInfo(e){switch(localStorage.getItem(mo.PROVIDER)){case"web3modal":return this.web3modalGetInfo();default:return this.resetThirdPartyWalletState(),super.request(e)}}logout(e){let n=localStorage.getItem(mo.PROVIDER);switch(this.resetThirdPartyWalletState(),n){case"web3modal":return this.web3modalLogout();default:return super.request(e)}}web3modalRequest(e){return Ba((n,a)=>{this.sdk.web3modal.modal.getWalletProvider().request(e).then(n).catch(a)})}web3modalIsLoggedIn(){return Ba(e=>{let n=this.sdk.web3modal.modal.getStatus();if(n==="connected"&&e(!0),n==="disconnected"&&(this.resetThirdPartyWalletState(),e(!1)),n==="reconnecting"){let a=this.sdk.web3modal.modal.subscribeProvider(({status:i})=>{i==="connected"&&(a(),e(!0)),i==="disconnected"&&(a(),this.resetThirdPartyWalletState(),e(!1))})}})}formatWeb3modalGetInfoResponse(){var e;let n=(e=this.sdk.web3modal.modal.getWalletInfo())==null?void 0:e.name,a=this.sdk.web3modal.modal.getAddress();return{publicAddress:a,email:null,issuer:`did:ethr:${a}`,phoneNumber:null,isMfaEnabled:!1,recoveryFactors:[],walletType:n||"web3modal"}}web3modalGetInfo(){return Ba((e,n)=>{let a=this.sdk.web3modal.modal.getStatus();if(a==="connected"&&e(this.formatWeb3modalGetInfoResponse()),a==="disconnected"&&(this.resetThirdPartyWalletState(),n("Magic RPC Error: [-32603] Internal error: User denied account access.")),a==="reconnecting"){let i=this.sdk.web3modal.modal.subscribeProvider(({status:s})=>{s==="connected"&&(i(),e(this.formatWeb3modalGetInfoResponse())),s==="disconnected"&&(i(),this.resetThirdPartyWalletState(),n("Magic RPC Error: [-32603] Internal error: User denied account access."))})}})}web3modalLogout(){return Ba(e=>yn(this,null,function*(){try{yield this.sdk.web3modal.modal.disconnect()}catch(n){console.error(n)}e(!0)}))}},{createBoundEmitterMethod:tf,createChainingEmitterMethod:fl}=lS(),RM=class extends Ao{constructor(){super(...arguments),this.isMagic=!0,this.on=fl("on",this),this.once=fl("once",this),this.addListener=fl("addListener",this),this.off=fl("off",this),this.removeListener=fl("removeListener",this),this.removeAllListeners=fl("removeAllListeners",this),this.emit=tf("emit"),this.eventNames=tf("eventNames"),this.listeners=tf("listeners"),this.listenerCount=tf("listenerCount")}sendAsync(n,a){if(!a)throw Yj({procedure:"Magic.rpcProvider.sendAsync",argument:1,expected:"function",received:a===null?"null":typeof a});if(Array.isArray(n))this.overlay.post(pu.MAGIC_HANDLE_REQUEST,n.map(i=>{let s=Pf(i);return this.prefixPayloadMethodForTestMode(s),s})).then(i=>{a(null,i.map(s=>qg(oh({},s.payload),{error:s.hasError?new kf(s.payload.error):null})))});else{let i=Pf(n);this.prefixPayloadMethodForTestMode(i),this.overlay.post(pu.MAGIC_HANDLE_REQUEST,i).then(s=>{a(s.hasError?new kf(s.payload.error):null,s.payload)})}}send(n,a){if(typeof n=="string"){let s=kt(n,Array.isArray(a)?a:[]);return this.request(s)}if(Array.isArray(n)||a){this.sendAsync(n,a);return}let i=Wj();return i.log(),new Gg(n).applyError({code:-32603,message:i.rawMessage}).payload}
64enable(){let n=kt(ut.Login);return this.request(n)}request(n){return this.prefixPayloadMethodForTestMode(n),super.request(n)}prefixPayloadMethodForTestMode(n){let a="testMode/eth/";this.sdk.testMode&&(n.method=`${a}${n.method}`)}},jx=["request","overlay","sdk"];function jM(e){let n=Object.getPrototypeOf(e),a=[n];for(;n!==Ao.prototype;)n=Object.getPrototypeOf(n),a.push(n);return a}var MM=class extends Ao{constructor(){super(void 0),this.__sdk_access_field_descriptors__=new Map,this.__is_initialized__=!1,this.utils={createPromiEvent:Ba,isPromiEvent:aM,encodeJSON:tS,decodeJSON:zj,createJsonRpcRequestPayload:kt,standardizeJsonRpcRequestPayload:Pf,storage:dS};let e=[this,...jM(this)];jx.forEach(n=>{let a=e.map(u=>Object.getOwnPropertyDescriptor(u,n)),i=a.findIndex(u=>!!u),s=i>0,c=a[i];c&&(this.__sdk_access_field_descriptors__.set(n,{descriptor:c,isPrototypeField:s}),Object.defineProperty(this,n,{configurable:!0,get:()=>{throw Gj(n)}}))})}init(e){this.__is_initialized__||(jx.forEach(n=>{if(this.__sdk_access_field_descriptors__.has(n)){let{descriptor:a,isPrototypeField:i}=this.__sdk_access_field_descriptors__.get(n);i?delete this[n]:Object.defineProperty(this,n,a)}}),this.sdk=e,this.__is_initialized__=!0)}createDeprecationWarning(e){let{method:n,removalVersion:a,useInstead:i}=e,s=i?` Use \`${i}\` instead.`:"",c=`\`${n}\` will be removed from this Extension in version \`${a}\`.${s}`;return new Tx(this,"DEPRECATION_NOTICE",c)}createWarning(e,n){return new Tx(this,e,n)}createError(e,n,a){return new rS(this,e,n,a)}},OM=class extends MM{},Yp=class{};Yp.Internal=OM;var DM=class extends Ao{purchase(e){let n=kt(ut.NFTPurchase,[e]);return this.request(n)}checkout(e){let n=this.sdk.thirdPartyWallets.isConnected,a=kt(ut.NFTCheckout,[qg(oh({},e),{walletProvider:n?"web3modal":"magic"})]),i=this.request(a);return n&&(i.on(ru.Initiated,s=>yn(this,null,function*(){try{let c=yield this.request({method:"eth_sendTransaction",params:[s]});this.createIntermediaryEvent(ru.Success,a.id)(c)}catch{this.createIntermediaryEvent(ru.Failure,a.id)()}})),i.on(ru.Disconnect,()=>{this.sdk.thirdPartyWallets.resetThirdPartyWalletState(),i.emit("disconnect")})),i}transfer(e){let n=kt(ut.NFTTransfer,[e]);return this.request(n)}};function Mx(e){return e.compat&&e.compat[Gt.sdkName]!=null?typeof e.compat[Gt.sdkName]=="string"?Rj(Dj(Gt.version),e.compat[Gt.sdkName]):!!e.compat[Gt.sdkName]:!0}function kM(e,n,a){return!n&&!a?`${e}_eth_mainnet`:a?`${e}_${JSON.stringify(a)}`:n?typeof n=="string"?`${e}_eth_${n}`:`${e}_${n.rpcUrl}_${n.chainId}_${n.chainType}`:`${e}_unknown`}function PM(e){var n;let a=(n=e==null?void 0:e.extensions)!=null?n:[],i={},s=[];if(Array.isArray(a)?a.forEach(c=>{Mx(c)?(c.init(this),c.name&&(this[c.name]=c),c instanceof Yp.Internal&&(Df(c.config)||(i[c.name]=c.config))):s.push(c)}):Object.keys(a).forEach(c=>{if(Mx(a[c])){a[c].init(this);let u=a[c];this[c]=u,u instanceof Yp.Internal&&(Df(u.config)||(i[a[c].name]=u.config))}else s.push(a[c])}),s.length)throw Kj(s);return i}var vf=class{constructor(e,n){this.apiKey=e;var a;if(!e)throw qj();Gt.platform==="react-native"&&(n!=null&&n.endpoint)&&Zj().log();let{defaultEndpoint:i,version:s}=Gt;this.testMode=!!(n!=null&&n.testMode),this.useStorageCache=!!(n!=null&&n.useStorageCache),this.endpoint=If((a=n==null?void 0:n.endpoint)!=null?a:i).origin,this.auth=new sM(this),this.user=new NM(this),this.wallet=new CM(this),this.nft=new DM(this),this.thirdPartyWallets=new TM(this),this.rpcProvider=new RM(this);let c=PM.call(this,n);this.parameters=tS(qg(oh({API_KEY:this.apiKey,DOMAIN_ORIGIN:window.location?window.location.origin:"",ETH_NETWORK:n==null?void 0:n.network,host:If(this.endpoint).host,sdk:Fj[Gt.sdkName],version:s,ext:Df(c)?void 0:c,locale:(n==null?void 0:n.locale)||"en_US"},Gt.bundleId?{bundleId:Gt.bundleId}:{}),{meta:n==null?void 0:n.meta})),this.networkHash=kM(this.apiKey,n==null?void 0:n.network,Df(c)?void 0:c),n!=null&&n.deferPreload||this.preload()}get overlay(){if(!vf.__overlays__.has(this.parameters)){let e=new Gt.ViewController(this.endpoint,this.parameters,this.networkHash);e.init(),vf.__overlays__.set(this.parameters,e)}return vf.__overlays__.get(this.parameters)}preload(){return yn(this,null,function*(){yield this.overlay.waitForReady()})}},bS=vf;bS.__overlays__=new Map;function LM(e,n){return n&&Array.isArray(e)?e.find(a=>a.id===n):e}function IM(e,n){var a;let i=(a=n.data.response)==null?void 0:a.id,s=LM(e,i);if(i&&s){let c=new Gg(s).applyResult(n.data.response.result).applyError(n.data.response.error);return{id:i,response:c}}return{}}function zM(e,n,a){return yn(this,null,function*(){var i;let s=yield ea("rt"),c;if(Gt.platform==="web")try{c=(i=yield ea("jwt"))!=null?i:yield pM()}catch(p){console.error("webcrypto error",p)}let u={msgType:e,payload:n};c&&(u.jwt=c),c&&s&&(u.rt=s);let f=yield _M(a);return f&&(u.deviceShare=f),u})}
64function VM(e){return yn(this,null,function*(){!e.data.rt||(yield vo("rt",e.data.rt))})}function UM(e,n){let a=null;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i)},n)}}var BM=1e3,xS=60*BM,Ox=5*xS,$M=60*xS,FM=class{constructor(e,n,a){this.endpoint=e,this.parameters=n,this.networkHash=a,this.isReadyForRequest=!1,this.messageHandlers=new Set,this.isConnectedToInternet=!0,this.lastPongTime=null,this.heartbeatIntervalTimer=null,this.heartbeatDebounce=UM(()=>{this.endpoint==="https://auth.magic.link/"&&this.heartBeatCheck()},$M),this.listen()}post(e,n){return yn(this,null,function*(){return uS((a,i)=>yn(this,null,function*(){if(!this.isConnectedToInternet){let g=aS();i(g)}(yield this.checkRelayerExistsInDOM())||(this.isReadyForRequest=!1,yield this.reloadRelayer()),this.isReadyForRequest||(yield this.waitForReady());let s=[],c=Array.isArray(n)?n.map(g=>g.id):[],u=yield zM(`${e}-${this.parameters}`,n,this.networkHash);yield this._post(u);let f=g=>b=>{var x;let{id:E,response:N}=IM(n,b);if(VM(b),((x=N==null?void 0:N.payload.error)==null?void 0:x.message)==="User denied account access.")gS();else if(b.data.deviceShare){let{deviceShare:T}=b.data;AM(T,this.networkHash)}E&&N&&Array.isArray(n)&&c.includes(E)?(s.push(N),s.length===n.length&&(g(),a(s))):E&&N&&!Array.isArray(n)&&E===n.id&&(g(),a(N))},p=this.on(yo.MAGIC_HANDLE_RESPONSE,f(()=>p()))}))})}on(e,n){let a=n.bind(window),i=s=>{s.data.msgType===`${e}-${this.parameters}`&&a(s)};return this.messageHandlers.add(i),()=>this.messageHandlers.delete(i)}waitForReady(){return new Promise(e=>{let n=this.on(yo.MAGIC_OVERLAY_READY,()=>{this.isReadyForRequest=!0,e(),n()})})}listen(){this.on(yo.MAGIC_HIDE_OVERLAY,()=>{this.hideOverlay()}),this.on(yo.MAGIC_SHOW_OVERLAY,()=>{this.showOverlay()}),this.on(yo.MAGIC_SEND_PRODUCT_ANNOUNCEMENT,e=>{e.data.response.result.product_announcement&&new Pu(Bl.ProductAnnouncement,e.data.response.result.product_announcement).log()})}heartBeatCheck(){let e=!0,n=()=>yn(this,null,function*(){let a={msgType:`${pu.MAGIC_PING}-${this.parameters}`,payload:[]};yield this._post(a)});this.heartbeatIntervalTimer=setInterval(()=>yn(this,null,function*(){if(this.lastPongTime){if(Date.now()-this.lastPongTime>Ox*2){this.reloadRelayer(),e=!0;return}}else if(!e){this.reloadRelayer(),e=!0;return}yield n(),e=!1}),Ox)}stopHeartBeat(){this.heartbeatDebounce(),this.lastPongTime=null,this.heartbeatIntervalTimer&&(clearInterval(this.heartbeatIntervalTimer),this.heartbeatIntervalTimer=null)}},qM=Object.create,wS=Object.defineProperty,HM=Object.getOwnPropertyDescriptor,GM=Object.getOwnPropertyNames,KM=Object.getPrototypeOf,YM=Object.prototype.hasOwnProperty,nf=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,a)=>(typeof require<"u"?require:n)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),SS=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),XM=(e,n,a,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of GM(n))!YM.call(e,s)&&s!==a&&wS(e,s,{get:()=>n[s],enumerable:!(i=HM(n,s))||i.enumerable});return e},ES=(e,n,a)=>(a=e!=null?qM(KM(e)):{},XM(!e||!e.__esModule?wS(a,"default",{value:e,enumerable:!0}):a,e)),is=(e,n,a)=>new Promise((i,s)=>{var c=p=>{try{f(a.next(p))}catch(g){s(g)}},u=p=>{try{f(a.throw(p))}catch(g){s(g)}},f=p=>p.done?i(p.value):Promise.resolve(p.value).then(c,u);f((a=a.apply(e,n)).next())}),WM=SS((e,n)=>{(function(a){if(typeof e=="object"&&typeof n<"u")n.exports=a();else if(typeof define=="function"&&define.amd)define([],a);else{var i;typeof window<"u"?i=window:typeof global<"u"?i=global:typeof self<"u"?i=self:i=this,i.localforage=a()}})(function(){return function a(i,s,c){function u(g,b){if(!s[g]){if(!i[g]){var x=typeof nf=="function"&&nf;if(!b&&x)return x(g,!0);if(f)return f(g,!0);var E=new Error("Cannot find module '"+g+"'");throw E.code="MODULE_NOT_FOUND",E}var N=s[g]={exports:{}};i[g][0].call(N.exports,function(T){var R=i[g][1][T];return u(R||T)},N,N.exports,a,i,s,c)}return s[g].exports}for(var f=typeof nf=="function"&&nf,p=0;p<c.length;p++)u(c[p]);return u}({1:[function(a,i,s){(function(c){var u=c.MutationObserver||c.WebKitMutationObserver,f;if(u){var p=0,g=new u(T),b=c.document.createTextNode("");g.observe(b,{characterData:!0}
vendor: 26,114 bytes, line 64
64),f=function(){b.data=p=++p%2}}else if(!c.setImmediate&&typeof c.MessageChannel<"u"){var x=new c.MessageChannel;x.port1.onmessage=T,f=function(){x.port2.postMessage(0)}}else"document"in c&&"onreadystatechange"in c.document.createElement("script")?f=function(){var M=c.document.createElement("script");M.onreadystatechange=function(){T(),M.onreadystatechange=null,M.parentNode.removeChild(M),M=null},c.document.documentElement.appendChild(M)}:f=function(){setTimeout(T,0)};var E,N=[];function T(){E=!0;for(var M,D,$=N.length;$;){for(D=N,N=[],M=-1;++M<$;)D[M]();$=N.length}E=!1}i.exports=R;function R(M){N.push(M)===1&&!E&&f()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(a,i,s){var c=a(1);function u(){}var f={},p=["REJECTED"],g=["FULFILLED"],b=["PENDING"];i.exports=x;function x(z){if(typeof z!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,z!==u&&R(this,z)}x.prototype.catch=function(z){return this.then(null,z)},x.prototype.then=function(z,q){if(typeof z!="function"&&this.state===g||typeof q!="function"&&this.state===p)return this;var ie=new this.constructor(u);if(this.state!==b){var be=this.state===g?z:q;N(ie,be,this.outcome)}else this.queue.push(new E(ie,z,q));return ie};function E(z,q,ie){this.promise=z,typeof q=="function"&&(this.onFulfilled=q,this.callFulfilled=this.otherCallFulfilled),typeof ie=="function"&&(this.onRejected=ie,this.callRejected=this.otherCallRejected)}E.prototype.callFulfilled=function(z){f.resolve(this.promise,z)},E.prototype.otherCallFulfilled=function(z){N(this.promise,this.onFulfilled,z)},E.prototype.callRejected=function(z){f.reject(this.promise,z)},E.prototype.otherCallRejected=function(z){N(this.promise,this.onRejected,z)};function N(z,q,ie){c(function(){var be;try{be=q(ie)}catch(me){return f.reject(z,me)}be===z?f.reject(z,new TypeError("Cannot resolve promise with itself")):f.resolve(z,be)})}f.resolve=function(z,q){var ie=M(T,q);if(ie.status==="error")return f.reject(z,ie.value);var be=ie.value;if(be)R(z,be);else{z.state=g,z.outcome=q;for(var me=-1,xe=z.queue.length;++me<xe;)z.queue[me].callFulfilled(q)}return z},f.reject=function(z,q){z.state=p,z.outcome=q;for(var ie=-1,be=z.queue.length;++ie<be;)z.queue[ie].callRejected(q);return z};function T(z){var q=z&&z.then;if(z&&(typeof z=="object"||typeof z=="function")&&typeof q=="function")return function(){q.apply(z,arguments)}}function R(z,q){var ie=!1;function be(Ve){ie||(ie=!0,f.reject(z,Ve))}function me(Ve){ie||(ie=!0,f.resolve(z,Ve))}function xe(){q(me,be)}var Re=M(xe);Re.status==="error"&&be(Re.value)}function M(z,q){var ie={};try{ie.value=z(q),ie.status="success"}catch(be){ie.status="error",ie.value=be}return ie}x.resolve=D;function D(z){return z instanceof this?z:f.resolve(new this(u),z)}x.reject=$;function $(z){var q=new this(u);return f.reject(q,z)}x.all=I;function I(z){var q=this;if(Object.prototype.toString.call(z)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ie=z.length,be=!1;if(!ie)return this.resolve([]);for(var me=new Array(ie),xe=0,Re=-1,Ve=new this(u);++Re<ie;)Ue(z[Re],Re);return Ve;function Ue(Ye,tt){q.resolve(Ye).then(pe,function(Me){be||(be=!0,f.reject(Ve,Me))});function pe(Me){me[tt]=Me,++xe===ie&&!be&&(be=!0,f.resolve(Ve,me))}}}x.race=ee;function ee(z){var q=this;if(Object.prototype.toString.call(z)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ie=z.length,be=!1;if(!ie)return this.resolve([]);for(var me=-1,xe=new this(u);++me<ie;)Re(z[me]);return xe;function Re(Ve){q.resolve(Ve).then(function(Ue){be||(be=!0,f.resolve(xe,Ue))},function(Ue){be||(be=!0,f.reject(xe,Ue))})}}},{1:1}],3:[function(a,i,s){(function(c){typeof c.Promise!="function"&&(c.Promise=a(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(a,i,s){var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O};function u(O,U){if(!(O instanceof U))throw new TypeError("Cannot call a class as a function")}function f(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var p=f();function g(){try{if(!p||!p.open)return!1;var O=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),U=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!O||U)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function b(O,U){O=O||[],U=U||{};try{return new Blob(O,U)}catch(oe){if(oe.name!=="TypeError")throw oe;for(var V=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,W=new V,J=0;J<O.length;J+=1)W.append(O[J]);return W.getBlob(U.type)}}typeof Promise>"u"&&a(3);var x=Promise;function E(O,U){U&&O.then(function(V){U(null,V)},function(V){U(V)})}function N(O,U,V){typeof U=="function"&&O.then(U),typeof V=="function"&&O.catch(V)}function T(O){return typeof O!="string"&&(console.warn(O+" used as a key, but it is not a string."),O=String(O)),O}function R(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var M="local-forage-detect-blob-support",D=void 0,$={},I=Object.prototype.toString,ee="readonly",z="readwrite";function q(O){for(var U=O.length,V=new ArrayBuffer(U),W=new Uint8Array(V),J=0;J<U;J++)W[J]=O.charCodeAt(J);return V}function ie(O){return new x(function(U){var V=O.transaction(M,z),W=b([""]);V.objectStore(M).put(W,"key"),V.onabort=function(J){J.preventDefault(),J.stopPropagation(),U(!1)},V.oncomplete=function(){var J=navigator.userAgent.match(/Chrome\/(\d+)/),oe=navigator.userAgent.match(/Edge\//);U(oe||!J||parseInt(J[1],10)>=43)}}).catch(function(){return!1})}function be(O){return typeof D=="boolean"?x.resolve(D):ie(O).then(function(U){return D=U,D})}function me(O){var U=$[O.name],V={};V.promise=new x(function(W,J){V.resolve=W,V.reject=J}),U.deferredOperations.push(V),U.dbReady?U.dbReady=U.dbReady.then(function(){return V.promise}):U.dbReady=V.promise}function xe(O){var U=$[O.name],V=U.deferredOperations.pop();if(V)return V.resolve(),V.promise}function Re(O,U){var V=$[O.name],W=V.deferredOperations.pop();if(W)return W.reject(U),W.promise}function Ve(O,U){return new x(function(V,W){if($[O.name]=$[O.name]||_e(),O.db)if(U)me(O),O.db.close();else return V(O.db);var J=[O.name];U&&J.push(O.version);var oe=p.open.apply(p,J);U&&(oe.onupgradeneeded=function(we){var je=oe.result;try{je.createObjectStore(O.storeName),we.oldVersion<=1&&je.createObjectStore(M)}catch(ke){if(ke.name==="ConstraintError")console.warn('The database "'+O.name+'" has been upgraded from version '+we.oldVersion+" to version "+we.newVersion+', but the storage "'+O.storeName+'" already exists.');else throw ke}}),oe.onerror=function(we){we.preventDefault(),W(oe.error)},oe.onsuccess=function(){var we=oe.result;we.onversionchange=function(je){je.target.close()},V(we),xe(O)}})}function Ue(O){return Ve(O,!1)}function Ye(O){return Ve(O,!0)}function tt(O,U){if(!O.db)return!0;var V=!O.db.objectStoreNames.contains(O.storeName),W=O.version<O.db.version,J=O.version>O.db.version;if(W&&(O.version!==U&&console.warn('The database "'+O.name+`" can't be downgraded from version `+O.db.version+" to version "+O.version+"."),O.version=O.db.version),J||V){if(V){var oe=O.db.version+1;oe>O.version&&(O.version=oe)}return!0}return!1}function pe(O){return new x(function(U,V){var W=new FileReader;W.onerror=V,W.onloadend=function(J){var oe=btoa(J.target.result||"");U({__local_forage_encoded_blob:!0,data:oe,type:O.type})},W.readAsBinaryString(O)})}function Me(O){var U=q(atob(O.data));return b([U],{type:O.type})}function B(O){return O&&O.__local_forage_encoded_blob}function K(O){var U=this,V=U._initReady().then(function(){var W=$[U._dbInfo.name];if(W&&W.dbReady)return W.dbReady});return N(V,O,O),V}function P(O){me(O);for(var U=$[O.name],V=U.forages,W=0;W<V.length;W++){var J=V[W];J._dbInfo.db&&(J._dbInfo.db.close(),J._dbInfo.db=null)}return O.db=null,Ue(O).then(function(oe){return O.db=oe,tt(O)?Ye(O):oe}).then(function(oe){O.db=U.db=oe;for(var we=0;we<V.length;we++)V[we]._dbInfo.db=oe}).catch(function(oe){throw Re(O,oe),oe})}function se(O,U,V,W){W===void 0&&(W=1);try{var J=O.db.transaction(O.storeName,U);V(null,J)}catch(oe){if(W>0&&(!O.db||oe.name==="InvalidStateError"||oe.name==="NotFoundError"))return x.resolve().then(function(){if(!O.db||oe.name==="NotFoundError"&&!O.db.objectStoreNames.contains(O.storeName)&&O.version<=O.db.version)return O.db&&(O.version=O.db.version+1),Ye(O)}).then(function(){return P(O).then(function(){se(O,U,V,W-1)})}).catch(V);V(oe)}}function _e(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ne(O){var U=this,V={db:null};if(O)for(var W in O)V[W]=O[W];var J=$[V.name];J||(J=_e(),$[V.name]=J),J.forages.push(U),U._initReady||(U._initReady=U.ready,U.ready=K);var oe=[];function we(){return x.resolve()}for(var je=0;je<J.forages.length;je++){var ke=J.forages[je];ke!==U&&oe.push(ke._initReady().catch(we))}var Te=J.forages.slice(0);return x.all(oe).then(function(){return V.db=J.db,Ue(V)}).then(function(De){return V.db=De,tt(V,U._defaultConfig.version)?Ye(V):De}).then(function(De){V.db=J.db=De,U._dbInfo=V;for(var et=0;et<Te.length;et++){var ht=Te[et];ht!==U&&(ht._dbInfo.db=V.db,ht._dbInfo.version=V.version)}})}function de(O,U){var V=this;O=T(O);var W=new x(function(J,oe){V.ready().then(function(){se(V._dbInfo,ee,function(we,je){if(we)return oe(we);try{var ke=je.objectStore(V._dbInfo.storeName),Te=ke.get(O);Te.onsuccess=function(){var De=Te.result;De===void 0&&(De=null),B(De)&&(De=Me(De)),J(De)},Te.onerror=function(){oe(Te.error)}}catch(De){oe(De)}})}).catch(oe)});return E(W,U),W}function He(O,U){var V=this,W=new x(function(J,oe){V.ready().then(function(){se(V._dbInfo,ee,function(we,je){if(we)return oe(we);try{var ke=je.objectStore(V._dbInfo.storeName),Te=ke.openCursor(),De=1;Te.onsuccess=function(){var et=Te.result;if(et){var ht=et.value;B(ht)&&(ht=Me(ht));var xt=O(ht,et.key,De++);xt!==void 0?J(xt):et.continue()}else J()},Te.onerror=function(){oe(Te.error)}}catch(et){oe(et)}})}).catch(oe)});return E(W,U),W}function $e(O,U,V){var W=this;O=T(O);var J=new x(function(oe,we){var je;W.ready().then(function(){return je=W._dbInfo,I.call(U)==="[object Blob]"?be(je.db).then(function(ke){return ke?U:pe(U)}):U}).then(function(ke){se(W._dbInfo,z,function(Te,De){if(Te)return we(Te);try{var et=De.objectStore(W._dbInfo.storeName);ke===null&&(ke=void 0);var ht=et.put(ke,O);De.oncomplete=function(){ke===void 0&&(ke=null),oe(ke)},De.onabort=De.onerror=function(){var xt=ht.error?ht.error:ht.transaction.error;we(xt)}}catch(xt){we(xt)}})}).catch(we)});return E(J,V),J}function ct(O,U){var V=this;O=T(O);var W=new x(function(J,oe){V.ready().then(function(){se(V._dbInfo,z,function(we,je){if(we)return oe(we);try{var ke=je.objectStore(V._dbInfo.storeName),Te=ke.delete(O);je.oncomplete=function(){J()},je.onerror=function(){oe(Te.error)},je.onabort=function(){var De=Te.error?Te.error:Te.transaction.error;oe(De)}}catch(De){oe(De)}})}).catch(oe)});return E(W,U),W}function ft(O){var U=this,V=new x(function(W,J){U.ready().then(function(){se(U._dbInfo,z,function(oe,we){if(oe)return J(oe);try{var je=we.objectStore(U._dbInfo.storeName),ke=je.clear();we.oncomplete=function(){W()},we.onabort=we.onerror=function(){var Te=ke.error?ke.error:ke.transaction.error;J(Te)}}catch(Te){J(Te)}})}).catch(J)});return E(V,O),V}function Ie(O){var U=this,V=new x(function(W,J){U.ready().then(function(){se(U._dbInfo,ee,function(oe,we){if(oe)return J(oe);try{var je=we.objectStore(U._dbInfo.storeName),ke=je.count();ke.onsuccess=function(){W(ke.result)},ke.onerror=function(){J(ke.error)}}catch(Te){J(Te)}})}).catch(J)});return E(V,O),V}function Ct(O,U){var V=this,W=new x(function(J,oe){if(O<0){J(null);return}V.ready().then(function(){se(V._dbInfo,ee,function(we,je){if(we)return oe(we);try{var ke=je.objectStore(V._dbInfo.storeName),Te=!1,De=ke.openKeyCursor();De.onsuccess=function(){var et=De.result;if(!et){J(null);return}O===0||Te?J(et.key):(Te=!0,et.advance(O))},De.onerror=function(){oe(De.error)}}catch(et){oe(et)}})}).catch(oe)});return E(W,U),W}function vn(O){var U=this,V=new x(function(W,J){U.ready().then(function(){se(U._dbInfo,ee,function(oe,we){if(oe)return J(oe);try{var je=we.objectStore(U._dbInfo.storeName),ke=je.openKeyCursor(),Te=[];ke.onsuccess=function(){var De=ke.result;if(!De){W(Te);return}Te.push(De.key),De.continue()},ke.onerror=function(){J(ke.error)}}catch(De){J(De)}})}).catch(J)});return E(V,O),V}function St(O,U){U=R.apply(this,arguments);var V=this.config();O=typeof O!="function"&&O||{},O.name||(O.name=O.name||V.name,O.storeName=O.storeName||V.storeName);var W=this,J;if(!O.name)J=x.reject("Invalid arguments");else{var oe=O.name===V.name&&W._dbInfo.db,we=oe?x.resolve(W._dbInfo.db):Ue(O).then(function(je){var ke=$[O.name],Te=ke.forages;ke.db=je;for(var De=0;De<Te.length;De++)Te[De]._dbInfo.db=je;return je});O.storeName?J=we.then(function(je){if(je.objectStoreNames.contains(O.storeName)){var ke=je.version+1;me(O);var Te=$[O.name],De=Te.forages;je.close();for(var et=0;et<De.length;et++){var ht=De[et];ht._dbInfo.db=null,ht._dbInfo.version=ke}var xt=new x(function(Tt,Xt){var Ze=p.open(O.name,ke);Ze.onerror=function(jn){var Ii=Ze.result;Ii.close(),Xt(jn)},Ze.onupgradeneeded=function(){var jn=Ze.result;jn.deleteObjectStore(O.storeName)},Ze.onsuccess=function(){var jn=Ze.result;jn.close(),Tt(jn)}});return xt.then(function(Tt){Te.db=Tt;for(var Xt=0;Xt<De.length;Xt++){var Ze=De[Xt];Ze._dbInfo.db=Tt,xe(Ze._dbInfo)}}).catch(function(Tt){throw(Re(O,Tt)||x.resolve()).catch(function(){}),Tt})}}):J=we.then(function(je){me(O);var ke=$[O.name],Te=ke.forages;je.close();for(var De=0;De<Te.length;De++){var et=Te[De];et._dbInfo.db=null}var ht=new x(function(xt,Tt){var Xt=p.deleteDatabase(O.name);Xt.onerror=function(){var Ze=Xt.result;Ze&&Ze.close(),Tt(Xt.error)},Xt.onblocked=function(){console.warn('dropInstance blocked for database "'+O.name+'" until all open connections are closed')},Xt.onsuccess=function(){var Ze=Xt.result;Ze&&Ze.close(),xt(Ze)}});return ht.then(function(xt){ke.db=xt;for(var Tt=0;Tt<Te.length;Tt++){var Xt=Te[Tt];xe(Xt._dbInfo)}}).catch(function(xt){throw(Re(O,xt)||x.resolve()).catch(function(){}),xt})})}return E(J,U),J}var ln={_driver:"asyncStorage",_initStorage:Ne,_support:g(),iterate:He,getItem:de,setItem:$e,removeItem:ct,clear:ft,length:Ie,key:Ct,keys:vn,dropInstance:St};function ra(){return typeof openDatabase=="function"}var tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dr="~~local_forage_type~",Aa=/^~~local_forage_type~([^~]+)~/,br="__lfsc__:",fr=br.length,aa="arbf",Rn="blob",To="si08",_a="ui08",Kn="uic8",Na="si16",xr="si32",wr="ur16",ia="ui32",Ca="fl32",Za="fl64",Qa=fr+aa.length,kr=Object.prototype.toString;function Sr(O){var U=O.length*.75,V=O.length,W,J=0,oe,we,je,ke;O[O.length-1]==="="&&(U--,O[O.length-2]==="="&&U--);var Te=new ArrayBuffer(U),De=new Uint8Array(Te);for(W=0;W<V;W+=4)oe=tn.indexOf(O[W]),we=tn.indexOf(O[W+1]),je=tn.indexOf(O[W+2]),ke=tn.indexOf(O[W+3]),De[J++]=oe<<2|we>>4,De[J++]=(we&15)<<4|je>>2,De[J++]=(je&3)<<6|ke&63;return Te}function hn(O){var U=new Uint8Array(O),V="",W;for(W=0;W<U.length;W+=3)V+=tn[U[W]>>2],V+=tn[(U[W]&3)<<4|U[W+1]>>4],V+=tn[(U[W+1]&15)<<2|U[W+2]>>6],V+=tn[U[W+2]&63];return U.length%3===2?V=V.substring(0,V.length-1)+"=":U.length%3===1&&(V=V.substring(0,V.length-2)+"=="),V}function Pr(O,U){var V="";if(O&&(V=kr.call(O)),O&&(V==="[object ArrayBuffer]"||O.buffer&&kr.call(O.buffer)==="[object ArrayBuffer]")){var W,J=br;O instanceof ArrayBuffer?(W=O,J+=aa):(W=O.buffer,V==="[object Int8Array]"?J+=To:V==="[object Uint8Array]"?J+=_a:V==="[object Uint8ClampedArray]"?J+=Kn:V==="[object Int16Array]"?J+=Na:V==="[object Uint16Array]"?J+=wr:V==="[object Int32Array]"?J+=xr:V==="[object Uint32Array]"?J+=ia:V==="[object Float32Array]"?J+=Ca:V==="[object Float64Array]"?J+=Za:U(new Error("Failed to get type for BinaryArray"))),U(J+hn(W))}else if(V==="[object Blob]"){var oe=new FileReader;oe.onload=function(){var we=Dr+O.type+"~"+hn(this.result);U(br+Rn+we)},oe.readAsArrayBuffer(O)}else try{U(JSON.stringify(O))}catch(we){console.error("Couldn't convert value into a JSON string: ",O),U(null,we)}}function Xe(O){if(O.substring(0,fr)!==br)return JSON.parse(O);var U=O.substring(Qa),V=O.substring(fr,Qa),W;if(V===Rn&&Aa.test(U)){var J=U.match(Aa);W=J[1],U=U.substring(J[0].length)}var oe=Sr(U);switch(V){case aa:return oe;case Rn:return b([oe],{type:W});case To:return new Int8Array(oe);case _a:return new Uint8Array(oe);case Kn:return new Uint8ClampedArray(oe);case Na:return new Int16Array(oe);case wr:return new Uint16Array(oe);case xr:return new Int32Array(oe);case ia:return new Uint32Array(oe);case Ca:return new Float32Array(oe);case Za:return new Float64Array(oe);default:throw new Error("Unkown type: "+V)}}var nn={serialize:Pr,deserialize:Xe,stringToBuffer:Sr,bufferToString:hn};function Lr(O,U,V,W){O.executeSql("CREATE TABLE IF NOT EXISTS "+U.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],V,W)}function Oi(O){var U=this,V={db:null};if(O)for(var W in O)V[W]=typeof O[W]!="string"?O[W].toString():O[W];var J=new x(function(oe,we){try{V.db=openDatabase(V.name,String(V.version),V.description,V.size)}catch(je){return we(je)}V.db.transaction(function(je){Lr(je,V,function(){U._dbInfo=V,oe()},function(ke,Te){we(Te)})},we)});return V.serializer=nn,J}function Fe(O,U,V,W,J,oe){O.executeSql(V,W,J,function(we,je){je.code===je.SYNTAX_ERR?we.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[U.storeName],function(ke,Te){Te.rows.length?oe(ke,je):Lr(ke,U,function(){ke.executeSql(V,W,J,oe)},oe)},oe):oe(we,je)},oe)}function Ta(O,U){var V=this;O=T(O);var W=new x(function(J,oe){V.ready().then(function(){var we=V._dbInfo;we.db.transaction(function(je){Fe(je,we,"SELECT * FROM "+we.storeName+" WHERE key = ? LIMIT 1",[O],function(ke,Te){var De=Te.rows.length?Te.rows.item(0).value:null;De&&(De=we.serializer.deserialize(De)),J(De)},function(ke,Te){oe(Te)})})}).catch(oe)});return E(W,U),W}function Ja(O,U){var V=this,W=new x(function(J,oe){V.ready().then(function(){var we=V._dbInfo;we.db.transaction(function(je){Fe(je,we,"SELECT * FROM "+we.storeName,[],function(ke,Te){for(var De=Te.rows,et=De.length,ht=0;ht<et;ht++){var xt=De.item(ht),Tt=xt.value;if(Tt&&(Tt=we.serializer.deserialize(Tt)),Tt=O(Tt,xt.key,ht+1),Tt!==void 0){J(Tt);return}}J()},function(ke,Te){oe(Te)})})}).catch(oe)});return E(W,U),W}function hr(O,U,V,W){var J=this;O=T(O);var oe=new x(function(we,je){J.ready().then(function(){U===void 0&&(U=null);var ke=U,Te=J._dbInfo;Te.serializer.serialize(U,function(De,et){et?je(et):Te.db.transaction(function(ht){Fe(ht,Te,"INSERT OR REPLACE INTO "+Te.storeName+" (key, value) VALUES (?, ?)",[O,De],function(){we(ke)},function(xt,Tt){je(Tt)})},function(ht){if(ht.code===ht.QUOTA_ERR){if(W>0){we(hr.apply(J,[O,ke,V,W-1]));return}je(ht)}})})}).catch(je)});return E(oe,V),oe}function ei(O,U,V){return hr.apply(this,[O,U,V,1])}function oa(O,U){var V=this;O=T(O);var W=new x(function(J,oe){V.ready().then(function(){var we=V._dbInfo;we.db.transaction(function(je){Fe(je,we,"DELETE FROM "+we.storeName+" WHERE key = ?",[O],function(){J()},function(ke,Te){oe(Te)})})}).catch(oe)});return E(W,U),W}function Wl(O){var U=this,V=new x(function(W,J){U.ready().then(function(){var oe=U._dbInfo;oe.db.transaction(function(we){Fe(we,oe,"DELETE FROM "+oe.storeName,[],function(){W()},function(je,ke){J(ke)})})}).catch(J)});return E(V,O),V}function ws(O){var U=this,V=new x(function(W,J){U.ready().then(function(){var oe=U._dbInfo;oe.db.transaction(function(we){Fe(we,oe,"SELECT COUNT(key) as c FROM "+oe.storeName,[],function(je,ke){var Te=ke.rows.item(0).c;W(Te)},function(je,ke){J(ke)})})}).catch(J)});return E(V,O),V}function sa(O,U){var V=this,W=new x(function(J,oe){V.ready().then(function(){var we=V._dbInfo;we.db.transaction(function(je){Fe(je,we,"SELECT key FROM "+we.storeName+" WHERE id = ? LIMIT 1",[O+1],function(ke,Te){var De=Te.rows.length?Te.rows.item(0).key:null;J(De)},function(ke,Te){oe(Te)})})}).catch(oe)});return E(W,U),W}function Ir(O){var U=this,V=new x(function(W,J){U.ready().then(function(){var oe=U._dbInfo;oe.db.transaction(function(we){Fe(we,oe,"SELECT key FROM "+oe.storeName,[],function(je,ke){for(var Te=[],De=0;De<ke.rows.length;De++)Te.push(ke.rows.item(De).key);W(Te)},function(je,ke){J(ke)})})}).catch(J)});return E(V,O),V}function la(O){return new x(function(U,V){O.transaction(function(W){W.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(J,oe){for(var we=[],je=0;je<oe.rows.length;je++)we.push(oe.rows.item(je).name);U({db:O,storeNames:we})},function(J,oe){V(oe)})},function(W){V(W)})})}function Di(O,U){U=R.apply(this,arguments);var V=this.config();O=typeof O!="function"&&O||{},O.name||(O.name=O.name||V.name,O.storeName=O.storeName||V.storeName);var W=this,J;return O.name?J=new x(function(oe){var we;O.name===V.name?we=W._dbInfo.db:we=openDatabase(O.name,"","",0),O.storeName?oe({db:we,storeNames:[O.storeName]}):oe(la(we))}).then(function(oe){return new x(function(we,je){oe.db.transaction(function(ke){function Te(xt){return new x(function(Tt,Xt){ke.executeSql("DROP TABLE IF EXISTS "+xt,[],function(){Tt()},function(Ze,jn){Xt(jn)})})}for(var De=[],et=0,ht=oe.storeNames.length;et<ht;et++)De.push(Te(oe.storeNames[et]));x.all(De).then(function(){we()}).catch(function(xt){je(xt)})},function(ke){je(ke)})})}):J=x.reject("Invalid arguments"),E(J,U),J}var Pt={_driver:"webSQLStorage",_initStorage:Oi,_support:ra(),iterate:Ja,getItem:Ta,setItem:ei,removeItem:oa,clear:Wl,length:ws,key:sa,keys:Ir,dropInstance:Di};function rn(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Ro(O,U){var V=O.name+"/";return O.storeName!==U.storeName&&(V+=O.storeName+"/"),V}function ti(){var O="_localforage_support_test";try{return localStorage.setItem(O,!0),localStorage.removeItem(O),!1}catch{return!0}}function ki(){return!ti()||localStorage.length>0}function rr(O){var U=this,V={};if(O)for(var W in O)V[W]=O[W];return V.keyPrefix=Ro(O,U._defaultConfig),ki()?(U._dbInfo=V,V.serializer=nn,x.resolve()):x.reject()}function bn(O){var U=this,V=U.ready().then(function(){for(var W=U._dbInfo.keyPrefix,J=localStorage.length-1;J>=0;J--){var oe=localStorage.key(J);oe.indexOf(W)===0&&localStorage.removeItem(oe)}});return E(V,O),V}function Yt(O,U){var V=this;O=T(O);var W=V.ready().then(function(){var J=V._dbInfo,oe=localStorage.getItem(J.keyPrefix+O);return oe&&(oe=J.serializer.deserialize(oe)),oe});return E(W,U),W}function ar(O,U){var V=this,W=V.ready().then(function(){for(var J=V._dbInfo,oe=J.keyPrefix,we=oe.length,je=localStorage.length,ke=1,Te=0;Te<je;Te++){var De=localStorage.key(Te);if(De.indexOf(oe)===0){var et=localStorage.getItem(De);if(et&&(et=J.serializer.deserialize(et)),et=O(et,De.substring(we),ke++),et!==void 0)return et}}});return E(W,U),W}function mr(O,U){var V=this,W=V.ready().then(function(){var J=V._dbInfo,oe;try{oe=localStorage.key(O)}catch{oe=null}return oe&&(oe=oe.substring(J.keyPrefix.length)),oe});return E(W,U),W}function Pi(O){var U=this,V=U.ready().then(function(){for(var W=U._dbInfo,J=localStorage.length,oe=[],we=0;we<J;we++){var je=localStorage.key(we);je.indexOf(W.keyPrefix)===0&&oe.push(je.substring(W.keyPrefix.length))}return oe});return E(V,O),V}function Zl(O){var U=this,V=U.keys().then(function(W){return W.length});return E(V,O),V}function Er(O,U){var V=this;O=T(O);var W=V.ready().then(function(){var J=V._dbInfo;localStorage.removeItem(J.keyPrefix+O)});return E(W,U),W}function Ra(O,U,V){var W=this;O=T(O);var J=W.ready().then(function(){U===void 0&&(U=null);var oe=U;return new x(function(we,je){var ke=W._dbInfo;ke.serializer.serialize(U,function(Te,De){if(De)je(De);else try{localStorage.setItem(ke.keyPrefix+O,Te),we(oe)}catch(et){(et.name==="QuotaExceededError"||et.name==="NS_ERROR_DOM_QUOTA_REACHED")&&je(et),je(et)}})})});return E(J,V),J}function Ar(O,U){if(U=R.apply(this,arguments),O=typeof O!="function"&&O||{},!O.name){var V=this.config();O.name=O.name||V.name,O.storeName=O.storeName||V.storeName}var W=this,J;return O.name?J=new x(function(oe){O.storeName?oe(Ro(O,W._defaultConfig)):oe(O.name+"/")}).then(function(oe){for(var we=localStorage.length-1;we>=0;we--){var je=localStorage.key(we);je.indexOf(oe)===0&&localStorage.removeItem(je)}}):J=x.reject("Invalid arguments"),E(J,U),J}var zr={_driver:"localStorageWrapper",_initStorage:rr,_support:rn(),iterate:ar,getItem:Yt,setItem:Ra,removeItem:Er,clear:bn,length:Zl,key:mr,keys:Pi,dropInstance:Ar},Vr=function(O,U){return O===U||typeof O=="number"&&typeof U=="number"&&isNaN(O)&&isNaN(U)},Lt=function(O,U){for(var V=O.length,W=0;W<V;){if(Vr(O[W],U))return!0;W++}return!1},zn=Array.isArray||function(O){return Object.prototype.toString.call(O)==="[object Array]"},jt={},Li={},Yn={INDEXEDDB:ln,WEBSQL:Pt,LOCALSTORAGE:zr},pr=[Yn.INDEXEDDB._driver,Yn.WEBSQL._driver,Yn.LOCALSTORAGE._driver],ir=["dropInstance"],Vn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ir),ca={description:"",driver:pr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function jo(O,U){O[U]=function(){var V=arguments;return O.ready().then(function(){return O[U].apply(O,V)})}}function ua(){for(var O=1;O<arguments.length;O++){var U=arguments[O];if(U)for(var V in U)U.hasOwnProperty(V)&&(zn(U[V])?arguments[0][V]=U[V].slice():arguments[0][V]=U[V])}return arguments[0]}var Ss=function(){function O(U){u(this,O);for(var V in Yn)if(Yn.hasOwnProperty(V)){var W=Yn[V],J=W._driver;this[V]=J,jt[J]||this.defineDriver(W)}
vendor: 4,507 bytes, line 64
64this._defaultConfig=ua({},ca),this._config=ua({},this._defaultConfig,U),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return O.prototype.config=function(U){if((typeof U>"u"?"undefined":c(U))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var V in U){if(V==="storeName"&&(U[V]=U[V].replace(/\W/g,"_")),V==="version"&&typeof U[V]!="number")return new Error("Database version must be a number.");this._config[V]=U[V]}return"driver"in U&&U.driver?this.setDriver(this._config.driver):!0}else return typeof U=="string"?this._config[U]:this._config},O.prototype.defineDriver=function(U,V,W){var J=new x(function(oe,we){try{var je=U._driver,ke=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!U._driver){we(ke);return}for(var Te=Vn.concat("_initStorage"),De=0,et=Te.length;De<et;De++){var ht=Te[De],xt=!Lt(ir,ht);if((xt||U[ht])&&typeof U[ht]!="function"){we(ke);return}}var Tt=function(){for(var Ze=function(Nn){return function(){var ja=new Error("Method "+Nn+" is not implemented by the current driver"),ni=x.reject(ja);return E(ni,arguments[arguments.length-1]),ni}},jn=0,Ii=ir.length;jn<Ii;jn++){var zi=ir[jn];U[zi]||(U[zi]=Ze(zi))}};Tt();var Xt=function(Ze){jt[je]&&console.info("Redefining LocalForage driver: "+je),jt[je]=U,Li[je]=Ze,oe()};"_support"in U?U._support&&typeof U._support=="function"?U._support().then(Xt,we):Xt(!!U._support):Xt(!0)}catch(Ze){we(Ze)}});return N(J,V,W),J},O.prototype.driver=function(){return this._driver||null},O.prototype.getDriver=function(U,V,W){var J=jt[U]?x.resolve(jt[U]):x.reject(new Error("Driver not found."));return N(J,V,W),J},O.prototype.getSerializer=function(U){var V=x.resolve(nn);return N(V,U),V},O.prototype.ready=function(U){var V=this,W=V._driverSet.then(function(){return V._ready===null&&(V._ready=V._initDriver()),V._ready});return N(W,U,U),W},O.prototype.setDriver=function(U,V,W){var J=this;zn(U)||(U=[U]);var oe=this._getSupportedDrivers(U);function we(){J._config.driver=J.driver()}function je(De){return J._extend(De),we(),J._ready=J._initStorage(J._config),J._ready}function ke(De){return function(){var et=0;function ht(){for(;et<De.length;){var xt=De[et];return et++,J._dbInfo=null,J._ready=null,J.getDriver(xt).then(je).catch(ht)}we();var Tt=new Error("No available storage method found.");return J._driverSet=x.reject(Tt),J._driverSet}return ht()}}var Te=this._driverSet!==null?this._driverSet.catch(function(){return x.resolve()}):x.resolve();return this._driverSet=Te.then(function(){var De=oe[0];return J._dbInfo=null,J._ready=null,J.getDriver(De).then(function(et){J._driver=et._driver,we(),J._wrapLibraryMethodsWithReady(),J._initDriver=ke(oe)})}).catch(function(){we();var De=new Error("No available storage method found.");return J._driverSet=x.reject(De),J._driverSet}),N(this._driverSet,V,W),this._driverSet},O.prototype.supports=function(U){return!!Li[U]},O.prototype._extend=function(U){ua(this,U)},O.prototype._getSupportedDrivers=function(U){for(var V=[],W=0,J=U.length;W<J;W++){var oe=U[W];this.supports(oe)&&V.push(oe)}return V},O.prototype._wrapLibraryMethodsWithReady=function(){for(var U=0,V=Vn.length;U<V;U++)jo(this,Vn[U])},O.prototype.createInstance=function(U){return new O(U)},O}(),gt=new Ss;i.exports=gt},{3:3}]},{},[4])(4)})}),ZM=SS((e,n)=>{(function(a,i){typeof e=="object"&&typeof n<"u"?i(e):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],i):i(a.LocalforageDriverMemory={})})(typeof self<"u"?self:e,function(a){var i="localforage-driver-memory";function s(B){var K=typeof Symbol=="function"&&B[Symbol.iterator],P=0;return K?K.call(B):{next:function(){return B&&P>=B.length&&(B=void 0),{value:B&&B[P++],done:!B}}}}function c(B,K){B=B||[],K=K||{};try{return new Blob(B,K)}catch(Ne){if(Ne.name!=="TypeError")throw Ne;for(var P=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,se=new P,_e=0;_e<B.length;_e+=1)se.append(B[_e]);return se.getBlob(K.type)}}var u=/^~~local_forage_type~([^~]+)~/,f=9,p=f+4,g=Object.prototype.toString;function b(B){var K=B.length*.75,P=B.length;B[B.length-1]==="="&&(K--,B[B.length-2]==="="&&K--);for(var se=new ArrayBuffer(K),_e=new Uint8Array(se),Ne=0,de=0;Ne<P;Ne+=4){var He="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
64+/".indexOf(B[Ne]),$e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(B[Ne+1]),ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(B[Ne+2]),ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(B[Ne+3]);_e[de++]=He<<2|$e>>4,_e[de++]=($e&15)<<4|ct>>2,_e[de++]=(ct&3)<<6|ft&63}return se}function x(B){for(var K=new Uint8Array(B),P="",se=0;se<K.length;se+=3)P+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[K[se]>>2],P+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(K[se]&3)<<4|K[se+1]>>4],P+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(K[se+1]&15)<<2|K[se+2]>>6],P+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[K[se+2]&63];return K.length%3===2?P=P.substring(0,P.length-1)+"=":K.length%3===1&&(P=P.substring(0,P.length-2)+"=="),P}function E(B,K){var P="";if(B&&(P=g.call(B)),B&&(P==="[object ArrayBuffer]"||B.buffer&&g.call(B.buffer)==="[object ArrayBuffer]")){var se=void 0,_e="__lfsc__:";B instanceof ArrayBuffer?(se=B,_e+="arbf"):(se=B.buffer,P==="[object Int8Array]"?_e+="si08":P==="[object Uint8Array]"?_e+="ui08":P==="[object Uint8ClampedArray]"?_e+="uic8":P==="[object Int16Array]"?_e+="si16":P==="[object Uint16Array]"?_e+="ur16":P==="[object Int32Array]"?_e+="si32":P==="[object Uint32Array]"?_e+="ui32":P==="[object Float32Array]"?_e+="fl32":P==="[object Float64Array]"?_e+="fl64":K(new Error("Failed to get type for BinaryArray"))),K(_e+x(se))}else if(P==="[object Blob]"){var Ne=new FileReader;Ne.onload=function(){var de="~~local_forage_type~"+B.type+"~"+x(this.result);K("__lfsc__:blob"+de)},Ne.readAsArrayBuffer(B)}else try{K(JSON.stringify(B))}catch(de){console.error("Couldn't convert value into a JSON string: ",B),K(null,de)}}function N(B){if(B.substring(0,f)!=="__lfsc__:")return JSON.parse(B);var K=B.substring(p),P=B.substring(f,p),se;if(P==="blob"&&u.test(K)){var _e=K.match(u);se=_e[1],K=K.substring(_e[0].length)}var Ne=b(K);switch(P){case"arbf":return Ne;case"blob":return c([Ne],{type:se});case"si08":return new Int8Array(Ne);case"ui08":return new Uint8Array(Ne);case"uic8":return new Uint8ClampedArray(Ne);case"si16":return new Int16Array(Ne);case"ur16":return new Uint16Array(Ne);case"si32":return new Int32Array(Ne);case"ui32":return new Uint32Array(Ne);case"fl32":return new Float32Array(Ne);case"fl64":return new Float64Array(Ne);default:throw new Error("Unkown type: "+P)}}function T(B){var K,P;if(B===null||typeof B!="object"||"isActiveClone"in B)return B;var se=B instanceof Date?new Date(B):B.constructor();try{for(var _e=s(Object.keys(B)),Ne=_e.next();!Ne.done;Ne=_e.next()){var de=Ne.value;Object.prototype.hasOwnProperty.call(B,de)&&(B.isActiveClone=null,se[de]=T(B[de]),delete B.isActiveClone)}}catch(He){K={error:He}}finally{try{Ne&&!Ne.done&&(P=_e.return)&&P.call(_e)}finally{if(K)throw K.error}}return se}function R(B,K){return(B.name||K.name)+"/"+(B.storeName||K.storeName)+"/"}function M(B,K){K&&B.then(function(P){K(null,P)},function(P){K(P)})}function D(){for(var B=[],K=0;K<arguments.length;K++)B[K]=arguments[K];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function $(B,K){var P=this;if(K=D.apply(this,arguments),B=typeof B!="function"&&B||{},!B.name){var se=this.config();B.name=B.name||se.name,B.storeName=B.storeName||se.storeName}var _e;return B.name?_e=new Promise(function(Ne){B.storeName?Ne(R(B,P._defaultConfig)):Ne(B.name+"/")}):_e=Promise.reject("Invalid arguments"),{promise:_e,callback:K}}function I(B){return typeof B!="string"&&(console.warn(B+" used as a key, but it is not a string."),B=String(B)),B}var ee={bufferToString:x,deserialize:N,serialize:E,stringToBuffer:b},z={},q=function(){function B(K){this.kp=K,this.data={}}return B.resolve=function(K){return z[K]||(z[K]=new B(K)),z[K]},B.prototype.clear=function(){this.data={}},B.prototype.drop=function(){this.clear(),delete z[this.kp]},B.prototype.get=function(K){return this.data[K]},B.prototype.key=function(K){return this.keys()[K]},B.prototype.keys=function(){return Object.keys(this.data)},B.prototype.rm=function(K){delete this.data[K]},B.prototype.set=function(K,P){this.data[K]=P},B}();function ie(B){var K=B?T(B):{},P=R(K,this._defaultConfig),se=q.resolve(P);
64return this._dbInfo=K,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=P,this._dbInfo.mStore=se,Promise.resolve()}function be(B){var K=this,P=this.ready().then(function(){K._dbInfo.mStore.clear()});return M(P,B),P}function me(B,K){var P=$.apply(this,arguments),se=P.promise,_e=P.callback,Ne=se.then(function(de){q.resolve(de).drop()});return M(Ne,_e),se}function xe(B,K){var P=this;B=I(B);var se=this.ready().then(function(){var _e=P._dbInfo.mStore.get(B);return _e==null?null:P._dbInfo.serializer.deserialize(_e)});return M(se,K),se}function Re(B,K){var P=this,se=this.ready().then(function(){for(var _e=P._dbInfo.mStore,Ne=_e.keys(),de=0;de<Ne.length;de++){var He=_e.get(Ne[de]);if(He&&(He=P._dbInfo.serializer.deserialize(He)),He=B(He,Ne[de],de+1),He!==void 0)return He}});return M(se,K),se}function Ve(B,K){var P=this,se=this.ready().then(function(){var _e;try{_e=P._dbInfo.mStore.key(B),_e===void 0&&(_e=null)}catch{_e=null}return _e});return M(se,K),se}function Ue(B){var K=this,P=this.ready().then(function(){return K._dbInfo.mStore.keys()});return M(P,B),P}function Ye(B){var K=this.keys().then(function(P){return P.length});return M(K,B),K}function tt(B,K){var P=this;B=I(B);var se=this.ready().then(function(){P._dbInfo.mStore.rm(B)});return M(se,K),se}function pe(B,K,P){var se=this;B=I(B);var _e=this.ready().then(function(){K===void 0&&(K=null);var Ne=K;return new Promise(function(de,He){se._dbInfo.serializer.serialize(K,function($e,ct){if(ct)He(ct);else try{se._dbInfo.mStore.set(B,$e),de(Ne)}catch(ft){He(ft)}})})});return M(_e,P),_e}var Me=!0;a._support=Me,a._driver=i,a._initStorage=ie,a.clear=be,a.dropInstance=me,a.getItem=xe,a.iterate=Re,a.key=Ve,a.keys=Ue,a.length=Ye,a.removeItem=tt,a.setItem=pe,Object.defineProperty(a,"__esModule",{value:!0})})}),vp=ES(WM()),Dx=ES(ZM()),QM={display:"block",visibility:"hidden",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",opacity:"0",zIndex:"-1"};function JM(e){for(let[n,a]of Object.entries(QM))e.style[n]=a}function eO(e){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(a=>a.src.includes(e))}var tO=class extends FM{constructor(){super(...arguments),this.activeElement=null,this.relayerSrc=If(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href}init(){this.test="hello",this.iframe=new Promise(e=>{let n=()=>{if(eO(encodeURIComponent(this.parameters)))Xj().log();else{let a=document.createElement("iframe");a.classList.add("magic-iframe"),a.dataset.magicIframeLabel=If(this.endpoint).host,a.title="Secure Modal",a.src=this.relayerSrc,a.allow="clipboard-read; clipboard-write",JM(a),document.body.appendChild(a),e(a)}};["loaded","interactive","complete"].includes(document.readyState)?n():window.addEventListener("load",n,!1)}),this.iframe.then(e=>{e instanceof HTMLIFrameElement&&e.addEventListener("load",()=>is(this,null,function*(){this.heartbeatDebounce()}))}),window.addEventListener("message",e=>{var n;if(e.origin===this.endpoint&&e.data.msgType&&(e.data.msgType.includes(yo.MAGIC_PONG)&&(this.lastPongTime=Date.now()),e.data&&this.messageHandlers.size)){e.data.response=(n=e.data.response)!=null?n:{},this.stopHeartBeat();for(let a of this.messageHandlers.values())a(e)}}),window.addEventListener("beforeunload",()=>{this.stopHeartBeat()})}showOverlay(){return is(this,null,function*(){let e=yield this.iframe;e.style.visibility="visible",e.style.zIndex="2147483647",e.style.opacity="1",this.activeElement=document.activeElement,e.focus()})}hideOverlay(){return is(this,null,function*(){var e;let n=yield this.iframe;n.style.visibility="hidden",n.style.zIndex="-1",n.style.opacity="0",(e=this.activeElement)!=null&&e.focus&&this.activeElement.focus(),this.activeElement=null})}_post(e){return is(this,null,function*(){let n=yield this.iframe;if(n&&n.contentWindow)n.contentWindow.postMessage(e,this.endpoint);else throw aS()})}checkRelayerExistsInDOM(){return is(this,null,function*(){let e=yield this.iframe;return!e||!e.contentWindow?!1:!![].slice.call(document.querySelectorAll(".magic-iframe")).find(a=>a.src.includes(encodeURIComponent(this.parameters)))})}reloadRelayer(){return is(this,null,function*(){let e=yield this.iframe;if(this.stopHeartBeat(),!e){this.init(),console.warn("Magic SDK: Modal lost, re-initiating");return}if(!e.contentWindow){document.body.appendChild(e),console.warn("Magic SDK: Modal did not append in the iframe, re-initiating");return}e&&(e.src=this.relayerSrc)})}},nO=$j(bS,{platform:"web",sdkName:"magic-sdk",version:"29.0.5",defaultEndpoint:"https://auth.magic.link/",ViewController:tO,configureStorage:()=>is(void 0,null,function*(){let e=vp.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield e.defineDriver(Dx),yield e.setDriver([vp.default.INDEXEDDB,vp.default.LO
vendor: 17,210 bytes, line 64
64CALSTORAGE,Dx._driver]),e})});const hl=new nO("pk_live_2E6FE22B270D79E4"),zf={async loginWithMagicLink(e){try{return await hl.auth.loginWithMagicLink({email:e,redirectURI:new URL("/verify",window.location.origin).href}),{success:!0}}catch(n){return{success:!1,error:n instanceof Error?n.message:"Authentication failed"}}},async verifyMagicLink(){try{await new Promise(n=>setTimeout(n,500));try{await hl.auth.loginWithCredential()}catch(n){console.log("Initial verification attempt:",n)}if(await this.isLoggedIn()){const n=await this.getUserMetadata();return n!=null&&n.email&&localStorage.setItem("userEmail",n.email),localStorage.setItem("isAuthenticated","true"),{success:!0}}try{if(await hl.auth.loginWithCredential(),await this.isLoggedIn()){const a=await this.getUserMetadata();return a!=null&&a.email&&localStorage.setItem("userEmail",a.email),localStorage.setItem("isAuthenticated","true"),{success:!0}}}catch(n){console.log("Retry verification attempt:",n)}return{success:!1,error:"Magic link verification failed"}}catch(e){return{success:!1,error:e instanceof Error?e.message:"Verification failed"}}},async logout(){try{await hl.user.logout(),localStorage.removeItem("isAuthenticated"),localStorage.removeItem("hasMasterPassword"),localStorage.removeItem("masterPasswordVerified"),localStorage.removeItem("userEmail")}catch(e){console.error("Error during logout:",e)}},async isLoggedIn(){try{return await hl.user.isLoggedIn()}catch{return!1}},async getUserMetadata(){try{return await hl.user.getInfo()}catch(e){return console.error("Error fetching user metadata:",e),null}}};function kx(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function rO(...e){return n=>{let a=!1;const i=e.map(s=>{const c=kx(s,n);return!a&&typeof c=="function"&&(a=!0),c});if(a)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():kx(e[s],null)}}}}var AS=S.forwardRef((e,n)=>{const{children:a,...i}=e,s=S.Children.toArray(a),c=s.find(iO);if(c){const u=c.props.children,f=s.map(p=>p===c?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:p);return m.jsx(Xp,{...i,ref:n,children:S.isValidElement(u)?S.cloneElement(u,void 0,f):null})}return m.jsx(Xp,{...i,ref:n,children:a})});AS.displayName="Slot";var Xp=S.forwardRef((e,n)=>{const{children:a,...i}=e;if(S.isValidElement(a)){const s=sO(a),c=oO(i,a.props);return a.type!==S.Fragment&&(c.ref=n?rO(n,s):s),S.cloneElement(a,c)}return S.Children.count(a)>1?S.Children.only(null):null});Xp.displayName="SlotClone";var aO=({children:e})=>m.jsx(m.Fragment,{children:e});function iO(e){return S.isValidElement(e)&&e.type===aO}function oO(e,n){const a={...n};for(const i in n){const s=e[i],c=n[i];/^on[A-Z]/.test(i)?s&&c?a[i]=(...f)=>{c(...f),s(...f)}:s&&(a[i]=s):i==="style"?a[i]={...s,...c}:i==="className"&&(a[i]=[s,c].filter(Boolean).join(" "))}return{...e,...a}}function sO(e){var i,s;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,a=n&&"isReactWarning"in n&&n.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function _S(e){var n,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(a=_S(e[n]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function NS(){for(var e,n,a=0,i="",s=arguments.length;a<s;a++)(e=arguments[a])&&(n=_S(e))&&(i&&(i+=" "),i+=n);return i}const Px=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Lx=NS,lO=(e,n)=>a=>{var i;if((n==null?void 0:n.variants)==null)return Lx(e,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:s,defaultVariants:c}=n,u=Object.keys(s).map(g=>{const b=a==null?void 0:a[g],x=c==null?void 0:c[g];if(b===null)return null;const E=Px(b)||Px(x);return s[g][E]}),f=a&&Object.entries(a).reduce((g,b)=>{let[x,E]=b;return E===void 0||(g[x]=E),g},{}),p=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((g,b)=>{let{class:x,className:E,...N}=b;return Object.entries(N).every(T=>{let[R,M]=T;return Array.isArray(M)?M.includes({...c,...f}[R]):{...c,...f}[R]===M})?[...g,x,E]:g},[]);return Lx(e,u,p,a==null?void 0:a.class,a==null?void 0:a.className)},Zg="-",cO=e=>{const n=dO(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const f=u.split(Zg);return f[0]===""&&f.length!==1&&f.shift(),CS(f,n)||uO(u)},getConflictingClassGroupIds:(u,f)=>{const p=a[u]||[];return f&&i[u]?[...p,...i[u]]:p}}},CS=(e,n)=>{var u;if(e.length===0)return n.classGroupId;const a=e[0],i=n.nextPart.get(a),s=i?CS(e.slice(1),i):void 0;if(s)return s;if(n.validators.length===0)return;const c=e.join(Zg);return(u=n.validators.find(({validator:f})=>f(c)))==null?void 0:u.classGroupId},Ix=/^\[(.+)\]$/,uO=e=>{if(Ix.test(e)){const n=Ix.exec(e)[1],a=n==null?void 0:n.substring(0,n.indexOf(":"));if(a)return"arbitrary.."+a}},dO=e=>{const{theme:n,classGroups:a}=e,i={nextPart:new Map,validators:[]};for(const s in a)Wp(a[s],i,s,n);return i},Wp=(e,n,a,i)=>{e.forEach(s=>{if(typeof s=="string"){const c=s===""?n:zx(n,s);c.classGroupId=a;return}if(typeof s=="function"){if(fO(s)){Wp(s(i),n,a,i);return}n.validators.push({validator:s,classGroupId:a});return}Object.entries(s).forEach(([c,u])=>{Wp(u,zx(n,c),a,i)})})},zx=(e,n)=>{let a=e;return n.split(Zg).forEach(i=>{a.nextPart.has(i)||a.nextPart.set(i,{nextPart:new Map,validators:[]}),a=a.nextPart.get(i)}),a},fO=e=>e.isThemeGetter,hO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=new Map,i=new Map;const s=(c,u)=>{a.set(c,u),n++,n>e&&(n=0,i=a,a=new Map)};return{get(c){let u=a.get(c);if(u!==void 0)return u;if((u=i.get(c))!==void 0)return s(c,u),u},set(c,u){a.has(c)?a.set(c,u):s(c,u)}}},Zp="!",Qp=":",mO=Qp.length,pO=e=>{const{prefix:n,experimentalParseClassName:a}=e;let i=s=>{const c=[];let u=0,f=0,p=0,g;for(let T=0;T<s.length;T++){let R=s[T];if(u===0&&f===0){if(R===Qp){c.push(s.slice(p,T)),p=T+mO;continue}if(R==="/"){g=T;continue}}R==="["?u++:R==="]"?u--:R==="("?f++:R===")"&&f--}const b=c.length===0?s:s.substring(p),x=gO(b),E=x!==b,N=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:E,baseClassName:x,maybePostfixModifierPosition:N}};if(n){const s=n+Qp,c=i;i=u=>u.startsWith(s)?c(u.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(a){const s=i;i=c=>a({className:c,parseClassName:s})}return i},gO=e=>e.endsWith(Zp)?e.substring(0,e.length-1):e.startsWith(Zp)?e.substring(1):e,yO=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let c=[];return i.forEach(u=>{u[0]==="["||n[u]?(s.push(...c.sort(),u),c=[]):c.push(u)}),s.push(...c.sort()),s}},vO=e=>({cache:hO(e.cacheSize),parseClassName:pO(e),sortModifiers:yO(e),...cO(e)}),bO=/\s+/,xO=(e,n)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=n,u=[],f=e.trim().split(bO);let p="";for(let g=f.length-1;g>=0;g-=1){const b=f[g],{isExternal:x,modifiers:E,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:R}=a(b);if(x){p=b+(p.length>0?" "+p:p);continue}let M=!!R,D=i(M?T.substring(0,R):T);if(!D){if(!M){p=b+(p.length>0?" "+p:p);continue}if(D=i(T),!D){p=b+(p.length>0?" "+p:p);continue}M=!1}const $=c(E).join(":"),I=N?$+Zp:$,ee=I+D;if(u.includes(ee))continue;u.push(ee);const z=s(D,M);for(let q=0;q<z.length;++q){const ie=z[q];u.push(I+ie)}p=b+(p.length>0?" "+p:p)}return p};function wO(){let e=0,n,a,i="";for(;e<arguments.length;)(n=arguments[e++])&&(a=TS(n))&&(i&&(i+=" "),i+=a);return i}const TS=e=>{if(typeof e=="string")return e;let n,a="";for(let i=0;i<e.length;i++)e[i]&&(n=TS(e[i]))&&(a&&(a+=" "),a+=n);return a};function SO(e,...n){let a,i,s,c=u;function u(p){const g=n.reduce((b,x)=>x(b),e());return a=vO(g),i=a.cache.get,s=a.cache.set,c=f,f(p)}function f(p){const g=i(p);if(g)return g;const b=xO(p,a);return s(p,b),b}return function(){return c(wO.apply(null,arguments))}}const Ln=e=>{const n=a=>a[e]||[];return n.isThemeGetter=!0,n},RS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,EO=/^\d+\/\d+$/,AO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_O=/\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$/,NO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,CO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,TO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ml=e=>EO.test(e),Nt=e=>!!e&&!Number.isNaN(Number(e)),ts=e=>!!e&&Number.isInteger(Number(e)),Vx=e=>e.endsWith("%")&&Nt(e.slice(0,-1)),ho=e=>AO.test(e),RO=()=>!0,jO=e=>_O.test(e)&&!NO.test(e),Qg=()=>!1,MO=e=>CO.test(e),OO=e=>TO.test(e),DO=e=>!Qe(e)&&!Je(e),kO=e=>Fl(e,DS,Qg),Qe=e=>RS.test(e),ns=e=>Fl(e,kS,jO),bp=e=>Fl(e,HO,Nt),PO=e=>Fl(e,MS,Qg),LO=e=>Fl(e,OS,OO),IO=e=>Fl(e,Qg,MO),Je=e=>jS.test(e),rf=e=>ql(e,kS),zO=e=>ql(e,GO),VO=e=>ql(e,MS),UO=e=>ql(e,DS),BO=e=>ql(e,OS),$O=e=>ql(e,KO,!0),Fl=(e,n,a)=>{const i=RS.exec(e);return i?i[1]?n(i[1]):a(i[2]):!1},ql=(e,n,a=!1)=>{const i=jS.exec(e);return i?i[1]?n(i[1]):a:!1},MS=e=>e==="position",FO=new Set(["image","url"]),OS=e=>FO.has(e),qO=new Set(["length","size","percentage"]),DS=e=>qO.has(e),kS=e=>e==="length",HO=e=>e==="number",GO=e=>e==="family-name",KO=e=>e==="shadow",YO=()=>{const e=Ln("color"),n=Ln("font"),a=Ln("text"),i=Ln("font-weight"),s=Ln("tracking"),c=Ln("leading"),u=Ln("breakpoint"),f=Ln("container"),p=Ln("spacing"),g=Ln("radius"),b=Ln("shadow"),x=Ln("inset-shadow"),E=Ln("drop-shadow"),N=Ln("blur"),T=Ln("perspective"),R=Ln("aspect"),M=Ln("ease"),D=Ln("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],q=()=>[Je,Qe,p],ie=()=>[ml,"full","auto",...q()],be=()=>[ts,"none","subgrid",Je,Qe],me=()=>["auto",{span:["full",ts,Je,Qe]},Je,Qe],xe=()=>[ts,"auto",Je,Qe],Re=()=>["auto","min","max","fr",Je,Qe],Ve=()=>["start","end","center","between","around","evenly","stretch","baseline"],Ue=()=>["start","end","center","stretch"],Ye=()=>["auto",...q()],tt=()=>[ml,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],pe=()=>[e,Je,Qe],Me=()=>[Vx,ns],B=()=>["","none","full",g,Je,Qe],K=()=>["",Nt,rf,ns],P=()=>["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"],_e=()=>["","none",N,Je,Qe],Ne=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Je,Qe],de=()=>["none",Nt,Je,Qe],He=()=>["none",Nt,Je,Qe],$e=()=>[Nt,Je,Qe],ct=()=>[ml,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ho],breakpoint:[ho],color:[RO],container:[ho],"drop-shadow":[ho],ease:["in","out","in-out"],font:[DO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ho],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ho],shadow:[ho],spacing:["px",Nt],text:[ho],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ml,Qe,Je,R]}],container:["container"],columns:[{columns:[Nt,Qe,Je,f]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...I(),Qe,Je]}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{start:ie()}],end:[{end:ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[ts,"auto",Je,Qe]}],basis:[{basis:[ml,"full","auto",f,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Nt,ml,"auto","initial","none",Qe]}],grow:[{grow:["",Nt,Je,Qe]}],shrink:[{shrink:["",Nt,Je,Qe]}],order:[{order:[ts,"first","last","none",Je,Qe]}],"grid-cols":[{"grid-cols":be()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":be()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Re()}],"auto-rows":[{"auto-rows":Re()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...Ve(),"normal"]}],"justify-items":[{"justify-items":[...Ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ue()]}],"align-content":[{content:["normal",...Ve()]}],"align-items":[{items:[...Ue(),"baseline"]}],"align-self":[{self:["auto",...Ue(),"baseline"]}],"place-content":[{"place-content":Ve()}],"place-items":[{"place-items":[...Ue(),"baseline"]}],"place-self":[{"place-self":["auto",...Ue()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:Ye()}],mx:[{mx:Ye()}],my:[{my:Ye()}],ms:[{ms:Ye()}],me:[{me:Ye()}],mt:[{mt:Ye()}],mr:[{mr:Ye()}],mb:[{mb:Ye()}],ml:[{ml:Ye()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:tt()}],w:[{w:[f,"screen",...tt()]}],"min-w":[{"min-w":[f,"screen","none",...tt()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...tt()]}],h:[{h:["screen",...tt()]}],"min-h":[{"min-h":["screen","none",...tt()]}],"max-h":[{"max-h":["screen",...tt()]}],"font-size":[{text:["base",a,rf,ns]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Je,bp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vx,Qe]}],"font-family":[{font:[zO,Qe,n]}],"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:[s,Je,Qe]}],"line-clamp":[{"line-clamp":[Nt,"none",Je,bp]}],leading:[{leading:[c,...q()]}],"list-image":[{"list-image":["none",Je,Qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Je,Qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:pe()}],"text-color":[{text:pe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:[Nt,"from-font","auto",Je,ns]}],"text-decoration-color":[{decoration:pe()}],"underline-offset":[{"underline-offset":[Nt,"auto",Je,Qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Je,Qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Je,Qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...I(),VO,PO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",UO,kO]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ts,Je,Qe],radial:["",Je,Qe],conic:[ts,Je,Qe]},BO,LO]}],"bg-color":[{bg:pe()}],"gradient-from-pos":[{from:Me()}
vendor: 4,543 bytes, line 64
64],"gradient-via-pos":[{via:Me()}],"gradient-to-pos":[{to:Me()}],"gradient-from":[{from:pe()}],"gradient-via":[{via:pe()}],"gradient-to":[{to:pe()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...P(),"hidden","none"]}],"divide-style":[{divide:[...P(),"hidden","none"]}],"border-color":[{border:pe()}],"border-color-x":[{"border-x":pe()}],"border-color-y":[{"border-y":pe()}],"border-color-s":[{"border-s":pe()}],"border-color-e":[{"border-e":pe()}],"border-color-t":[{"border-t":pe()}],"border-color-r":[{"border-r":pe()}],"border-color-b":[{"border-b":pe()}],"border-color-l":[{"border-l":pe()}],"divide-color":[{divide:pe()}],"outline-style":[{outline:[...P(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Nt,Je,Qe]}],"outline-w":[{outline:["",Nt,rf,ns]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",b,$O,IO]}],"shadow-color":[{shadow:pe()}],"inset-shadow":[{"inset-shadow":["none",Je,Qe,x]}],"inset-shadow-color":[{"inset-shadow":pe()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:pe()}],"ring-offset-w":[{"ring-offset":[Nt,ns]}],"ring-offset-color":[{"ring-offset":pe()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":pe()}],opacity:[{opacity:[Nt,Je,Qe]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none",Je,Qe]}],blur:[{blur:_e()}],brightness:[{brightness:[Nt,Je,Qe]}],contrast:[{contrast:[Nt,Je,Qe]}],"drop-shadow":[{"drop-shadow":["","none",E,Je,Qe]}],grayscale:[{grayscale:["",Nt,Je,Qe]}],"hue-rotate":[{"hue-rotate":[Nt,Je,Qe]}],invert:[{invert:["",Nt,Je,Qe]}],saturate:[{saturate:[Nt,Je,Qe]}],sepia:[{sepia:["",Nt,Je,Qe]}],"backdrop-filter":[{"backdrop-filter":["","none",Je,Qe]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[Nt,Je,Qe]}],"backdrop-contrast":[{"backdrop-contrast":[Nt,Je,Qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Nt,Je,Qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Nt,Je,Qe]}],"backdrop-invert":[{"backdrop-invert":["",Nt,Je,Qe]}],"backdrop-opacity":[{"backdrop-opacity":[Nt,Je,Qe]}],"backdrop-saturate":[{"backdrop-saturate":[Nt,Je,Qe]}],"backdrop-sepia":[{"backdrop-sepia":["",Nt,Je,Qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Je,Qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Nt,"initial",Je,Qe]}],ease:[{ease:["linear","initial",M,Je,Qe]}],delay:[{delay:[Nt,Je,Qe]}],animate:[{animate:["none",D,Je,Qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,Je,Qe]}],"perspective-origin":[{"perspective-origin":Ne()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:He()}],"scale-x":[{"scale-x":He()}],"scale-y":[{"scale-y":He()}],"scale-z":[{"scale-z":He()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[Je,Qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Ne()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ct()}],"translate-x":[{"translate-x":ct()}],"translate-y":[{"translate-y":ct()}],"translate-z":[{"translate-z":ct()}],"translate-none":["translate-none"],accent:[{accent:pe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:pe()}
vendor: 6,903 bytes, line 64
64],"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",Je,Qe]}],"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":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",Je,Qe]}],fill:[{fill:["none",...pe()]}],"stroke-w":[{stroke:[Nt,rf,ns,bp]}],stroke:[{stroke:["none",...pe()]}],"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-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-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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},XO=SO(YO);function pt(...e){return XO(NS(e))}const Jg=lO("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"relative bg-gradient-teal text-white shadow-sm hover:shadow-teal-glow after:absolute after:inset-0 after:bg-white/10 after:opacity-0 hover:after:opacity-100 after:transition-opacity overflow-hidden",destructive:"relative bg-gradient-to-r from-destructive to-destructive/90 text-destructive-foreground shadow-sm hover:shadow after:absolute after:inset-0 after:bg-white/10 after:opacity-0 hover:after:opacity-100 after:transition-opacity",outline:"border border-input bg-background hover:bg-accent/10 hover:text-accent-foreground transition-colors duration-300",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 hover:shadow-teal-glow transition-colors duration-300",ghost:"hover:bg-accent/10 hover:text-accent-foreground transition-colors duration-300",link:"text-primary underline-offset-4 hover:underline transition-all duration-300",elegant:"bg-white dark:bg-navy text-navy dark:text-white border border-gray-100 dark:border-navy-700 shadow-sm hover:shadow hover:bg-gray-50 dark:hover:bg-navy-800 transition-all duration-300",premium:"relative bg-gradient-to-r from-teal to-gold text-white shadow-md hover:shadow-gold-glow after:absolute after:inset-0 after:bg-white/20 after:opacity-0 hover:after:opacity-100 after:transition-opacity overflow-hidden hover:scale-105 transition-transform duration-300",glass:"bg-white/20 dark:bg-navy/20 backdrop-blur-md border border-navy-300/70 dark:border-navy-300/70 text-navy dark:text-white shadow-sm hover:bg-white/30 dark:hover:bg-navy/30 hover:shadow-teal-glow transition-all duration-300",neumorphic:"bg-white dark:bg-navy text-navy dark:text-white shadow-neumorphic-light dark:shadow-neumorphic-dark hover:bg-teal/90 transition-all duration-300",navy:"bg-navy text-white hover:bg-navy-800 transition-colors duration-300 shadow-sm hover:shadow",teal:"bg-teal text-navy hover:bg-teal-600 transition-colors duration-300 shadow-sm hover:shadow-teal-glow",gold:"bg-gold text-navy hover:bg-gold-600 transition-colors duration-300 shadow-sm hover:shadow-gold-glow",magic:"relative bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 text-white shadow-sm hover:shadow-
64purple-glow after:absolute after:inset-0 after:bg-white/10 after:opacity-0 hover:after:opacity-100 after:transition-opacity overflow-hidden"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3 text-xs",lg:"h-11 rounded-xl px-8 text-base",xl:"h-12 rounded-xl px-10 text-base",icon:"h-10 w-10","icon-sm":"h-8 w-8 rounded-lg [&_svg]:size-3.5"}},defaultVariants:{variant:"default",size:"default"}}),wt=S.forwardRef(({className:e,variant:n,size:a,asChild:i=!1,...s},c)=>{const u=i?AS:"button";return m.jsx(u,{className:pt(Jg({variant:n,size:a,className:e})),ref:c,...s})});wt.displayName="Button";/**
65 * @license lucide-react v0.485.0 - ISC
66 *
67 * This source code is licensed under the ISC license.
68 * See the LICENSE file in the root directory of this source tree.
69 */const WO=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZO=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,i)=>i?i.toUpperCase():a.toLowerCase()),Ux=e=>{const n=ZO(e);return n.charAt(0).toUpperCase()+n.slice(1)},PS=(...e)=>e.filter((n,a,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===a).join(" ").trim();/**
70 * @license lucide-react v0.485.0 - ISC
71 *
72 * This source code is licensed under the ISC license.
73 * See the LICENSE file in the root directory of this source tree.
74 */var QO={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"};/**
75 * @license lucide-react v0.485.0 - ISC
76 *
77 * This source code is licensed under the ISC license.
78 * See the LICENSE file in the root directory of this source tree.
79 */const JO=S.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:u,...f},p)=>S.createElement("svg",{ref:p,...QO,width:n,height:n,stroke:e,strokeWidth:i?Number(a)*24/Number(n):a,className:PS("lucide",s),...f},[...u.map(([g,b])=>S.createElement(g,b)),...Array.isArray(c)?c:[c]]));/**
80 * @license lucide-react v0.485.0 - ISC
81 *
82 * This source code is licensed under the ISC license.
83 * See the LICENSE file in the root directory of this source tree.
84 */const bt=(e,n)=>{const a=S.forwardRef(({className:i,...s},c)=>S.createElement(JO,{ref:c,iconNode:n,className:PS(`lucide-${WO(Ux(e))}`,`lucide-${e}`,i),...s}));return a.displayName=Ux(e),a};/**
85 * @license lucide-react v0.485.0 - ISC
86 *
87 * This source code is licensed under the ISC license.
88 * See the LICENSE file in the root directory of this source tree.
89 */const eD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],bf=bt("arrow-right",eD);/**
90 * @license lucide-react v0.485.0 - ISC
91 *
92 * This source code is licensed under the ISC license.
93 * See the LICENSE file in the root directory of this source tree.
94 */const tD=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],nD=bt("at-sign",tD);/**
95 * @license lucide-react v0.485.0 - ISC
96 *
97 * This source code is licensed under the ISC license.
98 * See the LICENSE file in the root directory of this source tree.
99 */const rD=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ey=bt("check",rD);/**
100 * @license lucide-react v0.485.0 - ISC
101 *
102 * This source code is licensed under the ISC license.
103 * See the LICENSE file in the root directory of this source tree.
104 */const aD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],iD=bt("chevron-down",aD);/**
105 * @license lucide-react v0.485.0 - ISC
106 *
107 * This source code is licensed under the ISC license.
108 * See the LICENSE file in the root directory of this source tree.
109 */const oD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],sD=bt("chevron-right",oD);/**
110 * @license lucide-react v0.485.0 - ISC
111 *
112 * This source code is licensed under the ISC license.
113 * See the LICENSE file in the root directory of this source tree.
114 */const lD=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cD=bt("chevron-up",lD);/**
115 * @license lucide-react v0.485.0 - ISC
116 *
117 * This source code is licensed under the ISC license.
118 * See the LICENSE file in the root directory of this source tree.
119 */const uD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],af=bt("circle-check",uD);/**
120 * @license lucide-react v0.485.0 - ISC
121 *
122 * This source code is licensed under the ISC license.
123 * See the LICENSE file in the root directory of this source tree.
124 */const dD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fD=bt("circle",dD);/**
125 * @license lucide-react v0.485.0 - ISC
126 *
127 * This source code is licensed under the ISC license.
128 * See the LICENSE file in the root directory of this source tree.
129 */const hD=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Vf=bt("copy",hD);/**
130 * @license lucide-react v0.485.0 - ISC
131 *
132 * This source code is licensed under the ISC license.
133 * See the LICENSE file in the root directory of this source tree.
134 */const mD=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],of=bt("credit-card",mD);/**
135 * @license lucide-react v0.485.0 - ISC
136 *
137 * This source code is licensed under the ISC license.
138 * See the LICENSE file in the root directory of this source tree.
139 */const pD=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Uf=bt("eye-off",pD);/**
140 * @license lucide-react v0.485.0 - ISC
141 *
142 * This source code is licensed under the ISC license.
143 * See the LICENSE file in the root directory of this source tree.
144 */const gD=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],yD=bt("external-link",gD);/**
145 * @license lucide-react v0.485.0 - ISC
146 *
147 * This source code is licensed under the ISC license.
148 * See the LICENSE file in the root directory of this source tree.
149 */const vD=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ol=bt("eye",vD);/**
150 * @license lucide-react v0.485.0 - ISC
151 *
152 * This source code is licensed under the ISC license.
153 * See the LICENSE file in the root directory of this source tree.
154 */const bD=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],xD=bt("fingerprint",bD);/**
155 * @license lucide-react v0.485.0 - ISC
156 *
157 * This source code is licensed under the ISC license.
158 * See the LICENSE file in the root directory of this source tree.
159 */const wD=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],SD=bt("funnel",wD);/**
160 * @license lucide-react v0.485.0 - ISC
161 *
162 * This source code is licensed under the ISC license.
163 * See the LICENSE file in the root directory of this source tree.
164 */const ED=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],AD=bt("grid-3x3",ED);/**
165 * @license lucide-react v0.485.0 - ISC
166 *
167 * This source code is licensed under the ISC license.
168 * See the LICENSE file in the root directory of this source tree.
169 */const _D=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],ND=bt("heart",_D);/**
170 * @license lucide-react v0.485.0 - ISC
171 *
172 * This source code is licensed under the ISC license.
173 * See the LICENSE file in the root directory of this source tree.
174 */const CD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],TD=bt("info",CD);/**
175 * @license lucide-react v0.485.0 - ISC
176 *
177 * This source code is licensed under the ISC license.
178 * See the LICENSE file in the root directory of this source tree.
179 */const RD=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Dl=bt("key-round",RD);/**
180 * @license lucide-react v0.485.0 - ISC
181 *
182 * This source code is licensed under the ISC license.
183 * See the LICENSE file in the root directory of this source tree.
184 */const jD=[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]],MD=bt("key-square",jD);/**
185 * @license lucide-react v0.485.0 - ISC
186 *
187 * This source code is licensed under the ISC license.
188 * See the LICENSE file in the root directory of this source tree.
189 */const OD=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Bx=bt("key",OD);/**
190 * @license lucide-react v0.485.0 - ISC
191 *
192 * This source code is licensed under the ISC license.
193 * See the LICENSE file in the root directory of this source tree.
194 */const DD=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],$x=bt("list-checks",DD);/**
195 * @license lucide-react v0.485.0 - ISC
196 *
197 * This source code is licensed under the ISC license.
198 * See the LICENSE file in the root directory of this source tree.
199 */const kD=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],PD=bt("list-filter",kD);/**
200 * @license lucide-react v0.485.0 - ISC
201 *
202 * This source code is licensed under the ISC license.
203 * See the LICENSE file in the root directory of this source tree.
204 */const LD=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Fx=bt("lock-keyhole",LD);/**
205 * @license lucide-react v0.485.0 - ISC
206 *
207 * This source code is licensed under the ISC license.
208 * See the LICENSE file in the root directory of this source tree.
209 */const ID=[["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"}]],yu=bt("lock",ID);/**
210 * @license lucide-react v0.485.0 - ISC
211 *
212 * This source code is licensed under the ISC license.
213 * See the LICENSE file in the root directory of this source tree.
214 */const zD=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],VD=bt("log-in",zD);/**
215 * @license lucide-react v0.485.0 - ISC
216 *
217 * This source code is licensed under the ISC license.
218 * See the LICENSE file in the root directory of this source tree.
219 */const UD=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],qx=bt("mail",UD);/**
220 * @license lucide-react v0.485.0 - ISC
221 *
222 * This source code is licensed under the ISC license.
223 * See the LICENSE file in the root directory of this source tree.
224 */const BD=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],$D=bt("menu",BD);/**
225 * @license lucide-react v0.485.0 - ISC
226 *
227 * This source code is licensed under the ISC license.
228 * See the LICENSE file in the root directory of this source tree.
229 */const FD=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],qD=bt("moon",FD);/**
230 * @license lucide-react v0.485.0 - ISC
231 *
232 * This source code is licensed under the ISC license.
233 * See the LICENSE file in the root directory of this source tree.
234 */const HD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],xp=bt("plus",HD);/**
235 * @license lucide-react v0.485.0 - ISC
236 *
237 * This source code is licensed under the ISC license.
238 * See the LICENSE file in the root directory of this source tree.
239 */const GD=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Hx=bt("refresh-cw",GD);/**
240 * @license lucide-react v0.485.0 - ISC
241 *
242 * This source code is licensed under the ISC license.
243 * See the LICENSE file in the root directory of this source tree.
244 */const KD=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],YD=bt("save",KD);/**
245 * @license lucide-react v0.485.0 - ISC
246 *
247 * This source code is licensed under the ISC license.
248 * See the LICENSE file in the root directory of this source tree.
249 */const XD=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],WD=bt("search",XD);/**
250 * @license lucide-react v0.485.0 - ISC
251 *
252 * This source code is licensed under the ISC license.
253 * See the LICENSE file in the root directory of this source tree.
254 */const ZD=[["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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jp=bt("shield-check",ZD);/**
255 * @license lucide-react v0.485.0 - ISC
256 *
257 * This source code is licensed under the ISC license.
258 * See the LICENSE file in the root directory of this source tree.
259 */const QD=[["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",key:"oel41y"}]],kl=bt("shield",QD);/**
260 * @license lucide-react v0.485.0 - ISC
261 *
262 * This source code is licensed under the ISC license.
263 * See the LICENSE file in the root directory of this source tree.
264 */const JD=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Gx=bt("sparkles",JD);/**
265 * @license lucide-react v0.485.0 - ISC
266 *
267 * This source code is licensed under the ISC license.
268 * See the LICENSE file in the root directory of this source tree.
269 */const ek=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],tk=bt("square-pen",ek);/**
270 * @license lucide-react v0.485.0 - ISC
271 *
272 * This source code is licensed under the ISC license.
273 * See the LICENSE file in the root directory of this source tree.
274 */const nk=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],rk=bt("sun",nk);/**
275 * @license lucide-react v0.485.0 - ISC
276 *
277 * This source code is licensed under the ISC license.
278 * See the LICENSE file in the root directory of this source tree.
279 */const ak=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],ik=bt("trash",ak);/**
280 * @license lucide-react v0.485.0 - ISC
281 *
282 * This source code is licensed under the ISC license.
283 * See the LICENSE file in the root directory of this source tree.
284 */const ok=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cl=bt("x",ok);/**
285 * @license lucide-react v0.485.0 - ISC
286 *
287 * This source code is licensed under the ISC license.
288 * See the LICENSE file in the root directory of this source tree.
289 */const sk=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],lk=bt("zap",sk),ds=()=>{const[e,n]=S.useState(!1),[a,i]=S.useState(!1),s=ps(),{theme:c,setTheme:u}=yR(),f=localStorage.getItem("isAuthenticated")==="true",p=()=>{localStorage.removeItem("isAuthenticated"),localStorage.removeItem("hasMasterPassword"),localStorage.removeItem("userEmail"),s("/")};S.useEffect(()=>{const b=()=>{window.scrollY>10?n(!0):n(!1)};return window.addEventListener("scroll",b),()=>window.removeEventListener("scroll",b)},[]);const g=()=>{u(c==="dark"?"light":"dark")};return m.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 px-12 ${e?"bg-white/80 dark:bg-navy/80 backdrop-blur-md shadow-xs":"bg-transparent"}`,children:[m.jsx("div",{className:"container mx-auto px-4",children:m.jsxs("div",{className:"flex items-center justify-between h-16 md:h-20",children:[m.jsxs(Va,{to:"/",className:"flex items-center space-x-2",children:[m.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-teal flex items-center justify-center text-white font-bold",children:m.jsx(Dl,{width:18})}),m.jsxs("span",{className:"font-bold text-lg text-navy dark:text-white",children:[m.jsx("span",{className:"text-navy dark:text-white",children:"vault"}),m.jsx("span",{className:"bg-clip-text text-transparent bg-gradient-teal",children:"Key"})]})]}),m.jsxs("nav",{className:"hidden md:flex items-center space-x-10",children:[m.jsx(Va,{to:"/",className:"text-gray-600 hover:text-teal dark:text-gray-300 dark:hover:text-teal transition-colors",children:"Home"}),m.jsx(Va,{to:"/dashboard",className:"text-gray-600 hover:text-teal dark:text-gray-300 dark:hover:text-teal transition-colors",children:"Dashboard"}),m.jsx(Va,{to:"/generator",className:"text-gray-600 hover:text-teal dark:text-gray-300 dark:hover:text-teal transition-colors",children:"Generate"})]}),m.jsxs("div",{className:"hidden md:flex items-center space-x-4",children:[m.jsx("button",{onClick:g,className:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-navy-800 transition-colors","aria-label":"Toggle Theme",children:c==="dark"?m.jsx(rk,{size:20}):m.jsx(qD,{size:20})}),f?m.jsx(wt,{onClick:p,variant:"glass",children:"Sign Out"}):m.jsx(wt,{onClick:()=>s("/auth"),children:"Sign In"})]}),m.jsx("button",{className:"md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-navy-800 transition-colors",onClick:()=>i(!a),"aria-label":"Toggle menu",children:a?m.jsx(Cl,{size:24}):m.jsx($D,{size:24})})]})}),a&&m.jsx("div",{className:"md:hidden bg-white dark:bg-navy shadow-lg",children:m.jsxs("div",{className:"container mx-auto px-4 py-4 space-y-4",children:[m.jsx(Va,{to:"/",className:"block py-2 text-gray-600 hover:text-teal dark:text-gray-300 dark:hover:text-teal transition-colors",onClick:()=>i(!1),children:"Home"}),f&&m.jsx(Va,{to:"/dashboard",className:"block py-2 text-gray-600 hover:text-teal dark:text-gray-300 dark:hover:text-teal transition-colors",onClick:()=>i(!1),children:"Dashboard"}),m.jsx(Va,{to:"/generator",className:"block py-2 text-gray-600 hover:text-teal dark:text-gray-300 dark:hover:text-teal transition-colors",onClick:()=>i(!1),children:"Generator"}),m.jsx("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100 dark:border-navy-700",children:m.jsxs("div",{className:"space-x-2",children:[f?m.jsx(wt,{onClick:p,variant:"outline",size:"sm",children:"Sign Out"}):m.jsx(wt,{onClick:()=>{s("/auth"),i(!1)},variant:"outline",size:"sm",children:"Sign In"}),m.jsx(wt,{onClick:()=>{s(f?"/dashboard":"/auth"),i(!1)},size:"sm",children:f?"Dashboard":"Get Started"})]})})]})})]})},ss=S.forwardRef(({className:e,variant:n="default",...a},i)=>{const s={default:"bg-card pt-6 text-card-foreground shadow-sm border rounded-xl",glass:"bg-white/70 pt-6 dark:bg-navy/70 backdrop-blur-xl border border-white/40 dark:border-navy-300/20 text-card-foreground shadow-lg rounded-xl",premium:"relative pt-6 bg-card text-card-foreground shadow-premium border rounded-xl overflow-hidden before:content-[''] before:absolute before:inset-0 before:bg-gradient-teal dark:before:bg-gradient-teal before:opacity-10 hover:before:opacity-20 before:transition-opacity",neumorphic:"bg-white pt-6 dark:bg-navy text-card-foreground shadow-neumorphic-light dark:shadow-neumorphic-dark rounded-xl border-transparent",gradient:"relative pt-6 p-[1px] rounded-xl bg-gradient-to-br from-teal to-gold [&>div]:bg-card [&>div]:text-card-foreground [&>div]:rounded-xl [&>div]:h-full [&>div]:w-full",hover:"relative pt-6 bg-card text-card-foreground shadow-sm border rounded-xl overflow-hidden transform transition-all duration-300 hover:-translate-y-1 hover:shadow-teal-glow",parallax:"relative pt-6 bg-card text-card-foreground shadow-sm border rounded-xl overflow-hidden transform perspective-1000"};return m.jsx("div",{ref:i,className:pt(s[n],e),...a})});
289ss.displayName="Card";const cu=S.forwardRef(({className:e,...n},a)=>m.jsx("div",{ref:a,className:pt("flex flex-col space-y-1.5 px-6",e),...n}));cu.displayName="CardHeader";const bl=S.forwardRef(({className:e,...n},a)=>m.jsx("div",{ref:a,className:pt("font-semibold leading-none tracking-tight",e),...n}));bl.displayName="CardTitle";const LS=S.forwardRef(({className:e,...n},a)=>m.jsx("div",{ref:a,className:pt("text-sm text-muted-foreground",e),...n}));LS.displayName="CardDescription";const xl=S.forwardRef(({className:e,...n},a)=>m.jsx("div",{ref:a,className:pt("p-6 pt-0",e),...n}));xl.displayName="CardContent";const ck=S.forwardRef(({className:e,...n},a)=>m.jsx("div",{ref:a,className:pt("flex items-center p-6 pt-0",e),...n}));ck.displayName="CardFooter";const IS=S.forwardRef(({className:e,depth:n=0,...a},i)=>{const s={0:"parallax-layer-0",1:"parallax-layer-1",2:"parallax-layer-2"};return m.jsx("div",{ref:i,className:pt("parallax-layer",s[n],e),...a})});IS.displayName="CardParallax";const gn=S.forwardRef(({className:e,type:n,variant:a="default",...i},s)=>{const c={default:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",minimal:"flex h-10 w-full bg-transparent border-0 border-b-2 border-input px-0 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",floating:"peer h-14 px-4 pt-5 pb-2 w-full rounded-xl border-2 border-input bg-background focus:border-primary/50 focus:ring-2 focus:ring-primary/20 transition-all duration-300 file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-transparent focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",underlined:"flex h-10 w-full rounded-none border-0 border-b-2 border-input bg-transparent px-0 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",premium:"flex h-12 w-full rounded-xl border-2 border-input bg-background px-4 py-2 text-base shadow-sm focus:shadow ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary/50 focus-visible:ring-2 focus-visible:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-all duration-300"};return a==="floating"?m.jsx("input",{type:n,className:pt(c[a],e),ref:s,placeholder:" ",...i}):m.jsx("input",{type:n,className:pt(c[a],e),ref:s,...i})});gn.displayName="Input";const uk=S.forwardRef(({className:e,label:n,id:a,...i},s)=>m.jsxs("div",{className:"relative",children:[m.jsx(gn,{id:a,variant:"floating",className:e,ref:s,...i}),m.jsx("label",{htmlFor:a,className:"absolute left-4 top-4 text-gray-400 text-base transition-all duration-300 pointer-events-none peer-focus:text-xs peer-focus:top-2 peer-focus:text-primary peer-valid:text-xs peer-valid:top-2",children:n})]}));uk.displayName="FloatingLabelInput";const zS=S.createContext({});function VS(e){const n=S.useRef(null);return n.current===null&&(n.current=e()),n.current}const ty=typeof window<"u",US=ty?S.useLayoutEffect:S.useEffect,ny=S.createContext(null),BS=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function dk(e=!0){const n=S.useContext(ny);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:i,register:s}=n,c=S.useId();S.useEffect(()=>{if(e)return s(c)},[e]);const u=S.useCallback(()=>e&&i&&i(c),[c,i,e]);return!a&&i?[!1,u]:[!0]}function ry(e,n){e.indexOf(n)===-1&&e.push(n)}function ay(e,n){const a=e.indexOf(n);a>-1&&e.splice(a,1)}let $S=()=>{};const fk={useManualTiming:!1};function iy(e){let n;return()=>(n===void 0&&(n=e()),n)}const ta=e=>e,vu=(e,n,a)=>{const i=n-e;return i===0?1:(a-e)/i};class oy{constructor(){this.subscriptions=[]}add(n){return ry(this.subscriptions,n),()=>ay(this.subscriptions,n)}notify(n,a,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](n,a,i);else for(let c=0;c<s;c++){const u=this.subscriptions[c];u&&u(n,a,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $a=e=>e*1e3,Fa=e=>e/1e3;function FS(e,n){return n?e*(1e3/n):0}const hk=iy(()=>window.ScrollTimeline!==void 0);class mk{constructor(n){this.stop=()=>
vendor: 71,916 bytes, line 289
289this.runAll("stop"),this.animations=n.filter(Boolean)}get finished(){return Promise.all(this.animations.map(n=>n.finished))}getAll(n){return this.animations[0][n]}setAll(n,a){for(let i=0;i<this.animations.length;i++)this.animations[i][n]=a}attachTimeline(n,a){const i=this.animations.map(s=>{if(hk()&&s.attachTimeline)return s.attachTimeline(n);if(typeof a=="function")return a(s)});return()=>{i.forEach((s,c)=>{s&&s(),this.animations[c].stop()})}}get time(){return this.getAll("time")}set time(n){this.setAll("time",n)}get speed(){return this.getAll("speed")}set speed(n){this.setAll("speed",n)}get startTime(){return this.getAll("startTime")}get duration(){let n=0;for(let a=0;a<this.animations.length;a++)n=Math.max(n,this.animations[a].duration);return n}runAll(n){this.animations.forEach(a=>a[n]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class pk extends mk{then(n,a){return this.finished.finally(n).then(()=>{})}}const sy=e=>Array.isArray(e)&&typeof e[0]=="number",gk={};function yk(e,n){const a=iy(e);return()=>gk[n]??a()}const bu=yk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qS=(e,n,a=10)=>{let i="";const s=Math.max(Math.round(n/a),2);for(let c=0;c<s;c++)i+=e(c/(s-1))+", ";return`linear(${i.substring(0,i.length-2)})`},iu=([e,n,a,i])=>`cubic-bezier(${e}, ${n}, ${a}, ${i})`,eg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iu([0,.65,.55,1]),circOut:iu([.55,0,1,.45]),backIn:iu([.31,.01,.66,-.59]),backOut:iu([.33,1.53,.69,.99])};function HS(e,n){if(e)return typeof e=="function"&&bu()?qS(e,n):sy(e)?iu(e):Array.isArray(e)?e.map(a=>HS(a,n)||eg.easeOut):eg[e]}function vk(e,n,a,{delay:i=0,duration:s=300,repeat:c=0,repeatType:u="loop",ease:f="easeInOut",times:p}={},g=void 0){const b={[n]:a};p&&(b.offset=p);const x=HS(f,s);return Array.isArray(x)&&(b.easing=x),e.animate(b,{delay:i,duration:s,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal",pseudoElement:g})}function ly(e){return typeof e=="function"&&"applyToOptions"in e}function cy(e,n){return(e==null?void 0:e[n])??(e==null?void 0:e.default)??e}const Bf=2e4;function uy(e){let n=0;const a=50;let i=e.next(n);for(;!i.done&&n<Bf;)n+=a,i=e.next(n);return n>=Bf?1/0:n}function bk(e,n=100,a){const i=a({...e,keyframes:[0,n]}),s=Math.min(uy(i),Bf);return{type:"keyframes",ease:c=>i.next(s*c).value/n,duration:Fa(s)}}function GS(e){return!!(typeof e=="function"&&bu()||!e||typeof e=="string"&&(e in eg||bu())||sy(e)||Array.isArray(e)&&e.every(GS))}function Kx(e,n){e.timeline=n,e.onfinish=null}const sf=["read","resolveKeyframes","update","preRender","render","postRender"];function xk(e,n){let a=new Set,i=new Set,s=!1,c=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(b){u.has(b)&&(g.schedule(b),e()),b(f)}const g={schedule:(b,x=!1,E=!1)=>{const T=E&&s?a:i;return x&&u.add(b),T.has(b)||T.add(b),b},cancel:b=>{i.delete(b),u.delete(b)},process:b=>{if(f=b,s){c=!0;return}s=!0,[a,i]=[i,a],a.forEach(p),a.clear(),s=!1,c&&(c=!1,g.process(b))}};return g}const wk=40;function KS(e,n){let a=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,u=sf.reduce((D,$)=>(D[$]=xk(c),D),{}),{read:f,resolveKeyframes:p,update:g,preRender:b,render:x,postRender:E}=u,N=()=>{const D=performance.now();a=!1,s.delta=i?1e3/60:Math.max(Math.min(D-s.timestamp,wk),1),s.timestamp=D,s.isProcessing=!0,f.process(s),p.process(s),g.process(s),b.process(s),x.process(s),E.process(s),s.isProcessing=!1,a&&n&&(i=!1,e(N))},T=()=>{a=!0,i=!0,s.isProcessing||e(N)};return{schedule:sf.reduce((D,$)=>{const I=u[$];return D[$]=(ee,z=!1,q=!1)=>(a||T(),I.schedule(ee,z,q)),D},{}),cancel:D=>{for(let $=0;$<sf.length;$++)u[sf[$]].cancel(D)},state:s,steps:u}}const{schedule:Kt,cancel:bo,state:qn,steps:wp}=KS(typeof requestAnimationFrame<"u"?requestAnimationFrame:ta,!0),{schedule:dy}=KS(queueMicrotask,!1);let xf;function Sk(){xf=void 0}const qa={now:()=>(xf===void 0&&qa.set(qn.isProcessing||fk.useManualTiming?qn.timestamp:performance.now()),xf),set:e=>{xf=e,queueMicrotask(Sk)}},pa={x:!1,y:!1};function YS(){return pa.x||pa.y}function Ek(e){return e==="x"||e==="y"?pa[e]?null:(pa[e]=!0,()=>{pa[e]=!1}):pa.x||pa.y?null:(pa.x=pa.y=!0,()=>{pa.x=pa.y=!1})}function Ak(e,n,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function XS(e,n){const a=Ak(e),i=new AbortController,s={passive:!0,...n,signal:i.signal};return[a,s,()=>i.abort()]}function Yx(e){return!(e.pointerType==="touch"||YS())}function _k(e,n,a={}){const[i,s,c]=XS(e,a),u=f=>{if(!Yx(f))return;const{target:p}=f,g=n(p,f);if(typeof g!="function"||!p)return;const b=x=>{Yx(x)&&(g(x),p.removeEventListener("pointerleave",b))};p.addEventListener("pointerleave",b,s)};return i.forEach(f=>{f.addEventListener("pointerenter",u,s)}),c}const WS=(e,n)=>n?e===n?!0:WS(e,n.parentElement):!1,fy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Nk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ck(e){return Nk.has(e.tagName)||e.tabIndex!==-1}const ou=new WeakSet;function Xx(e){return n=>{n.key==="Enter"&&e(n)}}function Sp(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const Tk=(e,n)=>{const a=e.currentTarget;if(!a)return;const i=Xx(()=>{if(ou.has(a))return;Sp(a,"down");const s=Xx(()=>{Sp(a,"up")}),c=()=>Sp(a,"cancel");a.addEventListener("keyup",s,n),a.addEventListener("blur",c,n)});a.addEventListener("keydown",i,n),a.addEventListener("blur",()=>a.removeEventListener("keydown",i),n)};function Wx(e){return fy(e)&&!YS()}function Rk(e,n,a={}){const[i,s,c]=XS(e,a),u=f=>{const p=f.currentTarget;if(!Wx(f)||ou.has(p))return;ou.add(p);const g=n(p,f),b=(N,T)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",E),!(!Wx(N)||!ou.has(p))&&(ou.delete(p),typeof g=="function"&&g(N,{success:T}))},x=N=>{b(N,p===window||p===document||a.useGlobalTarget||WS(p,N.target))},E=N=>{b(N,!1)};window.addEventListener("pointerup",x,s),window.addEventListener("pointercancel",E,s)};return i.forEach(f=>{(a.useGlobalTarget?window:f).addEventListener("pointerdown",u,s),f instanceof HTMLElement&&(f.addEventListener("focus",g=>Tk(g,s)),!Ck(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}const Zx=30,jk=e=>!isNaN(parseFloat(e));class Mk{constructor(n,a={}){this.version="12.6.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const c=qa.now();this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(n),this.owner=a.owner}setCurrent(n){this.current=n,this.updatedAt=qa.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=jk(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,a){this.events[n]||(this.events[n]=new oy);const i=this.events[n].add(a);return n==="change"?()=>{i(),Kt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,a){this.passiveEffect=n,this.stopPassiveEffect=a}set(n,a=!0){!a||!this.passiveEffect?this.updateAndNotify(n,a):this.passiveEffect(n,this.updateAndNotify)}setWithVelocity(n,a,i){this.set(a),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-i}jump(n,a=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=qa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Zx)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,Zx);return FS(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(n){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=n(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xu(e,n){return new Mk(e,n)}const ZS=S.createContext({strict:!1}),Qx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pl={};for(const e in Qx)Pl[e]={isEnabled:n=>Qx[e].some(a=>!!n[a])};function Ok(e){for(const n in e)Pl[n]={...Pl[n],...e[n]}}const Dk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $f(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Dk.has(e)}let QS=e=>!$f(e);function kk(e){e&&(QS=n=>n.startsWith("on")?!$f(n):e(n))}try{kk(require("@emotion/is-prop-valid").default)}catch{}function Pk(e,n,a){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||(QS(s)||a===!0&&$f(s)||!n&&!$f(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}function Lk(e){if(typeof Proxy>"u")return e;const n=new Map,a=(...i)=>e(...i);return new Proxy(a,{get:(i,s)=>s==="create"?e:(n.has(s)||n.set(s,e(s)),n.get(s))})}const lh=S.createContext({});function ch(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function wu(e){return typeof e=="string"||Array.isArray(e)}const hy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],my=["initial",...hy];function uh(e){return ch(e.animate)||my.some(n=>wu(e[n]))}function JS(e){return!!(uh(e)||e.variants)}function Ik(e,n){if(uh(e)){const{initial:a,animate:i}=e;return{initial:a===!1||wu(a)?a:void 0,animate:wu(i)?i:void 0}}return e.inherit!==!1?n:{}}function zk(e){const{initial:n,animate:a}=Ik(e,S.useContext(lh));return S.useMemo(()=>({initial:n,animate:a}),[Jx(n),Jx(a)])}function Jx(e){return Array.isArray(e)?e.join(" "):e}const Vk=Symbol.for("motionComponentSymbol");function wl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Uk(e,n,a){return S.useCallback(i=>{i&&e.onMount&&e.onMount(i),n&&(i?n.mount(i):n.unmount()),a&&(typeof a=="function"?a(i):wl(a)&&(a.current=i))},[n])}const py=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Bk="framerAppearId",eE="data-"+py(Bk),tE=S.createContext({});function $k(e,n,a,i,s){var R,M;const{visualElement:c}=S.useContext(lh),u=S.useContext(ZS),f=S.useContext(ny),p=S.useContext(BS).reducedMotion,g=S.useRef(null);i=i||u.renderer,!g.current&&i&&(g.current=i(e,{visualState:n,parent:c,props:a,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:p}));const b=g.current,x=S.useContext(tE);b&&!b.projection&&s&&(b.type==="html"||b.type==="svg")&&Fk(g.current,a,s,x);const E=S.useRef(!1);S.useInsertionEffect(()=>{b&&E.current&&b.update(a,f)});const N=a[eE],T=S.useRef(!!N&&!((R=window.MotionHandoffIsComplete)!=null&&R.call(window,N))&&((M=window.MotionHasOptimisedAnimation)==null?void 0:M.call(window,N)));return US(()=>{b&&(E.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),dy.render(b.render),T.current&&b.animationState&&b.animationState.animateChanges())}),S.useEffect(()=>{b&&(!T.current&&b.animationState&&b.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var D;(D=window.MotionHandoffMarkAsComplete)==null||D.call(window,N)}),T.current=!1))}),b}function Fk(e,n,a,i){const{layoutId:s,layout:c,drag:u,dragConstraints:f,layoutScroll:p,layoutRoot:g}=n;e.projection=new a(e.latestValues,n["data-framer-portal-id"]?void 0:nE(e.parent)),e.projection.setOptions({layoutId:s,layout:c,alwaysMeasureLayout:!!u||f&&wl(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:g})}function nE(e){if(e)return e.options.allowProjection!==!1?e.projection:nE(e.parent)}function qk({preloadedFeatures:e,createVisualElement:n,useRender:a,useVisualState:i,Component:s}){e&&Ok(e);function c(f,p){let g;const b={...S.useContext(BS),...f,layoutId:Hk(f)},{isStatic:x}=b,E=zk(f),N=i(f,x);if(!x&&ty){Gk();const T=Kk(b);g=T.MeasureLayout,E.visualElement=$k(s,N,b,n,T.ProjectionNode)}return m.jsxs(lh.Provider,{value:E,children:[g&&E.visualElement?m.jsx(g,{visualElement:E.visualElement,...b}):null,a(s,f,Uk(N,E.visualElement,p),N,x,E.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${s.displayName??s.name??""})`}`;const u=S.forwardRef(c);return u[Vk]=s,u}function Hk({layoutId:e}){const n=S.useContext(zS).id;return n&&e!==void 0?n+"-"+e:e}function Gk(e,n){S.useContext(ZS).strict}function Kk(e){const{drag:n,layout:a}=Pl;if(!n&&!a)return{};const i={...n,...a};return{MeasureLayout:n!=null&&n.isEnabled(e)||a!=null&&a.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const rE=e=>n=>typeof n=="string"&&n.startsWith(e),gy=rE("--"),Yk=rE("var(--"),yy=e=>Yk(e)?Xk.test(e.split("/*")[0].trim()):!1,Xk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Su={};function Wk(e){for(const n in e)Su[n]=e[n],gy(n)&&(Su[n].isCSSVariable=!0)}const Hl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(Hl);function aE(e,{layout:n,layoutId:a}){return vs.has(e)||e.startsWith("origin")||(n||a!==void 0)&&(!!Su[e]||e==="opacity")}const nr=e=>!!(e&&e.getVelocity),iE=(e,n)=>n&&typeof e=="number"?n.transform(e):e,Ti=(e,n,a)=>a>n?n:a<e?e:a,Gl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eu={...Gl,transform:e=>Ti(0,1,e)},lf={...Gl,default:1},Lu=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),po=Lu("deg"),Ha=Lu("%"),ot=Lu("px"),Zk=Lu("vh"),Qk=Lu("vw"),ew={...Ha,parse:e=>Ha.parse(e)/100,transform:e=>Ha.transform(e*100)},Jk={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,radius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,top:ot,right:ot,bottom:ot,left:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,backgroundPositionX:ot,backgroundPositionY:ot},eP={rotate:po,rotateX:po,rotateY:po,rotateZ:po,scale:lf,scaleX:lf,scaleY:lf,scaleZ:lf,skew:po,skewX:po,skewY:po,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:Eu,originX:ew,originY:ew,originZ:ot},tw={...Gl,transform:Math.round},vy={...Jk,...eP,zIndex:tw,size:ot,fillOpacity:Eu,strokeOpacity:Eu,numOctaves:tw},tP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nP=Hl.length;function rP(e,n,a){let i="",s=!0;for(let c=0;c<nP;c++){const u=Hl[c],f=e[u];if(f===void 0)continue;let p=!0;if(typeof f=="number"?p=f===(u.startsWith("scale")?1:0):p=parseFloat(f)===0,!p||a){const g=iE(f,vy[u]);if(!p){s=!1;const b=tP[u]||u;i+=`${b}(${g}) `}a&&(n[u]=g)}}return i=i.trim(),a?i=a(n,s?"":i):s&&(i="none"),i}function by(e,n,a){const{style:i,vars:s,transformOrigin:c}=e;let u=!1,f=!1;for(const p in n){const g=n[p];if(vs.has(p)){u=!0;continue}else if(gy(p)){s[p]=g;continue}else{const b=iE(g,vy[p]);p.startsWith("origin")?(f=!0,c[p]=b):i[p]=b}}if(n.transform||(u||a?i.transform=rP(n,e.transform,a):i.transform&&(i.transform="none")),f){const{originX:p="50%",originY:g="50%",originZ:b=0}=c;i.transformOrigin=`${p} ${g} ${b}`}}const xy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function oE(e,n,a){for(const i in n)!nr(n[i])&&!aE(i,a)&&(e[i]=n[i])}function aP({transformTemplate:e},n){return S.useMemo(()=>{const a=xy();return by(a,n,e),Object.assign({},a.vars,a.style)},[n])}function iP(e,n){const a=e.style||{},i={};return oE(i,a,e),Object.assign(i,aP(e,n)),i}function oP(e,n){const a={},i=iP(e,n);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a}const sP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wy(e){return typeof e!="string"||e.includes("-")?!1:!!(sP.indexOf(e)>-1||/[A-Z]/u.test(e))}const lP={offset:"stroke-dashoffset",array:"stroke-dasharray"},cP={offset:"strokeDashoffset",array:"strokeDasharray"};function uP(e,n,a=1,i=0,s=!0){e.pathLength=1;const c=s?lP:cP;e[c.offset]=ot.transform(-i);const u=ot.transform(n),f=ot.transform(a);e[c.array]=`${u} ${f}`}function nw(e,n,a){return typeof e=="string"?e:ot.transform(n+a*e)}function dP(e,n,a){const i=nw(n,e.x,e.width),s=nw(a,e.y,e.height);return`${i} ${s}`}function Sy(e,{attrX:n,attrY:a,attrScale:i,originX:s,originY:c,pathLength:u,pathSpacing:f=1,pathOffset:p=0,...g},b,x){if(by(e,g,x),b){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:E,style:N,dimensions:T}=e;E.transform&&(T&&(N.transform=E.transform),delete E.transform),T&&(s!==void 0||c!==void 0||N.transform)&&(N.transformOrigin=dP(T,s!==void 0?s:.5,c!==void 0?c:.5)),n!==void 0&&(E.x=n),a!==void 0&&(E.y=a),i!==void 0&&(E.scale=i),u!==void 0&&uP(E,u,f,p,!1)}const sE=()=>({...xy(),attrs:{}}),Ey=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fP(e,n,a,i){const s=S.useMemo(()=>{const c=sE();return Sy(c,n,Ey(i),e.transformTemplate),{...c.attrs,style:{...c.style}}},[n]);if(e.style){const c={};oE(c,e.style,e),s.style={...c,...s.style}}return s}function hP(e=!1){return(a,i,s,{latestValues:c},u)=>{const p=(wy(a)?fP:oP)(i,c,u,a),g=Pk(i,typeof a=="string",e),b=a!==S.Fragment?{...g,...p,ref:s}:{},{children:x}=i,E=S.useMemo(()=>nr(x)?x.get():x,[x]);return S.createElement(a,{...b,children:E})}}function rw(e){const n=[{},{}];return e==null||e.values.forEach((a,i)=>{n[0][i]=a.get(),n[1][i]=a.getVelocity()}),n}function Ay(e,n,a,i){if(typeof n=="function"){const[s,c]=rw(i);n=n(a!==void 0?a:e.custom,s,c)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[s,c]=rw(i);n=n(a!==void 0?a:e.custom,s,c)}return n}const tg=e=>Array.isArray(e),mP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),pP=e=>tg(e)?e[e.length-1]||0:e;function wf(e){const n=nr(e)?e.get():e;return mP(n)?n.toValue():n}function gP({scrapeMotionValuesFromProps:e,createRenderState:n,onUpdate:a},i,s,c){const u={latestValues:yP(i,s,c,e),renderState:n()};return a&&(u.onMount=f=>a({props:i,current:f,...u}),u.onUpdate=f=>a(f)),u}const lE=e=>(n,a)=>{const i=S.useContext(lh),s=S.useContext(ny),c=()=>gP(e,n,i,s);return a?c():VS(c)};function yP(e,n,a,i){const s={},c=i(e,{});for(const E in c)s[E]=wf(c[E]);let{initial:u,animate:f}=e;const p=uh(e),g=JS(e);n&&g&&!p&&e.inherit!==!1&&(u===void 0&&(u=n.initial),f===void 0&&(f=n.animate));let b=a?a.initial===!1:!1;b=b||u===!1;const x=b?f:u;if(x&&typeof x!="boolean"&&!ch(x)){const E=Array.isArray(x)?x:[x];for(let N=0;N<E.length;N++){const T=Ay(e,E[N]);if(T){const{transitionEnd:R,transition:M,...D}=T;for(const $ in D){let I=D[$];if(Array.isArray(I)){const ee=b?I.length-1:0;I=I[ee]}I!==null&&(s[$]=I)}for(const $ in R)s[$]=R[$]}}}return s}function _y(e,n,a){var c;const{style:i}=e,s={};for(const u in i)(nr(i[u])||n.style&&nr(n.style[u])||aE(u,e)||((c=a==null?void 0:a.getValue(u))==null?void 0:c.liveStyle)!==void 0)&&(s[u]=i[u]);return s}const vP={useVisualState:lE({scrapeMotionValuesFromProps:_y,createRenderState:xy})};function cE(e,n){try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}function uE(e,{style:n,vars:a},i,s){Object.assign(e.style,n,s&&s.getProjectionStyles(i));for(const c in a)e.style.setProperty(c,a[c])}const dE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function fE(e,n,a,i){uE(e,n,void 0,i);for(const s in n.attrs)e.setAttribute(dE.has(s)?s:py(s),n.attrs[s])}function hE(e,n,a){const i=_y(e,n,a);for(const s in e)if(nr(e[s])||nr(n[s])){const c=Hl.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[c]=e[s]}return i}const aw=["x","y","width","height","cx","cy","r"],bP={useVisualState:lE({scrapeMotionValuesFromProps:hE,createRenderState:sE,onUpdate:({props:e,prevProps:n,current:a,renderState:i,latestValues:s})=>{if(!a)return;let c=!!e.drag;if(!c){for(const f in s)if(vs.has(f)){c=!0;break}}if(!c)return;let u=!n;if(n)for(let f=0;f<aw.length;f++){const p=aw[f];e[p]!==n[p]&&(u=!0)}u&&Kt.read(()=>{cE(a,i),Kt.render(()=>{Sy(i,s,Ey(a.tagName),e.transformTemplate),fE(a,i)})})}})};function xP(e,n){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const u={...wy(i)?bP:vP,preloadedFeatures:e,useRender:hP(s),createVisualElement:n,Component:i};return qk(u)}}function Au(e,n,a){const i=e.getProps();return Ay(i,n,a!==void 0?a:i.custom,e)}const mE=new Set(["width","height","top","left","right","bottom",...Hl]);function wP(e,n,a){e.hasValue(n)?e.getValue(n).set(a):e.addValue(n,xu(a))}function Ny(e,n){const a=Au(e,n);let{transitionEnd:i={},transition:s={},...c}=a||{};c={...c,...i};for(const u in c){const f=pP(c[u]);wP(e,u,f)}}function SP(e){return!!(nr(e)&&e.add)}function ng(e,n){const a=e.getValue("willChange");if(SP(a))return a.add(n)}function pE(e){return e.props[eE]}const gE=(e,n,a)=>(((1-3*a+3*n)*e+(3*a-6*n))*e+3*n)*e,EP=1e-7,AP=12;function _P(e,n,a,i,s){let c,u,f=0;do u=n+(a-n)/2,c=gE(u,i,s)-e,c>0?a=u:n=u;while(Math.abs(c)>EP&&++f<AP);return u}function Iu(e,n,a,i){if(e===n&&a===i)return ta;const s=c=>_P(c,0,1,e,a);return c=>c===0||c===1?c:gE(s(c),n,i)}const yE=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,vE=e=>n=>1-e(1-n),bE=Iu(.33,1.53,.69,.99),Cy=vE(bE),xE=yE(Cy),wE=e=>(e*=2)<1?.5*Cy(e):.5*(2-Math.pow(2,-10*(e-1))),Ty=e=>1-Math.sin(Math.acos(e)),SE=vE(Ty),EE=yE(Ty),AE=e=>/^0[^.\s]+$/u.test(e);function NP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||AE(e):!0}const uu=e=>Math.round(e*1e5)/1e5,Ry=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function CP(e){return e==null}const TP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jy=(e,n)=>a=>!!(typeof a=="string"&&TP.test(a)&&a.startsWith(e)||n&&!CP(a)&&Object.prototype.hasOwnProperty.call(a,n)),_E=(e,n,a)=>i=>{if(typeof i!="string")return i;const[s,c,u,f]=i.match(Ry);return{[e]:parseFloat(s),[n]:parseFloat(c),[a]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},RP=e=>Ti(0,255,e),Ep={...Gl,transform:e=>Math.round(RP(e))},ls={test:jy("rgb","red"),parse:_E("red","green","blue"),transform:({red:e,green:n,blue:a,alpha:i=1})=>"rgba("+Ep.transform(e)+", "+Ep.transform(n)+", "+Ep.transform(a)+", "+uu(Eu.transform(i))+")"};function jP(e){let n="",a="",i="",s="";return e.length>5?(n=e.substring(1,3),a=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(n=e.substring(1,2),a=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),n+=n,a+=a,i+=i,s+=s),{red:parseInt(n,16),green:parseInt(a,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const rg={test:jy("#"),parse:jP,transform:ls.transform},Sl={test:jy("hsl","hue"),parse:_E("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:a,alpha:i=1})=>"hsla("+Math.round(e)+", "+Ha.transform(uu(n))+", "+Ha.transform(uu(a))+", "+uu(Eu.transform(i))+")"},Jn={test:e=>ls.test(e)||rg.test(e)||Sl.test(e),parse:e=>ls.test(e)?ls.parse(e):Sl.test(e)?Sl.parse(e):rg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ls.transform(e):Sl.transform(e)},MP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function OP(e){var n,a;return isNaN(e)&&typeof e=="string"&&(((n=e.match(Ry))==null?void 0:n.length)||0)+(((a=e.match(MP))==null?void 0:a.length)||0)>0}const NE="number",CE="color",DP="var",kP="var(",iw="${}",PP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _u(e){const n=e.toString(),a=[],i={color:[],number:[],var:[]},s=[];let c=0;const f=n.replace(PP,p=>(Jn.test(p)?(i.color.push(c),s.push(CE),a.push(Jn.parse(p))):p.startsWith(kP)?(i.var.push(c),s.push(DP),a.push(p)):(i.number.push(c),s.push(NE),a.push(parseFloat(p))),++c,iw)).split(iw);return{values:a,split:f,indexes:i,types:s}}function TE(e){return _u(e).values}function RE(e){const{split:n,types:a}=_u(e),i=n.length;return s=>{let c="";for(let u=0;u<i;u++)if(c+=n[u],s[u]!==void 0){const f=a[u];f===NE?c+=uu(s[u]):f===CE?c+=Jn.transform(s[u]):c+=s[u]}return c}}const LP=e=>typeof e=="number"?0:e;function IP(e){const n=TE(e);return RE(e)(n.map(LP))}const xo={test:OP,parse:TE,createTransformer:RE,getAnimatableNone:IP},zP=new Set(["brightness","contrast","saturate","opacity"]);function VP(e){const[n,a]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[i]=a.match(Ry)||[];if(!i)return e;const s=a.replace(i,"");let c=zP.has(n)?1:0;return i!==a&&(c*=100),n+"("+c+s+")"}const UP=/\b([a-z-]*)\(.*?\)/gu,ag={...xo,getAnimatableNone:e=>{const n=e.match(UP);return n?n.map(VP).join(" "):e}},BP={...vy,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:ag,WebkitFilter:ag},jE=e=>BP[e];function ME(e,n){let a=jE(e);return a!==ag&&(a=xo),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const $P=new Set(["auto","none","0"]);function FP(e,n,a){let i=0,s;for(;i<e.length&&!s;){const c=e[i];typeof c=="string"&&!$P.has(c)&&_u(c).values.length&&(s=e[i]),i++}if(s&&a)for(const c of n)e[c]=ME(a,s)}const cs=e=>e*180/Math.PI,ig=e=>{const n=cs(Math.atan2(e[1],e[0]));return og(n)},qP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ig,rotateZ:ig,skewX:e=>cs(Math.atan(e[1])),skewY:e=>cs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},og=e=>(e=e%360,e<0&&(e+=360),e),ow=ig,sw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),lw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),HP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sw,scaleY:lw,scale:e=>(sw(e)+lw(e))/2,rotateX:e=>og(cs(Math.atan2(e[6],e[5]))),rotateY:e=>og(cs(Math.atan2(-e[2],e[0]))),rotateZ:ow,rotate:ow,skewX:e=>cs(Math.atan(e[4])),skewY:e=>cs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cw(e){return e.includes("scale")?1:0}function sg(e,n){if(!e||e==="none")return cw(n);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(a)i=HP,s=a;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=qP,s=f}if(!s)return cw(n);const c=i[n],u=s[1].split(",").map(KP);return typeof c=="function"?c(u):u[c]}const GP=(e,n)=>{const{transform:a="none"}=getComputedStyle(e);return sg(a,n)};function KP(e){return parseFloat(e.trim())}const uw=e=>e===Gl||e===ot,YP=new Set(["x","y","z"]),XP=Hl.filter(e=>!YP.has(e));function WP(e){const n=[];return XP.forEach(a=>{const i=e.getValue(a);i!==void 0&&(n.push([a,i.get()]),i.set(a.startsWith("scale")?1:0))}),n}const Ll={width:({x:e},{paddingLeft:n="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),height:({y:e},{paddingTop:n="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>sg(n,"x"),y:(e,{transform:n})=>sg(n,"y")};Ll.translateX=Ll.x;Ll.translateY=Ll.y;const us=new Set;let lg=!1,cg=!1;function OE(){if(cg){const e=Array.from(us).filter(i=>i.needsMeasurement),n=new Set(e.map(i=>i.element)),a=new Map;n.forEach(i=>{const s=WP(i);s.length&&(a.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),n.forEach(i=>{i.render();const s=a.get(i);s&&s.forEach(([c,u])=>{var f;(f=i.getValue(c))==null||f.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}cg=!1,lg=!1,us.forEach(e=>e.complete()),us.clear()}function DE(){us.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cg=!0)})}function ZP(){DE(),OE()}class My{constructor(n,a,i,s,c,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...n],this.onComplete=a,this.name=i,this.motionValue=s,this.element=c,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(us.add(this),lg||(lg=!0,Kt.read(DE),Kt.resolveKeyframes(OE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:a,element:i,motionValue:s}=this;for(let c=0;c<n.length;c++)if(n[c]===null)if(c===0){const u=s==null?void 0:s.get(),f=n[n.length-1];if(u!==void 0)n[0]=u;else if(i&&a){const p=i.readValue(a,f);p!=null&&(n[0]=p)}n[0]===void 0&&(n[0]=f),s&&u===void 0&&s.set(n[0])}else n[c]=n[c-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),us.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,us.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const kE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),QP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function JP(e){const n=QP.exec(e);if(!n)return[,];const[,a,i,s]=n;return[`--${a??i}`,s]}function PE(e,n,a=1){const[i,s]=JP(e);if(!i)return;const c=window.getComputedStyle(n).getPropertyValue(i);if(c){const u=c.trim();return kE(u)?parseFloat(u):u}return yy(s)?PE(s,n,a+1):s}const LE=e=>n=>n.test(e),e3={test:e=>e==="auto",parse:e=>e},IE=[Gl,ot,Ha,po,Qk,Zk,e3],dw=e=>IE.find(LE(e));class zE extends My{constructor(n,a,i,s,c){super(n,a,i,s,c,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:a,name:i}=this;if(!a||!a.current)return;super.readKeyframes();for(let p=0;p<n.length;p++){let g=n[p];if(typeof g=="string"&&(g=g.trim(),yy(g))){const b=PE(g,a.current);b!==void 0&&(n[p]=b),p===n.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!mE.has(i)||n.length!==2)return;const[s,c]=n,u=dw(s),f=dw(c);if(u!==f)if(uw(u)&&uw(f))for(let p=0;p<n.length;p++){const g=n[p];typeof g=="string"&&(n[p]=parseFloat(g))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:a}=this,i=[];for(let s=0;s<n.length;s++)NP(n[s])&&i.push(s);i.length&&FP(n,i,a)}measureInitialState(){const{element:n,unresolvedKeyframes:a,name:i}=this;if(!n||!n.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ll[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a[0]=this.measuredOrigin;const s=a[a.length-1];s!==void 0&&n.getValue(i,s).jump(s,!1)}measureEndState(){var f;const{element:n,name:a,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(a);s&&s.jump(this.measuredOrigin,!1);const c=i.length-1,u=i[c];i[c]=Ll[a](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(f=this.removedTransforms)!=null&&f.length&&this.removedTransforms.forEach(([p,g])=>{n.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const fw=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xo.test(e)||e==="0")&&!e.startsWith("url("));function t3(e){const n=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==n)return!0}function n3(e,n,a,i){const s=e[0];if(s===null)return!1;if(n==="display"||n==="visibility")return!0;const c=e[e.length-1],u=fw(s,n),f=fw(c,n);return!u||!f?!1:t3(e)||(a==="spring"||ly(a))&&i}const r3=e=>e!==null;function dh(e,{repeat:n,repeatType:a="loop"},i){const s=e.filter(r3),c=n&&a!=="loop"&&n%2===1?0:s.length-1;return!c||i===void 0?s[c]:i}const a3=40;class VE{constructor({autoplay:n=!0,delay:a=0,type:i="keyframes",repeat:s=0,repeatDelay:c=0,repeatType:u="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qa.now(),this.options={autoplay:n,delay:a,type:i,repeat:s,repeatDelay:c,repeatType:u,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>a3?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ZP(),this._resolved}onKeyframesResolved(n,a){this.resolvedAt=qa.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:c,delay:u,onComplete:f,onUpdate:p,isGenerator:g}=this.options;if(!g&&!n3(n,i,s,c))if(u)this.options.duration=0;else{p&&p(dh(n,this.options,a)),f&&f(),this.resolveFinishedPromise();return}const b=this.initPlayback(n,a);b!==!1&&(this._resolved={keyframes:n,finalKeyframe:a,...b},this.onPostResolved())}onPostResolved(){}then(n,a){return this.currentFinishedPromise.then(n,a)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(n=>{this.resolveFinishedPromise=n})}}const sn=(e,n,a)=>e+(n-e)*a;function Ap(e,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(n-e)*6*a:a<1/2?n:a<2/3?e+(n-e)*(2/3-a)*6:e}function i3({hue:e,saturation:n,lightness:a,alpha:i}){e/=360,n/=100,a/=100;let s=0,c=0,u=0;if(!n)s=c=u=a;else{const f=a<.5?a*(1+n):a+n-a*n,p=2*a-f;s=Ap(p,f,e+1/3),c=Ap(p,f,e),u=Ap(p,f,e-1/3)}return{red:Math.round(s*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}function Ff(e,n){return a=>a>0?n:e}const _p=(e,n,a)=>{const i=e*e,s=a*(n*n-i)+i;return s<0?0:Math.sqrt(s)},o3=[rg,ls,Sl],s3=e=>o3.find(n=>n.test(e));function hw(e){const n=s3(e);if(!n)return!1;let a=n.parse(e);return n===Sl&&(a=i3(a)),a}const mw=(e,n)=>{const a=hw(e),i=hw(n);if(!a||!i)return Ff(e,n);const s={...a};return c=>(s.red=_p(a.red,i.red,c),s.green=_p(a.green,i.green,c),s.blue=_p(a.blue,i.blue,c),s.alpha=sn(a.alpha,i.alpha,c),ls.transform(s))},l3=(e,n)=>a=>n(e(a)),zu=(...e)=>e.reduce(l3),ug=new Set(["none","hidden"]);function c3(e,n){return ug.has(e)?a=>a<=0?e:n:a=>a>=1?n:e}function u3(e,n){return a=>sn(e,n,a)}function Oy(e){return typeof e=="number"?u3:typeof e=="string"?yy(e)?Ff:Jn.test(e)?mw:h3:Array.isArray(e)?UE:typeof e=="object"?Jn.test(e)?mw:d3:Ff}function UE(e,n){const a=[...e],i=a.length,s=e.map((c,u)=>Oy(c)(c,n[u]));return c=>{for(let u=0;u<i;u++)a[u]=s[u](c);return a}}function d3(e,n){const a={...e,...n},i={};for(const s in a)e[s]!==void 0&&n[s]!==void 0&&(i[s]=Oy(e[s])(e[s],n[s]));return s=>{for(const c in i)a[c]=i[c](s);return a}}function f3(e,n){const a=[],i={color:0,var:0,number:0};for(let s=0;s<n.values.length;s++){const c=n.types[s],u=e.indexes[c][i[c]],f=e.values[u]??0;a[s]=f,i[c]++}return a}const h3=(e,n)=>{const a=xo.createTransformer(n),i=_u(e),s=_u(n);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?ug.has(e)&&!s.values.length||ug.has(n)&&!i.values.length?c3(e,n):zu(UE(f3(i,s),s.values),a):Ff(e,n)};function BE(e,n,a){return typeof e=="number"&&typeof n=="number"&&typeof a=="number"?sn(e,n,a):Oy(e)(e,n)}const m3=5;function $E(e,n,a){const i=Math.max(n-m3,0);return FS(a-e(i),n-i)}const fn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},pw=.001;function p3({duration:e=fn.duration,bounce:n=fn.bounce,velocity:a=fn.velocity,mass:i=fn.mass}){let s,c,u=1-n;u=Ti(fn.minDamping,fn.maxDamping,u),e=Ti(fn.minDuration,fn.maxDuration,Fa(e)),u<1?(s=g=>{const b=g*u,x=b*e,E=b-a,N=dg(g,u),T=Math.exp(-x);return pw-E/N*T},c=g=>{const x=g*u*e,E=x*a+a,N=Math.pow(u,2)*Math.pow(g,2)*e,T=Math.exp(-x),R=dg(Math.pow(g,2),u);return(-s(g)+pw>0?-1:1)*((E-N)*T)/R}):(s=g=>{const b=Math.exp(-g*e),x=(g-a)*e+1;return-.001+b*x},c=g=>{const b=Math.exp(-g*e),x=(a-g)*(e*e);return b*x});const f=5/e,p=y3(s,c,f);if(e=$a(e),isNaN(p))return{stiffness:fn.stiffness,damping:fn.damping,duration:e};{const g=Math.pow(p,2)*i;return{stiffness:g,damping:u*2*Math.sqrt(i*g),duration:e}}}const g3=12;function y3(e,n,a){let i=a;for(let s=1;s<g3;s++)i=i-e(i)/n(i);return i}function dg(e,n){return e*Math.sqrt(1-n*n)}const v3=["duration","bounce"],b3=["stiffness","damping","mass"];function gw(e,n){return n.some(a=>e[a]!==void 0)}function x3(e){let n={velocity:fn.velocity,stiffness:fn.stiffness,damping:fn.damping,mass:fn.mass,isResolvedFromDuration:!1,...e};if(!gw(e,b3)&&gw(e,v3))if(e.visualDuration){const a=e.visualDuration,i=2*Math.PI/(a*1.2),s=i*i,c=2*Ti(.05,1,1-(e.bounce||0))*Math.sqrt(s);n={...n,mass:fn.mass,stiffness:s,damping:c}}else{const a=p3(e);n={...n,...a,mass:fn.mass},n.isResolvedFromDuration=!0}return n}function qf(e=fn.visualDuration,n=fn.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:i,restDelta:s}=a;const c=a.keyframes[0],u=a.keyframes[a.keyframes.length-1],f={done:!1,value:c},{stiffness:p,damping:g,mass:b,duration:x,velocity:E,isResolvedFromDuration:N}=x3({...a,velocity:-Fa(a.velocity||0)}),T=E||0,R=g/(2*Math.sqrt(p*b)),M=u-c,D=Fa(Math.sqrt(p/b)),$=Math.abs(M)<5;i||(i=$?fn.restSpeed.granular:fn.restSpeed.default),s||(s=$?fn.restDelta.granular:fn.restDelta.default);let I;if(R<1){const z=dg(D,R);I=q=>{const ie=Math.exp(-R*D*q);return u-ie*((T+R*D*M)/z*Math.sin(z*q)+M*Math.cos(z*q))}}else if(R===1)I=z=>u-Math.exp(-D*z)*(M+(T+D*M)*z);else{const z=D*Math.sqrt(R*R-1);I=q=>{const ie=Math.exp(-R*D*q),be=Math.min(z*q,300);return u-ie*((T+R*D*M)*Math.sinh(be)+z*M*Math.cosh(be))/z}}const ee={calculatedDuration:N&&x||null,next:z=>{const q=I(z);if(N)f.done=z>=x;else{let ie=0;R<1&&(ie=z===0?$a(T):$E(I,z,q));const be=Math.abs(ie)<=i,me=Math.abs(u-q)<=s;f.done=be&&me}return f.value=f.done?u:q,f},toString:()=>{const z=Math.min(uy(ee),Bf),q=qS(ie=>ee.next(z*ie).value,z,30);return z+"ms "+q},toTransition:()=>{}};return ee}qf.applyToOptions=e=>{const n=bk(e,100,qf);return e.ease=bu()?n.ease:"easeOut",e.duration=$a(n.duration),e.type="keyframes",e};function yw({keyframes:e,velocity:n=0,power:a=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:p,restDelta:g=.5,restSpeed:b}){const x=e[0],E={done:!1,value:x},N=be=>f!==void 0&&be<f||p!==void 0&&be>p,T=be=>f===void 0?p:p===void 0||Math.abs(f-be)<Math.abs(p-be)?f:p;let R=a*n;const M=x+R,D=u===void 0?M:u(M);D!==M&&(R=D-x);const $=be=>-R*Math.exp(-be/i),I=be=>D+$(be),ee=be=>{const me=$(be),xe=I(be);E.done=Math.abs(me)<=g,E.value=E.done?D:xe};let z,q;const ie=be=>{N(E.value)&&(z=be,q=qf({keyframes:[E.value,T(E.value)],velocity:$E(I,be,E.value),damping:s,stiffness:c,restDelta:g,restSpeed:b}))};return ie(0),{calculatedDuration:null,next:be=>{let me=!1;return!q&&z===void 0&&(me=!0,ee(be),ie(be)),z!==void 0&&be>=z?q.next(be-z):(!me&&ee(be),E)}}}const w3=Iu(.42,0,1,1),S3=Iu(0,0,.58,1),FE=Iu(.42,0,.58,1),E3=e=>Array.isArray(e)&&typeof e[0]!="number",A3={linear:ta,easeIn:w3,easeInOut:FE,easeOut:S3,circIn:Ty,circInOut:EE,circOut:SE,backIn:Cy,backInOut:xE,backOut:bE,anticipate:wE},vw=e=>{if(sy(e)){$S(e.length===4);const[n,a,i,s]=e;return Iu(n,a,i,s)}else if(typeof e=="string")return A3[e];return e};function _3(e,n,a){const i=[],s=a||BE,c=e.length-1;for(let u=0;u<c;u++){let f=s(e[u],e[u+1]);if(n){const p=Array.isArray(n)?n[u]||ta:n;f=zu(p,f)}i.push(f)}return i}function N3(e,n,{clamp:a=!0,ease:i,mixer:s}={}){const c=e.length;if($S(c===n.length),c===1)return()=>n[0];if(c===2&&n[0]===n[1])return()=>n[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),n=[...n].reverse());const f=_3(n,i,s),p=f.length,g=b=>{if(u&&b<e[0])return n[0];let x=0;if(p>1)for(;x<e.length-2&&!(b<e[x+1]);x++);const E=vu(e[x],e[x+1],b);return f[x](E)};return a?b=>g(Ti(e[0],e[c-1],b)):g}function C3(e,n){const a=e[e.length-1];for(let i=1;i<=n;i++){const s=vu(0,n,i);e.push(sn(a,1,s))}}function T3(e){const n=[0];return C3(n,e.length-1),n}function R3(e,n){return e.map(a=>a*n)}function j3(e,n){return e.map(()=>n||FE).splice(0,e.length-1)}function Hf({duration:e=300,keyframes:n,times:a,ease:i="easeInOut"}){const s=E3(i)?i.map(vw):vw(i),c={done:!1,value:n[0]},u=R3(a&&a.length===n.length?a:T3(n),e),f=N3(u,n,{ease:Array.isArray(s)?s:j3(n,s)});return{calculatedDuration:e,next:p=>(c.value=f(p),c.done=p>=e,c)}}const M3=e=>{const n=({timestamp:a})=>e(a);return{start:()=>Kt.update(n,!0),stop:()=>bo(n),now:()=>qn.isProcessing?qn.timestamp:qa.now()}},O3={decay:yw,inertia:yw,tween:Hf,keyframes:Hf,spring:qf},D3=e=>e/100;class Dy extends VE{constructor(n){super(n),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:p}=this.options;p&&p()};const{name:a,motionValue:i,element:s,keyframes:c}=this.options,u=(s==null?void 0:s.KeyframeResolver)||My,f=(p,g)=>this.onKeyframesResolved(p,g);this.resolver=new u(c,f,a,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(n){const{type:a="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:c,velocity:u=0}=this.options,f=ly(a)?a:O3[a]||Hf;let p,g;f!==Hf&&typeof n[0]!="number"&&(p=zu(D3,BE(n[0],n[1])),n=[0,100]);const b=f({...this.options,keyframes:n});c==="mirror"&&(g=f({...this.options,keyframes:[...n].reverse(),velocity:-u})),b.calculatedDuration===null&&(b.calculatedDuration=uy(b));const{calculatedDuration:x}=b,E=x+s,N=E*(i+1)-s;return{generator:b,mirroredGenerator:g,mapPercentToKeyframes:p,calculatedDuration:x,resolvedDuration:E,totalDuration:N}}onPostResolved(){const{autoplay:n=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!n?this.pause():this.state=this.pendingPlayState}tick(n,a=!1){const{resolved:i}=this;if(!i){const{keyframes:be}=this.options;return{done:!0,value:be[be.length-1]}}const{finalKeyframe:s,generator:c,mirroredGenerator:u,mapPercentToKeyframes:f,keyframes:p,calculatedDuration:g,totalDuration:b,resolvedDuration:x}=i;if(this.startTime===null)return c.next(0);const{delay:E,repeat:N,repeatType:T,repeatDelay:R,onUpdate:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-b/this.speed,this.startTime)),a?this.currentTime=n:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(n-this.startTime)*this.speed;const D=this.currentTime-E*(this.speed>=0?1:-1),$=this.speed>=0?D<0:D>b;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=b);let I=this.currentTime,ee=c;if(N){const be=Math.min(this.currentTime,b)/x;let me=Math.floor(be),xe=be%1;!xe&&be>=1&&(xe=1),xe===1&&me--,me=Math.min(me,N+1),!!(me%2)&&(T==="reverse"?(xe=1-xe,R&&(xe-=R/x)):T==="mirror"&&(ee=u)),I=Ti(0,1,xe)*x}const z=$?{done:!1,value:p[0]}:ee.next(I);f&&(z.value=f(z.value));let{done:q}=z;!$&&g!==null&&(q=this.speed>=0?this.currentTime>=b:this.currentTime<=0);const ie=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&q);return ie&&s!==void 0&&(z.value=dh(p,this.options,s)),M&&M(z.value),ie&&this.finish(),z}get duration(){const{resolved:n}=this;return n?Fa(n.calculatedDuration):0}get time(){return Fa(this.currentTime)}set time(n){n=$a(n),this.currentTime=n,this.holdTime!==null||this.speed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.speed)}get speed(){return this.playbackSpeed}set speed(n){const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=Fa(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:n=M3,onPlay:a,startTime:i}=this.options;this.driver||(this.driver=n(c=>this.tick(c))),a&&a();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:n}=this.options;n&&n()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}get finished(){return this.currentFinishedPromise}}const k3=new Set(["opacity","clipPath","filter","transform"]),P3=iy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gf=10,L3=2e4;function I3(e){return ly(e.type)||e.type==="spring"||!GS(e.ease)}function z3(e,n){const a=new Dy({...n,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const s=[];let c=0;for(;!i.done&&c<L3;)i=a.sample(c),s.push(i.value),c+=Gf;return{times:void 0,keyframes:s,duration:c-Gf,ease:"linear"}}const qE={anticipate:wE,backInOut:xE,circInOut:EE};function V3(e){return e in qE}class bw extends VE{constructor(n){super(n);const{name:a,motionValue:i,element:s,keyframes:c}=this.options;this.resolver=new zE(c,(u,f)=>this.onKeyframesResolved(u,f),a,i,s),this.resolver.scheduleResolve()}initPlayback(n,a){let{duration:i=300,times:s,ease:c,type:u,motionValue:f,name:p,startTime:g}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof c=="string"&&bu()&&V3(c)&&(c=qE[c]),I3(this.options)){const{onComplete:x,onUpdate:E,motionValue:N,element:T,...R}=this.options,M=z3(n,R);n=M.keyframes,n.length===1&&(n[1]=n[0]),i=M.duration,s=M.times,c=M.ease,u="keyframes"}const b=vk(f.owner.current,p,n,{...this.options,duration:i,times:s,ease:c});return b.startTime=g??this.calcStartTime(),this.pendingTimeline?(Kx(b,this.pendingTimeline),this.pendingTimeline=void 0):b.onfinish=()=>{const{onComplete:x}=this.options;f.set(dh(n,this.options,a)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:b,duration:i,times:s,type:u,ease:c,keyframes:n}}get duration(){const{resolved:n}=this;if(!n)return 0;const{duration:a}=n;return Fa(a)}get time(){const{resolved:n}=this;if(!n)return 0;const{animation:a}=n;return Fa(a.currentTime||0)}set time(n){const{resolved:a}=this;if(!a)return;const{animation:i}=a;i.currentTime=$a(n)}get speed(){const{resolved:n}=this;if(!n)return 1;const{animation:a}=n;return a.playbackRate}get finished(){return this.resolved.animation.finished}set speed(n){const{resolved:a}=this;if(!a)return;const{animation:i}=a;i.playbackRate=n}get state(){const{resolved:n}=this;if(!n)return"idle";const{animation:a}=n;return a.playState}get startTime(){const{resolved:n}=this;if(!n)return null;const{animation:a}=n;return a.startTime}attachTimeline(n){if(!this._resolved)this.pendingTimeline=n;else{const{resolved:a}=this;if(!a)return ta;const{animation:i}=a;Kx(i,n)}return ta}play(){if(this.isStopped)return;const{resolved:n}=this;if(!n)return;const{animation:a}=n;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){const{resolved:n}=this;if(!n)return;const{animation:a}=n;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:n}=this;if(!n)return;const{animation:a,keyframes:i,duration:s,type:c,ease:u,times:f}=n;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:b,onComplete:x,element:E,...N}=this.options,T=new Dy({...N,keyframes:i,duration:s,type:c,ease:u,times:f,isGenerator:!0}),R=$a(this.time);g.setWithVelocity(T.sample(R-Gf).value,T.sample(R).value,Gf)}const{onStop:p}=this.options;p&&p(),this.cancel()}complete(){const{resolved:n}=this;n&&n.animation.finish()}cancel(){const{resolved:n}=this;n&&n.animation.cancel()}static supports(n){const{motionValue:a,name:i,repeatDelay:s,repeatType:c,damping:u,type:f}=n;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=a.owner.getProps();return P3()&&i&&k3.has(i)&&(i!=="transform"||!g)&&!p&&!s&&c!=="mirror"&&u!==0&&f!=="inertia"}}const U3={type:"spring",stiffness:500,damping:25,restSpeed:10},B3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$3={type:"keyframes",duration:.8},F3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q3=(e,{keyframes:n})=>n.length>2?$3:vs.has(e)?e.startsWith("scale")?B3(n[1]):U3:F3;function H3({when:e,delay:n,delayChildren:a,staggerChildren:i,staggerDirection:s,repeat:c,repeatType:u,repeatDelay:f,from:p,elapsed:g,...b}){return!!Object.keys(b).length}const ky=(e,n,a,i={},s,c)=>u=>{const f=cy(i,e)||{},p=f.delay||i.delay||0;let{elapsed:g=0}=i;g=g-$a(p);let b={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-g,onUpdate:E=>{n.set(E),f.onUpdate&&f.onUpdate(E)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:c?void 0:s};H3(f)||(b={...b,...q3(e,b)}),b.duration&&(b.duration=$a(b.duration)),b.repeatDelay&&(b.repeatDelay=$a(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let x=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(b.duration=0,b.delay===0&&(x=!0)),b.allowFlatten=!f.type&&!f.ease,x&&!c&&n.get()!==void 0){const E=dh(b.keyframes,f);if(E!==void 0)return Kt.update(()=>{b.onUpdate(E),b.onComplete()}),new pk([])}return!c&&bw.supports(b)?new bw(b):new Dy(b)};function G3({protectedKeys:e,needsAnimating:n},a){const i=e.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,i}function HE(e,n,{delay:a=0,transitionOverride:i,type:s}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:u,...f}=n;i&&(c=i);const p=[],g=s&&e.animationState&&e.animationState.getState()[s];for(const b in f){const x=e.getValue(b,e.latestValues[b]??null),E=f[b];if(E===void 0||g&&G3(g,b))continue;const N={delay:a,...cy(c||{},b)};let T=!1;if(window.MotionHandoffAnimation){const M=pE(e);if(M){const D=window.MotionHandoffAnimation(M,b,Kt);D!==null&&(N.startTime=D,T=!0)}}ng(e,b),x.start(ky(b,x,E,e.shouldReduceMotion&&mE.has(b)?{type:!1}:N,e,T));const R=x.animation;R&&p.push(R)}return u&&Promise.all(p).then(()=>{Kt.update(()=>{u&&Ny(e,u)})}),p}function fg(e,n,a={}){var p;const i=Au(e,n,a.type==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};a.transitionOverride&&(s=a.transitionOverride);const c=i?()=>Promise.all(HE(e,i,a)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(g=0)=>{const{delayChildren:b=0,staggerChildren:x,staggerDirection:E}=s;return K3(e,n,b+g,x,E,a)}:()=>Promise.resolve(),{when:f}=s;if(f){const[g,b]=f==="beforeChildren"?[c,u]:[u,c];return g().then(()=>b())}else return Promise.all([c(),u(a.delay)])}function K3(e,n,a=0,i=0,s=1,c){const u=[],f=(e.variantChildren.size-1)*i,p=s===1?(g=0)=>g*i:(g=0)=>f-g*i;return Array.from(e.variantChildren).sort(Y3).forEach((g,b)=>{g.notify("AnimationStart",n),u.push(fg(g,n,{...c,delay:a+p(b)}).then(()=>g.notify("AnimationComplete",n)))}),Promise.all(u)}function Y3(e,n){return e.sortNodePosition(n)}function GE(e,n,a={}){e.notify("AnimationStart",n);let i;if(Array.isArray(n)){const s=n.map(c=>fg(e,c,a));i=Promise.all(s)}else if(typeof n=="string")i=fg(e,n,a);else{const s=typeof n=="function"?Au(e,n,a.custom):n;i=Promise.all(HE(e,s,a))}return i.then(()=>{e.notify("AnimationComplete",n)})}function KE(e,n){if(!Array.isArray(n))return!1;const a=n.length;if(a!==e.length)return!1;for(let i=0;i<a;i++)if(n[i]!==e[i])return!1;return!0}const X3=my.length;function YE(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?YE(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const n={};for(let a=0;a<X3;a++){const i=my[a],s=e.props[i];(wu(s)||s===!1)&&(n[i]=s)}return n}const W3=[...hy].reverse(),Z3=hy.length;function Q3(e){return n=>Promise.all(n.map(({animation:a,options:i})=>GE(e,a,i)))}function J3(e){let n=Q3(e),a=xw(),i=!0;const s=p=>(g,b)=>{var E;const x=Au(e,b,p==="exit"?(E=e.presenceContext)==null?void 0:E.custom:void 0);if(x){const{transition:N,transitionEnd:T,...R}=x;g={...g,...R,...T}}return g};function c(p){n=p(e)}function u(p){const{props:g}=e,b=YE(e.parent)||{},x=[],E=new Set;let N={},T=1/0;for(let M=0;M<Z3;M++){const D=W3[M],$=a[D],I=g[D]!==void 0?g[D]:b[D],ee=wu(I),z=D===p?$.isActive:null;z===!1&&(T=M);let q=I===b[D]&&I!==g[D]&&ee;if(q&&i&&e.manuallyAnimateOnMount&&(q=!1),$.protectedKeys={...N},!$.isActive&&z===null||!I&&!$.prevProp||ch(I)||typeof I=="boolean")continue;const ie=e4($.prevProp,I);let be=ie||D===p&&$.isActive&&!q&&ee||M>T&&ee,me=!1;const xe=Array.isArray(I)?I:[I];let Re=xe.reduce(s(D),{});z===!1&&(Re={});const{prevResolvedValues:Ve={}}=$,Ue={...Ve,...Re},Ye=Me=>{be=!0,E.has(Me)&&(me=!0,E.delete(Me)),$.needsAnimating[Me]=!0;const B=e.getValue(Me);B&&(B.liveStyle=!1)};for(const Me in Ue){const B=Re[Me],K=Ve[Me];if(N.hasOwnProperty(Me))continue;let P=!1;tg(B)&&tg(K)?P=!KE(B,K):P=B!==K,P?B!=null?Ye(Me):E.add(Me):B!==void 0&&E.has(Me)?Ye(Me):$.protectedKeys[Me]=!0}$.prevProp=I,$.prevResolvedValues=Re,$.isActive&&(N={...N,...Re}),i&&e.blockInitialAnimation&&(be=!1),be&&(!(q&&ie)||me)&&x.push(...xe.map(Me=>({animation:Me,options:{type:D}})))}if(E.size){const M={};if(typeof g.initial!="boolean"){const D=Au(e,Array.isArray(g.initial)?g.initial[0]:g.initial);D&&D.transition&&(M.transition=D.transition)}E.forEach(D=>{const $=e.getBaseTarget(D),I=e.getValue(D);I&&(I.liveStyle=!0),M[D]=$??null}),x.push({animation:M})}let R=!!x.length;return i&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(R=!1),i=!1,R?n(x):Promise.resolve()}function f(p,g){var x;if(a[p].isActive===g)return Promise.resolve();(x=e.variantChildren)==null||x.forEach(E=>{var N;return(N=E.animationState)==null?void 0:N.setActive(p,g)}),a[p].isActive=g;const b=u(p);for(const E in a)a[E].protectedKeys={};return b}return{animateChanges:u,setActive:f,setAnimateFunction:c,getState:()=>a,reset:()=>{a=xw(),i=!0}}}function e4(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!KE(n,e):!1}function rs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xw(){return{animate:rs(!0),whileInView:rs(),whileHover:rs(),whileTap:rs(),whileDrag:rs(),whileFocus:rs(),exit:rs()}}class No{constructor(n){this.isMounted=!1,this.node=n}update(){}}class t4 extends No{constructor(n){super(n),n.animationState||(n.animationState=J3(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();ch(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:a}=this.node.prevProps||{};n!==a&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let n4=0;class r4 extends No{constructor(){super(...arguments),this.id=n4++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:a}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===i)return;const s=this.node.animationState.setActive("exit",!n);a&&!n&&s.then(()=>{a(this.id)})}mount(){const{register:n,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const a4={animation:{Feature:t4},exit:{Feature:r4}};function Nu(e,n,a,i={passive:!0}){return e.addEventListener(n,a,i),()=>e.removeEventListener(n,a)}function Vu(e){return{point:{x:e.pageX,y:e.pageY}}}const i4=e=>n=>fy(n)&&e(n,Vu(n));function du(e,n,a,i){return Nu(e,n,i4(a),i)}function XE({top:e,left:n,right:a,bottom:i}){return{x:{min:n,max:a},y:{min:e,max:i}}}function o4({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function s4(e,n){if(!n)return e;const a=n({x:e.left,y:e.top}),i=n({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:i.y,right:i.x}}const WE=1e-4,l4=1-WE,c4=1+WE,ZE=.01,u4=0-ZE,d4=0+ZE;function ur(e){return e.max-e.min}function f4(e,n,a){return Math.abs(e-n)<=a}function ww(e,n,a,i=.5){e.origin=i,e.originPoint=sn(n.min,n.max,e.origin),e.scale=ur(a)/ur(n),e.translate=sn(a.min,a.max,e.origin)-e.originPoint,(e.scale>=l4&&e.scale<=c4||isNaN(e.scale))&&(e.scale=1),(e.translate>=u4&&e.translate<=d4||isNaN(e.translate))&&(e.translate=0)}function fu(e,n,a,i){ww(e.x,n.x,a.x,i?i.originX:void 0),ww(e.y,n.y,a.y,i?i.originY:void 0)}function Sw(e,n,a){e.min=a.min+n.min,e.max=e.min+ur(n)}function h4(e,n,a){Sw(e.x,n.x,a.x),Sw(e.y,n.y,a.y)}function Ew(e,n,a){e.min=n.min-a.min,e.max=e.min+ur(n)}function hu(e,n,a){Ew(e.x,n.x,a.x),Ew(e.y,n.y,a.y)}const Aw=()=>({translate:0,scale:1,origin:0,originPoint:0}),El=()=>({x:Aw(),y:Aw()}),_w=()=>({min:0,max:0}),pn=()=>({x:_w(),y:_w()});function Qr(e){return[e("x"),e("y")]}function Np(e){return e===void 0||e===1}function hg({scale:e,scaleX:n,scaleY:a}){return!Np(e)||!Np(n)||!Np(a)}function os(e){return hg(e)||QE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function QE(e){return Nw(e.x)||Nw(e.y)}function Nw(e){return e&&e!=="0%"}function Kf(e,n,a){const i=e-a,s=n*i;return a+s}function Cw(e,n,a,i,s){return s!==void 0&&(e=Kf(e,s,i)),Kf(e,a,i)+n}function mg(e,n=0,a=1,i,s){e.min=Cw(e.min,n,a,i,s),e.max=Cw(e.max,n,a,i,s)}function JE(e,{x:n,y:a}){mg(e.x,n.translate,n.scale,n.originPoint),mg(e.y,a.translate,a.scale,a.originPoint)}const Tw=.999999999999,Rw=1.0000000000001;function m4(e,n,a,i=!1){const s=a.length;if(!s)return;n.x=n.y=1;let c,u;for(let f=0;f<s;f++){c=a[f],u=c.projectionDelta;const{visualElement:p}=c.options;p&&p.props.style&&p.props.style.display==="contents"||(i&&c.options.layoutScroll&&c.scroll&&c!==c.root&&_l(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(n.x*=u.x.scale,n.y*=u.y.scale,JE(e,u)),i&&os(c.latestValues)&&_l(e,c.latestValues))}n.x<Rw&&n.x>Tw&&(n.x=1),n.y<Rw&&n.y>Tw&&(n.y=1)}function Al(e,n){e.min=e.min+n,e.max=e.max+n}function jw(e,n,a,i,s=.5){const c=sn(e.min,e.max,s);mg(e,n,a,c,i)}function _l(e,n){jw(e.x,n.x,n.scaleX,n.scale,n.originX),jw(e.y,n.y,n.scaleY,n.scale,n.originY)}function eA(e,n){return XE(s4(e.getBoundingClientRect(),n))}function p4(e,n,a){const i=eA(e,a),{scroll:s}=n;return s&&(Al(i.x,s.offset.x),Al(i.y,s.offset.y)),i}const tA=({current:e})=>e?e.ownerDocument.defaultView:null,Mw=(e,n)=>Math.abs(e-n);function g4(e,n){const a=Mw(e.x,n.x),i=Mw(e.y,n.y);return Math.sqrt(a**2+i**2)}class nA{constructor(n,a,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:c=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Tp(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,N=g4(x.offset,{x:0,y:0})>=3;if(!E&&!N)return;const{point:T}=x,{timestamp:R}=qn;this.history.push({...T,timestamp:R});const{onStart:M,onMove:D}=this.handlers;E||(M&&M(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,x)},this.handlePointerMove=(x,E)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Cp(E,this.transformPagePoint),Kt.update(this.updatePoint,!0)},this.handlePointerUp=(x,E)=>{this.end();const{onEnd:N,onSessionEnd:T,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=Tp(x.type==="pointercancel"?this.lastMoveEventInfo:Cp(E,this.transformPagePoint),this.history);this.startEvent&&N&&N(x,M),T&&T(x,M)},!fy(n))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=i,this.contextWindow=s||window;const u=Vu(n),f=Cp(u,this.transformPagePoint),{point:p}=f,{timestamp:g}=qn;this.history=[{...p,timestamp:g}];const{onSessionStart:b}=a;b&&b(n,Tp(f,this.history)),this.removeListeners=zu(du(this.contextWindow,"pointermove",this.handlePointerMove),du(this.contextWindow,"pointerup",this.handlePointerUp),du(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),bo(this.updatePoint)}}function Cp(e,n){return n?{point:n(e.point)}:e}function Ow(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Tp({point:e},n){return{point:e,delta:Ow(e,rA(n)),offset:Ow(e,y4(n)),velocity:v4(n,.1)}}function y4(e){return e[0]}function rA(e){return e[e.length-1]}function v4(e,n){if(e.length<2)return{x:0,y:0};let a=e.length-1,i=null;const s=rA(e);for(;a>=0&&(i=e[a],!(s.timestamp-i.timestamp>$a(n)));)a--;if(!i)return{x:0,y:0};const c=Fa(s.timestamp-i.timestamp);if(c===0)return{x:0,y:0};const u={x:(s.x-i.x)/c,y:(s.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function b4(e,{min:n,max:a},i){return n!==void 0&&e<n?e=i?sn(n,e,i.min):Math.max(e,n):a!==void 0&&e>a&&(e=i?sn(a,e,i.max):Math.min(e,a)),e}function Dw(e,n,a){return{min:n!==void 0?e.min+n:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function x4(e,{top:n,left:a,bottom:i,right:s}){return{x:Dw(e.x,a,s),y:Dw(e.y,n,i)}}function kw(e,n){let a=n.min-e.min,i=n.max-e.max;return n.max-n.min<e.max-e.min&&([a,i]=[i,a]),{min:a,max:i}}function w4(e,n){return{x:kw(e.x,n.x),y:kw(e.y,n.y)}}function S4(e,n){let a=.5;const i=ur(e),s=ur(n);return s>i?a=vu(n.min,n.max-i,e.min):i>s&&(a=vu(e.min,e.max-s,n.min)),Ti(0,1,a)}function E4(e,n){const a={};return n.min!==void 0&&(a.min=n.min-e.min),n.max!==void 0&&(a.max=n.max-e.min),a}const pg=.35;function A4(e=pg){return e===!1?e=0:e===!0&&(e=pg),{x:Pw(e,"left","right"),y:Pw(e,"top","bottom")}}function Pw(e,n,a){return{min:Lw(e,n),max:Lw(e,a)}}function Lw(e,n){return typeof e=="number"?e:e[n]||0}const _4=new WeakMap;class N4{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pn(),this.visualElement=n}start(n,{snapToCursor:a=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=b=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Vu(b).point)},c=(b,x)=>{const{drag:E,dragPropagation:N,onDragStart:T}=this.getProps();if(E&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ek(E),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(M=>{let D=this.getAxisMotionValue(M).get()||0;if(Ha.test(D)){const{projection:$}=this.visualElement;if($&&$.layout){const I=$.layout.layoutBox[M];I&&(D=ur(I)*(parseFloat(D)/100))}}this.originPoint[M]=D}),T&&Kt.postRender(()=>T(b,x)),ng(this.visualElement,"transform");const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},u=(b,x)=>{const{dragPropagation:E,dragDirectionLock:N,onDirectionLock:T,onDrag:R}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:M}=x;if(N&&this.currentDirection===null){this.currentDirection=C4(M),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",x.point,M),this.updateAxis("y",x.point,M),this.visualElement.render(),R&&R(b,x)},f=(b,x)=>this.stop(b,x),p=()=>Qr(b=>{var x;return this.getAnimationState(b)==="paused"&&((x=this.getAxisMotionValue(b).animation)==null?void 0:x.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new nA(n,{onSessionStart:s,onStart:c,onMove:u,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:tA(this.visualElement)})}stop(n,a){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=a;this.startAnimation(s);const{onDragEnd:c}=this.getProps();c&&Kt.postRender(()=>c(n,a))}cancel(){this.isDragging=!1;const{projection:n,animationState:a}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(n,a,i){const{drag:s}=this.getProps();if(!i||!cf(n,s,this.currentDirection))return;const c=this.getAxisMotionValue(n);let u=this.originPoint[n]+i[n];this.constraints&&this.constraints[n]&&(u=b4(u,this.constraints[n],this.elastic[n])),c.set(u)}resolveConstraints(){var c;const{dragConstraints:n,dragElastic:a}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,s=this.constraints;n&&wl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=x4(i.layoutBox,n):this.constraints=!1,this.elastic=A4(a),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=E4(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!wl(n))return!1;const i=n.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const c=p4(i,s.root,this.visualElement.getTransformPagePoint());let u=w4(s.layout.layoutBox,c);if(a){const f=a(o4(u));this.hasMutatedConstraints=!!f,f&&(u=XE(f))}return u}startAnimation(n){const{drag:a,dragMomentum:i,dragElastic:s,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),p=this.constraints||{},g=Qr(b=>{if(!cf(b,a,this.currentDirection))return;let x=p&&p[b]||{};u&&(x={min:0,max:0});const E=s?200:1e6,N=s?40:1e7,T={type:"inertia",velocity:i?n[b]:0,bounceStiffness:E,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(b,T)});return Promise.all(g).then(f)}startAxisValueAnimation(n,a){const i=this.getAxisMotionValue(n);return ng(this.visualElement,n),i.start(ky(n,i,0,a,this.visualElement,!1))}stopAnimation(){Qr(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){Qr(n=>{var a;return(a=this.getAxisMotionValue(n).animation)==null?void 0:a.pause()})}getAnimationState(n){var a;return(a=this.getAxisMotionValue(n).animation)==null?void 0:a.state}getAxisMotionValue(n){const a=`_drag${n.toUpperCase()}`,i=this.visualElement.getProps(),s=i[a];return s||this.visualElement.getValue(n,(i.initial?i.initial[n]:void 0)||0)}snapToCursor(n){Qr(a=>{const{drag:i}=this.getProps();if(!cf(a,i,this.currentDirection))return;const{projection:s}=this.visualElement,c=this.getAxisMotionValue(a);if(s&&s.layout){const{min:u,max:f}=s.layout.layoutBox[a];c.set(n[a]-sn(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:i}=this.visualElement;if(!wl(a)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Qr(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const p=f.get();s[u]=S4({min:p,max:p},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Qr(u=>{if(!cf(u,n,null))return;const f=this.getAxisMotionValue(u),{min:p,max:g}=this.constraints[u];f.set(sn(p,g,s[u]))})}addListeners(){if(!this.visualElement.current)return;_4.set(this.visualElement,this);const n=this.visualElement.current,a=du(n,"pointerdown",p=>{const{drag:g,dragListener:b=!0}=this.getProps();g&&b&&this.start(p)}),i=()=>{const{dragConstraints:p}=this.getProps();wl(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,c=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Kt.read(i);const u=Nu(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(Qr(b=>{const x=this.getAxisMotionValue(b);x&&(this.originPoint[b]+=p[b].translate,x.set(x.get()+p[b].translate))}),this.visualElement.render())});return()=>{u(),a(),c(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:c=!1,dragElastic:u=pg,dragMomentum:f=!0}=n;return{...n,drag:a,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:u,dragMomentum:f}}}function cf(e,n,a){return(n===!0||n===e)&&(a===null||a===e)}function C4(e,n=10){let a=null;return Math.abs(e.y)>n?a="y":Math.abs(e.x)>n&&(a="x"),a}class T4 extends No{constructor(n){super(n),this.removeGroupControls=ta,this.removeListeners=ta,this.controls=new N4(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ta}unmount(){this.removeGroupControls(),this.removeListeners()}}const Iw=e=>(n,a)=>{e&&Kt.postRender(()=>e(n,a))};class R4 extends No{constructor(){super(...arguments),this.removePointerDownListener=ta}onPointerDown(n){this.session=new nA(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tA(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Iw(n),onStart:Iw(a),onMove:i,onEnd:(c,u)=>{delete this.session,s&&Kt.postRender(()=>s(c,u))}}}mount(){this.removePointerDownListener=du(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Sf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zw(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const eu={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(ot.test(e))e=parseFloat(e);else return e;const a=zw(e,n.target.x),i=zw(e,n.target.y);return`${a}% ${i}%`}},j4={correct:(e,{treeScale:n,projectionDelta:a})=>{const i=e,s=xo.parse(e);if(s.length>5)return i;
vendor: 5,160 bytes, line 289
289const c=xo.createTransformer(e),u=typeof s[0]!="number"?1:0,f=a.x.scale*n.x,p=a.y.scale*n.y;s[0+u]/=f,s[1+u]/=p;const g=sn(f,p,.5);return typeof s[2+u]=="number"&&(s[2+u]/=g),typeof s[3+u]=="number"&&(s[3+u]/=g),c(s)}};class M4 extends S.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:i,layoutId:s}=this.props,{projection:c}=n;Wk(O4),c&&(a.group&&a.group.add(c),i&&i.register&&s&&i.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Sf.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:i,drag:s,isPresent:c}=this.props,u=i.projection;return u&&(u.isPresent=c,s||n.layoutDependency!==a||a===void 0||n.isPresent!==c?u.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?u.promote():u.relegate()||Kt.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),dy.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:i}=this.props,{projection:s}=n;s&&(s.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function aA(e){const[n,a]=dk(),i=S.useContext(zS);return m.jsx(M4,{...e,layoutGroup:i,switchLayoutGroup:S.useContext(tE),isPresent:n,safeToRemove:a})}const O4={borderRadius:{...eu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eu,borderTopRightRadius:eu,borderBottomLeftRadius:eu,borderBottomRightRadius:eu,boxShadow:j4};function D4(e,n,a){const i=nr(e)?e:xu(e);return i.start(ky("",i,n,a)),i.animation}function k4(e){return e instanceof SVGElement&&e.tagName!=="svg"}const P4=(e,n)=>e.depth-n.depth;class L4{constructor(){this.children=[],this.isDirty=!1}add(n){ry(this.children,n),this.isDirty=!0}remove(n){ay(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(P4),this.isDirty=!1,this.children.forEach(n)}}function I4(e,n){const a=qa.now(),i=({timestamp:s})=>{const c=s-a;c>=n&&(bo(i),e(c-n))};return Kt.read(i,!0),()=>bo(i)}const iA=["TopLeft","TopRight","BottomLeft","BottomRight"],z4=iA.length,Vw=e=>typeof e=="string"?parseFloat(e):e,Uw=e=>typeof e=="number"||ot.test(e);function V4(e,n,a,i,s,c){s?(e.opacity=sn(0,a.opacity!==void 0?a.opacity:1,U4(i)),e.opacityExit=sn(n.opacity!==void 0?n.opacity:1,0,B4(i))):c&&(e.opacity=sn(n.opacity!==void 0?n.opacity:1,a.opacity!==void 0?a.opacity:1,i));for(let u=0;u<z4;u++){const f=`border${iA[u]}Radius`;let p=Bw(n,f),g=Bw(a,f);if(p===void 0&&g===void 0)continue;p||(p=0),g||(g=0),p===0||g===0||Uw(p)===Uw(g)?(e[f]=Math.max(sn(Vw(p),Vw(g),i),0),(Ha.test(g)||Ha.test(p))&&(e[f]+="%")):e[f]=g}(n.rotate||a.rotate)&&(e.rotate=sn(n.rotate||0,a.rotate||0,i))}function Bw(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const U4=oA(0,.5,SE),B4=oA(.5,.95,ta);function oA(e,n,a){return i=>i<e?0:i>n?1:a(vu(e,n,i))}function $w(e,n){e.min=n.min,e.max=n.max}function Zr(e,n){$w(e.x,n.x),$w(e.y,n.y)}function Fw(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function qw(e,n,a,i,s){return e-=n,e=Kf(e,1/a,i),s!==void 0&&(e=Kf(e,1/s,i)),e}function $4(e,n=0,a=1,i=.5,s,c=e,u=e){if(Ha.test(n)&&(n=parseFloat(n),n=sn(u.min,u.max,n/100)-u.min),typeof n!="number")return;let f=sn(c.min,c.max,i);e===c&&(f-=n),e.min=qw(e.min,n,a,f,s),e.max=qw(e.max,n,a,f,s)}function Hw(e,n,[a,i,s],c,u){$4(e,n[a],n[i],n[s],n.scale,c,u)}const F4=["x","scaleX","originX"],q4=["y","scaleY","originY"];function Gw(e,n,a,i){Hw(e.x,n,F4,a?a.x:void 0,i?i.x:void 0),Hw(e.y,n,q4,a?a.y:void 0,i?i.y:void 0)}function Kw(e){return e.translate===0&&e.scale===1}function sA(e){return Kw(e.x)&&Kw(e.y)}function Yw(e,n){return e.min===n.min&&e.max===n.max}function H4(e,n){return Yw(e.x,n.x)&&Yw(e.y,n.y)}function Xw(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function lA(e,n){return Xw(e.x,n.x)&&Xw(e.y,n.y)}function Ww(e){return ur(e.x)/ur(e.y)}function Zw(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class G4{constructor(){this.members=[]}add(n){ry(this.members,n),n.scheduleRender()}remove(n){if(ay(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(n){const a=this.members.findIndex(s=>n===s);if(a===0)return!1;let i;for(let s=a;s>=0;s--){const c=this.members[s];if(c.isPresent!==!1){i=c;break}}return i?(this.promote(i),!0):!1}promote(n,a){const i=this.lead;if(n!==i&&(this.prevLead=i,this.lead=n,n.show(),i)){i.instance&&i.scheduleRender(),n.scheduleRender(),n.resumeFrom=i,a&&(n.resumeFrom.preserveOpacity=!0),i.snapshot&&(n.snapshot=i.snapshot,n.snapshot.latestValues=i.animationValues||i.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:s}=n.options;s===!1&&i.hide()}}
vendor: 34,791 bytes, line 289
289exitAnimationComplete(){this.members.forEach(n=>{const{options:a,resumingFrom:i}=n;a.onExitComplete&&a.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function K4(e,n,a){let i="";const s=e.x.translate/n.x,c=e.y.translate/n.y,u=(a==null?void 0:a.z)||0;if((s||c||u)&&(i=`translate3d(${s}px, ${c}px, ${u}px) `),(n.x!==1||n.y!==1)&&(i+=`scale(${1/n.x}, ${1/n.y}) `),a){const{transformPerspective:g,rotate:b,rotateX:x,rotateY:E,skewX:N,skewY:T}=a;g&&(i=`perspective(${g}px) ${i}`),b&&(i+=`rotate(${b}deg) `),x&&(i+=`rotateX(${x}deg) `),E&&(i+=`rotateY(${E}deg) `),N&&(i+=`skewX(${N}deg) `),T&&(i+=`skewY(${T}deg) `)}const f=e.x.scale*n.x,p=e.y.scale*n.y;return(f!==1||p!==1)&&(i+=`scale(${f}, ${p})`),i||"none"}const Rp=["","X","Y","Z"],Y4={visibility:"hidden"},Qw=1e3;let X4=0;function jp(e,n,a,i){const{latestValues:s}=n;s[e]&&(a[e]=s[e],n.setStaticValue(e,0),i&&(i[e]=0))}function cA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const a=pE(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:s,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Kt,!(s||c))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&cA(i)}function uA({attachResizeListener:e,defaultParent:n,measureScroll:a,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(u={},f=n==null?void 0:n()){this.id=X4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Q4),this.nodes.forEach(rL),this.nodes.forEach(aL),this.nodes.forEach(J4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new L4)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new oy),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const p=this.eventHandlers.get(u);p&&p.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=k4(u),this.instance=u;const{layoutId:p,layout:g,visualElement:b}=this.options;if(b&&!b.current&&b.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(g||p)&&(this.isLayoutDirty=!0),e){let x;const E=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,x&&x(),x=I4(E,250),Sf.hasAnimatedSinceResize&&(Sf.hasAnimatedSinceResize=!1,this.nodes.forEach(e1))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&b&&(p||g)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:E,hasRelativeLayoutChanged:N,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||b.getDefaultTransition()||cL,{onLayoutAnimationStart:M,onLayoutAnimationComplete:D}=b.getProps(),$=!this.targetLayout||!lA(this.targetLayout,T),I=!E&&N;if(this.options.layoutRoot||this.resumeFrom||I||E&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(x,I);const ee={...cy(R,"layout"),onPlay:M,onComplete:D};(b.shouldReduceMotion||this.options.layoutRoot)&&(ee.delay=0,ee.type=!1),this.startAnimation(ee)}else E||e1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iL),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const x=this.path[b];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:f,layout:p}=this.options;if(f===void 0&&!p)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jw);return}this.isUpdating||this.nodes.forEach(tL),this.isUpdating=!1,this.nodes.forEach(nL),this.nodes.forEach(W4),this.nodes.forEach(Z4),this.clearAllSnapshots();const f=qa.now();qn.delta=Ti(0,1e3/60,f-qn.timestamp),qn.timestamp=f,qn.isProcessing=!0,wp.update.process(qn),wp.preRender.process(qn),wp.render.process(qn),qn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,dy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eL),this.sharedNodes.forEach(oL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ur(this.snapshot.measuredBox.x)&&!ur(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=pn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f){const p=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:p,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!sA(this.projectionDelta),p=this.getTransformTemplate(),g=p?p(this.latestValues,""):void 0,b=g!==this.prevTransformTemplateValue;u&&(f||os(this.latestValues)||b)&&(s(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let p=this.removeElementScroll(f);return u&&(p=this.removeTransform(p)),uL(p),{animationId:this.root.animationId,measuredBox:f,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:u}=this.options;if(!u)return pn();const f=u.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(dL))){const{scroll:b}=this.root;b&&(Al(f.x,b.offset.x),Al(f.y,b.offset.y))}return f}removeElementScroll(u){var p;const f=pn();if(Zr(f,u),(p=this.scroll)!=null&&p.wasRoot)return f;for(let g=0;g<this.path.length;g++){const b=this.path[g],{scroll:x,options:E}=b;b!==this.root&&x&&E.layoutScroll&&(x.wasRoot&&Zr(f,u),Al(f.x,x.offset.x),Al(f.y,x.offset.y))}return f}applyTransform(u,f=!1){const p=pn();Zr(p,u);for(let g=0;g<this.path.length;g++){const b=this.path[g];!f&&b.options.layoutScroll&&b.scroll&&b!==b.root&&_l(p,{x:-b.scroll.offset.x,y:-b.scroll.offset.y}),os(b.latestValues)&&_l(p,b.latestValues)}return os(this.latestValues)&&_l(p,this.latestValues),p}removeTransform(u){const f=pn();Zr(f,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];if(!g.instance||!os(g.latestValues))continue;hg(g.latestValues)&&g.updateSnapshot();const b=pn(),x=g.measurePageBox();Zr(b,x),Gw(f,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,b)}return os(this.latestValues)&&Gw(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==qn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var E;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!(!this.layout||!(b||x))){if(this.resolvedRelativeTargetAt=qn.timestamp,!this.targetDelta&&!this.relativeTarget){const N=this.getClosestProjectingParent();N&&N.layout&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pn(),this.relativeTargetOrigin=pn(),hu(this.relativeTargetOrigin,this.layout.layoutBox,N.layout.layoutBox),Zr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pn(),this.targetWithTransforms=pn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Zr(this.target,this.layout.layoutBox),JE(this.target,this.targetDelta)):Zr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const N=this.getClosestProjectingParent();N&&!!N.resumingFrom==!!this.resumingFrom&&!N.options.layoutScroll&&N.target&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pn(),this.relativeTargetOrigin=pn(),hu(this.relativeTargetOrigin,this.target,N.target),Zr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||hg(this.parent.latestValues)||QE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var T;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let p=!0;if((this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===qn.timestamp&&(p=!1),p)return;const{layout:g,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||b))return;Zr(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,E=this.treeScale.y;m4(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=pn());const{target:N}=u;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fw(this.prevProjectionDelta.x,this.projectionDelta.x),Fw(this.prevProjectionDelta.y,this.projectionDelta.y)),fu(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==E||!Zw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Zw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",N))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var f;if((f=this.options.visualElement)==null||f.scheduleRender(),u){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=El(),this.projectionDelta=El(),this.projectionDeltaWithTransform=El()}setAnimationOrigin(u,f=!1){const p=this.snapshot,g=p?p.latestValues:{},b={...this.latestValues},x=El();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const E=pn(),N=p?p.source:void 0,T=this.layout?this.layout.source:void 0,R=N!==T,M=this.getStack(),D=!M||M.members.length<=1,$=!!(R&&!D&&this.options.crossfade===!0&&!this.path.some(lL));this.animationProgress=0;let I;this.mixTargetDelta=ee=>{const z=ee/1e3;t1(x.x,u.x,z),t1(x.y,u.y,z),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hu(E,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sL(this.relativeTarget,this.relativeTargetOrigin,E,z),I&&H4(this.relativeTarget,I)&&(this.isProjectionDirty=!1),I||(I=pn()),Zr(I,this.relativeTarget)),R&&(this.animationValues=b,V4(b,g,this.latestValues,z,$,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Kt.update(()=>{Sf.hasAnimatedSinceResize=!0,this.currentAnimation=D4(0,Qw,{...u,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:p,layout:g,latestValues:b}=u;if(!(!f||!p||!g)){if(this!==u&&this.layout&&g&&dA(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||pn();const x=ur(this.layout.layoutBox.x);p.x.min=u.target.x.min,p.x.max=p.x.min+x;const E=ur(this.layout.layoutBox.y);p.y.min=u.target.y.min,p.y.max=p.y.min+E}Zr(f,p),_l(f,b),fu(this.projectionDeltaWithTransform,this.layoutCorrected,f,b)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new G4),this.sharedNodes.get(u).add(f);const g=f.options.initialPromotionConfig;f.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var f;const{layoutId:u}=this.options;return u?((f=this.getStack())==null?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:u}=this.options;return u?(f=this.getStack())==null?void 0:f.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:p}={}){const g=this.getStack();g&&g.promote(this,p),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:p}=u;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(f=!0),!f)return;const g={};p.z&&jp("z",u,g,this.animationValues);for(let b=0;b<Rp.length;b++)jp(`rotate${Rp[b]}`,u,g,this.animationValues),jp(`skew${Rp[b]}`,u,g,this.animationValues);u.render();for(const b in g)u.setStaticValue(b,g[b]),this.animationValues&&(this.animationValues[b]=g[b]);u.scheduleRender()}getProjectionStyles(u){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y4;const f={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=wf(u==null?void 0:u.pointerEvents)||"",f.transform=p?p(this.latestValues,""):"none",f;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const N={};return this.options.layoutId&&(N.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,N.pointerEvents=wf(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!os(this.latestValues)&&(N.transform=p?p({},""):"none",this.hasProjected=!1),N}const b=g.animationValues||g.latestValues;this.applyTransformsToTarget(),f.transform=K4(this.projectionDeltaWithTransform,this.treeScale,b),p&&(f.transform=p(b,f.transform));const{x,y:E}=this.projectionDelta;f.transformOrigin=`${x.origin*100}% ${E.origin*100}% 0`,g.animationValues?f.opacity=g===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=g===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const N in Su){if(b[N]===void 0)continue;const{correct:T,applyTo:R,isCSSVariable:M}=Su[N],D=f.transform==="none"?b[N]:T(b[N],g);if(R){const $=R.length;for(let I=0;I<$;I++)f[R[I]]=D}else M?this.options.visualElement.renderState.vars[N]=D:f[N]=D}return this.options.layoutId&&(f.pointerEvents=g===this?wf(u==null?void 0:u.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var f;return(f=u.currentAnimation)==null?void 0:f.stop()}),this.root.nodes.forEach(Jw),this.root.sharedNodes.clear()}}}function W4(e){e.updateLayout()}function Z4(e){var a;const n=((a=e.resumeFrom)==null?void 0:a.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:c}=e.options,u=n.source!==e.layout.source;c==="size"?Qr(x=>{const E=u?n.measuredBox[x]:n.layoutBox[x],N=ur(E);E.min=i[x].min,E.max=E.min+N}):dA(c,n.layoutBox,i)&&Qr(x=>{const E=u?n.measuredBox[x]:n.layoutBox[x],N=ur(i[x]);E.max=E.min+N,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[x].max=e.relativeTarget[x].min+N)});const f=El();fu(f,i,n.layoutBox);const p=El();u?fu(p,e.applyTransform(s,!0),n.measuredBox):fu(p,i,n.layoutBox);const g=!sA(f);let b=!1;if(!e.resumeFrom){const x=e.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:E,layout:N}=x;if(E&&N){const T=pn();hu(T,n.layoutBox,E.layoutBox);const R=pn();hu(R,i,N.layoutBox),lA(T,R)||(b=!0),x.options.layoutRoot&&(e.relativeTarget=R,e.relativeTargetOrigin=T,e.relativeParent=x)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:p,layoutDelta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:b})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function Q4(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function J4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function eL(e){e.clearSnapshot()}function Jw(e){e.clearMeasurements()}function tL(e){e.isLayoutDirty=!1}function nL(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function e1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rL(e){e.resolveTargetDelta()}function aL(e){e.calcProjection()}function iL(e){e.resetSkewAndRotation()}function oL(e){e.removeLeadSnapshot()}function t1(e,n,a){e.translate=sn(n.translate,0,a),e.scale=sn(n.scale,1,a),e.origin=n.origin,e.originPoint=n.originPoint}function n1(e,n,a,i){e.min=sn(n.min,a.min,i),e.max=sn(n.max,a.max,i)}function sL(e,n,a,i){n1(e.x,n.x,a.x,i),n1(e.y,n.y,a.y,i)}function lL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cL={duration:.45,ease:[.4,0,.1,1]},r1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),a1=r1("applewebkit/")&&!r1("chrome/")?Math.round:ta;function i1(e){e.min=a1(e.min),e.max=a1(e.max)}function uL(e){i1(e.x),i1(e.y)}function dA(e,n,a){return e==="position"||e==="preserve-aspect"&&!f4(Ww(n),Ww(a),.2)}function dL(e){var n;return e!==e.root&&((n=e.scroll)==null?void 0:n.wasRoot)}const fL=uA({attachResizeListener:(e,n)=>Nu(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mp={current:void 0},fA=uA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mp.current){const e=new fL({});e.mount(window),e.setOptions({layoutScroll:!0}),Mp.current=e}return Mp.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hL={pan:{Feature:R4},drag:{Feature:T4,ProjectionNode:fA,MeasureLayout:aA}};function o1(e,n,a){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",a==="Start");const s="onHover"+a,c=i[s];c&&Kt.postRender(()=>c(n,Vu(n)))}class mL extends No{mount(){const{current:n}=this.node;n&&(this.unmount=_k(n,(a,i)=>(o1(this.node,i,"Start"),s=>o1(this.node,s,"End"))))}unmount(){}}class pL extends No{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=zu(Nu(this.node.current,"focus",()=>this.onFocus()),Nu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function s1(e,n,a){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",a==="Start");const s="onTap"+(a==="End"?"":a),c=i[s];c&&Kt.postRender(()=>c(n,Vu(n)))}class gL extends No{mount(){const{current:n}=this.node;n&&(this.unmount=Rk(n,(a,i)=>(s1(this.node,i,"Start"),(s,{success:c})=>s1(this.node,s,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gg=new WeakMap,Op=new WeakMap,yL=e=>{const n=gg.get(e.target);n&&n(e)},vL=e=>{e.forEach(yL)};function bL({root:e,...n}){const a=e||document;Op.has(a)||Op.set(a,{});const i=Op.get(a),s=JSON.stringify(n);return i[s]||(i[s]=new IntersectionObserver(vL,{root:e,...n})),i[s]}function xL(e,n,a){const i=bL(n);return gg.set(e,a),i.observe(e),()=>{gg.delete(e),i.unobserve(e)}}const wL={some:0,all:1};class SL extends No{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:a,margin:i,amount:s="some",once:c}=n,u={root:a?a.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:wL[s]},f=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,c&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),E=g?b:x;E&&E(p)};return xL(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:a}=this.node;["amount","margin","root"].some(EL(n,a))&&this.startObserver()}unmount(){}}function EL({viewport:e={}},{viewport:n={}}={}){return a=>e[a]!==n[a]}const AL={inView:{Feature:SL},tap:{Feature:gL},focus:{Feature:pL},hover:{Feature:mL}},_L={layout:{ProjectionNode:fA,MeasureLayout:aA}},yg={current:null},hA={current:!1};function NL(){if(hA.current=!0,!!ty)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>yg.current=e.matches;e.addListener(n),n()}else yg.current=!1}const CL=[...IE,Jn,xo],TL=e=>CL.find(LE(e)),RL=new WeakMap;function jL(e,n,a){for(const i in n){const s=n[i],c=a[i];if(nr(s))e.addValue(i,s);else if(nr(c))e.addValue(i,xu(s,{owner:e}));else if(c!==s)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(i);e.addValue(i,xu(u!==void 0?u:s,{owner:e}))}}for(const i in a)n[i]===void 0&&e.removeValue(i);return n}const l1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ML{scrapeMotionValuesFromProps(n,a,i){return{}}constructor({parent:n,props:a,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:c,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=My,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const N=qa.now();this.renderScheduledAt<N&&(this.renderScheduledAt=N,Kt.render(this.render,!1,!0))};const{latestValues:p,renderState:g,onUpdate:b}=u;this.onUpdate=b,this.latestValues=p,this.baseTarget={...p},this.initialValues=a.initial?{...p}:{},this.renderState=g,this.parent=n,this.props=a,this.presenceContext=i,this.depth=n?n.depth+1:0,this.reducedMotionConfig=s,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=uh(a),this.isVariantNode=JS(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:x,...E}=this.scrapeMotionValuesFromProps(a,{},this);for(const N in E){const T=E[N];p[N]!==void 0&&nr(T)&&T.set(p[N],!1)}}mount(n){this.current=n,RL.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,i)=>this.bindToMotionValue(i,a)),hA.current||NL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),bo(this.notifyUpdate),bo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(n,a){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const i=vs.has(n);i&&this.onBindTransform&&this.onBindTransform();const s=a.on("change",f=>{this.latestValues[n]=f,this.props.onUpdate&&Kt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),c=a.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,n,a)),this.valueSubscriptions.set(n,()=>{s(),c(),u&&u(),a.owner&&a.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in Pl){const a=Pl[n];if(!a)continue;const{isEnabled:i,Feature:s}=a;if(!this.features[n]&&s&&i(this.props)&&(this.features[n]=new s(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pn()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,a){this.latestValues[n]=a}update(n,a){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let i=0;i<l1.length;i++){const s=l1[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const c="on"+s,u=n[c];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=jL(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(n),()=>a.variantChildren.delete(n)}addValue(n,a){const i=this.values.get(n);a!==i&&(i&&this.removeValue(n),this.bindToMotionValue(n,a),this.values.set(n,a),this.latestValues[n]=a.get())}removeValue(n){this.values.delete(n);const a=this.valueSubscriptions.get(n);a&&(a(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,a){if(this.props.values&&this.props.values[n])return this.props.values[n];let i=this.values.get(n);return i===void 0&&a!==void 0&&(i=xu(a===null?void 0:a,{owner:this}),this.addValue(n,i)),i}readValue(n,a){let i=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return i!=null&&(typeof i=="string"&&(kE(i)||AE(i))?i=parseFloat(i):!TL(i)&&xo.test(a)&&(i=ME(n,a)),this.setBaseTarget(n,nr(i)?i.get():i)),nr(i)?i.get():i}setBaseTarget(n,a){this.baseTarget[n]=a}getBaseTarget(n){var c;const{initial:a}=this.props;let i;if(typeof a=="string"||typeof a=="object"){const u=Ay(this.props,a,(c=this.presenceContext)==null?void 0:c.custom);u&&(i=u[n])}if(a&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,n);return s!==void 0&&!nr(s)?s:this.initialValues[n]!==void 0&&i===void 0?void 0:this.baseTarget[n]}on(n,a){return this.events[n]||(this.events[n]=new oy),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}}class mA extends ML{constructor(){super(...arguments),this.KeyframeResolver=zE}sortInstanceNodePosition(n,a){return n.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(n,a){return n.style?n.style[a]:void 0}removeValueFromRenderState(n,{vars:a,style:i}){delete a[n],delete i[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;nr(n)&&(this.childSubscription=n.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function OL(e){return window.getComputedStyle(e)}class DL extends mA{constructor(){super(...arguments),this.type="html",this.renderInstance=uE}readValueFromInstance(n,a){if(vs.has(a))return GP(n,a);{const i=OL(n),s=(gy(a)?i.getPropertyValue(a):i[a])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(n,{transformPagePoint:a}){return eA(n,a)}build(n,a,i){by(n,a,i.transformTemplate)}scrapeMotionValuesFromProps(n,a,i){return _y(n,a,i)}}class kL extends mA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pn,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&cE(this.current,this.renderState)}}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if(vs.has(a)){const i=jE(a);return i&&i.default||0}return a=dE.has(a)?a:py(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,i){return hE(n,a,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&Kt.postRender(this.updateDimensions)}build(n,a,i){Sy(n,a,this.isSVGTag,i.transformTemplate)}renderInstance(n,a,i,s){fE(n,a,i,s)}mount(n){this.isSVGTag=Ey(n.tagName),super.mount(n)}}const PL=(e,n)=>wy(e)?new kL(n):new DL(n,{allowProjection:e!==S.Fragment}),LL=xP({...a4,...AL,...hL,..._L},PL),It=Lk(LL);
289function IL(e){e.values.forEach(n=>n.stop())}function vg(e,n){[...n].reverse().forEach(i=>{const s=e.getVariant(i);s&&Ny(e,s),e.variantChildren&&e.variantChildren.forEach(c=>{vg(c,n)})})}function zL(e,n){if(Array.isArray(n))return vg(e,n);if(typeof n=="string")return vg(e,[n]);Ny(e,n)}function VL(){const e=new Set,n={subscribe(a){return e.add(a),()=>void e.delete(a)},start(a,i){const s=[];return e.forEach(c=>{s.push(GE(c,a,{transitionOverride:i}))}),Promise.all(s)},set(a){return e.forEach(i=>{zL(i,a)})},stop(){e.forEach(a=>{IL(a)})},mount(){return()=>{n.stop()}}};return n}function UL(){const e=VS(VL);return US(e.mount,[]),e}const BL=UL,fh=()=>m.jsxs("footer",{className:"relative overflow-hidden pt-24 pb-12",children:[m.jsx("div",{className:"absolute top-0 left-0 w-full overflow-hidden leading-none",children:m.jsx("svg",{className:"w-full h-16 text-background",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 120",preserveAspectRatio:"none",children:m.jsx("path",{d:"M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z",className:"fill-background"})})}),m.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-teal/5 to-gold/5 backdrop-blur-3xl -z-10"}),m.jsx("div",{className:"absolute -top-24 -right-24 w-96 h-96 bg-teal/5 rounded-full blur-3xl animate-pulse"}),m.jsx("div",{className:"absolute -bottom-24 -left-24 w-96 h-96 bg-gold/5 rounded-full blur-3xl animate-pulse [animation-delay:2s]"}),m.jsxs("div",{className:"container relative z-10 mx-auto px-4",children:[m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-10 gap-10 mb-16",children:m.jsxs("div",{className:"col-span-1 md:col-span-10 flex flex-col items-center text-center",children:[m.jsxs(Va,{to:"/",className:"flex items-center space-x-3 mb-6 group",children:[m.jsxs("div",{className:"relative w-10 h-10 rounded-xl overflow-hidden group-hover:scale-110 transition-all duration-300",children:[m.jsx("div",{className:"absolute inset-0 bg-gradient-teal animate-gradient-shift bg-size-200"}),m.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:m.jsx(Dl,{size:18,className:"text-white group-hover:rotate-12 transition-transform duration-300"})})]}),m.jsxs("span",{className:"font-poppins font-bold text-4xl tracking-tight",children:[m.jsx("span",{className:"text-navy dark:text-white",children:"vault"}),m.jsx("span",{className:"bg-clip-text text-transparent bg-gradient-teal",children:"Key"})]})]}),m.jsx("p",{className:"text-lg w-1/2 text-gray-600 dark:text-gray-400 mb-6 leading-relaxed font-space",children:"A zero-knowledge password manager where your data remains truly yours, with advanced encryption and complete privacy protection for the future."})]})}),m.jsx("div",{className:"relative",children:m.jsx("div",{className:"gradient-card",children:m.jsx(It.div,{className:"gradient-card-inner p-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:m.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[m.jsxs(It.div,{className:"flex items-center gap-4",whileHover:{scale:1.02},transition:{type:"spring",stiffness:400,damping:10},children:[m.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-teal/20 to-teal/10 flex items-center justify-center shadow-inner animate-pulse",children:m.jsx(yu,{className:"w-5 h-5 text-teal"})}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-medium font-poppins",children:"End-to-End Encryption"}),m.jsx("p",{className:"text-sm text-gray-500",children:"Your data is yours and yours alone"})]})]}),m.jsxs(It.div,{className:"flex items-center gap-4",whileHover:{scale:1.02},transition:{type:"spring",stiffness:400,damping:10},children:[m.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-teal/20 to-teal/10 flex items-center justify-center shadow-inner animate-pulse",children:m.jsx(kl,{className:"w-5 h-5 text-teal"})}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-medium font-poppins",children:"Zero-Knowledge Architecture"}),m.jsx("p",{className:"text-sm text-gray-500",children:"We can't access your data"})]})]}),m.jsxs(It.div,{className:"flex items-center gap-4",whileHover:{scale:1.02},transition:{type:"spring",stiffness:400,damping:10},children:[m.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-teal/20 to-teal/10 flex items-center justify-center shadow-inner animate-pulse",children:m.jsx(xD,{className:"w-5 h-5 text-teal"})}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-medium font-poppins",children:"Master-Password Access"}),m.jsx("p",{className:"text-sm text-gray-500",children:"Secure and convenient"})]})]})]})})})}),m.jsxs("div",{className:"pt-10 mt-10 flex flex-col md:flex-row justify-between items-center border-t border-gray-200/50 dark:border-navy-800/30",children:[m.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4 md:mb-0 font-light",children:["© ",new Date().getFullYear()," vaultKey. All rights reserved."]}),m.jsxs("div",{className:"flex items-center space-x-1 text-sm text-gray-500 dark:text-gray-400 font-light",children:[m.jsx("span",{children:"Built with"}),m.jsx(ND,{size:14,className:"text-red-500 mx-1 hover:animate-pulse"}),m.jsx("span",{children:"for security and privacy"}),m.jsx(lk,{size:14,className:"text-teal ml-1"})]})]})]})]});function $L(){var T;const[e,n]=S.useState(""),[a,i]=S.useState(!1),[s,c]=S.useState(null),[u,f]=S.useState(!1),[p,g]=S.useState(!1),b=Sa(),x=ps();S.useEffect(()=>{localStorage.getItem("isAuthenticated")==="true"&&g(!0)},[x]);const E=(T=b.state)==null?void 0:T.isSignUp,N=async R=>{R.preventDefault(),i(!0),c(null);try{const M=await zf.loginWithMagicLink(e);M.success?f(!0):c(M.error||"Failed to send magic link")}catch{c("An error occurred while sending the magic link")}finally{i(!1)}};return u?m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gradient-mesh p-4",children:m.jsx("div",{className:"w-full max-w-md",children:m.jsx("div",{className:"auth-card",children:m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"mb-4 text-teal",children:m.jsx("svg",{className:"mx-auto h-12 w-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),m.jsx("h2",{className:"text-h3 mb-2",children:"Check your email"}),m.jsxs("p",{className:"text-muted-foreground mb-4",children:["We've sent a magic link to ",e,". Click the link to"," ",E?"create your account":"sign in","."]}),m.jsx("button",{onClick:()=>{f(!1),n("")},className:"neo-button w-full py-3",children:"Send another link"}),m.jsx("button",{onClick:()=>x("/"),className:"mt-4 w-full text-sm text-muted-foreground hover:text-foreground",children:"Back to Home"})]})})})}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"min-h-screen flex flex-col",children:[m.jsx(ds,{}),m.jsx("main",{className:"flex-1 pt-28 pb-16 px-4 flex items-center justify-center",children:m.jsx("div",{className:"w-full max-w-md",children:p?m.jsx(m.Fragment,{}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"text-center mb-6",children:[m.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 mb-4",children:m.jsx(qx,{size:32,className:"text-primary"})}),m.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Sign in with Magic Link"}),m.jsx("p",{className:"text-muted-foreground",children:"No password required, just your email"})]}),m.jsxs(ss,{className:"auth-card",children:[m.jsxs(cu,{className:"space-y-1 pb-2",children:[m.jsx(bl,{className:"text-2xl font-bold",children:"Enter your email"}),m.jsx(LS,{children:u?"Check your email for the magic link":"We'll send you a magic link to sign in"})]}),m.jsx(xl,{children:u?m.jsxs("div",{className:"text-center py-4",children:[m.jsx("div",{className:"animate-pulse mb-4",children:m.jsx(qx,{size:48,className:"mx-auto text-primary"})}),m.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Check your inbox"}),m.jsxs("p",{className:"text-muted-foreground mb-4",children:["We've sent a magic link to:",m.jsx("br",{}),m.jsx("span",{className:"font-medium text-foreground",children:e})]}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"(For demo purposes, you'll be automatically signed in after a few seconds)"})]}):m.jsxs("form",{onSubmit:N,className:"space-y-4",children:[m.jsx("div",{className:"space-y-2",children:m.jsxs("div",{className:"relative",children:[m.jsx(gn,{id:"email",type:"email",placeholder:"[email protected]",value:e,onCh
289ange:R=>n(R.target.value),className:"soft-input pl-10",required:!0}),m.jsx(nD,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground",size:16})]})}),m.jsxs(wt,{type:"submit",className:"neo-button w-full py-5",disabled:a,children:[a?"Sending...":"Send Magic Link",m.jsx(bf,{size:16,className:"ml-2"})]})]})})]})]})})})]}),m.jsx(fh,{})]})}function FL(){const e=ps(),n=Sa(),[a,i]=S.useState("verifying"),[s,c]=S.useState(null);return S.useEffect(()=>{(async()=>{try{if(!n.search.includes("magic_credential")){e("/auth");return}await new Promise(p=>setTimeout(p,1e3));const f=await zf.verifyMagicLink();if(f.success){i("success"),await new Promise(p=>setTimeout(p,500));try{localStorage.setItem("isAuthenticated","true"),localStorage.removeItem("masterPasswordVerified"),e("/dashboard")}catch(p){console.error("Error checking master password:",p),localStorage.setItem("isAuthenticated","true"),e("/dashboard")}}else i("error"),c(f.error||"Verification failed")}catch(f){if(console.error("Verification error:",f),await zf.isLoggedIn()){i("success"),localStorage.setItem("isAuthenticated","true"),e("/dashboard");return}i("error"),c("An error occurred during verification")}})()},[e,n]),m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gradient-mesh p-4",children:m.jsx("div",{className:"w-full max-w-md",children:m.jsxs("div",{className:"auth-card",children:[a==="verifying"&&m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"mb-4",children:m.jsxs("svg",{className:"mx-auto h-8 w-8 animate-spin text-teal",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),m.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),m.jsx("h2",{className:"text-h3 mb-2",children:"Verifying your email..."}),m.jsx("p",{className:"text-muted-foreground",children:"Please wait while we verify your login."})]}),a==="success"&&m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"mb-4 text-teal",children:m.jsx("svg",{className:"mx-auto h-12 w-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}),m.jsx("h2",{className:"text-h3 mb-2",children:"Email Verified!"}),m.jsx("p",{className:"text-muted-foreground",children:"Redirecting you to secure your vault..."})]}),a==="error"&&m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"mb-4 text-destructive",children:m.jsx("svg",{className:"mx-auto h-12 w-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),m.jsx("h2",{className:"text-h3 mb-2",children:"Verification Failed"}),m.jsx("p",{className:"text-destructive mb-4",children:s}),m.jsx("button",{onClick:()=>e("/auth"),className:"neo-button w-full py-3",children:"Back to Login"})]})]})})})}function qL({children:e}){const[n,a]=S.useState(null),i=Sa();return S.useEffect(()=>{(async()=>{const c=await zf.isLoggedIn();a(c)})()},[]),n===null?m.jsx("div",{className:"min-h-screen bg-gradient-mesh",children:m.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:m.jsxs("div",{className:"auth-card text-center max-w-md w-full mx-auto",children:[m.jsx("div",{className:"mb-6",children:m.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-teal mx-auto"})}),m.jsx("h2",{className:"text-h3 mb-2",children:"Verifying Access"}),m.jsx("p",{className:"text-muted-foreground",children:"Please wait while we verify your authentication..."})]})})}):n?m.jsx(m.Fragment,{children:e}):m.jsx(DT,{to:"/auth",state:{from:i},replace:!0})}function lt(e,n,{checkForDefaultPrevented:a=!0}={}){return function(s){if(e==null||e(s),a===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function c1(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function hh(...e){return n=>{let a=!1;const i=e.map(s=>{const c=c1(s,n);return!a&&typeof c=="function"&&(a=!0),c});if(a)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():c1(e[s],null)}}}}function Jt(...e){return S.useCallback(hh(...e),e)}function HL(e,n){const a=S.createContext(n),i=c=>{const{children:u,...f}=c,p=S.useMemo(()=>f,Object.values(f));return m.jsx(a.Provider,{value:p,children:u})};i.displayName=e+"Provider";function s(c){const u=S.useContext(a);if(u)return u;if(n!==void 0)return n;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[i,s]}function Xa(e,n=[]){let a=[];function i(c,u){const f=S.createContext(u),p=a.length;a=[...a,u];const g=x=>{var D;const{scope:E,children:N,...T}=x,R=((D=E==null?void 0:E[e])==null?void 0:D[p])||f,M=S.useMemo(()=>T,Object.values(T));return m.jsx(R.Provider,{value:M,children:N})};g.displayName=c+"Provider";function b(x,E){var R;const N=((R=E==null?void 0:E[e])==null?void 0:R[p])||f,T=S.useContext(N);if(T)return T;if(u!==void 0)return u;throw new Error(`\`${x}\` must be used within \`${c}\``)}return[g,b]}const s=()=>{const c=a.map(u=>S.createContext(u));return function(f){const p=(f==null?void 0:f[e])||c;return S.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};
vendor: 20,912 bytes, line 289
289return s.scopeName=e,[i,GL(s,...n)]}function GL(...e){const n=e[0];if(e.length===1)return n;const a=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const u=i.reduce((f,{useScope:p,scopeName:g})=>{const x=p(c)[`__scope${g}`];return{...f,...x}},{});return S.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return a.scopeName=n.scopeName,a}function va(e){const n=S.useRef(e);return S.useEffect(()=>{n.current=e}),S.useMemo(()=>(...a)=>{var i;return(i=n.current)==null?void 0:i.call(n,...a)},[])}function Uu({prop:e,defaultProp:n,onChange:a=()=>{}}){const[i,s]=KL({defaultProp:n,onChange:a}),c=e!==void 0,u=c?e:i,f=va(a),p=S.useCallback(g=>{if(c){const x=typeof g=="function"?g(e):g;x!==e&&f(x)}else s(g)},[c,e,s,f]);return[u,p]}function KL({defaultProp:e,onChange:n}){const a=S.useState(e),[i]=a,s=S.useRef(i),c=va(n);return S.useEffect(()=>{s.current!==i&&(c(i),s.current=i)},[i,s,c]),a}function Cu(e){const n=YL(e),a=S.forwardRef((i,s)=>{const{children:c,...u}=i,f=S.Children.toArray(c),p=f.find(WL);if(p){const g=p.props.children,b=f.map(x=>x===p?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:x);return m.jsx(n,{...u,ref:s,children:S.isValidElement(g)?S.cloneElement(g,void 0,b):null})}return m.jsx(n,{...u,ref:s,children:c})});return a.displayName=`${e}.Slot`,a}function YL(e){const n=S.forwardRef((a,i)=>{const{children:s,...c}=a;if(S.isValidElement(s)){const u=QL(s),f=ZL(c,s.props);return s.type!==S.Fragment&&(f.ref=i?hh(i,u):u),S.cloneElement(s,f)}return S.Children.count(s)>1?S.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var pA=Symbol("radix.slottable");function XL(e){const n=({children:a})=>m.jsx(m.Fragment,{children:a});return n.displayName=`${e}.Slottable`,n.__radixId=pA,n}function WL(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pA}function ZL(e,n){const a={...n};for(const i in n){const s=e[i],c=n[i];/^on[A-Z]/.test(i)?s&&c?a[i]=(...f)=>{c(...f),s(...f)}:s&&(a[i]=s):i==="style"?a[i]={...s,...c}:i==="className"&&(a[i]=[s,c].filter(Boolean).join(" "))}return{...e,...a}}function QL(e){var i,s;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,a=n&&"isReactWarning"in n&&n.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var JL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$t=JL.reduce((e,n)=>{const a=Cu(`Primitive.${n}`),i=S.forwardRef((s,c)=>{const{asChild:u,...f}=s,p=u?a:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(p,{...f,ref:c})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function gA(e,n){e&&$g.flushSync(()=>e.dispatchEvent(n))}function Py(e){const n=e+"CollectionProvider",[a,i]=Xa(n),[s,c]=a(n,{collectionRef:{current:null},itemMap:new Map}),u=R=>{const{scope:M,children:D}=R,$=In.useRef(null),I=In.useRef(new Map).current;return m.jsx(s,{scope:M,itemMap:I,collectionRef:$,children:D})};u.displayName=n;const f=e+"CollectionSlot",p=Cu(f),g=In.forwardRef((R,M)=>{const{scope:D,children:$}=R,I=c(f,D),ee=Jt(M,I.collectionRef);return m.jsx(p,{ref:ee,children:$})});g.displayName=f;const b=e+"CollectionItemSlot",x="data-radix-collection-item",E=Cu(b),N=In.forwardRef((R,M)=>{const{scope:D,children:$,...I}=R,ee=In.useRef(null),z=Jt(M,ee),q=c(b,D);return In.useEffect(()=>(q.itemMap.set(ee,{ref:ee,...I}),()=>void q.itemMap.delete(ee))),m.jsx(E,{[x]:"",ref:z,children:$})});N.displayName=b;function T(R){const M=c(e+"CollectionConsumer",R);return In.useCallback(()=>{const $=M.collectionRef.current;if(!$)return[];const I=Array.from($.querySelectorAll(`[${x}]`));return Array.from(M.itemMap.values()).sort((q,ie)=>I.indexOf(q.ref.current)-I.indexOf(ie.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:u,Slot:g,ItemSlot:N},T,i]}var e5=S.createContext(void 0);function Ly(e){const n=S.useContext(e5);return e||n||"ltr"}function t5(e,n=globalThis==null?void 0:globalThis.document){const a=va(e);S.useEffect(()=>{const i=s=>{s.key==="Escape"&&a(s)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[a,n])}var n5="DismissableLayer",bg="dismissableLayer.update",r5="dismissableLayer.pointerDownOutside",a5="dismissableLayer.focusOutside",u1,yA=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Iy=S.forwardRef((e,n)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:u,onDismiss:f,...p}=e,g=S.useContext(yA),[b,x]=S.useState(null),E=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=S.useState({}),T=Jt(n,ie=>x(ie)),R=Array.from(g.layers),[M]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),D=R.indexOf(M),$=b?R.indexOf(b):-1,I=g.layersWithOutsidePointerEventsDisabled.size>0,ee=$>=D,z=s5(ie=>{const be=ie.target,me=[...g.branches].some(xe=>xe.contains(be));!ee||me||(s==null||s(ie),u==null||u(ie),ie.defaultPrevented||f==null||f())},E),q=l5(ie=>{const be=ie.target;[...g.branches].some(xe=>xe.contains(be))||(c==null||c(ie),u==null||u(ie),ie.defaultPrevented||f==null||f())},E);return t5(ie=>{$===g.layers.size-1&&(i==null||i(ie),!ie.defaultPrevented&&f&&(ie.preventDefault(),f()))},E),S.useEffect(()=>{if(b)return a&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(u1=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(b)),g.layers.add(b),d1(),()=>{a&&g.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=u1)}},[b,E,a,g]),S.useEffect(()=>()=>{b&&(g.layers.delete(b),g.layersWithOutsidePointerEventsDisabled.delete(b),d1())},[b,g]),S.useEffect(()=>{const ie=()=>N({});return document.addEventListener(bg,ie),()=>document.removeEventListener(bg,ie)},[]),m.jsx($t.div,{...p,ref:T,style:{pointerEvents:I?ee?"auto":"none":void 0,...e.style},onFocusCapture:lt(e.onFocusCapture,q.onFocusCapture),onBlurCapture:lt(e.onBlurCapture,q.onBlurCapture),onPointerDownCapture:lt(e.onPointerDownCapture,z.onPointerDownCapture)})});Iy.displayName=n5;var i5="DismissableLayerBranch",o5=S.forwardRef((e,n)=>{const a=S.useContext(yA),i=S.useRef(null),s=Jt(n,i);return S.useEffect(()=>{const c=i.current;if(c)return a.branches.add(c),()=>{a.branches.delete(c)}},[a.branches]),m.jsx($t.div,{...e,ref:s})});o5.displayName=i5;function s5(e,n=globalThis==null?void 0:globalThis.document){const a=va(e),i=S.useRef(!1),s=S.useRef(()=>{});return S.useEffect(()=>{const c=f=>{if(f.target&&!i.current){let p=function(){vA(r5,a,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=p,n.addEventListener("click",s.current,{once:!0})):p()}else n.removeEventListener("click",s.current);i.current=!1},u=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",c),n.removeEventListener("click",s.current)}},[n,a]),{onPointerDownCapture:()=>i.current=!0}}function l5(e,n=globalThis==null?void 0:globalThis.document){const a=va(e),i=S.useRef(!1);return S.useEffect(()=>{const s=c=>{c.target&&!i.current&&vA(a5,a,{originalEvent:c},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,a]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function d1(){const e=new CustomEvent(bg);document.dispatchEvent(e)}function vA(e,n,a,{discrete:i}){const s=a.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});n&&s.addEventListener(e,n,{once:!0}),i?gA(s,c):s.dispatchEvent(c)}var Dp=0;function bA(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??f1()),document.body.insertAdjacentElement("beforeend",e[1]??f1()),Dp++,()=>{Dp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Dp--}},[])}function f1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var kp="focusScope.autoFocusOnMount",Pp="focusScope.autoFocusOnUnmount",h1={bubbles:!1,cancelable:!0},c5="FocusScope",zy=S.forwardRef((e,n)=>{const{loop:a=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...u}=e,[f,p]=S.useState(null),g=va(s),b=va(c),x=S.useRef(null),E=Jt(n,R=>p(R)),N=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(i){let R=function(I){if(N.paused||!f)return;const ee=I.target;f.contains(ee)?x.current=ee:go(x.current,{select:!0})},M=function(I){if(N.paused||!f)return;const ee=I.relatedTarget;ee!==null&&(f.contains(ee)||go(x.current,{select:!0}))},D=function(I){if(document.activeElement===document.body)for(const z of I)z.removedNodes.length>0&&go(f)};document.addEventListener("focusin",R),document.addEventListener("focusout",M);const $=new MutationObserver(D);return f&&$.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",M),$.disconnect()}}},[i,f,N.paused]),S.useEffect(()=>{if(f){p1.add(N);const R=document.activeElement;if(!f.contains(R)){const D=new CustomEvent(kp,h1);f.addEventListener(kp,g),f.dispatchEvent(D),D.defaultPrevented||(u5(p5(xA(f)),{select:!0}),document.activeElement===R&&go(f))}return()=>{f.removeEventListener(kp,g),setTimeout(()=>{const D=new CustomEvent(Pp,h1);f.addEventListener(Pp,b),f.dispatchEvent(D),D.defaultPrevented||go(R??document.body,{select:!0}),f.removeEventListener(Pp,b),p1.remove(N)},0)}}},[f,g,b,N]);const T=S.useCallback(R=>{if(!a&&!i||N.paused)return;const M=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,D=document.activeElement;if(M&&D){const $=R.currentTarget,[I,ee]=d5($);I&&ee?!R.shiftKey&&D===ee?(R.preventDefault(),a&&go(I,{select:!0})):R.shiftKey&&D===I&&(R.preventDefault(),a&&go(ee,{select:!0})):D===$&&R.preventDefault()}},[a,i,N.paused]);return m.jsx($t.div,{tabIndex:-1,...u,ref:E,onKeyDown:T})});zy.displayName=c5;function u5(e,{select:n=!1}={}){const a=document.activeElement;for(const i of e)if(go(i,{select:n}),document.activeElement!==a)return}function d5(e){const n=xA(e),a=m1(n,e),i=m1(n.reverse(),e);return[a,i]}function xA(e){const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n}function m1(e,n){for(const a of e)if(!f5(a,{upTo:n}))return a}function f5(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function h5(e){return e instanceof HTMLInputElement&&"select"in e}function go(e,{select:n=!1}={}){if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&h5(e)&&n&&e.select()}}var p1=m5();function m5(){let e=[];return{add(n){const a=e[0];n!==a&&(a==null||a.pause()),e=g1(e,n),e.unshift(n)},remove(n){var a;e=g1(e,n),(a=e[0])==null||a.resume()}}}function g1(e,n){const a=[...e],i=a.indexOf(n);return i!==-1&&a.splice(i,1),a}function p5(e){return e.filter(n=>n.tagName!=="A")}var fs=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},g5=z2[" useId ".trim().toString()]||(()=>{}),y5=0;function Tl(e){const[n,a]=S.useState(g5());return fs(()=>{a(i=>i??String(y5++))},[e]),n?`radix-${n}`:""}const v5=["top","right","bottom","left"],wo=Math.min,Mr=Math.max,Yf=Math.round,uf=Math.floor,Ga=e=>({x:e,y:e}),b5={left:"right",right:"left",bottom:"top",top:"bottom"},x5={start:"end",end:"start"};function xg(e,n,a){return Mr(e,wo(n,a))}function Ri(e,n){return typeof e=="function"?e(n):e}function ji(e){return e.split("-")[0]}function Kl(e){return e.split("-")[1]}function Vy(e){return e==="x"?"y":"x"}function Uy(e){return e==="y"?"height":"width"}function So(e){return["top","bottom"].includes(ji(e))?"y":"x"}function By(e){return Vy(So(e))}function w5(e,n,a){a===void 0&&(a=!1);const i=Kl(e),s=By(e),c=Uy(s);let u=s==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(u=Xf(u)),[u,Xf(u)]}function S5(e){const n=Xf(e);return[wg(e),n,wg(n)]}function wg(e){return e.replace(/start|end/g,n=>x5[n])}function E5(e,n,a){const i=["left","right"],s=["right","left"],c=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return a?n?s:i:n?i:s;case"left":case"right":return n?c:u;default:return[]}}function A5(e,n,a,i){const s=Kl(e);let c=E5(ji(e),a==="start",i);return s&&(c=c.map(u=>u+"-"+s),n&&(c=c.concat(c.map(wg)))),c}function Xf(e){return e.replace(/left|right|bottom|top/g,n=>b5[n])}function _5(e){return{top:0,right:0,bottom:0,left:0,...e}}function wA(e){return typeof e!="number"?_5(e):{top:e,right:e,bottom:e,left:e}}function Wf(e){const{x:n,y:a,width:i,height:s}=e;return{width:i,height:s,top:a,left:n,right:n+i,bottom:a+s,x:n,y:a}}function y1(e,n,a){let{reference:i,floating:s}=e;const c=So(n),u=By(n),f=Uy(u),p=ji(n),g=c==="y",b=i.x+i.width/2-s.width/2,x=i.y+i.height/2-s.height/2,E=i[f]/2-s[f]/2;let N;switch(p){case"top":N={x:b,y:i.y-s.height};break;case"bottom":N={x:b,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:x};break;case"left":N={x:i.x-s.width,y:x};break;default:N={x:i.x,y:i.y}}switch(Kl(n)){case"start":N[u]-=E*(a&&g?-1:1);break;case"end":N[u]+=E*(a&&g?-1:1);break}return N}const N5=async(e,n,a)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:u}=a,f=c.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(n));let g=await u.getElementRects({reference:e,floating:n,strategy:s}),{x:b,y:x}=y1(g,i,p),E=i,N={},T=0;for(let R=0;R<f.length;R++){const{name:M,fn:D}=f[R],{x:$,y:I,data:ee,reset:z}=await D({x:b,y:x,initialPlacement:i,placement:E,strategy:s,middlewareData:N,rects:g,platform:u,elements:{reference:e,floating:n}});b=$??b,x=I??x,N={...N,[M]:{...N[M],...ee}},z&&T<=50&&(T++,typeof z=="object"&&(z.placement&&(E=z.placement),z.rects&&(g=z.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:s}):z.rects),{x:b,y:x}=y1(g,E,p)),R=-1)}return{x:b,y:x,placement:E,strategy:s,middlewareData:N}};async function Tu(e,n){var a;n===void 0&&(n={});const{x:i,y:s,platform:c,rects:u,elements:f,strategy:p}=e,{boundary:g="clippingAncestors",rootBoundary:b="viewport",elementContext:x="floating",altBoundary:E=!1,padding:N=0}=Ri(n,e),T=wA(N),M=f[E?x==="floating"?"reference":"floating":x],D=Wf(await c.getClippingRect({element:(a=await(c.isElement==null?void 0:c.isElement(M)))==null||a?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:g,rootBoundary:b,strategy:p})),$=x==="floating"?{x:i,y:s,width:u.floating.width,height:u.floating.height}:u.reference,I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),ee=await(c.isElement==null?void 0:c.isElement(I))?await(c.getScale==null?void 0:c.getScale(I))||{x:1,y:1}:{x:1,y:1},z=Wf(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:$,offsetParent:I,strategy:p}):$);return{top:(D.top-z.top+T.top)/ee.y,bottom:(z.bottom-D.bottom+T.bottom)/ee.y,left:(D.left-z.left+T.left)/ee.x,right:(z.right-D.right+T.right)/ee.x}}const C5=e=>({name:"arrow",options:e,async fn(n){const{x:a,y:i,placement:s,rects:c,platform:u,elements:f,middlewareData:p}=n,{element:g,padding:b=0}=Ri(e,n)||{};if(g==null)return{};const x=wA(b),E={x:a,y:i},N=By(s),T=Uy(N),R=await u.getDimensions(g),M=N==="y",D=M?"top":"left",$=M?"bottom":"right",I=M?"clientHeight":"clientWidth",ee=c.reference[T]+c.reference[N]-E[N]-c.floating[T],z=E[N]-c.reference[N],q=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let ie=q?q[I]:0;(!ie||!await(u.isElement==null?void 0:u.isElement(q)))&&(ie=f.floating[I]||c.floating[T]);const be=ee/2-z/2,me=ie/2-R[T]/2-1,xe=wo(x[D],me),Re=wo(x[$],me),Ve=xe,Ue=ie-R[T]-Re,Ye=ie/2-R[T]/2+be,tt=xg(Ve,Ye,Ue),pe=!p.arrow&&Kl(s)!=null&&Ye!==tt&&c.reference[T]/2-(Ye<Ve?xe:Re)-R[T]/2<0,Me=pe?Ye<Ve?Ye-Ve:Ye-Ue:0;return{[N]:E[N]+Me,data:{[N]:tt,centerOffset:Ye-tt-Me,...pe&&{alignmentOffset:Me}},reset:pe}}}),T5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var a,i;const{placement:s,middlewareData:c,rects:u,initialPlacement:f,platform:p,elements:g}=n,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:E,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:R=!0,...M}=Ri(e,n);if((a=c.arrow)!=null&&a.alignmentOffset)return{};const D=ji(s),$=So(f),I=ji(f)===f,ee=await(p.isRTL==null?void 0:p.isRTL(g.floating)),z=E||(I||!R?[Xf(f)]:S5(f)),q=T!=="none";!E&&q&&z.push(...A5(f,R,T,ee));const ie=[f,...z],be=await Tu(n,M),me=[];let xe=((i=c.flip)==null?void 0:i.overflows)||[];if(b&&me.push(be[D]),x){const Ye=w5(s,u,ee);me.push(be[Ye[0]],be[Ye[1]])}if(xe=[...xe,{placement:s,overflows:me}],!me.every(Ye=>Ye<=0)){var Re,Ve;const Ye=(((Re=c.flip)==null?void 0:Re.index)||0)+1,tt=ie[Ye];if(tt)return{data:{index:Ye,overflows:xe},reset:{placement:tt}};let pe=(Ve=xe.filter(Me=>Me.overflows[0]<=0).sort((Me,B)=>Me.overflows[1]-B.overflows[1])[0])==null?void 0:Ve.placement;if(!pe)switch(N){case"bestFit":{var Ue;const Me=(Ue=xe.filter(B=>{if(q){const K=So(B.placement);return K===$||K==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(K=>K>0).reduce((K,P)=>K+P,0)]).sort((B,K)=>B[1]-K[1])[0])==null?void 0:Ue[0];Me&&(pe=Me);break}case"initialPlacement":pe=f;break}if(s!==pe)return{reset:{placement:pe}}}return{}}}};function v1(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function b1(e){return v5.some(n=>e[n]>=0)}const R5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:a}=n,{strategy:i="referenceHidden",...s}=Ri(e,n);switch(i){case"referenceHidden":{const c=await Tu(n,{...s,elementContext:"reference"}),u=v1(c,a.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:b1(u)}}}case"escaped":{const c=await Tu(n,{...s,altBoundary:!0}),u=v1(c,a.floating);return{data:{escapedOffsets:u,escaped:b1(u)}}}default:return{}}}}};async function j5(e,n){const{placement:a,platform:i,elements:s}=e,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=ji(a),f=Kl(a),p=So(a)==="y",g=["left","top"].includes(u)?-1:1,b=c&&p?-1:1,x=Ri(n,e);let{mainAxis:E,crossAxis:N,alignmentAxis:T}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof T=="number"&&(N=f==="end"?T*-1:T),p?{x:N*b,y:E*g}:{x:E*g,y:N*b}}const M5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var a,i;const{x:s,y:c,placement:u,middlewareData:f}=n,p=await j5(n,e);return u===((a=f.offset)==null?void 0:a.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:u}}}}},O5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:a,y:i,placement:s}=n,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:M=>{let{x:D,y:$}=M;return{x:D,y:$}}},...p}=Ri(e,n),g={x:a,y:i},b=await Tu(n,p),x=So(ji(s)),E=Vy(x);let N=g[E],T=g[x];if(c){const M=E==="y"?"top":"left",D=E==="y"?"bottom":"right",$=N+b[M],I=N-b[D];N=xg($,N,I)}if(u){const M=x==="y"?"top":"left",D=x==="y"?"bottom":"right",$=T+b[M],I=T-b[D];T=xg($,T,I)}const R=f.fn({...n,[E]:N,[x]:T});return{...R,data:{x:R.x-a,y:R.y-i,enabled:{[E]:c,[x]:u}}}}}},D5=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:a,y:i,placement:s,rects:c,middlewareData:u}=n,{offset:f=0,mainAxis:p=!0,crossAxis:g=!0}=Ri(e,n),b={x:a,y:i},x=So(s),E=Vy(x);let N=b[E],T=b[x];const R=Ri(f,n),M=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(p){const I=E==="y"?"height":"width",ee=c.reference[E]-c.floating[I]+M.mainAxis,z=c.reference[E]+c.reference[I]-M.mainAxis;N<ee?N=ee:N>z&&(N=z)}if(g){var D,$;const I=E==="y"?"width":"height",ee=["top","left"].includes(ji(s)),z=c.reference[x]-c.floating[I]+(ee&&((D=u.offset)==null?void 0:D[x])||0)+(ee?0:M.crossAxis),q=c.reference[x]+c.reference[I]+(ee?0:(($=u.offset)==null?void 0:$[x])||0)-(ee?M.crossAxis:0);T<z?T=z:T>q&&(T=q)}return{[E]:N,[x]:T}}}},k5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var a,i;const{placement:s,rects:c,platform:u,elements:f}=n,{apply:p=()=>{},...g}=Ri(e,n),b=await Tu(n,g),x=ji(s),E=Kl(s),N=So(s)==="y",{width:T,height:R}=c.floating;let M,D;x==="top"||x==="bottom"?(M=x,D=E===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(D=x,M=E==="end"?"top":"bottom");
vendor: 10,174 bytes, line 289
289const $=R-b.top-b.bottom,I=T-b.left-b.right,ee=wo(R-b[M],$),z=wo(T-b[D],I),q=!n.middlewareData.shift;let ie=ee,be=z;if((a=n.middlewareData.shift)!=null&&a.enabled.x&&(be=I),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(ie=$),q&&!E){const xe=Mr(b.left,0),Re=Mr(b.right,0),Ve=Mr(b.top,0),Ue=Mr(b.bottom,0);N?be=T-2*(xe!==0||Re!==0?xe+Re:Mr(b.left,b.right)):ie=R-2*(Ve!==0||Ue!==0?Ve+Ue:Mr(b.top,b.bottom))}await p({...n,availableWidth:be,availableHeight:ie});const me=await u.getDimensions(f.floating);return T!==me.width||R!==me.height?{reset:{rects:!0}}:{}}}};function mh(){return typeof window<"u"}function Yl(e){return SA(e)?(e.nodeName||"").toLowerCase():"#document"}function Or(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Wa(e){var n;return(n=(SA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function SA(e){return mh()?e instanceof Node||e instanceof Or(e).Node:!1}function ba(e){return mh()?e instanceof Element||e instanceof Or(e).Element:!1}function Ka(e){return mh()?e instanceof HTMLElement||e instanceof Or(e).HTMLElement:!1}function x1(e){return!mh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Or(e).ShadowRoot}function Bu(e){const{overflow:n,overflowX:a,overflowY:i,display:s}=xa(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+a)&&!["inline","contents"].includes(s)}function P5(e){return["table","td","th"].includes(Yl(e))}function ph(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function $y(e){const n=Fy(),a=ba(e)?xa(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>a[i]?a[i]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!n&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!n&&(a.filter?a.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function L5(e){let n=Eo(e);for(;Ka(n)&&!Il(n);){if($y(n))return n;if(ph(n))return null;n=Eo(n)}return null}function Fy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Il(e){return["html","body","#document"].includes(Yl(e))}function xa(e){return Or(e).getComputedStyle(e)}function gh(e){return ba(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Eo(e){if(Yl(e)==="html")return e;const n=e.assignedSlot||e.parentNode||x1(e)&&e.host||Wa(e);return x1(n)?n.host:n}function EA(e){const n=Eo(e);return Il(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ka(n)&&Bu(n)?n:EA(n)}function Ru(e,n,a){var i;n===void 0&&(n=[]),a===void 0&&(a=!0);const s=EA(e),c=s===((i=e.ownerDocument)==null?void 0:i.body),u=Or(s);if(c){const f=Sg(u);return n.concat(u,u.visualViewport||[],Bu(s)?s:[],f&&a?Ru(f):[])}return n.concat(s,Ru(s,[],a))}function Sg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AA(e){const n=xa(e);let a=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const s=Ka(e),c=s?e.offsetWidth:a,u=s?e.offsetHeight:i,f=Yf(a)!==c||Yf(i)!==u;return f&&(a=c,i=u),{width:a,height:i,$:f}}function qy(e){return ba(e)?e:e.contextElement}function Rl(e){const n=qy(e);if(!Ka(n))return Ga(1);const a=n.getBoundingClientRect(),{width:i,height:s,$:c}=AA(n);let u=(c?Yf(a.width):a.width)/i,f=(c?Yf(a.height):a.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const I5=Ga(0);function _A(e){const n=Or(e);return!Fy()||!n.visualViewport?I5:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function z5(e,n,a){return n===void 0&&(n=!1),!a||n&&a!==Or(e)?!1:n}function hs(e,n,a,i){n===void 0&&(n=!1),a===void 0&&(a=!1);const s=e.getBoundingClientRect(),c=qy(e);let u=Ga(1);n&&(i?ba(i)&&(u=Rl(i)):u=Rl(e));const f=z5(c,a,i)?_A(c):Ga(0);let p=(s.left+f.x)/u.x,g=(s.top+f.y)/u.y,b=s.width/u.x,x=s.height/u.y;if(c){const E=Or(c),N=i&&ba(i)?Or(i):i;let T=E,R=Sg(T);for(;R&&i&&N!==T;){const M=Rl(R),D=R.getBoundingClientRect(),$=xa(R),I=D.left+(R.clientLeft+parseFloat($.paddingLeft))*M.x,ee=D.top+(R.clientTop+parseFloat($.paddingTop))*M.y;p*=M.x,g*=M.y,b*=M.x,x*=M.y,p+=I,g+=ee,T=Or(R),R=Sg(T)}}return Wf({width:b,height:x,x:p,y:g})}function Hy(e,n){const a=gh(e).scrollLeft;return n?n.left+a:hs(Wa(e)).left+a}function NA(e,n,a){a===void 0&&(a=!1);const i=e.getBoundingClientRect(),s=i.left+n.scrollLeft-(a?0:Hy(e,i)),c=i.top+n.scrollTop;return{x:s,y:c}}function V5(e){let{elements:n,rect:a,offsetParent:i,strategy:s}=e;const c=s==="fixed",u=Wa(i),f=n?ph(n.floating):!1;if(i===u||f&&c)return a;let p={scrollLeft:0,scrollTop:0},g=Ga(1);const b=Ga(0),x=Ka(i);if((x||!x&&!c)&&((Yl(i)!=="body"||Bu(u))&&(p=gh(i)),Ka(i))){const N=hs(i);g=Rl(i),b.x=N.x+i.clientLeft,b.y=N.y+i.clientTop}const E=u&&!x&&!c?NA(u,p,!0):Ga(0);return{width:a.width*g.x,height:a.height*g.y,x:a.x*g.x-p.scrollLeft*g.x+b.x+E.x,y:a.y*g.y-p.scrollTop*g.y+b.y+E.y}}function U5(e){return Array.from(e.getClientRects())}function B5(e){const n=Wa(e),a=gh(e),i=e.ownerDocument.body,s=Mr(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),c=Mr(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let u=-a.scrollLeft+Hy(e);const f=-a.scrollTop;return xa(i).direction==="rtl"&&(u+=Mr(n.clientWidth,i.clientWidth)-s),{width:s,height:c,x:u,y:f}}function $5(e,n){const a=Or(e),i=Wa(e),s=a.visualViewport;let c=i.clientWidth,u=i.clientHeight,f=0,p=0;if(s){c=s.width,u=s.height;const g=Fy();(!g||g&&n==="fixed")&&(f=s.offsetLeft,p=s.offsetTop)}return{width:c,height:u,x:f,y:p}}function F5(e,n){const a=hs(e,!0,n==="fixed"),i=a.top+e.clientTop,s=a.left+e.clientLeft,c=Ka(e)?Rl(e):Ga(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,p=s*c.x,g=i*c.y;return{width:u,height:f,x:p,y:g}}function w1(e,n,a){let i;if(n==="viewport")i=$5(e,a);else if(n==="document")i=B5(Wa(e));else if(ba(n))i=F5(n,a);else{const s=_A(e);i={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return Wf(i)}function CA(e,n){const a=Eo(e);return a===n||!ba(a)||Il(a)?!1:xa(a).position==="fixed"||CA(a,n)}function q5(e,n){const a=n.get(e);if(a)return a;let i=Ru(e,[],!1).filter(f=>ba(f)&&Yl(f)!=="body"),s=null;const c=xa(e).position==="fixed";let u=c?Eo(e):e;for(;ba(u)&&!Il(u);){const f=xa(u),p=$y(u);!p&&f.position==="fixed"&&(s=null),(c?!p&&!s:!p&&f.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Bu(u)&&!p&&CA(e,u))?i=i.filter(b=>b!==u):s=f,u=Eo(u)}return n.set(e,i),i}function H5(e){let{element:n,boundary:a,rootBoundary:i,strategy:s}=e;const u=[...a==="clippingAncestors"?ph(n)?[]:q5(n,this._c):[].concat(a),i],f=u[0],p=u.reduce((g,b)=>{const x=w1(n,b,s);return g.top=Mr(x.top,g.top),g.right=wo(x.right,g.right),g.bottom=wo(x.bottom,g.bottom),g.left=Mr(x.left,g.left),g},w1(n,f,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function G5(e){const{width:n,height:a}=AA(e);return{width:n,height:a}}function K5(e,n,a){const i=Ka(n),s=Wa(n),c=a==="fixed",u=hs(e,!0,c,n);let f={scrollLeft:0,scrollTop:0};const p=Ga(0);if(i||!i&&!c)if((Yl(n)!=="body"||Bu(s))&&(f=gh(n)),i){const E=hs(n,!0,c,n);p.x=E.x+n.clientLeft,p.y=E.y+n.clientTop}else s&&(p.x=Hy(s));const g=s&&!i&&!c?NA(s,f):Ga(0),b=u.left+f.scrollLeft-p.x-g.x,x=u.top+f.scrollTop-p.y-g.y;return{x:b,y:x,width:u.width,height:u.height}}function Lp(e){return xa(e).position==="static"}function S1(e,n){if(!Ka(e)||xa(e).position==="fixed")return null;if(n)return n(e);let a=e.offsetParent;return Wa(e)===a&&(a=a.ownerDocument.body),a}function TA(e,n){const a=Or(e);if(ph(e))return a;if(!Ka(e)){let s=Eo(e);for(;s&&!Il(s);){if(ba(s)&&!Lp(s))return s;s=Eo(s)}return a}let i=S1(e,n);for(;i&&P5(i)&&Lp(i);)i=S1(i,n);return i&&Il(i)&&Lp(i)&&!$y(i)?a:i||L5(e)||a}const Y5=async function(e){const n=this.getOffsetParent||TA,a=this.getDimensions,i=await a(e.floating);return{reference:K5(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function X5(e){return xa(e).direction==="rtl"}const W5={convertOffsetParentRelativeRectToViewportRelativeRect:V5,getDocumentElement:Wa,getClippingRect:H5,getOffsetParent:TA,getElementRects:Y5,getClientRects:U5,getDimensions:G5,getScale:Rl,isElement:ba,isRTL:X5};function RA(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Z5(e,n){let a=null,i;const s=Wa(e);function c(){var f;clearTimeout(i),(f=a)==null||f.disconnect(),a=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),c();const g=e.getBoundingClientRect(),{left:b,top:x,width:E,height:N}=g;if(f||n(),!E||!N)return;const T=uf(x),R=uf(s.clientWidth-(b+E)),M=uf(s.clientHeight-(x+N)),D=uf(b),I={rootMargin:-T+"px "+-R+"px "+-M+"px "+-D+"px",threshold:Mr(0,wo(1,p))||1};let ee=!0;function z(q){const ie=q[0].intersectionRatio;if(ie!==p){if(!ee)return u();ie?u(!1,ie):i=setTimeout(()=>{u(!1,1e-7)},1e3)}ie===1&&!RA(g,e.getBoundingClientRect())&&u(),ee=!1}try{a=new IntersectionObserver(z,{...I,root:s.ownerDocument})}catch{a=new IntersectionObserver(z,I)}a.observe(e)}return u(!0),c}function Q5(e,n,a,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=qy(e),b=s||c?[...g?Ru(g):[],...Ru(n)]:[];b.forEach(D=>{s&&D.addEventListener("scroll",a,{passive:!0}),c&&D.addEventListener("resize",a)});const x=g&&f?Z5(g,a):null;let E=-1,N=null;u&&(N=new ResizeObserver(D=>{let[$]=D;$&&$.target===g&&N&&(N.unobserve(n),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var I;(I=N)==null||I.observe(n)})),a()}),g&&!p&&N.observe(g),N.observe(n));let T,R=p?hs(e):null;p&&M();function M(){const D=hs(e);R&&!RA(R,D)&&a(),R=D,T=requestAnimationFrame(M)}return a(),()=>{var D;b.forEach($=>{s&&$.removeEventListener("scroll",a),c&&$.removeEventListener("resize",a)}),x==null||x(),(D=N)==null||D.disconnect(),N=null,p&&cancelAnimationFrame(T)}}const J5=M5,eI=O5,tI=T5,nI=k5,rI=R5,E1=C5,aI=D5,iI=(e,n,a)=>{const i=new Map,s={platform:W5,...a},c={...s.platform,_c:i};return N5(e,n,{...s,platform:c})};var Ef=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Zf(e,n){if(e===n)return!0;
vendor: 4,139 bytes, line 289
289if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let a,i,s;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==n.length)return!1;for(i=a;i--!==0;)if(!Zf(e[i],n[i]))return!1;return!0}if(s=Object.keys(e),a=s.length,a!==Object.keys(n).length)return!1;for(i=a;i--!==0;)if(!{}.hasOwnProperty.call(n,s[i]))return!1;for(i=a;i--!==0;){const c=s[i];if(!(c==="_owner"&&e.$$typeof)&&!Zf(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function jA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function A1(e,n){const a=jA(e);return Math.round(n*a)/a}function Ip(e){const n=S.useRef(e);return Ef(()=>{n.current=e}),n}function oI(e){e===void 0&&(e={});const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:p,open:g}=e,[b,x]=S.useState({x:0,y:0,strategy:a,placement:n,middlewareData:{},isPositioned:!1}),[E,N]=S.useState(i);Zf(E,i)||N(i);const[T,R]=S.useState(null),[M,D]=S.useState(null),$=S.useCallback(B=>{B!==q.current&&(q.current=B,R(B))},[]),I=S.useCallback(B=>{B!==ie.current&&(ie.current=B,D(B))},[]),ee=c||T,z=u||M,q=S.useRef(null),ie=S.useRef(null),be=S.useRef(b),me=p!=null,xe=Ip(p),Re=Ip(s),Ve=Ip(g),Ue=S.useCallback(()=>{if(!q.current||!ie.current)return;const B={placement:n,strategy:a,middleware:E};Re.current&&(B.platform=Re.current),iI(q.current,ie.current,B).then(K=>{const P={...K,isPositioned:Ve.current!==!1};Ye.current&&!Zf(be.current,P)&&(be.current=P,$g.flushSync(()=>{x(P)}))})},[E,n,a,Re,Ve]);Ef(()=>{g===!1&&be.current.isPositioned&&(be.current.isPositioned=!1,x(B=>({...B,isPositioned:!1})))},[g]);const Ye=S.useRef(!1);Ef(()=>(Ye.current=!0,()=>{Ye.current=!1}),[]),Ef(()=>{if(ee&&(q.current=ee),z&&(ie.current=z),ee&&z){if(xe.current)return xe.current(ee,z,Ue);Ue()}},[ee,z,Ue,xe,me]);const tt=S.useMemo(()=>({reference:q,floating:ie,setReference:$,setFloating:I}),[$,I]),pe=S.useMemo(()=>({reference:ee,floating:z}),[ee,z]),Me=S.useMemo(()=>{const B={position:a,left:0,top:0};if(!pe.floating)return B;const K=A1(pe.floating,b.x),P=A1(pe.floating,b.y);return f?{...B,transform:"translate("+K+"px, "+P+"px)",...jA(pe.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:K,top:P}},[a,f,pe.floating,b.x,b.y]);return S.useMemo(()=>({...b,update:Ue,refs:tt,elements:pe,floatingStyles:Me}),[b,Ue,tt,pe,Me])}const sI=e=>{function n(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){const{element:i,padding:s}=typeof e=="function"?e(a):e;return i&&n(i)?i.current!=null?E1({element:i.current,padding:s}).fn(a):{}:i?E1({element:i,padding:s}).fn(a):{}}}},lI=(e,n)=>({...J5(e),options:[e,n]}),cI=(e,n)=>({...eI(e),options:[e,n]}),uI=(e,n)=>({...aI(e),options:[e,n]}),dI=(e,n)=>({...tI(e),options:[e,n]}),fI=(e,n)=>({...nI(e),options:[e,n]}),hI=(e,n)=>({...rI(e),options:[e,n]}),mI=(e,n)=>({...sI(e),options:[e,n]});var pI="Arrow",MA=S.forwardRef((e,n)=>{const{children:a,width:i=10,height:s=5,...c}=e;return m.jsx($t.svg,{...c,ref:n,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});MA.displayName=pI;var gI=MA;function Gy(e){const[n,a]=S.useState(void 0);return fs(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let u,f;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;u=g.inlineSize,f=g.blockSize}else u=e.offsetWidth,f=e.offsetHeight;a({width:u,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else a(void 0)},[e]),n}var Ky="Popper",[OA,DA]=Xa(Ky),[yI,kA]=OA(Ky),PA=e=>{const{__scopePopper:n,children:a}=e,[i,s]=S.useState(null);return m.jsx(yI,{scope:n,anchor:i,onAnchorChange:s,children:a})};PA.displayName=Ky;var LA="PopperAnchor",IA=S.forwardRef((e,n)=>{const{__scopePopper:a,virtualRef:i,...s}=e,c=kA(LA,a),u=S.useRef(null),f=Jt(n,u);return S.useEffect(()=>{c.onAnchorChange((i==null?void 0:i.current)||u.current)}),i?null:m.jsx($t.div,{...s,ref:f})});IA.displayName=LA;
vendor: 9,466 bytes, line 289
289var Yy="PopperContent",[vI,bI]=OA(Yy),zA=S.forwardRef((e,n)=>{var ct,ft,Ie,Ct,vn,St;const{__scopePopper:a,side:i="bottom",sideOffset:s=0,align:c="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:N="optimized",onPlaced:T,...R}=e,M=kA(Yy,a),[D,$]=S.useState(null),I=Jt(n,ln=>$(ln)),[ee,z]=S.useState(null),q=Gy(ee),ie=(q==null?void 0:q.width)??0,be=(q==null?void 0:q.height)??0,me=i+(c!=="center"?"-"+c:""),xe=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Re=Array.isArray(g)?g:[g],Ve=Re.length>0,Ue={padding:xe,boundary:Re.filter(wI),altBoundary:Ve},{refs:Ye,floatingStyles:tt,placement:pe,isPositioned:Me,middlewareData:B}=oI({strategy:"fixed",placement:me,whileElementsMounted:(...ln)=>Q5(...ln,{animationFrame:N==="always"}),elements:{reference:M.anchor},middleware:[lI({mainAxis:s+be,alignmentAxis:u}),p&&cI({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?uI():void 0,...Ue}),p&&dI({...Ue}),fI({...Ue,apply:({elements:ln,rects:ra,availableWidth:tn,availableHeight:Dr})=>{const{width:Aa,height:br}=ra.reference,fr=ln.floating.style;fr.setProperty("--radix-popper-available-width",`${tn}px`),fr.setProperty("--radix-popper-available-height",`${Dr}px`),fr.setProperty("--radix-popper-anchor-width",`${Aa}px`),fr.setProperty("--radix-popper-anchor-height",`${br}px`)}}),ee&&mI({element:ee,padding:f}),SI({arrowWidth:ie,arrowHeight:be}),E&&hI({strategy:"referenceHidden",...Ue})]}),[K,P]=BA(pe),se=va(T);fs(()=>{Me&&(se==null||se())},[Me,se]);const _e=(ct=B.arrow)==null?void 0:ct.x,Ne=(ft=B.arrow)==null?void 0:ft.y,de=((Ie=B.arrow)==null?void 0:Ie.centerOffset)!==0,[He,$e]=S.useState();return fs(()=>{D&&$e(window.getComputedStyle(D).zIndex)},[D]),m.jsx("div",{ref:Ye.setFloating,"data-radix-popper-content-wrapper":"",style:{...tt,transform:Me?tt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(Ct=B.transformOrigin)==null?void 0:Ct.x,(vn=B.transformOrigin)==null?void 0:vn.y].join(" "),...((St=B.hide)==null?void 0:St.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(vI,{scope:a,placedSide:K,onArrowChange:z,arrowX:_e,arrowY:Ne,shouldHideArrow:de,children:m.jsx($t.div,{"data-side":K,"data-align":P,...R,ref:I,style:{...R.style,animation:Me?void 0:"none"}})})})});zA.displayName=Yy;var VA="PopperArrow",xI={top:"bottom",right:"left",bottom:"top",left:"right"},UA=S.forwardRef(function(n,a){const{__scopePopper:i,...s}=n,c=bI(VA,i),u=xI[c.placedSide];return m.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:m.jsx(gI,{...s,ref:a,style:{...s.style,display:"block"}})})});UA.displayName=VA;function wI(e){return e!==null}var SI=e=>({name:"transformOrigin",options:e,fn(n){var M,D,$;const{placement:a,rects:i,middlewareData:s}=n,u=((M=s.arrow)==null?void 0:M.centerOffset)!==0,f=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[g,b]=BA(a),x={start:"0%",center:"50%",end:"100%"}[b],E=(((D=s.arrow)==null?void 0:D.x)??0)+f/2,N=((($=s.arrow)==null?void 0:$.y)??0)+p/2;let T="",R="";return g==="bottom"?(T=u?x:`${E}px`,R=`${-p}px`):g==="top"?(T=u?x:`${E}px`,R=`${i.floating.height+p}px`):g==="right"?(T=`${-p}px`,R=u?x:`${N}px`):g==="left"&&(T=`${i.floating.width+p}px`,R=u?x:`${N}px`),{data:{x:T,y:R}}}});function BA(e){const[n,a="center"]=e.split("-");return[n,a]}var EI=PA,AI=IA,_I=zA,NI=UA,CI="Portal",Xy=S.forwardRef((e,n)=>{var f;const{container:a,...i}=e,[s,c]=S.useState(!1);fs(()=>c(!0),[]);const u=a||s&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?mR.createPortal(m.jsx($t.div,{...i,ref:n}),u):null});Xy.displayName=CI;function TI(e,n){return S.useReducer((a,i)=>n[a][i]??a,e)}var Co=e=>{const{present:n,children:a}=e,i=RI(n),s=typeof a=="function"?a({present:i.isPresent}):S.Children.only(a),c=Jt(i.ref,jI(s));return typeof a=="function"||i.isPresent?S.cloneElement(s,{ref:c}):null};Co.displayName="Presence";function RI(e){const[n,a]=S.useState(),i=S.useRef({}),s=S.useRef(e),c=S.useRef("none"),u=e?"mounted":"unmounted",[f,p]=TI(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const g=df(i.current);c.current=f==="mounted"?g:"none"},[f]),fs(()=>{const g=i.current,b=s.current;if(b!==e){const E=c.current,N=df(g);e?p("MOUNT"):N==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(b&&E!==N?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,p]),fs(()=>{if(n){let g;const b=n.ownerDocument.defaultView??window,x=N=>{const R=df(i.current).includes(N.animationName);if(N.target===n&&R&&(p("ANIMATION_END"),!s.current)){const M=n.style.animationFillMode;n.style.animationFillMode="forwards",g=b.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=M)})}},E=N=>{N.target===n&&(c.current=df(i.current))};return n.addEventListener("animationstart",E),n.addEventListener("animationcancel",x),n.addEventListener("animationend",x),()=>{b.clearTimeout(g),n.removeEventListener("animationstart",E),n.removeEventListener("animationcancel",x),n.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(g=>{g&&(i.current=getComputedStyle(g)),a(g)},[])}}function df(e){return(e==null?void 0:e.animationName)||"none"}function jI(e){var i,s;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,a=n&&"isReactWarning"in n&&n.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var zp="rovingFocusGroup.onEntryFocus",MI={bubbles:!1,cancelable:!0},yh="RovingFocusGroup",[Eg,$A,OI]=Py(yh),[DI,FA]=Xa(yh,[OI]),[kI,PI]=DI(yh),qA=S.forwardRef((e,n)=>m.jsx(Eg.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Eg.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(LI,{...e,ref:n})})}));qA.displayName=yh;var LI=S.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:a,orientation:i,loop:s=!1,dir:c,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:b=!1,...x}=e,E=S.useRef(null),N=Jt(n,E),T=Ly(c),[R=null,M]=Uu({prop:u,defaultProp:f,onChange:p}),[D,$]=S.useState(!1),I=va(g),ee=$A(a),z=S.useRef(!1),[q,ie]=S.useState(0);return S.useEffect(()=>{const be=E.current;if(be)return be.addEventListener(zp,I),()=>be.removeEventListener(zp,I)},[I]),m.jsx(kI,{scope:a,orientation:i,dir:T,loop:s,currentTabStopId:R,onItemFocus:S.useCallback(be=>M(be),[M]),onItemShiftTab:S.useCallback(()=>$(!0),[]),onFocusableItemAdd:S.useCallback(()=>ie(be=>be+1),[]),onFocusableItemRemove:S.useCallback(()=>ie(be=>be-1),[]),children:m.jsx($t.div,{tabIndex:D||q===0?-1:0,"data-orientation":i,...x,ref:N,style:{outline:"none",...e.style},onMouseDown:lt(e.onMouseDown,()=>{z.current=!0}),onFocus:lt(e.onFocus,be=>{const me=!z.current;if(be.target===be.currentTarget&&me&&!D){const xe=new CustomEvent(zp,MI);if(be.currentTarget.dispatchEvent(xe),!xe.defaultPrevented){const Re=ee().filter(pe=>pe.focusable),Ve=Re.find(pe=>pe.active),Ue=Re.find(pe=>pe.id===R),tt=[Ve,Ue,...Re].filter(Boolean).map(pe=>pe.ref.current);KA(tt,b)}}z.current=!1}),onBlur:lt(e.onBlur,()=>$(!1))})})}),HA="RovingFocusGroupItem",GA=S.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:a,focusable:i=!0,active:s=!1,tabStopId:c,...u}=e,f=Tl(),p=c||f,g=PI(HA,a),b=g.currentTabStopId===p,x=$A(a),{onFocusableItemAdd:E,onFocusableItemRemove:N}=g;return S.useEffect(()=>{if(i)return E(),()=>N()},[i,E,N]),m.jsx(Eg.ItemSlot,{scope:a,id:p,focusable:i,active:s,children:m.jsx($t.span,{tabIndex:b?0:-1,"data-orientation":g.orientation,...u,ref:n,onMouseDown:lt(e.onMouseDown,T=>{i?g.onItemFocus(p):T.preventDefault()}),onFocus:lt(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:lt(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){g.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const R=VI(T,g.orientation,g.dir);if(R!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let D=x().filter($=>$.focusable).map($=>$.ref.current);if(R==="last")D.reverse();else if(R==="prev"||R==="next"){R==="prev"&&D.reverse();const $=D.indexOf(T.currentTarget);D=g.loop?UI(D,$+1):D.slice($+1)}setTimeout(()=>KA(D))}})})})});GA.displayName=HA;var II={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zI(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function VI(e,n,a){const i=zI(e.key,a);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return II[i]}function KA(e,n=!1){const a=document.activeElement;for(const i of e)if(i===a||(i.focus({preventScroll:n}),document.activeElement!==a))return}function UI(e,n){return e.map((a,i)=>e[(n+i)%e.length])}var BI=qA,$I=GA,FI=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body}
vendor: 3,988 bytes, line 289
289,pl=new WeakMap,ff=new WeakMap,hf={},Vp=0,YA=function(e){return e&&(e.host||YA(e.parentNode))},qI=function(e,n){return n.map(function(a){if(e.contains(a))return a;var i=YA(a);return i&&e.contains(i)?i:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},HI=function(e,n,a,i){var s=qI(n,Array.isArray(e)?e:[e]);hf[a]||(hf[a]=new WeakMap);var c=hf[a],u=[],f=new Set,p=new Set(s),g=function(x){!x||f.has(x)||(f.add(x),g(x.parentNode))};s.forEach(g);var b=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(E){if(f.has(E))b(E);else try{var N=E.getAttribute(i),T=N!==null&&N!=="false",R=(pl.get(E)||0)+1,M=(c.get(E)||0)+1;pl.set(E,R),c.set(E,M),u.push(E),R===1&&T&&ff.set(E,!0),M===1&&E.setAttribute(a,"true"),T||E.setAttribute(i,"true")}catch(D){console.error("aria-hidden: cannot operate on ",E,D)}})};return b(n),f.clear(),Vp++,function(){u.forEach(function(x){var E=pl.get(x)-1,N=c.get(x)-1;pl.set(x,E),c.set(x,N),E||(ff.has(x)||x.removeAttribute(i),ff.delete(x)),N||x.removeAttribute(a)}),Vp--,Vp||(pl=new WeakMap,pl=new WeakMap,ff=new WeakMap,hf={})}},XA=function(e,n,a){a===void 0&&(a="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=FI(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live]"))),HI(i,s,a,"aria-hidden")):function(){return null}},Ua=function(){return Ua=Object.assign||function(n){for(var a,i=1,s=arguments.length;i<s;i++){a=arguments[i];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])}return n},Ua.apply(this,arguments)};function WA(e,n){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(a[i[s]]=e[i[s]]);return a}function GI(e,n,a){if(a||arguments.length===2)for(var i=0,s=n.length,c;i<s;i++)(c||!(i in n))&&(c||(c=Array.prototype.slice.call(n,0,i)),c[i]=n[i]);return e.concat(c||Array.prototype.slice.call(n))}var Af="right-scroll-bar-position",_f="width-before-scroll-bar",KI="with-scroll-bars-hidden",YI="--removed-body-scroll-bar-size";function Up(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function XI(e,n){var a=S.useState(function(){return{value:e,callback:n,facade:{get current(){return a.value},set current(i){var s=a.value;s!==i&&(a.value=i,a.callback(i,s))}}}})[0];return a.callback=n,a.facade}var WI=typeof window<"u"?S.useLayoutEffect:S.useEffect,_1=new WeakMap;function ZI(e,n){var a=XI(null,function(i){return e.forEach(function(s){return Up(s,i)})});return WI(function(){var i=_1.get(a);if(i){var s=new Set(i),c=new Set(e),u=a.current;s.forEach(function(f){c.has(f)||Up(f,null)}),c.forEach(function(f){s.has(f)||Up(f,u)})}_1.set(a,e)},[e]),a}function QI(e){return e}function JI(e,n){n===void 0&&(n=QI);var a=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(c){var u=n(c,i);return a.push(u),function(){a=a.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(i=!0;a.length;){var u=a;a=[],u.forEach(c)}a={push:function(f){return c(f)},filter:function(){return a}}},assignMedium:function(c){i=!0;var u=[];if(a.length){var f=a;a=[],f.forEach(c),u=a}var p=function(){var b=u;u=[],b.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),a={push:function(b){u.push(b),g()},filter:function(b){return u=u.filter(b),a}}}};return s}function e6(e){e===void 0&&(e={});var n=JI(null);return n.options=Ua({async:!0,ssr:!1},e),n}var ZA=function(e){var n=e.sideCar,a=WA(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return S.createElement(i,Ua({},a))};ZA.isSideCarExport=!0;
vendor: 22,616 bytes, lines 289-329
289function t6(e,n){return e.useMedium(n),ZA}var QA=e6(),Bp=function(){},vh=S.forwardRef(function(e,n){var a=S.useRef(null),i=S.useState({onScrollCapture:Bp,onWheelCapture:Bp,onTouchMoveCapture:Bp}),s=i[0],c=i[1],u=e.forwardProps,f=e.children,p=e.className,g=e.removeScrollBar,b=e.enabled,x=e.shards,E=e.sideCar,N=e.noIsolation,T=e.inert,R=e.allowPinchZoom,M=e.as,D=M===void 0?"div":M,$=e.gapMode,I=WA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=E,z=ZI([a,n]),q=Ua(Ua({},I),s);return S.createElement(S.Fragment,null,b&&S.createElement(ee,{sideCar:QA,removeScrollBar:g,shards:x,noIsolation:N,inert:T,setCallbacks:c,allowPinchZoom:!!R,lockRef:a,gapMode:$}),u?S.cloneElement(S.Children.only(f),Ua(Ua({},q),{ref:z})):S.createElement(D,Ua({},q,{className:p,ref:z}),f))});vh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vh.classNames={fullWidth:_f,zeroRight:Af};var n6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function r6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=n6();return n&&e.setAttribute("nonce",n),e}function a6(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function i6(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var o6=function(){var e=0,n=null;return{add:function(a){e==0&&(n=r6())&&(a6(n,a),i6(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},s6=function(){var e=o6();return function(n,a){S.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&a])}},JA=function(){var e=s6(),n=function(a){var i=a.styles,s=a.dynamic;return e(i,s),null};return n},l6={left:0,top:0,right:0,gap:0},$p=function(e){return parseInt(e||"",10)||0},c6=function(e){var n=window.getComputedStyle(document.body),a=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[$p(a),$p(i),$p(s)]},u6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return l6;var n=c6(e),a=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-a+n[2]-n[0])}},d6=JA(),jl="data-scroll-locked",f6=function(e,n,a,i){var s=e.left,c=e.top,u=e.right,f=e.gap;return a===void 0&&(a="margin"),`
290  .`.concat(KI,` {
291   overflow: hidden `).concat(i,`;
292   padding-right: `).concat(f,"px ").concat(i,`;
293  }
294  body[`).concat(jl,`] {
295    overflow: hidden `).concat(i,`;
296    overscroll-behavior: contain;
297    `).concat([n&&"position: relative ".concat(i,";"),a==="margin"&&`
298    padding-left: `.concat(s,`px;
299    padding-top: `).concat(c,`px;
300    padding-right: `).concat(u,`px;
301    margin-left:0;
302    margin-top:0;
303    margin-right: `).concat(f,"px ").concat(i,`;
304    `),a==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
305  }
306  
307  .`).concat(Af,` {
308    right: `).concat(f,"px ").concat(i,`;
309  }
310  
311  .`).concat(_f,` {
312    margin-right: `).concat(f,"px ").concat(i,`;
313  }
314  
315  .`).concat(Af," .").concat(Af,` {
316    right: 0 `).concat(i,`;
317  }
318  
319  .`).concat(_f," .").concat(_f,` {
320    margin-right: 0 `).concat(i,`;
321  }
322  
323  body[`).concat(jl,`] {
324    `).concat(YI,": ").concat(f,`px;
325  }
326`)},N1=function(){var e=parseInt(document.body.getAttribute(jl)||"0",10);return isFinite(e)?e:0},h6=function(){S.useEffect(function(){return document.body.setAttribute(jl,(N1()+1).toString()),function(){var e=N1()-1;e<=0?document.body.removeAttribute(jl):document.body.setAttribute(jl,e.toString())}},[])},m6=function(e){var n=e.noRelative,a=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;h6();var c=S.useMemo(function(){return u6(s)},[s]);return S.createElement(d6,{styles:f6(c,!n,s,a?"":"!important")})},Ag=!1;if(typeof window<"u")try{var mf=Object.defineProperty({},"passive",{get:function(){return Ag=!0,!0}});window.addEventListener("test",mf,mf),window.removeEventListener("test",mf,mf)}catch{Ag=!1}var gl=Ag?{passive:!1}:!1,p6=function(e){return e.tagName==="TEXTAREA"},e_=function(e,n){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[n]!=="hidden"&&!(a.overflowY===a.overflowX&&!p6(e)&&a[n]==="visible")},g6=function(e){return e_(e,"overflowY")},y6=function(e){return e_(e,"overflowX")},C1=function(e,n){var a=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=t_(e,i);if(s){var c=n_(e,i),u=c[1],f=c[2];if(u>f)return!0}i=i.parentNode}while(i&&i!==a.body);return!1},v6=function(e){var n=e.scrollTop,a=e.scrollHeight,i=e.clientHeight;return[n,a,i]},b6=function(e){var n=e.scrollLeft,a=e.scrollWidth,i=e.clientWidth;return[n,a,i]},t_=function(e,n){return e==="v"?g6(n):y6(n)},n_=function(e,n){return e==="v"?v6(n):b6(n)},x6=function(e,n){return e==="h"&&n==="rtl"?-1:1},w6=function(e,n,a,i,s){var c=x6(e,window.getComputedStyle(n).direction),u=c*i,f=a.target,p=n.contains(f),g=!1,b=u>0,x=0,E=0;do{var N=n_(e,f),T=N[0],R=N[1],M=N[2],D=R-M-c*T;(T||D)&&t_(e,f)&&(x+=D,E+=T),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!p&&f!==document.body||p&&(n.contains(f)||n===f));return(b&&Math.abs(x)<1||!b&&Math.abs(E)<1)&&(g=!0),g},pf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},T1=function(e){return[e.deltaX,e.deltaY]},R1=function(e){return e&&"current"in e?e.current:e},S6=function(e,n){return e[0]===n[0]&&e[1]===n[1]},E6=function(e){return`
327  .block-interactivity-`.concat(e,` {pointer-events: none;}
328  .allow-interactivity-`).concat(e,` {pointer-events: all;}
329`)},A6=0,yl=[];function _6(e){var n=S.useRef([]),a=S.useRef([0,0]),i=S.useRef(),s=S.useState(A6++)[0],c=S.useState(JA)[0],u=S.useRef(e);S.useEffect(function(){u.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var R=GI([e.lockRef.current],(e.shards||[]).map(R1),!0).filter(Boolean);return R.forEach(function(M){return M.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),R.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=S.useCallback(function(R,M){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!u.current.allowPinchZoom;var D=pf(R),$=a.current,I="deltaX"in R?R.deltaX:$[0]-D[0],ee="deltaY"in R?R.deltaY:$[1]-D[1],z,q=R.target,ie=Math.abs(I)>Math.abs(ee)?"h":"v";if("touches"in R&&ie==="h"&&q.type==="range")return!1;var be=C1(ie,q);if(!be)return!0;if(be?z=ie:(z=ie==="v"?"h":"v",be=C1(ie,q)),!be)return!1;if(!i.current&&"changedTouches"in R&&(I||ee)&&(i.current=z),!z)return!0;var me=i.current||z;return w6(me,M,R,me==="h"?I:ee)},[]),p=S.useCallback(function(R){var M=R;if(!(!yl.length||yl[yl.length-1]!==c)){var D="deltaY"in M?T1(M):pf(M),$=n.current.filter(function(z){return z.name===M.type&&(z.target===M.target||M.target===z.shadowParent)&&S6(z.delta,D)})[0];if($&&$.should){M.cancelable&&M.preventDefault();return}if(!$){var I=(u.current.shards||[]).map(R1).filter(Boolean).filter(function(z){return z.contains(M.target)}),ee=I.length>0?f(M,I[0]):!u.current.noIsolation;ee&&M.cancelable&&M.preventDefault()}}},[]),g=S.useCallback(function(R,M,D,$){var I={name:R,delta:M,target:D,should:$,shadowParent:N6(D)};n.current.push(I),setTimeout(function(){n.current=n.current.filter(function(ee){return ee!==I})},1)},[]),b=S.useCallback(function(R){a.current=pf(R),i.current=void 0},[]),x=S.useCallback(function(R){g(R.type,T1(R),R.target,f(R,e.lockRef.current))},[]),E=S.useCallback(function(R){g(R.type,pf(R),R.target,f(R,e.lockRef.current))},[]);S.useEffect(function(){return yl.push(c),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:E}),document.addEventListener("wheel",p,gl),document.addEventListener("touchmove",p,gl),document.addEventListener("touchstart",b,gl),function(){yl=yl.filter(function(R){return R!==c}),document.removeEventListener("wheel",p,gl),document.removeEventListener("touchmove",p,gl),document.removeEventListener("touchstart",b,gl)}},[]);var N=e.removeScrollBar,T=e.inert;return S.createElement(S.Fragment,null,T?S.createElement(c,{styles:E6(s)}):null,N?S.createElement(m6,{gapMode:e.gapMode}):null)}function N6(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const C6=t6(QA,_6);var Wy=S.forwardRef(function(e,n){return S.createElement(vh,Ua({},e,{ref:n,sideCar:C6}))});Wy.classNames=vh.classNames;var _g=["Enter"," "],T6=["ArrowDown","PageUp","Home"],r_=["ArrowUp","PageDown","End"],R6=[...T6,...r_],j6={ltr:[..._g,"ArrowRight"],rtl:[..._g,"ArrowLeft"]},M6={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$u="Menu",[ju,O6,D6]=Py($u),[bs,a_]=Xa($u,[D6,DA,FA]),bh=DA(),i_=FA(),[k6,xs]=bs($u),[P6,Fu]=bs($u),o_=e=>{const{__scopeMenu:n,open:a=!1,children:i,dir:s,onOpenChange:c,modal:u=!0}=e,f=bh(n),[p,g]=S.useState(null),b=S.useRef(!1),x=va(c),E=Ly(s);return S.useEffect(()=>{const N=()=>{b.current=!0,document.addEventListener("pointerdown",T,{capture:!0,once:!0}),document.addEventListener("pointermove",T,{capture:!0,once:!0})},T=()=>b.current=!1;return document.addEventListener("keydown",N,{capture:!0}),()=>{document.removeEventListener("keydown",N,{capture:!0}),document.removeEventListener("pointerdown",T,{capture:!0}),document.removeEventListener("pointermove",T,{capture:!0})}},[]),m.jsx(EI,{...f,children:m.jsx(k6,{scope:n,open:a,onOpenChange:x,content:p,onContentChange:g,children:m.jsx(P6,{scope:n,onClose:S.useCallback(()=>x(!1),[x]),isUsingKeyboardRef:b,dir:E,modal:u,children:i})})})};o_.displayName=$u;var L6="MenuAnchor",Zy=S.forwardRef((e,n)=>{const{__scopeMenu:a,...i}=e,s=bh(a);return m.jsx(AI,{...s,...i,ref:n})});Zy.displayName=L6;var Qy="MenuPortal",[I6,s_]=bs(Qy,{forceMount:void 0}),l_=e=>{const{__scopeMenu:n,forceMount:a,children:i,container:s}=e,c=xs(Qy,n);return m.jsx(I6,{scope:n,forceMount:a,children:m.jsx(Co,{present:a||c.open,children:m.jsx(Xy,{asChild:!0,container:s,children:i})})})};l_.displayName=Qy;var na="MenuContent",[z6,Jy]=bs(na),c_=S.forwardRef((e,n)=>{const a=s_(na,e.__scopeMenu),{forceMount:i=a.forceMount,...s}=e,c=xs(na,e.__scopeMenu),u=Fu(na,e.__scopeMenu);return m.jsx(ju.Provider,{scope:e.__scopeMenu,children:m.jsx(Co,{present:i||c.open,children:m.jsx(ju.Slot,{scope:e.__scopeMenu,children:u.modal?m.jsx(V6,{...s,ref:n}):m.jsx(U6,{...s,ref:n})})})})}),V6=S.forwardRef((e,n)=>{const a=xs(na,e.__scopeMenu),i=S.useRef(null),s=Jt(n,i);return S.useEffect(()=>{const c=i.current;if(c)return XA(c)},[]),m.jsx(ev,{...e,ref:s,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:lt(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),U6=S.forwardRef((e,n)=>{const a=xs(na,e.__scopeMenu);return m.jsx(ev,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),B6=Cu("MenuContent.ScrollLock"),ev=S.forwardRef((e,n)=>{const{__scopeMenu:a,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:E,onDismiss:N,disableOutsideScroll:T,...R}=e,M=xs(na,a),D=Fu(na,a),$=bh(a),I=i_(a),ee=O6(a),[z,q]=S.useState(null),ie=S.useRef(null),be=Jt(n,ie,M.onContentChange),me=S.useRef(0),xe=S.useRef(""),Re=S.useRef(0),Ve=S.useRef(null),Ue=S.useRef("right"),Ye=S.useRef(0),tt=T?Wy:S.Fragment,pe=T?{as:B6,allowPinchZoom:!0}:void 0,Me=K=>{var ct,ft;const P=xe.current+K,se=ee().filter(Ie=>!Ie.disabled),_e=document.activeElement,Ne=(ct=se.find(Ie=>Ie.ref.current===_e))==null?void 0:ct.textValue,de=se.map(Ie=>Ie.textValue),He=J6(de,P,Ne),$e=(ft=se.find(Ie=>Ie.textValue===He))==null?void 0:ft.ref.current;(function Ie(Ct){xe.current=Ct,window.clearTimeout(me.current),Ct!==""&&(me.current=window.setTimeout(()=>Ie(""),1e3))})(P),$e&&setTimeout(()=>$e.focus())};S.useEffect(()=>()=>window.clearTimeout(me.current),[]),bA();const B=S.useCallback(K=>{var se,_e;return Ue.current===((se=Ve.current)==null?void 0:se.side)&&tz(K,(_e=Ve.current)==null?void 0:_e.area)},[]);return m.jsx(z6,{scope:a,searchRef:xe,onItemEnter:S.useCallback(K=>{B(K)&&K.preventDefault()},[B]),onItemLeave:S.useCallback(K=>{var P;B(K)||((P=ie.current)==null||P.focus(),q(null))},[B]),onTriggerLeave:S.useCallback(K=>{B(K)&&K.preventDefault()},[B]),pointerGraceTimerRef:Re,onPointerGraceIntentChange:S.useCallback(K=>{Ve.current=K},[]),children:m.jsx(tt,{...pe,children:m.jsx(zy,{asChild:!0,trapped:s,onMountAutoFocus:lt(c,K=>{var P;K.preventDefault(),(P=ie.current)==null||P.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:m.jsx(Iy,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:E,onDismiss:N,children:m.jsx(BI,{asChild:!0,...I,dir:D.dir,orientation:"vertical",loop:i,currentTabStopId:z,onCurrentTabStopIdChange:q,onEntryFocus:lt(p,K=>{D.isUsingKeyboardRef.current||K.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(_I,{role:"menu","aria-orientation":"vertical","data-state":__(M.open),"data-radix-menu-content":"",dir:D.dir,...$,...R,ref:be,style:{outline:"none",...R.style},onKeyDown:lt(R.onKeyDown,K=>{const se=K.target.closest("[data-radix-menu-content]")===K.currentTarget,_e=K.ctrlKey||K.altKey||K.metaKey,Ne=K.key.length===1;se&&(K.key==="Tab"&&K.preventDefault(),!_e&&Ne&&Me(K.key));const de=ie.current;if(K.target!==de||!R6.includes(K.key))return;K.preventDefault();const $e=ee().filter(ct=>!ct.disabled).map(ct=>ct.ref.current);r_.includes(K.key)&&$e.reverse(),Z6($e)}),onBlur:lt(e.onBlur,K=>{K.currentTarget.contains(K.target)||(window.clearTimeout(me.current),xe.current="")}),onPointerMove:lt(e.onPointerMove,Mu(K=>{const P=K.target,se=Ye.current!==K.clientX;if(K.currentTarget.contains(P)&&se){const _e=K.clientX>Ye.current?"right":"left";Ue.current=_e,Ye.current=K.clientX}}))})})})})})})});c_.displayName=na;var $6="MenuGroup",tv=S.forwardRef((e,n)=>{const{__scopeMenu:a,...i}=e;return m.jsx($t.div,{role:"group",...i,ref:n})});tv.displayName=$6;var F6="MenuLabel",u_=S.forwardRef((e,n)=>{const{__scopeMenu:a,...i}=e;return m.jsx($t.div,{...i,ref:n})});u_.displayName=F6;var Qf="MenuItem",j1="menu.itemSelect",xh=S.forwardRef((e,n)=>{const{disabled:a=!1,onSelect:i,...s}=e,c=S.useRef(null),u=Fu(Qf,e.__scopeMenu),f=Jy(Qf,e.__scopeMenu),p=Jt(n,c),g=S.useRef(!1),b=()=>{const x=c.current;if(!a&&x){const E=new CustomEvent(j1,{bubbles:!0,cancelable:!0});x.addEventListener(j1,N=>i==null?void 0:i(N),{once:!0}),gA(x,E),E.defaultPrevented?g.current=!1:u.onClose()}};return m.jsx(d_,{...s,ref:p,disabled:a,onClick:lt(e.onClick,b),onPointerDown:x=>{var E;(E=e.onPointerDown)==null||E.call(e,x),g.current=!0},onPointerUp:lt(e.onPointerUp,x=>{var E;g.current||(E=x.currentTarget)==null||E.click()}),onKeyDown:lt(e.onKeyDown,x=>{const E=f.searchRef.current!=="";a||E&&x.key===" "||_g.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});xh.displayName=Qf;var d_=S.forwardRef((e,n)=>{const{__scopeMenu:a,disabled:i=!1,textValue:s,...c}=e,u=Jy(Qf,a),f=i_(a),p=S.useRef(null),g=Jt(n,p),[b,x]=S.useState(!1),[E,N]=S.useState("");return S.useEffect(()=>{const T=p.current;T&&N((T.textContent??"").trim())},[c.children]),m.jsx(ju.ItemSlot,{scope:a,disabled:i,textValue:s??E,children:m.jsx($I,{asChild:!0,...f,focusable:!i,children:m.jsx($t.div,{role:"menuitem","data-highlighted":b?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:lt(e.onPointerMove,Mu(T=>{i?u.onItemLeave(T):(u.onItemEnter(T),T.defaultPrevented||T.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:lt(e.onPointerLeave,Mu(T=>u.onItemLeave(T))),onFocus:lt(e.onFocus,()=>x(!0)),onBlur:lt(e.onBlur,()=>x(!1))})})})}),q6="MenuCheckboxItem",f_=S.forwardRef((e,n)=>{const{checked:a=!1,onCheckedChange:i,...s}=e;return m.jsx(y_,{scope:e.__scopeMenu,checked:a,children:m.jsx(xh,{role:"menuitemcheckbox","aria-checked":Jf(a)?"mixed":a,...s,ref:n,"data-state":rv(a),onSelect:lt(s.onSelect,()=>i==null?void 0:i(Jf(a)?!0:!a),{checkForDefaultPrevented:!1})})})});f_.displayName=q6;var h_="MenuRadioGroup",[H6,G6]=bs(h_,{value:void 0,onValueChange:()=>{}}),m_=S.forwardRef((e,n)=>{const{value:a,onValueChange:i,...s}=e,c=va(i);return m.jsx(H6,{scope:e.__scopeMenu,value:a,onValueChange:c,children:m.jsx(tv,{...s,ref:n})})});m_.displayName=h_;var p_="MenuRadioItem",g_=S.forwardRef((e,n)=>{const{value:a,...i}=e,s=G6(p_,e.__scopeMenu),c=a===s.value;return m.jsx(y_,{scope:e.__scopeMenu,checked:c,children:m.jsx(xh,{role:"menuitemradio","aria-checked":c,...i,ref:n,"data-state":rv(c),onSelect:lt(i.onSelect,()=>{var u;return(u=s.onValueChange)==null?void 0:u.call(s,a)},{checkForDefaultPrevented:!1})})})});g_.displayName=p_;var nv="MenuItemIndicator",[y_,K6]=bs(nv,{checked:!1}),v_=S.forwardRef((e,n)=>{const{__scopeMenu:a,forceMount:i,...s}=e,c=K6(nv,a);return m.jsx(Co,{present:i||Jf(c.checked)||c.checked===!0,children:m.jsx($t.span,{...s,ref:n,"data-state":rv(c.checked)})})});v_.displayName=nv;var Y6="MenuSeparator",b_=S.forwardRef((e,n)=>{const{__scopeMenu:a,...i}=e;return m.jsx($t.div,{role:"separator","aria-orientation":"horizontal",...i,ref:n})});b_.displayName=Y6;var X6="MenuArrow",x_=S.forwardRef((e,n)=>{const{__scopeMenu:a,...i}=e,s=bh(a);return m.jsx(NI,{...s,...i,ref:n})});x_.displayName=X6;var W6="MenuSub",[bU,w_]=bs(W6),su="MenuSubTrigger",S_=S.forwardRef((e,n)=>{const a=xs(su,e.__scopeMenu),i=Fu(su,e.__scopeMenu),s=w_(su,e.__scopeMenu),c=Jy(su,e.__scopeMenu),u=S.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:p}=c,g={__scopeMenu:e.__scopeMenu},b=S.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return S.useEffect(()=>b,[b]),S.useEffect(()=>{const x=f.current;return()=>{window.clearTimeout(x),p(null)}},[f,p]),m.jsx(Zy,{asChild:!0,...g,children:m.jsx(d_,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":s.contentId,"data-state":__(a.open),...e,ref:hh(n,s.onTriggerChange),onClick:x=>{var E;(E=e.onClick)==null||E.call(e,x),!(e.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:lt(e.onPointerMove,Mu(x=>{c.onItemEnter(x),!x.defaultPrevented&&!e.disabled&&!a.open&&!u.current&&(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{a.onOpenChange(!0),b()},100))})),onPointerLeave:lt(e.onPointerLeave,Mu(x=>{var N,T;b();const E=(N=a.content)==null?void 0:N.getBoundingClientRect();if(E){const R=(T=a.content)==null?void 0:T.dataset.side,M=R==="right",D=M?-5:5,$=E[M?"left":"right"],I=E[M?"right":"left"];c.onPointerGraceIntentChange({area:[{x:x.clientX+D,y:x.clientY},{x:$,y:E.top},{x:I,y:E.top},{x:I,y:E.bottom},{x:$,y:E.bottom}],side:R}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(x),x.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:lt(e.onKeyDown,x=>{var N;const E=c.searchRef.current!=="";e.disabled||E&&x.key===" "||j6[i.dir].includes(x.key)&&(a.onOpenChange(!0),(N=a.content)==null||N.focus(),x.preventDefault())})})})});S_.displayName=su;var E_="MenuSubContent",A_=S.forwardRef((e,n)=>{const a=s_(na,e.__scopeMenu),{forceMount:i=a.forceMount,...s}=e,c=xs(na,e.__scopeMenu),u=Fu(na,e.__scopeMenu),f=w_(E_,e.__scopeMenu),p=S.useRef(null),g=Jt(n,p);return m.jsx(ju.Provider,{scope:e.__scopeMenu,children:m.jsx(Co,{present:i||c.open,children:m.jsx(ju.Slot,{scope:e.__scopeMenu,children:m.jsx(ev,{id:f.contentId,"aria-labelledby":f.triggerId,...s,ref:g,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:b=>{var x;u.isUsingKeyboardRef.current&&((x=p.current)==null||x.focus()),b.preventDefault()},onCloseAutoFocus:b=>b.preventDefault(),onFocusOutside:lt(e.onFocusOutside,b=>{b.target!==f.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:lt(e.onEscapeKeyDown,b=>{u.onClose(),b.preventDefault()}),onKeyDown:lt(e.onKeyDown,b=>{var N;const x=b.currentTarget.contains(b.target),E=M6[u.dir].includes(b.key);x&&E&&(c.onOpenChange(!1),(N=f.trigger)==null||N.focus(),b.preventDefault())})})})})})});A_.displayName=E_;function __(e){return e?"open":"closed"}function Jf(e){return e==="indeterminate"}function rv(e){return Jf(e)?"indeterminate":e?"checked":"unchecked"}function Z6(e){const n=document.activeElement;for(const a of e)if(a===n||(a.focus(),document.activeElement!==n))return}function Q6(e,n){return e.map((a,i)=>e[(n+i)%e.length])}function J6(e,n,a){const s=n.length>1&&Array.from(n).every(g=>g===n[0])?n[0]:n,c=a?e.indexOf(a):-1;let u=Q6(e,Math.max(c,0));s.length===1&&(u=u.filter(g=>g!==a));const p=u.find(g=>g.toLowerCase().startsWith(s.toLowerCase()));return p!==a?p:void 0}function ez(e,n){const{x:a,y:i}=e;let s=!1;for(let c=0,u=n.length-1;c<n.length;u=c++){const f=n[c].x,p=n[c].y,g=n[u].x,b=n[u].y;p>i!=b>i&&a<(g-f)*(i-p)/(b-p)+f&&(s=!s)}return s}function tz(e,n){if(!n)return!1;const a={x:e.clientX,y:e.clientY};return ez(a,n)}function Mu(e){return n=>n.pointerType==="mouse"?e(n):void 0}var nz=o_,rz=Zy,az=l_,iz=c_,oz=tv,sz=u_,lz=xh,cz=f_,uz=m_,dz=g_,fz=v_,hz=b_,mz=x_,pz=S_,gz=A_,av="DropdownMenu",[yz,xU]=Xa(av,[a_]),dr=a_(),[vz,N_]=yz(av),C_=e=>{const{__scopeDropdownMenu:n,children:a,dir:i,open:s,defaultOpen:c,onOpenChange:u,modal:f=!0}=e,p=dr(n),g=S.useRef(null),[b=!1,x]=Uu({prop:s,defaultProp:c,onChange:u});return m.jsx(vz,{scope:n,triggerId:Tl(),triggerRef:g,contentId:Tl(),open:b,onOpenChange:x,onOpenToggle:S.useCallback(()=>x(E=>!E),[x]),modal:f,children:m.jsx(nz,{...p,open:b,onOpenChange:x,dir:i,modal:f,children:a})})};C_.displayName=av;var T_="DropdownMenuTrigger",R_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,disabled:i=!1,...s}=e,c=N_(T_,a),u=dr(a);return m.jsx(rz,{asChild:!0,...u,children:m.jsx($t.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:hh(n,c.triggerRef),onPointerDown:lt(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(c.onOpenToggle(),c.open||f.preventDefault())}),onKeyDown:lt(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&c.onOpenToggle(),f.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});R_.displayName=T_;var bz="DropdownMenuPortal",j_=e=>{const{__scopeDropdownMenu:n,...a}=e,i=dr(n);return m.jsx(az,{...i,...a})};
329j_.displayName=bz;var M_="DropdownMenuContent",O_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=N_(M_,a),c=dr(a),u=S.useRef(!1);return m.jsx(iz,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...i,ref:n,onCloseAutoFocus:lt(e.onCloseAutoFocus,f=>{var p;u.current||(p=s.triggerRef.current)==null||p.focus(),u.current=!1,f.preventDefault()}),onInteractOutside:lt(e.onInteractOutside,f=>{const p=f.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,b=p.button===2||g;(!s.modal||b)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});O_.displayName=M_;var xz="DropdownMenuGroup",wz=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(oz,{...s,...i,ref:n})});wz.displayName=xz;var Sz="DropdownMenuLabel",D_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(sz,{...s,...i,ref:n})});D_.displayName=Sz;var Ez="DropdownMenuItem",k_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(lz,{...s,...i,ref:n})});k_.displayName=Ez;var Az="DropdownMenuCheckboxItem",P_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(cz,{...s,...i,ref:n})});P_.displayName=Az;var _z="DropdownMenuRadioGroup",Nz=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(uz,{...s,...i,ref:n})});Nz.displayName=_z;var Cz="DropdownMenuRadioItem",L_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(dz,{...s,...i,ref:n})});L_.displayName=Cz;var Tz="DropdownMenuItemIndicator",I_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(fz,{...s,...i,ref:n})});I_.displayName=Tz;var Rz="DropdownMenuSeparator",z_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(hz,{...s,...i,ref:n})});z_.displayName=Rz;var jz="DropdownMenuArrow",Mz=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(mz,{...s,...i,ref:n})});Mz.displayName=jz;var Oz="DropdownMenuSubTrigger",V_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(pz,{...s,...i,ref:n})});V_.displayName=Oz;var Dz="DropdownMenuSubContent",U_=S.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...i}=e,s=dr(a);return m.jsx(gz,{...s,...i,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});U_.displayName=Dz;var kz=C_,Pz=R_,Lz=j_,B_=O_,$_=D_,F_=k_,q_=P_,H_=L_,G_=I_,K_=z_,Y_=V_,X_=U_;const Iz=kz,zz=Pz,Vz=S.forwardRef(({className:e,inset:n,children:a,...i},s)=>m.jsxs(Y_,{ref:s,className:pt("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...i,children:[a,m.jsx(sD,{className:"ml-auto"})]}));Vz.displayName=Y_.displayName;const Uz=S.forwardRef(({className:e,...n},a)=>m.jsx(X_,{ref:a,className:pt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n}));Uz.displayName=X_.displayName;const W_=S.forwardRef(({className:e,sideOffset:n=4,...a},i)=>m.jsx(Lz,{children:m.jsx(B_,{ref:i,sideOffset:n,className:pt("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
329de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}));W_.displayName=B_.displayName;const Ng=S.forwardRef(({className:e,inset:n,...a},i)=>m.jsx(F_,{ref:i,className:pt("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",e),...a}));Ng.displayName=F_.displayName;const Bz=S.forwardRef(({className:e,children:n,checked:a,...i},s)=>m.jsxs(q_,{ref:s,className:pt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...i,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(G_,{children:m.jsx(ey,{className:"h-4 w-4"})})}),n]}));Bz.displayName=q_.displayName;const $z=S.forwardRef(({className:e,children:n,...a},i)=>m.jsxs(H_,{ref:i,className:pt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(G_,{children:m.jsx(fD,{className:"h-2 w-2 fill-current"})})}),n]}));$z.displayName=H_.displayName;const Fz=S.forwardRef(({className:e,inset:n,...a},i)=>m.jsx($_,{ref:i,className:pt("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...a}));Fz.displayName=$_.displayName;const Z_=S.forwardRef(({className:e,...n},a)=>m.jsx(K_,{ref:a,className:pt("-mx-1 my-1 h-px bg-muted",e),...n}));Z_.displayName=K_.displayName;var iv="Dialog",[Q_,J_]=Xa(iv),[qz,Ea]=Q_(iv),eN=e=>{const{__scopeDialog:n,children:a,open:i,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,f=S.useRef(null),p=S.useRef(null),[g=!1,b]=Uu({prop:i,defaultProp:s,onChange:c});return m.jsx(qz,{scope:n,triggerRef:f,contentRef:p,contentId:Tl(),titleId:Tl(),descriptionId:Tl(),open:g,onOpenChange:b,onOpenToggle:S.useCallback(()=>b(x=>!x),[b]),modal:u,children:a})};eN.displayName=iv;var tN="DialogTrigger",nN=S.forwardRef((e,n)=>{const{__scopeDialog:a,...i}=e,s=Ea(tN,a),c=Jt(n,s.triggerRef);return m.jsx($t.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":lv(s.open),...i,ref:c,onClick:lt(e.onClick,s.onOpenToggle)})});nN.displayName=tN;var ov="DialogPortal",[Hz,rN]=Q_(ov,{forceMount:void 0}),aN=e=>{const{__scopeDialog:n,forceMount:a,children:i,container:s}=e,c=Ea(ov,n);return m.jsx(Hz,{scope:n,forceMount:a,children:S.Children.map(i,u=>m.jsx(Co,{present:a||c.open,children:m.jsx(Xy,{asChild:!0,container:s,children:u})}))})};aN.displayName=ov;var eh="DialogOverlay",iN=S.forwardRef((e,n)=>{const a=rN(eh,e.__scopeDialog),{forceMount:i=a.forceMount,...s}=e,c=Ea(eh,e.__scopeDialog);return c.modal?m.jsx(Co,{present:i||c.open,children:m.jsx(Kz,{...s,ref:n})}):null});iN.displayName=eh;var Gz=Cu("DialogOverlay.RemoveScroll"),Kz=S.forwardRef((e,n)=>{const{__scopeDialog:a,...i}=e,s=Ea(eh,a);return m.jsx(Wy,{as:Gz,allowPinchZoom:!0,shards:[s.contentRef],children:m.jsx($t.div,{"data-state":lv(s.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),ms="DialogContent",oN=S.forwardRef((e,n)=>{const a=rN(ms,e.__scopeDialog),{forceMount:i=a.forceMount,...s}=e,c=Ea(ms,e.__scopeDialog);return m.jsx(Co,{present:i||c.open,children:c.modal?m.jsx(Yz,{...s,ref:n}):m.jsx(Xz,{...s,ref:n})})});oN.displayName=ms;var Yz=S.forwardRef((e,n)=>{const a=Ea(ms,e.__scopeDialog),i=S.useRef(null),s=Jt(n,a.contentRef,i);return S.useEffect(()=>{const c=i.current;if(c)return XA(c)},[]),m.jsx(sN,{...e,ref:s,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lt(e.onCloseAutoFocus,c=>{var u;c.preventDefault(),(u=a.triggerRef.current)==null||u.focus()}),onPointerDownOutside:lt(e.onPointerDownOutside,c=>{const u=c.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&c.preventDefault()}),onFocusOutside:lt(e.onFocusOutside,c=>c.preventDefault())})}
vendor: 3,692 bytes, lines 329-333
329),Xz=S.forwardRef((e,n)=>{const a=Ea(ms,e.__scopeDialog),i=S.useRef(!1),s=S.useRef(!1);return m.jsx(sN,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,c),c.defaultPrevented||(i.current||(f=a.triggerRef.current)==null||f.focus(),c.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:c=>{var p,g;(p=e.onInteractOutside)==null||p.call(e,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=c.target;((g=a.triggerRef.current)==null?void 0:g.contains(u))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),sN=S.forwardRef((e,n)=>{const{__scopeDialog:a,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...u}=e,f=Ea(ms,a),p=S.useRef(null),g=Jt(n,p);return bA(),m.jsxs(m.Fragment,{children:[m.jsx(zy,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:m.jsx(Iy,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":lv(f.open),...u,ref:g,onDismiss:()=>f.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Zz,{titleId:f.titleId}),m.jsx(Jz,{contentRef:p,descriptionId:f.descriptionId})]})]})}),sv="DialogTitle",lN=S.forwardRef((e,n)=>{const{__scopeDialog:a,...i}=e,s=Ea(sv,a);return m.jsx($t.h2,{id:s.titleId,...i,ref:n})});lN.displayName=sv;var cN="DialogDescription",uN=S.forwardRef((e,n)=>{const{__scopeDialog:a,...i}=e,s=Ea(cN,a);return m.jsx($t.p,{id:s.descriptionId,...i,ref:n})});uN.displayName=cN;var dN="DialogClose",fN=S.forwardRef((e,n)=>{const{__scopeDialog:a,...i}=e,s=Ea(dN,a);return m.jsx($t.button,{type:"button",...i,ref:n,onClick:lt(e.onClick,()=>s.onOpenChange(!1))})});fN.displayName=dN;function lv(e){return e?"open":"closed"}var hN="DialogTitleWarning",[Wz,mN]=HL(hN,{contentName:ms,titleName:sv,docsSlug:"dialog"}),Zz=({titleId:e})=>{const n=mN(hN),a=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
330
331If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
332
333For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},Qz="DialogDescriptionWarning",Jz=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mN(Qz).contentName}}.`;return S.useEffect(()=>{var c;const s=(c=e.current)==null?void 0:c.getAttribute("aria-describedby");n&&s&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},pN=eN,eV=nN,gN=aN,cv=iN,uv=oN,dv=lN,fv=uN,hv=fN;const Fp=pN,tV=gN,yN=S.forwardRef(({className:e,...n},a)=>m.jsx(cv,{ref:a,className:pt("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));yN.displayName=cv.displayName;const Nf=S.forwardRef(({className:e,children:n,...a},i)=>m.jsxs(tV,{children:[m.jsx(yN,{}),m.jsxs(uv,{ref:i,className:pt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[n,m.jsxs(hv,{className:"absolute right-4 top-4 roun
333ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx(Cl,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Nf.displayName=uv.displayName;const Cf=({className:e,...n})=>m.jsx("div",{className:pt("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});Cf.displayName="DialogHeader";const Tf=({className:e,...n})=>m.jsx("div",{className:pt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});Tf.displayName="DialogFooter";const Rf=S.forwardRef(({className:e,...n},a)=>m.jsx(dv,{ref:a,className:pt("text-lg font-semibold leading-none tracking-tight",e),...n}));Rf.displayName=dv.displayName;const jf=S.forwardRef(({className:e,...n},a)=>m.jsx(fv,{ref:a,className:pt("text-sm text-muted-foreground",e),...n}));jf.displayName=fv.displayName;function nV(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}Array(12).fill(0);let Cg=1;class rV{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const a=this.subscribers.indexOf(n);this.subscribers.splice(a,1)}),this.publish=n=>{this.subscribers.forEach(a=>a(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var a;const{message:i,...s}=n,c=typeof(n==null?void 0:n.id)=="number"||((a=n.id)==null?void 0:a.length)>0?n.id:Cg++,u=this.toasts.find(p=>p.id===c),f=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...n,id:c,title:i}),{...p,...n,id:c,dismissible:f,title:i}):p):this.addToast({title:i,...s,dismissible:f,id:c}),c},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:n,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(i=>i({id:a.id,dismiss:!0}))}),n),this.message=(n,a)=>this.create({...a,message:n}),this.error=(n,a)=>this.create({...a,message:n,type:"error"}),this.success=(n,a)=>this.create({...a,type:"success",message:n}),this.info=(n,a)=>this.create({...a,type:"info",message:n}),this.warning=(n,a)=>this.create({...a,type:"warning",message:n}),this.loading=(n,a)=>this.create({...a,type:"loading",message:n}),this.promise=(n,a)=>{if(!a)return;let i;a.loading!==void 0&&(i=this.create({...a,promise:n,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const s=Promise.resolve(n instanceof Function?n():n);let c=i!==void 0,u;const f=s.then(async g=>{if(u=["resolve",g],In.isValidElement(g))c=!1,this.create({id:i,type:"default",message:g});else if(iV(g)&&!g.ok){c=!1;const x=typeof a.error=="function"?await a.error(`HTTP error! status: ${g.status}`):a.error,E=typeof a.description=="function"?await a.description(`HTTP error! status: ${g.status}`):a.description,T=typeof x=="object"&&!In.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:E,...T})}else if(g instanceof Error){c=!1;const x=typeof a.error=="function"?await a.error(g):a.error,E=typeof a.description=="function"?await a.description(g):a.description,T=typeof x=="object"&&!In.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:E,...T})}else if(a.success!==void 0){c=!1;const x=typeof a.success=="function"?await a.success(g):a.success,E=typeof a.description=="function"?await a.description(g):a.description,T=typeof x=="object"&&!In.isValidElement(x)?x:{message:x};this.create({id:i,type:"success",description:E,...T})}}).catch(async g=>{if(u=["reject",g],a.error!==void 0){c=!1;const b=typeof a.error=="function"?await a.error(g):a.error,x=typeof a.description=="function"?await a.description(g):a.description,N=typeof b=="object"&&!In.isValidElement(b)?b:{message:b};this.create({id:i,type:"error",description:x,...N})}}).finally(()=>{c&&(this.dismiss(i),i=void 0),a.finally==null||a.finally.call(a)}),p=()=>new Promise((g,b)=>f.then(()=>u[0]==="reject"?b(u[1]):g(u[1])).catch(b));
vendor: 2,231 bytes, line 333
333return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(n,a)=>{const i=(a==null?void 0:a.id)||Cg++;return this.create({jsx:n(i),id:i,...a}),i},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Jr=new rV,aV=(e,n)=>{const a=(n==null?void 0:n.id)||Cg++;return Jr.addToast({title:e,...n,id:a}),a},iV=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",oV=aV,sV=()=>Jr.toasts,lV=()=>Jr.getActiveToasts(),Bt=Object.assign(oV,{success:Jr.success,info:Jr.info,warning:Jr.warning,error:Jr.error,custom:Jr.custom,message:Jr.message,promise:Jr.promise,dismiss:Jr.dismiss,loading:Jr.loading},{getHistory:sV,getToasts:lV});nV("[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}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,504 bytes, line 333
333}@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;left: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%)}");
333const cV=({id:e,title:n,username:a,password:i,url:s,updatedAt:c,category:u="Uncategorized",onEdit:f,onDelete:p})=>{const[g,b]=S.useState(!1),[x,E]=S.useState(!1),N=I=>{const z=Math.abs(new Date().getTime()-I.getTime()),q=Math.ceil(z/(1e3*60*60*24));return q===0?"Today":q===1?"Yesterday":q<7?`${q} days ago`:q<30?`${Math.floor(q/7)} weeks ago`:q<365?`${Math.floor(q/30)} months ago`:`${Math.floor(q/365)} years ago`},T=()=>{b(!g)},R=(I,ee)=>{navigator.clipboard.writeText(I),Bt.success(`${ee==="password"?"Password":"Username"} copied to clipboard`)},M=I=>"•".repeat(Math.min(12,I.length)),$=(I=>{if(!I)return null;try{return`https://www.google.com/s2/favicons?domain=${new URL(I.startsWith("http")?I:`https://${I}`).hostname}&sz=64`}catch(ee){return console.error("Invalid URL:",ee),null}})(s);return m.jsxs(It.div,{whileHover:{y:-5},transition:{type:"spring",stiffness:400,damping:20},className:pt("group relative p-5 overflow-hidden shadow-premium","bg-white/70 dark:bg-gray-900/70 backdrop-blur-xl border border-white/30 dark:border-gray-800/30 rounded-xl","hover:shadow-lg transition-all duration-300"),onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:[m.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-accent/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),m.jsx("div",{className:"spotlight-effect"}),m.jsxs("div",{className:"flex items-start mb-4 relative z-10",children:[$?m.jsx("div",{className:"w-10 h-10 rounded-lg overflow-hidden mr-3 border border-gray-100 dark:border-gray-800 flex-shrink-0 shadow-sm",children:m.jsx("img",{src:$,alt:`${n} favicon`,className:"w-full h-full object-cover",onError:I=>{I.target.style.display="none"}})}):m.jsx("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-primary/20 to-accent/20 mr-3 flex items-center justify-center flex-shrink-0 shadow-sm",children:m.jsx("span",{className:"text-primary dark:text-primary/90 font-semibold text-sm",children:n.substring(0,2).toUpperCase()})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("h3",{className:"font-semibold text-base truncate pr-8",children:n}),m.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400 flex items-center mt-0.5",children:[m.jsx("span",{className:"text-xs px-2 py-0.5 bg-primary/10 dark:bg-primary/20 rounded-full text-primary dark:text-primary/90 truncate max-w-[120px]",children:u}),m.jsx("span",{className:"mx-2 text-gray-300 dark:text-gray-600",children:"•"}),m.jsx("span",{className:"text-xs truncate",children:N(c)})]})]})]}),m.jsxs("div",{className:"space-y-3 relative z-10",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 mb-1 flex justify-between",children:[m.jsx("span",{children:"Username"}),m.jsx(wt,{variant:"ghost",size:"icon-sm",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>R(a,"username"),children:m.jsx(Vf,{size:12})})]}),m.jsx("div",{className:"px-3 py-2 bg-gray-50/80 dark:bg-gray-900/80 rounded-lg text-sm truncate border border-gray-100/80 dark:border-gray-800/80 hover:border-primary/30 transition-colors",children:a})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 mb-1 flex justify-between",children:[m.jsx("span",{children:"Password"}),m.jsx(wt,{variant:"ghost",size:"icon-sm",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>R(i,"password"),children:m.jsx(Vf,{size:12})})]}),m.jsxs("div",{className:"px-3 py-2 bg-gray-50/80 dark:bg-gray-900/80 rounded-lg text-sm truncate relative border border-gray-100/80 dark:border-gray-800/80 hover:border-primary/30 transition-colors flex items-center",children:[m.jsx("span",{className:"flex-1 mr-2 font-mono",children:g?i:M(i)}),m.jsx(wt,{variant:"ghost",size:"icon-sm",className:"h-7 w-7",onClick:T,children:g?m.jsx(Uf,{size:14}):m.jsx(Ol,{size:14})})]})]}),s&&m.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 flex items-center",children:[m.jsx("span",{className:"truncate flex-1",children:s}),m.jsx("a",{href:s.startsWith("http")?s:`https://${s}`,target:"_blank",rel:"noopener noreferrer",className:"ml-2 text-primary hover:text-primary/80 transition-colors",children:m.jsx(yD,{size:12})})]})]}),m.jsxs("div",{className:pt("absolute top-2 right-2 flex space-x-1 transition-all duration-300",x?"opacity-100":"opacity-0"),children:[m.jsx(wt,{variant:"glass",size:"icon-sm",className:"h-7 w-7 rounded-full shadow-sm",onClick:()=>f==null?void 0:f(e),children:m.jsx(tk,{size:14})}),m.jsx(wt,{variant:"glass",size:"icon-sm",className:"h-7 w-7 rounded-full hover:bg-red-50 dark:hover:bg-red-900/20 hover:text-red-600 dark:hover:text-red-400 shadow-sm",onClick:()=>p==null?void 0:p(e),children:m.jsx(ik,{size:14})})]})]})};var vN="AlertDialog",[uV,wU]=Xa(vN,[J_]),Mi=J_(),bN=e=>{const{__scopeAlertDialog:n,...a}=e,i=Mi(n);return m.jsx(pN,{...i,...a,modal:!0})};bN.displayName=vN;
333var dV="AlertDialogTrigger",fV=S.forwardRef((e,n)=>{const{__scopeAlertDialog:a,...i}=e,s=Mi(a);return m.jsx(eV,{...s,...i,ref:n})});fV.displayName=dV;var hV="AlertDialogPortal",xN=e=>{const{__scopeAlertDialog:n,...a}=e,i=Mi(n);return m.jsx(gN,{...i,...a})};xN.displayName=hV;var mV="AlertDialogOverlay",wN=S.forwardRef((e,n)=>{const{__scopeAlertDialog:a,...i}=e,s=Mi(a);return m.jsx(cv,{...s,...i,ref:n})});wN.displayName=mV;var Ml="AlertDialogContent",[pV,gV]=uV(Ml),yV=XL("AlertDialogContent"),SN=S.forwardRef((e,n)=>{const{__scopeAlertDialog:a,children:i,...s}=e,c=Mi(a),u=S.useRef(null),f=Jt(n,u),p=S.useRef(null);return m.jsx(Wz,{contentName:Ml,titleName:EN,docsSlug:"alert-dialog",children:m.jsx(pV,{scope:a,cancelRef:p,children:m.jsxs(uv,{role:"alertdialog",...c,...s,ref:f,onOpenAutoFocus:lt(s.onOpenAutoFocus,g=>{var b;g.preventDefault(),(b=p.current)==null||b.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[m.jsx(yV,{children:i}),m.jsx(bV,{contentRef:u})]})})})});SN.displayName=Ml;var EN="AlertDialogTitle",AN=S.forwardRef((e,n)=>{const{__scopeAlertDialog:a,...i}=e,s=Mi(a);return m.jsx(dv,{...s,...i,ref:n})});AN.displayName=EN;var _N="AlertDialogDescription",NN=S.forwardRef((e,n)=>{const{__scopeAlertDialog:a,...i}=e,s=Mi(a);return m.jsx(fv,{...s,...i,ref:n})});NN.displayName=_N;var vV="AlertDialogAction",CN=S.forwardRef((e,n)=>{const{__scopeAlertDialog:a,...i}=e,s=Mi(a);return m.jsx(hv,{...s,...i,ref:n})});CN.displayName=vV;var TN="AlertDialogCancel",RN=S.forwardRef((e,n)=>{const{__scopeAlertDialog:a,...i}=e,{cancelRef:s}=gV(TN,a),c=Mi(a),u=Jt(n,s);return m.jsx(hv,{...c,...i,ref:u})});RN.displayName=TN;var bV=({contentRef:e})=>{const n=`\`${Ml}\` requires a description for the component to be accessible for screen reader users.
334
335You can add a description to the \`${Ml}\` by passing a \`${_N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
336
337Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ml}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
338
339For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return S.useEffect(()=>{var i;document.getElementById((i=e.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(n)},[n,e]),null},xV=bN,wV=xN,jN=wN,MN=SN,ON=CN,DN=RN,kN=AN,PN=NN;const SV=xV,EV=wV,LN=S.forwardRef(({className:e,...n},a)=>m.jsx(jN,{className:pt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:a}));LN.displayName=jN.displayName;const IN=S.forwardRef(({className:e,...n},a)=>m.jsxs(EV,{children:[m.jsx(LN,{}),m.jsx(MN,{ref:a,className:pt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n})]}));IN.displayName=MN.displayName;const zN=({className:e,...n})=>m.jsx("div",{className:pt("flex flex-col space-y-2 text-center sm:text-left",e),...n});zN.displayName="AlertDialogHeader";const VN=({className:e,...n})=>m.jsx("div",{className:pt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});VN.displayName="AlertDialogFooter";const UN=S.forwardRef(({className:e,...n},a)=>m.jsx(kN,{ref:a,className:pt("text-lg font-semibold",e),...n}));UN.displayName=kN.displayName;const BN=S.forwardRef(({className:e,...n},a)=>m.jsx(PN,{ref:a,className:pt("text-sm text-muted-foreground",e),...n}));BN.displayName=PN.displayName;const $N=S.forwardRef(({className:e,...n},a)=>m.jsx(ON,{ref:a,className:pt(Jg(),e),...n}));$N.displayName=ON.displayName;const FN=S.forwardRef(({className:e,...n},a)=>m.jsx(DN,{ref:a,className:pt(Jg({variant:"outline"}),"mt-2 sm:mt-0",e),...n}));FN.displayName=DN.displayName;var Mf={exports:{}},AV=Mf.exports,M1;function _V(){return M1||(M1=1,function(e,n){(function(a,i){e.exports=i()}
vendor: 29,737 bytes, lines 339-341
339)(AV,function(){var a=function(d,y){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,A){w.__proto__=A}||function(w,A){for(var C in A)Object.prototype.hasOwnProperty.call(A,C)&&(w[C]=A[C])})(d,y)},i=function(){return(i=Object.assign||function(d){for(var y,w=1,A=arguments.length;w<A;w++)for(var C in y=arguments[w])Object.prototype.hasOwnProperty.call(y,C)&&(d[C]=y[C]);return d}).apply(this,arguments)};function s(d,y,w){for(var A,C=0,j=y.length;C<j;C++)!A&&C in y||((A=A||Array.prototype.slice.call(y,0,C))[C]=y[C]);return d.concat(A||Array.prototype.slice.call(y))}var c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:k2,u=Object.keys,f=Array.isArray;function p(d,y){return typeof y!="object"||u(y).forEach(function(w){d[w]=y[w]}),d}typeof Promise>"u"||c.Promise||(c.Promise=Promise);var g=Object.getPrototypeOf,b={}.hasOwnProperty;function x(d,y){return b.call(d,y)}function E(d,y){typeof y=="function"&&(y=y(g(d))),(typeof Reflect>"u"?u:Reflect.ownKeys)(y).forEach(function(w){T(d,w,y[w])})}var N=Object.defineProperty;function T(d,y,w,A){N(d,y,p(w&&x(w,"get")&&typeof w.get=="function"?{get:w.get,set:w.set,configurable:!0}:{value:w,configurable:!0,writable:!0},A))}function R(d){return{from:function(y){return d.prototype=Object.create(y.prototype),T(d.prototype,"constructor",d),{extend:E.bind(null,d.prototype)}}}}var M=Object.getOwnPropertyDescriptor,D=[].slice;function $(d,y,w){return D.call(d,y,w)}function I(d,y){return y(d)}function ee(d){if(!d)throw new Error("Assertion Failed")}function z(d){c.setImmediate?setImmediate(d):setTimeout(d,0)}function q(d,y){if(typeof y=="string"&&x(d,y))return d[y];if(!y)return d;if(typeof y!="string"){for(var w=[],A=0,C=y.length;A<C;++A){var j=q(d,y[A]);w.push(j)}return w}var L=y.indexOf(".");if(L!==-1){var H=d[y.substr(0,L)];return H==null?void 0:q(H,y.substr(L+1))}}function ie(d,y,w){if(d&&y!==void 0&&!("isFrozen"in Object&&Object.isFrozen(d)))if(typeof y!="string"&&"length"in y){ee(typeof w!="string"&&"length"in w);for(var A=0,C=y.length;A<C;++A)ie(d,y[A],w[A])}else{var j,L,H=y.indexOf(".");H!==-1?(j=y.substr(0,H),(L=y.substr(H+1))===""?w===void 0?f(d)&&!isNaN(parseInt(j))?d.splice(j,1):delete d[j]:d[j]=w:ie(H=!(H=d[j])||!x(d,j)?d[j]={}:H,L,w)):w===void 0?f(d)&&!isNaN(parseInt(y))?d.splice(y,1):delete d[y]:d[y]=w}}function be(d){var y,w={};for(y in d)x(d,y)&&(w[y]=d[y]);return w}var me=[].concat;function xe(d){return me.apply([],d)}var xr="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(xe([8,16,32,64].map(function(d){return["Int","Uint","Float"].map(function(y){return y+d+"Array"})}))).filter(function(d){return c[d]}),Re=new Set(xr.map(function(d){return c[d]})),Ve=null;function Ue(d){return Ve=new WeakMap,d=function y(w){if(!w||typeof w!="object")return w;var A=Ve.get(w);if(A)return A;if(f(w)){A=[],Ve.set(w,A);for(var C=0,j=w.length;C<j;++C)A.push(y(w[C]))}else if(Re.has(w.constructor))A=w;else{var L,H=g(w);for(L in A=H===Object.prototype?{}:Object.create(H),Ve.set(w,A),w)x(w,L)&&(A[L]=y(w[L]))}return A}(d),Ve=null,d}var Ye={}.toString;function tt(d){return Ye.call(d).slice(8,-1)}var pe=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Me=typeof pe=="symbol"?function(d){var y;return d!=null&&(y=d[pe])&&y.apply(d)}:function(){return null};function B(d,y){return y=d.indexOf(y),0<=y&&d.splice(y,1),0<=y}var K={};function P(d){var y,w,A,C;if(arguments.length===1){if(f(d))return d.slice();if(this===K&&typeof d=="string")return[d];if(C=Me(d)){for(w=[];!(A=C.next()).done;)w.push(A.value);return w}if(d==null)return[d];if(typeof(y=d.length)!="number")return[d];for(w=new Array(y);y--;)w[y]=d[y];return w}for(y=arguments.length,w=new Array(y);y--;)w[y]=arguments[y];return w}var se=typeof Symbol<"u"?function(d){return d[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Na=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],or=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Na),_e={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Ne(d,y){this.name=d,this.message=y}function de(d,y){return d+". Errors: "+Object.keys(y).map(function(w){return y[w].toString()}).filter(function(w,A,C){return C.indexOf(w)===A}).join(`
340`)}function He(d,y,w,A){this.failures=y,this.failedKeys=A,this.successCount=w,this.message=de(d,y)}function $e(d,y){this.name="BulkError",this.failures=Object.keys(y).map(function(w){return y[w]}),this.failuresByPos=y,this.message=de(d,this.failures)}R(Ne).from(Error).extend({toString:function(){return this.name+": "+this.message}}),R(He).from(Ne),R($e).from(Ne);var ct=or.reduce(function(d,y){return d[y]=y+"Error",d},{}),ft=Ne,Ie=or.reduce(function(d,y){var w=y+"Error";function A(C,j){this.name=w,C?typeof C=="string"?(this.message="".concat(C).concat(j?`
341 `+j:""),this.inner=j||null):typeof C=="object"&&(this.message="".concat(C.name," ").concat(C.message),this.inner=C):(this.message=_e[y]||w,this.inner=null)}return R(A).from(ft),d[y]=A,d},{});Ie.Syntax=SyntaxError,Ie.Type=TypeError,Ie.Range=RangeError;var Ct=Na.reduce(function(d,y){return d[y+"Error"]=Ie[y],d},{}),vn=or.reduce(function(d,y){return["Syntax","Type","Range"].indexOf(y)===-1&&(d[y+"Error"]=Ie[y]),d},{});function St(){}function ln(d){return d}function ra(d,y){return d==null||d===ln?y:function(w){return y(d(w))}}function tn(d,y){return function(){d.apply(this,arguments),y.apply(this,arguments)}}function Dr(d,y){return d===St?y:function(){var w=d.apply(this,arguments);w!==void 0&&(arguments[0]=w);var A=this.onsuccess,C=this.onerror;this.onsuccess=null,this.onerror=null;var j=y.apply(this,arguments);return A&&(this.onsuccess=this.onsuccess?tn(A,this.onsuccess):A),C&&(this.onerror=this.onerror?tn(C,this.onerror):C),j!==void 0?j:w}}function Aa(d,y){return d===St?y:function(){d.apply(this,arguments);var w=this.onsuccess,A=this.onerror;this.onsuccess=this.onerror=null,y.apply(this,arguments),w&&(this.onsuccess=this.onsuccess?tn(w,this.onsuccess):w),A&&(this.onerror=this.onerror?tn(A,this.onerror):A)}}function br(d,y){return d===St?y:function(w){var A=d.apply(this,arguments);p(w,A);var C=this.onsuccess,j=this.onerror;return this.onsuccess=null,this.onerror=null,w=y.apply(this,arguments),C&&(this.onsuccess=this.onsuccess?tn(C,this.onsuccess):C),j&&(this.onerror=this.onerror?tn(j,this.onerror):j),A===void 0?w===void 0?void 0:w:p(A,w)}}function fr(d,y){return d===St?y:function(){return y.apply(this,arguments)!==!1&&d.apply(this,arguments)}}function aa(d,y){return d===St?y:function(){var w=d.apply(this,arguments);if(w&&typeof w.then=="function"){for(var A=this,C=arguments.length,j=new Array(C);C--;)j[C]=arguments[C];return w.then(function(){return y.apply(A,j)})}return y.apply(this,arguments)}}vn.ModifyError=He,vn.DexieError=Ne,vn.BulkError=$e;var Rn=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function To(d){Rn=d}var _a={},Kn=100,xr=typeof Promise>"u"?[]:function(){var d=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[d,g(d),d];var y=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[y,g(y),d]}(),Na=xr[0],or=xr[1],xr=xr[2],or=or&&or.then,wr=Na&&Na.constructor,ia=!!xr,Ca=function(d,y){nn.push([d,y]),Qa&&(queueMicrotask(ws),Qa=!1)},Za=!0,Qa=!0,kr=[],Sr=[],hn=ln,Pr={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:St,pgp:!1,env:{},finalize:St},Xe=Pr,nn=[],Lr=0,Oi=[];function Fe(d){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var y=this._PSD=Xe;if(typeof d!="function"){if(d!==_a)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&hr(this,this._value))}this._state=null,this._value=null,++y.ref,function w(A,C){try{C(function(j){if(A._state===null){if(j===A)throw new TypeError("A promise cannot be resolved with itself.");var L=A._lib&&sa();j&&typeof j.then=="function"?w(A,function(H,Y){j instanceof Fe?j._then(H,Y):j.then(H,Y)}):(A._state=!0,A._value=j,ei(A)),L&&Ir()}},hr.bind(null,A))}catch(j){hr(A,j)}}(this,d)}var Ta={get:function(){var d=Xe,y=rr;function w(A,C){var j=this,L=!d.global&&(d!==Xe||y!==rr),H=L&&!mr(),Y=new Fe(function(Z,ae){oa(j,new Ja(zr(A,d,L,H),zr(C,d,L,H),Z,ae,d))});return this._consoleTask&&(Y._consoleTask=this._consoleTask),Y}return w.prototype=_a,w},set:function(d){T(this,"then",d&&d.prototype===_a?Ta:{get:function(){return d},set:Ta.set})}};function Ja(d,y,w,A,C){this.onFulfilled=typeof d=="function"?d:null,this.onRejected=typeof y=="function"?y:null,this.resolve=w,this.reject=A,this.psd=C}function hr(d,y){var w,A;Sr.push(y),d._state===null&&(w=d._lib&&sa(),y=hn(y),d._state=!1,d._value=y,A=d,kr.some(function(C){return C._value===A._value})||kr.push(A),ei(d),w&&Ir())}function ei(d){var y=d._listeners;d._listeners=[];for(var w=0,A=y.length;w<A;++w)oa(d,y[w]);var C=d._PSD;--C.ref||C.finalize(),Lr===0&&(++Lr,Ca(function(){--Lr==0&&la()},[]))}function oa(d,y){if(d._state!==null){var w=d._state?y.onFulfilled:y.onRejected;if(w===null)return(d._state?y.resolve:y.reject)(d._value);++y.psd.ref,++Lr,Ca(Wl,[w,d,y])}else d._listeners.push(y)}function Wl(d,y,w){try{var A,C=y._value;!y._state&&Sr.length&&(Sr=[]),A=Rn&&y._consoleTask?y._consoleTask.run(function(){return d(C)}):d(C),y._state||Sr.indexOf(C)!==-1||function(j){for(var L=kr.length;L;)if(kr[--L]._value===j._value)return kr.splice(L,1)}(y),w.resolve(A)}catch(j){w.reject(j)}finally{--Lr==0&&la(),--w.psd.ref||w.psd.finalize()}}function ws(){Ar(Pr,function(){sa()&&Ir()})}function sa(){var d=Za;return Qa=Za=!1,d}function Ir(){var d,y,w;do for(;0<nn.length;)for(d=nn,nn=[],w=d.length,y=0;y<w;++y){var A=d[y];A[0].apply(null,A[1])}while(0<nn.length);Qa=Za=!0}function la(){var d=kr;kr=[],d.forEach(function(A){A._PSD.onunhandled.call(null,A._value,A)});for(var y=Oi.slice(0),w=y.length;w;)y[--w]()}function Di(d){return new Fe(_a,!1,d)}function Pt(d,y){var w=Xe;return function(){var A=sa(),C=Xe;try{return Er(w,!0),d.apply(this,arguments)}catch(j){y&&y(j)}finally{Er(C,!1),A&&Ir()}}}E(Fe.prototype,{then:Ta,_then:function(d,y){oa(this,new Ja(null,null,d,y,Xe))},catch:function(d){if(arguments.length===1)return this.then(null,d);var y=d,w=arguments[1];return typeof y=="function"?this.then(null,function(A){return(A instanceof y?w:Di)(A)}):this.then(null,function(A){return(A&&A.name===y?w:Di)(A)})},finally:function(d){return this.then(function(y){return Fe.resolve(d()).then(function(){return y})},function(y){return Fe.resolve(d()).then(function(){return Di(y)})})},timeout:function(d,y){var w=this;return d<1/0?new Fe(function(A,C){var j=setTimeout(function(){return C(new Ie.Timeout(y))},d);w.then(A,C).finally(clearTimeout.bind(null,j))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&T(Fe.prototype,Symbol.toStringTag,"Dexie.Promise"),Pr.env=Ra(),E(Fe,{all:function(){var d=P.apply(null,arguments).map(Pi);return new Fe(function(y,w){d.length===0&&y([]);var A=d.length;d.forEach(function(C,j){return Fe.resolve(C).then(function(L){d[j]=L,--A||y(d)},w)})})},resolve:function(d){return d instanceof Fe?d:d&&typeof d.then=="function"?new Fe(function(y,w){d.then(y,w)}):new Fe(_a,!0,d)},reject:Di,race:function(){var d=P.apply(null,arguments).map(Pi);return new Fe(function(y,w){d.map(function(A){return Fe.resolve(A).then(y,w)})})},PSD:{get:function(){return Xe},set:function(d){return Xe=d}},totalEchoes:{get:function(){return rr}},newPSD:Yt,usePSD:Ar,scheduler:{get:function(){return Ca},set:function(d){Ca=d}},rejectionMapper:{get:function(){return hn},set:function(d){hn=d}},follow:function(d,y){return new Fe(function(w,A){return Yt(function(C,j){var L=Xe;L.unhandleds=[],L.onunhandled=j,L.finalize=tn(function(){var H,Y=this;H=function(){Y.unhandleds.length===0?C():j(Y.unhandleds[0])},Oi.push(function Z(){H(),Oi.splice(Oi.indexOf(Z),1)}),++Lr,Ca(function(){--Lr==0&&la()},[])},L.finalize),d()},y,w,A)})}}),wr&&(wr.allSettled&&T(Fe,"allSettled",function(){var d=P.apply(null,arguments).map(Pi);return new Fe(function(y){d.length===0&&y([]);var w=d.length,A=new Array(w);d.forEach(function(C,j){return Fe.resolve(C).then(function(L){return A[j]={status:"fulfilled",value:L}},function(L){return A[j]={status:"rejected",reason:L}}).then(function(){return--w||y(A)})})})}),wr.any&&typeof AggregateError<"u"&&T(Fe,"any",function(){var d=P.apply(null,arguments).map(Pi);return new Fe(function(y,w){d.length===0&&w(new AggregateError([]));var A=d.length,C=new Array(A);d.forEach(function(j,L){return Fe.resolve(j).then(function(H){return y(H)},function(H){C[L]=H,--A||w(new AggregateError(C))})})})}),wr.withResolvers&&(Fe.withResolvers=wr.withResolvers));var rn={awaits:0,echoes:0,id:0},Ro=0,ti=[],ki=0,rr=0,bn=0;function Yt(d,y,w,A){var C=Xe,j=Object.create(C);return j.parent=C,j.ref=0,j.global=!1,j.id=++bn,Pr.env,j.env=ia?{Promise:Fe,PromiseProp:{value:Fe,configurable:!0,writable:!0},all:Fe.all,race:Fe.race,allSettled:Fe.allSettled,any:Fe.any,resolve:Fe.resolve,reject:Fe.reject}:{},y&&p(j,y),++C.ref,j.finalize=function(){--this.parent.ref||this.parent.finalize()},A=Ar(j,d,w,A),j.ref===0&&j.finalize(),A}function ar(){return rn.id||(rn.id=++Ro),++rn.awaits,rn.echoes+=Kn,rn.id}function mr(){return!!rn.awaits&&(--rn.awaits==0&&(rn.id=0),rn.echoes=rn.awaits*Kn,!0)}function Pi(d){return rn.echoes&&d&&d.constructor===wr?(ar(),d.then(function(y){return mr(),y},function(y){return mr(),Lt(y)})):d}function Zl(){var d=ti[ti.length-1];ti.pop(),Er(d,!1)}function Er(d,y){var w,A=Xe;(y?!rn.echoes||ki++&&d===Xe:!ki||--ki&&d===Xe)||queueMicrotask(y?(function(C){++rr,rn.echoes&&--rn.echoes!=0||(rn.echoes=rn.awaits=rn.id=0),ti.push(Xe),Er(C,!0)}).bind(null,d):Zl),d!==Xe&&(Xe=d,A===Pr&&(Pr.env=Ra()),ia&&(w=Pr.env.Promise,y=d.env,(A.global||d.global)&&(Object.defineProperty(c,"Promise",y.PromiseProp),w.all=y.all,w.race=y.race,w.resolve=y.resolve,w.reject=y.reject,y.allSettled&&(w.allSettled=y.allSettled),y.any&&(w.any=y.any))))}function Ra(){var d=c.Promise;return ia?{Promise:d,PromiseProp:Object.getOwnPropertyDescriptor(c,"Promise"),all:d.all,race:d.race,allSettled:d.allSettled,any:d.any,resolve:d.resolve,reject:d.reject}:{}}function Ar(d,y,w,A,C){var j=Xe;try{return Er(d,!0),y(w,A,C)}finally{Er(j,!1)}}function zr(d,y,w,A){return typeof d!="function"?d:function(){var C=Xe;w&&ar(),Er(y,!0);try{return d.apply(this,arguments)}finally{Er(C,!1),A&&queueMicrotask(mr)}}}function Vr(d){Promise===wr&&rn.echoes===0?ki===0?d():enqueueNativeMicroTask(d):setTimeout(d,0)}(""+or).indexOf("[native code]")===-1&&(ar=mr=St);var Lt=Fe.reject,zn="ï¿¿",jt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Li="String expected.",Yn=[],pr="__dbnames",ir="readonly",Vn="readwrite";function ca(d,y){return d?y?function(){return d.apply(this,arguments)&&y.apply(this,arguments)}:d:y}var jo={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ua(d){return typeof d!="string"||/\./.test(d)?function(y){return y}:function(y){return y[d]===void 0&&d in y&&delete(y=Ue(y))[d],y}}function Ss(){throw Ie.Type()}function gt(d,y){try{var w=O(d),A=O(y);if(w!==A)return w==="Array"?1:A==="Array"?-1:w==="binary"?1:A==="binary"?-1:w==="string"?1:A==="string"?-1:w==="Date"?1:A!=="Date"?NaN:-1;switch(w){case"number":case"Date":case"string":return y<d?1:d<y?-1:0;case"binary":return function(C,j){for(var L=C.length,H=j.length,Y=L<H?L:H,Z=0;Z<Y;++Z)if(C[Z]!==j[Z])return C[Z]<j[Z]?-1:1;return L===H?0:L<H?-1:1}(U(d),U(y));case"Array":return function(C,j){for(var L=C.length,H=j.length,Y=L<H?L:H,Z=0;Z<Y;++Z){var ae=gt(C[Z],j[Z]);if(ae!==0)return ae}return L===H?0:L<H?-1:1}(d,y)}}catch{}return NaN}function O(d){var y=typeof d;return y!="object"?y:ArrayBuffer.isView(d)?"binary":(d=tt(d),d==="ArrayBuffer"?"binary":d)}function U(d){return d instanceof Uint8Array?d:ArrayBuffer.isView(d)?new Uint8Array(d.buffer,d.byteOffset,d.byteLength):new Uint8Array(d)}var V=(W.prototype._trans=function(d,y,w){var A=this._tx||Xe.trans,C=this.name,j=Rn&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(d==="readonly"?"read":"write"," ").concat(this.name));function L(Z,ae,G){if(!G.schema[C])throw new Ie.NotFound("Table "+C+" not part of transaction");return y(G.idbtrans,G)}var H=sa();try{var Y=A&&A.db._novip===this.db._novip?A===Xe.trans?A._promise(d,L,w):Yt(function(){return A._promise(d,L,w)},{trans:A,transless:Xe.transless||Xe}):function Z(ae,G,ce,X){if(ae.idbdb&&(ae._state.openComplete||Xe.letThrough||ae._vip)){var ne=ae._createTransaction(G,ce,ae._dbSchema);try{ne.create(),ae._state.PR1398_maxLoop=3}catch(le){return le.name===ct.InvalidState&&ae.isOpen()&&0<--ae._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),ae.close({disableAutoOpen:!1}),ae.open().then(function(){return Z(ae,G,ce,X)})):Lt(le)}return ne._promise(G,function(le,te){return Yt(function(){return Xe.trans=ne,X(le,te,ne)})}).then(function(le){if(G==="readwrite")try{ne.idbtrans.commit()}catch{}return G==="readonly"?le:ne._completion.then(function(){return le})})}if(ae._state.openComplete)return Lt(new Ie.DatabaseClosed(ae._state.dbOpenError));if(!ae._state.isBeingOpened){if(!ae._state.autoOpen)return Lt(new Ie.DatabaseClosed);ae.open().catch(St)}return ae._state.dbReadyPromise.then(function(){return Z(ae,G,ce,X)})}(this.db,d,[this.name],L);return j&&(Y._consoleTask=j,Y=Y.catch(function(Z){return console.trace(Z),Lt(Z)})),Y}finally{H&&Ir()}},W.prototype.get=function(d,y){var w=this;return d&&d.constructor===Object?this.where(d).first(y):d==null?Lt(new Ie.Type("Invalid argument to Table.get()")):this._trans("readonly",function(A){return w.core.get({trans:A,key:d}).then(function(C){return w.hook.reading.fire(C)})}).then(y)},W.prototype.where=function(d){if(typeof d=="string")return new this.db.WhereClause(this,d);if(f(d))return new this.db.WhereClause(this,"[".concat(d.join("+"),"]"));var y=u(d);if(y.length===1)return this.where(y[0]).equals(d[y[0]]);var w=this.schema.indexes.concat(this.schema.primKey).filter(function(H){if(H.compound&&y.every(function(Z){return 0<=H.keyPath.indexOf(Z)})){for(var Y=0;Y<y.length;++Y)if(y.indexOf(H.keyPath[Y])===-1)return!1;return!0}return!1}).sort(function(H,Y){return H.keyPath.length-Y.keyPath.length})[0];if(w&&this.db._maxKey!==zn){var j=w.keyPath.slice(0,y.length);return this.where(j).equals(j.map(function(Y){return d[Y]}))}!w&&Rn&&console.warn("The query ".concat(JSON.stringify(d)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(y.join("+"),"]"));var A=this.schema.idxByName;function C(H,Y){return gt(H,Y)===0}var L=y.reduce(function(G,Y){var Z=G[0],ae=G[1],G=A[Y],ce=d[Y];return[Z||G,Z||!G?ca(ae,G&&G.multi?function(X){return X=q(X,Y),f(X)&&X.some(function(ne){return C(ce,ne)})}:function(X){return C(ce,q(X,Y))}):ae]},[null,null]),j=L[0],L=L[1];return j?this.where(j.name).equals(d[j.keyPath]).filter(L):w?this.filter(L):this.where(y).equals("")},W.prototype.filter=function(d){return this.toCollection().and(d)},W.prototype.count=function(d){return this.toCollection().count(d)},W.prototype.offset=function(d){return this.toCollection().offset(d)},W.prototype.limit=function(d){return this.toCollection().limit(d)},W.prototype.each=function(d){return this.toCollection().each(d)},W.prototype.toArray=function(d){return this.toCollection().toArray(d)},W.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},W.prototype.orderBy=function(d){return new this.db.Collection(new this.db.WhereClause(this,f(d)?"[".concat(d.join("+"),"]"):d))},W.prototype.reverse=function(){return this.toCollection().reverse()},W.prototype.mapToClass=function(d){var y,w=this.db,A=this.name;function C(){return y!==null&&y.apply(this,arguments)||this}(this.schema.mappedClass=d).prototype instanceof Ss&&(function(Y,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function ae(){this.constructor=Y}a(Y,Z),Y.prototype=Z===null?Object.create(Z):(ae.prototype=Z.prototype,new ae)}(C,y=d),Object.defineProperty(C.prototype,"db",{get:function(){return w},enumerable:!1,configurable:!0}),C.prototype.table=function(){return A},d=C);for(var j=new Set,L=d.prototype;L;L=g(L))Object.getOwnPropertyNames(L).forEach(function(Y){return j.add(Y)});function H(Y){if(!Y)return Y;var Z,ae=Object.create(d.prototype);for(Z in Y)if(!j.has(Z))try{ae[Z]=Y[Z]}catch{}return ae}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=H,this.hook("reading",H),d},W.prototype.defineClass=function(){return this.mapToClass(function(d){p(this,d)})},W.prototype.add=function(d,y){var w=this,A=this.schema.primKey,C=A.auto,j=A.keyPath,L=d;return j&&C&&(L=ua(j)(d)),this._trans("readwrite",function(H){return w.core.mutate({trans:H,type:"add",keys:y!=null?[y]:null,values:[L]})}).then(function(H){return H.numFailures?Fe.reject(H.failures[0]):H.lastResult}).then(function(H){if(j)try{ie(d,j,H)}catch{}return H})},W.prototype.update=function(d,y){return typeof d!="object"||f(d)?this.where(":id").equals(d).modify(y):(d=q(d,this.schema.primKey.keyPath),d===void 0?Lt(new Ie.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(d).modify(y))},W.prototype.put=function(d,y){var w=this,A=this.schema.primKey,C=A.auto,j=A.keyPath,L=d;return j&&C&&(L=ua(j)(d)),this._trans("readwrite",function(H){return w.core.mutate({trans:H,type:"put",values:[L],keys:y!=null?[y]:null})}).then(function(H){return H.numFailures?Fe.reject(H.failures[0]):H.lastResult}).then(function(H){if(j)try{ie(d,j,H)}catch{}return H})},W.prototype.delete=function(d){var y=this;return this._trans("readwrite",function(w){return y.core.mutate({trans:w,type:"delete",keys:[d]})}).then(function(w){return w.numFailures?Fe.reject(w.failures[0]):void 0})},W.prototype.clear=function(){var d=this;return this._trans("readwrite",function(y){return d.core.mutate({trans:y,type:"deleteRange",range:jo})}).then(function(y){return y.numFailures?Fe.reject(y.failures[0]):void 0})},W.prototype.bulkGet=function(d){var y=this;return this._trans("readonly",function(w){return y.core.getMany({keys:d,trans:w}).then(function(A){return A.map(function(C){return y.hook.reading.fire(C)})})})},W.prototype.bulkAdd=function(d,y,w){var A=this,C=Array.isArray(y)?y:void 0,j=(w=w||(C?void 0:y))?w.allKeys:void 0;return this._trans("readwrite",function(L){var Z=A.schema.primKey,H=Z.auto,Z=Z.keyPath;if(Z&&C)throw new Ie.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(C&&C.length!==d.length)throw new Ie.InvalidArgument("Arguments objects and keys must have the same length");var Y=d.length,Z=Z&&H?d.map(ua(Z)):d;return A.core.mutate({trans:L,type:"add",keys:C,values:Z,wantResults:j}).then(function(ne){var G=ne.numFailures,ce=ne.results,X=ne.lastResult,ne=ne.failures;if(G===0)return j?ce:X;throw new $e("".concat(A.name,".bulkAdd(): ").concat(G," of ").concat(Y," operations failed"),ne)})})},W.prototype.bulkPut=function(d,y,w){var A=this,C=Array.isArray(y)?y:void 0,j=(w=w||(C?void 0:y))?w.allKeys:void 0;return this._trans("readwrite",function(L){var Z=A.schema.primKey,H=Z.auto,Z=Z.keyPath;if(Z&&C)throw new Ie.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(C&&C.length!==d.length)throw new Ie.InvalidArgument("Arguments objects and keys must have the same length");var Y=d.length,Z=Z&&H?d.map(ua(Z)):d;return A.core.mutate({trans:L,type:"put",keys:C,values:Z,wantResults:j}).then(function(ne){var G=ne.numFailures,ce=ne.results,X=ne.lastResult,ne=ne.failures;if(G===0)return j?ce:X;throw new $e("".concat(A.name,".bulkPut(): ").concat(G," of ").concat(Y," operations failed"),ne)})})},W.prototype.bulkUpdate=function(d){var y=this,w=this.core,A=d.map(function(L){return L.key}),C=d.map(function(L){return L.changes}),j=[];return this._trans("readwrite",function(L){return w.getMany({trans:L,keys:A,cache:"clone"}).then(function(H){var Y=[],Z=[];d.forEach(function(G,ce){var X=G.key,ne=G.changes,le=H[ce];if(le){for(var te=0,fe=Object.keys(ne);te<fe.length;te++){var ye=fe[te],ve=ne[ye];if(ye===y.schema.primKey.keyPath){if(gt(ve,X)!==0)throw new Ie.Constraint("Cannot update primary key in bulkUpdate()")}else ie(le,ye,ve)}j.push(ce),Y.push(X),Z.push(le)}});var ae=Y.length;return w.mutate({trans:L,type:"put",keys:Y,values:Z,updates:{keys:A,changeSpecs:C}}).then(function(G){var ce=G.numFailures,X=G.failures;if(ce===0)return ae;for(var ne=0,le=Object.keys(X);ne<le.length;ne++){var te,fe=le[ne],ye=j[Number(fe)];ye!=null&&(te=X[fe],delete X[fe],X[ye]=te)}throw new $e("".concat(y.name,".bulkUpdate(): ").concat(ce," of ").concat(ae," operations failed"),X)})})})},W.prototype.bulkDelete=function(d){var y=this,w=d.length;return this._trans("readwrite",function(A){return y.core.mutate({trans:A,type:"delete",keys:d})}).then(function(L){var C=L.numFailures,j=L.lastResult,L=L.failures;if(C===0)return j;throw new $e("".concat(y.name,".bulkDelete(): ").concat(C," of ").concat(w," operations failed"),L)})},W);function W(){}function J(d){function y(L,H){if(H){for(var Y=arguments.length,Z=new Array(Y-1);--Y;)Z[Y-1]=arguments[Y];return w[L].subscribe.apply(null,Z),d}if(typeof L=="string")return w[L]}var w={};y.addEventType=j;for(var A=1,C=arguments.length;A<C;++A)j(arguments[A]);return y;function j(L,H,Y){if(typeof L!="object"){var Z;H=H||fr;var ae={subscribers:[],fire:Y=Y||St,subscribe:function(G){ae.subscribers.indexOf(G)===-1&&(ae.subscribers.push(G),ae.fire=H(ae.fire,G))},unsubscribe:function(G){ae.subscribers=ae.subscribers.filter(function(ce){return ce!==G}),ae.fire=ae.subscribers.reduce(H,Y)}};return w[L]=y[L]=ae}u(Z=L).forEach(function(G){var ce=Z[G];if(f(ce))j(G,Z[G][0],Z[G][1]);else{if(ce!=="asap")throw new Ie.InvalidArgument("Invalid event config");var X=j(G,ln,function(){for(var ne=arguments.length,le=new Array(ne);ne--;)le[ne]=arguments[ne];X.subscribers.forEach(function(te){z(function(){te.apply(null,le)})})})}})}}function oe(d,y){return R(y).from({prototype:d}),y}function we(d,y){return!(d.filter||d.algorithm||d.or)&&(y?d.justLimit:!d.replayFilter)}function je(d,y){d.filter=ca(d.filter,y)}function ke(d,y,w){var A=d.replayFilter;d.replayFilter=A?function(){return ca(A(),y())}:y,d.justLimit=w&&!A}function Te(d,y){if(d.isPrimKey)return y.primaryKey;var w=y.getIndexByKeyPath(d.index);if(!w)throw new Ie.Schema("KeyPath "+d.index+" on object store "+y.name+" is not indexed");return w}function De(d,y,w){var A=Te(d,y.schema);return y.openCursor({trans:w,values:!d.keysOnly,reverse:d.dir==="prev",unique:!!d.unique,query:{index:A,range:d.range}})}function et(d,y,w,A){var C=d.replayFilter?ca(d.filter,d.replayFilter()):d.filter;if(d.or){var j={},L=function(H,Y,Z){var ae,G;C&&!C(Y,Z,function(ce){return Y.stop(ce)},function(ce){return Y.fail(ce)})||((G=""+(ae=Y.primaryKey))=="[object ArrayBuffer]"&&(G=""+new Uint8Array(ae)),x(j,G)||(j[G]=!0,y(H,Y,Z)))};return Promise.all([d.or._iterate(L,w),ht(De(d,A,w),d.algorithm,L,!d.keysOnly&&d.valueMapper)])}return ht(De(d,A,w),ca(d.algorithm,C),y,!d.keysOnly&&d.valueMapper)}function ht(d,y,w,A){var C=Pt(A?function(j,L,H){return w(A(j),L,H)}:w);return d.then(function(j){if(j)return j.start(function(){var L=function(){return j.continue()};y&&!y(j,function(H){return L=H},function(H){j.stop(H),L=St},function(H){j.fail(H),L=St})||C(j.value,j,function(H){return L=H}),L()})})}var xt=(Tt.prototype.execute=function(d){var y=this["@@propmod"];if(y.add!==void 0){var w=y.add;if(f(w))return s(s([],f(d)?d:[],!0),w).sort();if(typeof w=="number")return(Number(d)||0)+w;if(typeof w=="bigint")try{return BigInt(d)+w}catch{return BigInt(0)+w}throw new TypeError("Invalid term ".concat(w))}if(y.remove!==void 0){var A=y.remove;if(f(A))return f(d)?d.filter(function(C){return!A.includes(C)}).sort():[];if(typeof A=="number")return Number(d)-A;if(typeof A=="bigint")try{return BigInt(d)-A}catch{return BigInt(0)-A}throw new TypeError("Invalid subtrahend ".concat(A))}return w=(w=y.replacePrefix)===null||w===void 0?void 0:w[0],w&&typeof d=="string"&&d.startsWith(w)?y.replacePrefix[1]+d.substring(w.length):d},Tt);function Tt(d){this["@@propmod"]=d}var Xt=(Ze.prototype._read=function(d,y){var w=this._ctx;return w.error?w.table._trans(null,Lt.bind(null,w.error)):w.table._trans("readonly",d).then(y)},Ze.prototype._write=function(d){var y=this._ctx;return y.error?y.table._trans(null,Lt.bind(null,y.error)):y.table._trans("readwrite",d,"locked")},Ze.prototype._addAlgorithm=function(d){var y=this._ctx;y.algorithm=ca(y.algorithm,d)},Ze.prototype._iterate=function(d,y){return et(this._ctx,d,y,this._ctx.table.core)},Ze.prototype.clone=function(d){var y=Object.create(this.constructor.prototype),w=Object.create(this._ctx);return d&&p(w,d),y._ctx=w,y},Ze.prototype.raw=function(){return this._ctx.valueMapper=null,this},Ze.prototype.each=function(d){var y=this._ctx;return this._read(function(w){return et(y,d,w,y.table.core)})},Ze.prototype.count=function(d){var y=this;return this._read(function(w){var A=y._ctx,C=A.table.core;if(we(A,!0))return C.count({trans:w,query:{index:Te(A,C.schema),range:A.range}}).then(function(L){return Math.min(L,A.limit)}
341);var j=0;return et(A,function(){return++j,!1},w,C).then(function(){return j})}).then(d)},Ze.prototype.sortBy=function(d,y){var w=d.split(".").reverse(),A=w[0],C=w.length-1;function j(Y,Z){return Z?j(Y[w[Z]],Z-1):Y[A]}var L=this._ctx.dir==="next"?1:-1;function H(Y,Z){return gt(j(Y,C),j(Z,C))*L}return this.toArray(function(Y){return Y.sort(H)}).then(y)},Ze.prototype.toArray=function(d){var y=this;return this._read(function(w){var A=y._ctx;if(A.dir==="next"&&we(A,!0)&&0<A.limit){var C=A.valueMapper,j=Te(A,A.table.core.schema);return A.table.core.query({trans:w,limit:A.limit,values:!0,query:{index:j,range:A.range}}).then(function(H){return H=H.result,C?H.map(C):H})}var L=[];return et(A,function(H){return L.push(H)},w,A.table.core).then(function(){return L})},d)},Ze.prototype.offset=function(d){var y=this._ctx;return d<=0||(y.offset+=d,we(y)?ke(y,function(){var w=d;return function(A,C){return w===0||(w===1?--w:C(function(){A.advance(w),w=0}),!1)}}):ke(y,function(){var w=d;return function(){return--w<0}})),this},Ze.prototype.limit=function(d){return this._ctx.limit=Math.min(this._ctx.limit,d),ke(this._ctx,function(){var y=d;return function(w,A,C){return--y<=0&&A(C),0<=y}},!0),this},Ze.prototype.until=function(d,y){return je(this._ctx,function(w,A,C){return!d(w.value)||(A(C),y)}),this},Ze.prototype.first=function(d){return this.limit(1).toArray(function(y){return y[0]}).then(d)},Ze.prototype.last=function(d){return this.reverse().first(d)},Ze.prototype.filter=function(d){var y;return je(this._ctx,function(w){return d(w.value)}),(y=this._ctx).isMatch=ca(y.isMatch,d),this},Ze.prototype.and=function(d){return this.filter(d)},Ze.prototype.or=function(d){return new this.db.WhereClause(this._ctx.table,d,this)},Ze.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Ze.prototype.desc=function(){return this.reverse()},Ze.prototype.eachKey=function(d){var y=this._ctx;return y.keysOnly=!y.isMatch,this.each(function(w,A){d(A.key,A)})},Ze.prototype.eachUniqueKey=function(d){return this._ctx.unique="unique",this.eachKey(d)},Ze.prototype.eachPrimaryKey=function(d){var y=this._ctx;return y.keysOnly=!y.isMatch,this.each(function(w,A){d(A.primaryKey,A)})},Ze.prototype.keys=function(d){var y=this._ctx;y.keysOnly=!y.isMatch;var w=[];return this.each(function(A,C){w.push(C.key)}).then(function(){return w}).then(d)},Ze.prototype.primaryKeys=function(d){var y=this._ctx;if(y.dir==="next"&&we(y,!0)&&0<y.limit)return this._read(function(A){var C=Te(y,y.table.core.schema);return y.table.core.query({trans:A,values:!1,limit:y.limit,query:{index:C,range:y.range}})}).then(function(A){return A.result}).then(d);y.keysOnly=!y.isMatch;var w=[];return this.each(function(A,C){w.push(C.primaryKey)}).then(function(){return w}).then(d)},Ze.prototype.uniqueKeys=function(d){return this._ctx.unique="unique",this.keys(d)},Ze.prototype.firstKey=function(d){return this.limit(1).keys(function(y){return y[0]}).then(d)},Ze.prototype.lastKey=function(d){return this.reverse().firstKey(d)},Ze.prototype.distinct=function(){var d=this._ctx,d=d.index&&d.table.schema.idxByName[d.index];if(!d||!d.multi)return this;var y={};return je(this._ctx,function(C){var A=C.primaryKey.toString(),C=x(y,A);return y[A]=!0,!C}),this},Ze.prototype.modify=function(d){var y=this,w=this._ctx;return this._write(function(A){var C,j,L;L=typeof d=="function"?d:(C=u(d),j=C.length,function(te){for(var fe=!1,ye=0;ye<j;++ye){var ve=C[ye],Ee=d[ve],Pe=q(te,ve);Ee instanceof xt?(ie(te,ve,Ee.execute(Pe)),fe=!0):Pe!==Ee&&(ie(te,ve,Ee),fe=!0)}return fe});var H=w.table.core,G=H.schema.primaryKey,Y=G.outbound,Z=G.extractKey,ae=200,G=y.db._options.modifyChunkSize;G&&(ae=typeof G=="object"?G[H.name]||G["*"]||200:G);function ce(te,ve){var ye=ve.failures,ve=ve.numFailures;ne+=te-ve;for(var Ee=0,Pe=u(ye);Ee<Pe.length;Ee++){var qe=Pe[Ee];X.push(ye[qe])}}var X=[],ne=0,le=[];return y.clone().primaryKeys().then(function(te){function fe(ve){var Ee=Math.min(ae,te.length-ve);return H.getMany({trans:A,keys:te.slice(ve,ve+Ee),cache:"immutable"}).then(function(Pe){for(var qe=[],Le=[],ze=Y?[]:null,Ge=[],Be=0;Be<Ee;++Be){var Ke=Pe[Be],at={value:Ue(Ke),primKey:te[ve+Be]};L.call(at,at.value,at)!==!1&&(at.value==null?Ge.push(te[ve+Be]):Y||gt(Z(Ke),Z(at.value))===0?(Le.push(at.value),Y&&ze.push(te[ve+Be])):(Ge.push(te[ve+Be]),qe.push(at.value)))}return Promise.resolve(0<qe.length&&H.mutate({trans:A,type:"add",values:qe}).then(function(dt){for(var yt in dt.failures)Ge.splice(parseInt(yt),1);ce(qe.length,dt)})).then(function(){return(0<Le.length||ye&&typeof d=="object")&&H.mutate({trans:A,type:"put",keys:ze,values:Le,criteria:ye,changeSpec:typeof d!="function"&&d,isAdditionalChunk:0<ve}).then(function(dt){return ce(Le.length,dt)})}).then(function(){return(0<Ge.length||ye&&d===jn)&&H.mutate({trans:A,type:"delete",ke
341ys:Ge,criteria:ye,isAdditionalChunk:0<ve}).then(function(dt){return ce(Ge.length,dt)})}).then(function(){return te.length>ve+Ee&&fe(ve+ae)})})}var ye=we(w)&&w.limit===1/0&&(typeof d!="function"||d===jn)&&{index:w.index,range:w.range};return fe(0).then(function(){if(0<X.length)throw new He("Error modifying one or more objects",X,ne,le);return te.length})})})},Ze.prototype.delete=function(){var d=this._ctx,y=d.range;return we(d)&&(d.isPrimKey||y.type===3)?this._write(function(w){var A=d.table.core.schema.primaryKey,C=y;return d.table.core.count({trans:w,query:{index:A,range:C}}).then(function(j){return d.table.core.mutate({trans:w,type:"deleteRange",range:C}).then(function(L){var H=L.failures;if(L.lastResult,L.results,L=L.numFailures,L)throw new He("Could not delete some values",Object.keys(H).map(function(Y){return H[Y]}),j-L);return j-L})})}):this.modify(jn)},Ze);function Ze(){}var jn=function(d,y){return y.value=null};function Ii(d,y){return d<y?-1:d===y?0:1}function zi(d,y){return y<d?-1:d===y?0:1}function Nn(d,y,w){return d=d instanceof As?new d.Collection(d):d,d._ctx.error=new(w||TypeError)(y),d}function ja(d){return new d.Collection(d,function(){return Es("")}).limit(0)}function ni(d,y,w,A){var C,j,L,H,Y,Z,ae,G=w.length;if(!w.every(function(ne){return typeof ne=="string"}))return Nn(d,Li);function ce(ne){C=ne==="next"?function(te){return te.toUpperCase()}:function(te){return te.toLowerCase()},j=ne==="next"?function(te){return te.toLowerCase()}:function(te){return te.toUpperCase()},L=ne==="next"?Ii:zi;var le=w.map(function(te){return{lower:j(te),upper:C(te)}}).sort(function(te,fe){return L(te.lower,fe.lower)});H=le.map(function(te){return te.upper}),Y=le.map(function(te){return te.lower}),ae=(Z=ne)==="next"?"":A}ce("next"),d=new d.Collection(d,function(){return _r(H[0],Y[G-1]+A)}),d._ondirectionchange=function(ne){ce(ne)};var X=0;return d._addAlgorithm(function(ne,le,te){var fe=ne.key;if(typeof fe!="string")return!1;var ye=j(fe);if(y(ye,Y,X))return!0;for(var ve=null,Ee=X;Ee<G;++Ee){var Pe=function(qe,Le,ze,Ge,Be,Ke){for(var at=Math.min(qe.length,Ge.length),dt=-1,yt=0;yt<at;++yt){var On=Le[yt];if(On!==Ge[yt])return Be(qe[yt],ze[yt])<0?qe.substr(0,yt)+ze[yt]+ze.substr(yt+1):Be(qe[yt],Ge[yt])<0?qe.substr(0,yt)+Ge[yt]+ze.substr(yt+1):0<=dt?qe.substr(0,dt)+Le[dt]+ze.substr(dt+1):null;Be(qe[yt],On)<0&&(dt=yt)}return at<Ge.length&&Ke==="next"?qe+ze.substr(qe.length):at<qe.length&&Ke==="prev"?qe.substr(0,ze.length):dt<0?null:qe.
vendor: 10,898 bytes, line 341
341substr(0,dt)+Ge[dt]+ze.substr(dt+1)}(fe,ye,H[Ee],Y[Ee],L,Z);Pe===null&&ve===null?X=Ee+1:(ve===null||0<L(ve,Pe))&&(ve=Pe)}return le(ve!==null?function(){ne.continue(ve+ae)}:te),!1}),d}function _r(d,y,w,A){return{type:2,lower:d,upper:y,lowerOpen:w,upperOpen:A}}function Es(d){return{type:1,lower:d,upper:d}}var As=(Object.defineProperty(Wt.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Wt.prototype.between=function(d,y,w,A){w=w!==!1,A=A===!0;try{return 0<this._cmp(d,y)||this._cmp(d,y)===0&&(w||A)&&(!w||!A)?ja(this):new this.Collection(this,function(){return _r(d,y,!w,!A)})}catch{return Nn(this,jt)}},Wt.prototype.equals=function(d){return d==null?Nn(this,jt):new this.Collection(this,function(){return Es(d)})},Wt.prototype.above=function(d){return d==null?Nn(this,jt):new this.Collection(this,function(){return _r(d,void 0,!0)})},Wt.prototype.aboveOrEqual=function(d){return d==null?Nn(this,jt):new this.Collection(this,function(){return _r(d,void 0,!1)})},Wt.prototype.below=function(d){return d==null?Nn(this,jt):new this.Collection(this,function(){return _r(void 0,d,!1,!0)})},Wt.prototype.belowOrEqual=function(d){return d==null?Nn(this,jt):new this.Collection(this,function(){return _r(void 0,d)})},Wt.prototype.startsWith=function(d){return typeof d!="string"?Nn(this,Li):this.between(d,d+zn,!0,!0)},Wt.prototype.startsWithIgnoreCase=function(d){return d===""?this.startsWith(d):ni(this,function(y,w){return y.indexOf(w[0])===0},[d],zn)},Wt.prototype.equalsIgnoreCase=function(d){return ni(this,function(y,w){return y===w[0]},[d],"")},Wt.prototype.anyOfIgnoreCase=function(){var d=P.apply(K,arguments);return d.length===0?ja(this):ni(this,function(y,w){return w.indexOf(y)!==-1},d,"")},Wt.prototype.startsWithAnyOfIgnoreCase=function(){var d=P.apply(K,arguments);return d.length===0?ja(this):ni(this,function(y,w){return w.some(function(A){return y.indexOf(A)===0})},d,zn)},Wt.prototype.anyOf=function(){var d=this,y=P.apply(K,arguments),w=this._cmp;try{y.sort(w)}catch{return Nn(this,jt)}if(y.length===0)return ja(this);var A=new this.Collection(this,function(){return _r(y[0],y[y.length-1])});A._ondirectionchange=function(j){w=j==="next"?d._ascending:d._descending,y.sort(w)};var C=0;return A._addAlgorithm(function(j,L,H){for(var Y=j.key;0<w(Y,y[C]);)if(++C===y.length)return L(H),!1;return w(Y,y[C])===0||(L(function(){j.continue(y[C])}),!1)}),A},Wt.prototype.notEqual=function(d){return this.inAnyRange([[-1/0,d],[d,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Wt.prototype.noneOf=function(){var d=P.apply(K,arguments);if(d.length===0)return new this.Collection(this);try{d.sort(this._ascending)}catch{return Nn(this,jt)}var y=d.reduce(function(w,A){return w?w.concat([[w[w.length-1][1],A]]):[[-1/0,A]]},null);return y.push([d[d.length-1],this.db._maxKey]),this.inAnyRange(y,{includeLowers:!1,includeUppers:!1})},Wt.prototype.inAnyRange=function(fe,y){var w=this,A=this._cmp,C=this._ascending,j=this._descending,L=this._min,H=this._max;if(fe.length===0)return ja(this);if(!fe.every(function(ye){return ye[0]!==void 0&&ye[1]!==void 0&&C(ye[0],ye[1])<=0}))return Nn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ie.InvalidArgument);var Y=!y||y.includeLowers!==!1,Z=y&&y.includeUppers===!0,ae,G=C;function ce(ye,ve){return G(ye[0],ve[0])}try{(ae=fe.reduce(function(ye,ve){for(var Ee=0,Pe=ye.length;Ee<Pe;++Ee){var qe=ye[Ee];if(A(ve[0],qe[1])<0&&0<A(ve[1],qe[0])){qe[0]=L(qe[0],ve[0]),qe[1]=H(qe[1],ve[1]);break}}return Ee===Pe&&ye.push(ve),ye},[])).sort(ce)}catch{return Nn(this,jt)}var X=0,ne=Z?function(ye){return 0<C(ye,ae[X][1])}:function(ye){return 0<=C(ye,ae[X][1])},le=Y?function(ye){return 0<j(ye,ae[X][0])}:function(ye){return 0<=j(ye,ae[X][0])},te=ne,fe=new this.Collection(this,function(){return _r(ae[0][0],ae[ae.length-1][1],!Y,!Z)});return fe._ondirectionchange=function(ye){G=ye==="next"?(te=ne,C):(te=le,j),ae.sort(ce)},fe._addAlgorithm(function(ye,ve,Ee){for(var Pe,qe=ye.key;te(qe);)if(++X===ae.length)return ve(Ee),!1;return!ne(Pe=qe)&&!le(Pe)||(w._cmp(qe,ae[X][1])===0||w._cmp(qe,ae[X][0])===0||ve(function(){G===C?ye.continue(ae[X][0]):ye.continue(ae[X][1])}),!1)}),fe},Wt.prototype.startsWithAnyOf=function(){var d=P.apply(K,arguments);return d.every(function(y){return typeof y=="string"})?d.length===0?ja(this):this.inAnyRange(d.map(function(y){return[y,y+zn]})):Nn(this,"startsWithAnyOf() only works with strings")},Wt);function Wt(){}function Un(d){return Pt(function(y){return Vi(y),d(y.target.error),!1})}function Vi(d){d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault()}var ri="storagemutated",_s="x-storagemutated-1",gr=J(null,ri),Ql=(Xn.prototype._lock=function(){return ee(!Xe.global),++this._reculock,this._reculock!==1||Xe.global||(Xe.lockOwnerFor=this),this},Xn.prototype._unlock=function(){if(ee(!Xe.global),--this._reculock==0)for(Xe.global||(Xe.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var d=this._blockedFuncs.shift();try{Ar(d[1],d[0])}catch{}}return this},Xn.prototype._locked=function(){return this._reculock&&Xe.lockOwnerFor!==this},Xn.prototype.create=function(d){var y=this;if(!this.mode)return this;var w=this.db.idbdb,A=this.db._state.dbOpenError;if(ee(!this.idbtrans),!d&&!w)switch(A&&A.name){case"DatabaseClosedError":throw new Ie.DatabaseClosed(A);case"MissingAPIError":throw new Ie.MissingAPI(A.message,A);default:throw new Ie.OpenFailed(A)}if(!this.active)throw new Ie.TransactionInactive;return ee(this._completion._state===null),(d=this.idbtrans=d||(this.db.core||w).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Pt(function(C){Vi(C),y._reject(d.error)}),d.onabort=Pt(function(C){Vi(C),y.active&&y._reject(new Ie.Abort(d.error)),y.active=!1,y.on("abort").fire(C)}),d.oncomplete=Pt(function(){y.active=!1,y._resolve(),"mutatedParts"in d&&gr.storagemutated.fire(d.mutatedParts)}),this},Xn.prototype._promise=function(d,y,w){var A=this;if(d==="readwrite"&&this.mode!=="readwrite")return Lt(new Ie.ReadOnly("Transaction is readonly"));if(!this.active)return Lt(new Ie.TransactionInactive);if(this._locked())return new Fe(function(j,L){A._blockedFuncs.push([function(){A._promise(d,y,w).then(j,L)},Xe])});if(w)return Yt(function(){var j=new Fe(function(L,H){A._lock();var Y=y(L,H,A);Y&&Y.then&&Y.then(L,H)});return j.finally(function(){return A._unlock()}),j._lib=!0,j});var C=new Fe(function(j,L){var H=y(j,L,A);H&&H.then&&H.then(j,L)});return C._lib=!0,C},Xn.prototype._root=function(){return this.parent?this.parent._root():this},Xn.prototype.waitFor=function(d){var y,w=this._root(),A=Fe.resolve(d);w._waitingFor?w._waitingFor=w._waitingFor.then(function(){return A}):(w._waitingFor=A,w._waitingQueue=[],y=w.idbtrans.objectStore(w.storeNames[0]),function j(){for(++w._spinCount;w._waitingQueue.length;)w._waitingQueue.shift()();w._waitingFor&&(y.get(-1/0).onsuccess=j)}());var C=w._waitingFor;return new Fe(function(j,L){A.then(function(H){return w._waitingQueue.push(Pt(j.bind(null,H)))},function(H){return w._waitingQueue.push(Pt(L.bind(null,H)))}).finally(function(){w._waitingFor===C&&(w._waitingFor=null)})})},Xn.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ie.Abort))},Xn.prototype.table=function(d){var y=this._memoizedTables||(this._memoizedTables={});if(x(y,d))return y[d];var w=this.schema[d];if(!w)throw new Ie.NotFound("Table "+d+" not part of transaction");return w=new this.db.Table(d,w,this),w.core=this.db.core.table(d),y[d]=w},Xn);function Xn(){}function Ur(d,y,w,A,C,j,L){return{name:d,keyPath:y,unique:w,multi:A,auto:C,compound:j,src:(w&&!L?"&":"")+(A?"*":"")+(C?"++":"")+Ns(y)}}function Ns(d){return typeof d=="string"?d:d?"["+[].join.call(d,"+")+"]":""}function Ui(d,y,w){return{name:d,primKey:y,indexes:w,mappedClass:null,idxByName:(A=function(C){return[C.name,C]},w.reduce(function(C,j,L){return L=A(j,L),L&&(C[L[0]]=L[1]),C},{}))};var A}var Bi=function(d){try{return d.only([[]]),Bi=function(){return[[]]},[[]]}catch{return Bi=function(){return zn},zn}};function $i(d){return d==null?function(){}:typeof d=="string"?(y=d).split(".").length===1?function(w){return w[y]}:function(w){return q(w,y)}:function(w){return q(w,d)};var y}function Mo(d){return[].slice.call(d)}var qu=0;function xn(d){return d==null?":id":typeof d=="string"?d:"[".concat(d.join("+"),"]")}function ai(d,y,Y){function A(te){if(te.type===3)return null;if(te.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var X=te.lower,ne=te.upper,le=te.lowerOpen,te=te.upperOpen;return X===void 0?ne===void 0?null:y.upperBound(ne,!!te):ne===void 0?y.lowerBound(X,!!le):y.bound(X,ne,!!le,!!te)}function C(ce){var X,ne=ce.name;return{name:ne,schema:ce,mutate:function(le){var te=le.trans,fe=le.type,ye=le.keys,ve=le.values,Ee=le.range;return new Promise(function(Pe,qe){Pe=Pt(Pe);var Le=te.objectStore(ne),ze=Le.keyPath==null,Ge=fe==="put"||fe==="add";if(!Ge&&fe!=="delete"&&fe!=="deleteRange")throw new Error("Invalid operation type: "+fe);var Be,Ke=(ye||ve||{length:1}).length;if(ye&&ve&&ye.length!==ve.length)throw new Error("Given keys array must have same length as given values array.");if(Ke===0)return Pe({numFailures:0,failures:{},results:[],lastResult:void 0});function at(Sn){++On,Vi(Sn)}var dt=[],yt=[],On=0;if(fe==="deleteRange"){if(Ee.type===4)return Pe({numFailures:On,failures:yt,results:[],lastResult:void 0});Ee.type===3?dt.push(Be=Le.clear()):dt.push(Be=Le.delete(A(Ee)))}else{var ze=Ge?ze?[ve,ye]:[ve,null]:[ye,null],st=ze[0],wn=ze[1];if(Ge)for(var Qt=0;Qt<Ke;++Qt)dt.push(Be=wn&&wn[Qt]!==void 0?Le[fe](st[Qt],wn[Qt]):Le[fe](st[Qt])),Be.onerror=at;else for(Qt=0;Qt<Ke;++Qt)dt.push(Be=Le[fe](st[Qt])),Be.onerror=at}function zo(Sn){Sn=Sn.target.result,dt.forEach(function(yr,Fs){return yr.error!=null&&(yt[Fs]=yr.error)}),Pe({numFailures:On,failures:yt,results:fe==="delete"?ye:dt.map(function(yr){return yr.result}),lastResult:Sn})}Be.onerror=function(Sn){at(Sn),zo(Sn)},Be.onsuccess=zo})},getMany:function(le){var te=le.trans,fe=le.keys;return new Promise(function(ye,ve){ye=Pt(ye);for(var Ee,Pe=te.objectStore(ne),qe=fe.length,Le=new Array(qe),ze=0,Ge=0,Be=function(dt){dt=dt.target,Le[dt._pos]=dt.result,++Ge===ze&&ye(Le)},Ke=Un(ve),at=0;at<qe;++at)fe[at]!=null&&((Ee=Pe.get(fe[at]))._pos=at,Ee.onsuccess=Be,Ee.onerror=Ke,++ze);ze===0&&ye(Le)})},get:function(le){var te=le.trans,fe=le.key;return new Promise(function(ye,ve){ye=Pt(ye);var Ee=te.objectStore(ne).get(fe);Ee.onsuccess=function(Pe){return ye(Pe.target.result)},Ee.onerror=Un(ve)})},query:(X=Z,function(le){return new Promise(function(te,fe){te=Pt(te);var ye,ve,Ee,ze=le.trans,Pe=le.values,qe=le.limit,Be=le.query,Le=qe===1/0?void 0:qe,Ge=Be.index,Be=Be.range,ze=ze.objectStore(ne),Ge=Ge.isPrimaryKey?ze:ze.index(Ge.name),Be=A(Be);
vendor: 13,609 bytes, line 341
341if(qe===0)return te({result:[]});X?((Le=Pe?Ge.getAll(Be,Le):Ge.getAllKeys(Be,Le)).onsuccess=function(Ke){return te({result:Ke.target.result})},Le.onerror=Un(fe)):(ye=0,ve=!Pe&&"openKeyCursor"in Ge?Ge.openKeyCursor(Be):Ge.openCursor(Be),Ee=[],ve.onsuccess=function(Ke){var at=ve.result;return at?(Ee.push(Pe?at.value:at.primaryKey),++ye===qe?te({result:Ee}):void at.continue()):te({result:Ee})},ve.onerror=Un(fe))})}),openCursor:function(le){var te=le.trans,fe=le.values,ye=le.query,ve=le.reverse,Ee=le.unique;return new Promise(function(Pe,qe){Pe=Pt(Pe);var Ge=ye.index,Le=ye.range,ze=te.objectStore(ne),ze=Ge.isPrimaryKey?ze:ze.index(Ge.name),Ge=ve?Ee?"prevunique":"prev":Ee?"nextunique":"next",Be=!fe&&"openKeyCursor"in ze?ze.openKeyCursor(A(Le),Ge):ze.openCursor(A(Le),Ge);Be.onerror=Un(qe),Be.onsuccess=Pt(function(Ke){var at,dt,yt,On,st=Be.result;st?(st.___id=++qu,st.done=!1,at=st.continue.bind(st),dt=(dt=st.continuePrimaryKey)&&dt.bind(st),yt=st.advance.bind(st),On=function(){throw new Error("Cursor not stopped")},st.trans=te,st.stop=st.continue=st.continuePrimaryKey=st.advance=function(){throw new Error("Cursor not started")},st.fail=Pt(qe),st.next=function(){var wn=this,Qt=1;return this.start(function(){return Qt--?wn.continue():wn.stop()}).then(function(){return wn})},st.start=function(wn){function Qt(){if(Be.result)try{wn()}catch(Sn){st.fail(Sn)}else st.done=!0,st.start=function(){throw new Error("Cursor behind last entry")},st.stop()}var zo=new Promise(function(Sn,yr){Sn=Pt(Sn),Be.onerror=Un(yr),st.fail=yr,st.stop=function(Fs){st.stop=st.continue=st.continuePrimaryKey=st.advance=On,Sn(Fs)}});return Be.onsuccess=Pt(function(Sn){Be.onsuccess=Qt,Qt()}),st.continue=at,st.continuePrimaryKey=dt,st.advance=yt,Qt(),zo},Pe(st)):Pe(null)},qe)})},count:function(le){var te=le.query,fe=le.trans,ye=te.index,ve=te.range;return new Promise(function(Ee,Pe){var qe=fe.objectStore(ne),Le=ye.isPrimaryKey?qe:qe.index(ye.name),qe=A(ve),Le=qe?Le.count(qe):Le.count();Le.onsuccess=Pt(function(ze){return Ee(ze.target.result)}),Le.onerror=Un(Pe)})}}}var j,L,H,ae=(L=Y,H=Mo((j=d).objectStoreNames),{schema:{name:j.name,tables:H.map(function(ce){return L.objectStore(ce)}).map(function(ce){var X=ce.keyPath,te=ce.autoIncrement,ne=f(X),le={},te={name:ce.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:X==null,compound:ne,keyPath:X,autoIncrement:te,unique:!0,extractKey:$i(X)},indexes:Mo(ce.indexNames).map(function(fe){return ce.index(fe)}).map(function(Ee){var ye=Ee.name,ve=Ee.unique,Pe=Ee.multiEntry,Ee=Ee.keyPath,Pe={name:ye,compound:f(Ee),keyPath:Ee,unique:ve,multiEntry:Pe,extractKey:$i(Ee)};return le[xn(Ee)]=Pe}),getIndexByKeyPath:function(fe){return le[xn(fe)]}};return le[":id"]=te.primaryKey,X!=null&&(le[xn(X)]=te.primaryKey),te})},hasGetAll:0<H.length&&"getAll"in L.objectStore(H[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),Y=ae.schema,Z=ae.hasGetAll,ae=Y.tables.map(C),G={};return ae.forEach(function(ce){return G[ce.name]=ce}),{stack:"dbcore",transaction:d.transaction.bind(d),table:function(ce){if(!G[ce])throw new Error("Table '".concat(ce,"' not found"));return G[ce]},MIN_KEY:-1/0,MAX_KEY:Bi(y),schema:Y}}function Cs(d,y,w,A){var C=w.IDBKeyRange;return w.indexedDB,{dbcore:(A=ai(y,C,A),d.dbcore.reduce(function(j,L){return L=L.create,i(i({},j),L(j))},A))}}function Ma(d,A){var w=A.db,A=Cs(d._middlewares,w,d._deps,A);d.core=A.dbcore,d.tables.forEach(function(C){var j=C.name;d.core.schema.tables.some(function(L){return L.name===j})&&(C.core=d.core.table(j),d[j]instanceof d.Table&&(d[j].core=C.core))})}function Ts(d,y,w,A){w.forEach(function(C){var j=A[C];y.forEach(function(L){var H=function Y(Z,ae){return M(Z,ae)||(Z=g(Z))&&Y(Z,ae)}(L,C);(!H||"value"in H&&H.value===void 0)&&(L===d.Transaction.prototype||L instanceof d.Transaction?T(L,C,{get:function(){return this.table(C)},set:function(Y){N(this,C,{value:Y,writable:!0,configurable:!0,enumerable:!0})}}):L[C]=new d.Table(C,j))})})}function Oo(d,y){y.forEach(function(w){for(var A in w)w[A]instanceof d.Table&&delete w[A]})}function Jl(d,y){return d._cfg.version-y._cfg.version}function Do(d,y,w,A){var C=d._dbSchema;w.objectStoreNames.contains("$meta")&&!C.$meta&&(C.$meta=Ui("$meta",Gu("")[0],[]),d._storeNames.push("$meta"));var j=d._createTransaction("readwrite",d._storeNames,C);j.create(w),j._completion.catch(A);var L=j._reject.bind(j),H=Xe.transless||Xe;Yt(function(){return Xe.trans=j,Xe.transless=H,y!==0?(Ma(d,w),Z=y,((Y=j).storeNames.includes("$meta")?Y.table("$meta").get("version").then(function(ae){return ae??Z}):Fe.resolve(Z)).then(function(ae){return ce=ae,X=j,ne=w,le=[],ae=(G=d)._versions,te=G._dbSchema=Fi(0,G.idbdb,ne),(ae=ae.filter(function(fe){return fe._cfg.version>=ce})).length!==0?(ae.forEach(function(fe){le.push(function(){var ye=te,ve=fe._cfg.dbschema;Os(G,ye,ne),Os(G,ve,ne),te=G._dbSchema=ve;var Ee=js(ye,ve);Ee.add.forEach(function(Ge){ec(ne,Ge[0],Ge[1].primKey,Ge[1].indexes)}),Ee.change.forEach(function(Ge){if(Ge.recreate)throw new Ie.Upgrade("Not yet support for changing primary key");var Be=ne.objectStore(Ge.name);Ge.add.forEach(function(Ke){return Ms(Be,Ke)}),Ge.change.forEach(function(Ke){Be.deleteIndex(Ke.name),Ms(Be,Ke)}),Ge.del.forEach(function(Ke){return Be.deleteIndex(Ke)})});var Pe=fe._cfg.contentUpgrade;if(Pe&&fe._cfg.version>ce){Ma(G,ne),X._memoizedTables={};var qe=be(ve);Ee.del.forEach(function(Ge){qe[Ge]=ye[Ge]}),Oo(G,[G.Transaction.prototype]),Ts(G,[G.Transaction.prototype],u(qe),qe),X.schema=qe;var Le,ze=se(Pe);return ze&&ar(),Ee=Fe.follow(function(){var Ge;(Le=Pe(X))&&ze&&(Ge=mr.bind(null,null),Le.then(Ge,Ge))}),Le&&typeof Le.then=="function"?Fe.resolve(Le):Ee.then(function(){return Le})}}),le.push(function(ye){var ve,Ee,Pe=fe._cfg.dbschema;ve=Pe,Ee=ye,[].slice.call(Ee.db.objectStoreNames).forEach(function(qe){return ve[qe]==null&&Ee.db.deleteObjectStore(qe)}),Oo(G,[G.Transaction.prototype]),Ts(G,[G.Transaction.prototype],G._storeNames,G._dbSchema),X.schema=G._dbSchema}),le.push(function(ye){G.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(G.idbdb.version/10)===fe._cfg.version?(G.idbdb.deleteObjectStore("$meta"),delete G._dbSchema.$meta,G._storeNames=G._storeNames.filter(function(ve){return ve!=="$meta"})):ye.objectStore("$meta").put(fe._cfg.version,"version"))})}),function fe(){return le.length?Fe.resolve(le.shift()(X.idbtrans)).then(fe):Fe.resolve()}().then(function(){Hu(te,ne)})):Fe.resolve();var G,ce,X,ne,le,te}).catch(L)):(u(C).forEach(function(ae){ec(w,ae,C[ae].primKey,C[ae].indexes)}),Ma(d,w),void Fe.follow(function(){return d.on.populate.fire(j)}).catch(L));var Y,Z})}function Rs(d,y){Hu(d._dbSchema,y),y.db.version%10!=0||y.objectStoreNames.contains("$meta")||y.db.createObjectStore("$meta").add(Math.ceil(y.db.version/10-1),"version");var w=Fi(0,d.idbdb,y);Os(d,d._dbSchema,y);for(var A=0,C=js(w,d._dbSchema).change;A<C.length;A++){var j=function(L){if(L.change.length||L.recreate)return console.warn("Unable to patch indexes of table ".concat(L.name," because it has changes on the type of index or primary key.")),{value:void 0};var H=y.objectStore(L.name);L.add.forEach(function(Y){Rn&&console.debug("Dexie upgrade patch: Creating missing index ".concat(L.name,".").concat(Y.src)),Ms(H,Y)})}(C[A]);if(typeof j=="object")return j.value}}function js(d,y){var w,A={del:[],add:[],change:[]};for(w in d)y[w]||A.del.push(w);for(w in y){var C=d[w],j=y[w];if(C){var L={name:w,def:j,recreate:!1,del:[],add:[],change:[]};if(""+(C.primKey.keyPath||"")!=""+(j.primKey.keyPath||"")||C.primKey.auto!==j.primKey.auto)L.recreate=!0,A.change.push(L);else{var H=C.idxByName,Y=j.idxByName,Z=void 0;for(Z in H)Y[Z]||L.del.push(Z);for(Z in Y){var ae=H[Z],G=Y[Z];ae?ae.src!==G.src&&L.change.push(G):L.add.push(G)}(0<L.del.length||0<L.add.length||0<L.change.length)&&A.change.push(L)}}else A.add.push([w,j])}return A}function ec(d,y,w,A){var C=d.db.createObjectStore(y,w.keyPath?{keyPath:w.keyPath,autoIncrement:w.auto}:{autoIncrement:w.auto});return A.forEach(function(j){return Ms(C,j)}),C}function Hu(d,y){u(d).forEach(function(w){y.db.objectStoreNames.contains(w)||(Rn&&console.debug("Dexie: Creating missing table",w),ec(y,w,d[w].primKey,d[w].indexes))})}function Ms(d,y){d.createIndex(y.name,y.keyPath,{unique:y.unique,multiEntry:y.multi})}function Fi(d,y,w){var A={};return $(y.objectStoreNames,0).forEach(function(C){for(var j=w.objectStore(C),L=Ur(Ns(Z=j.keyPath),Z||"",!0,!1,!!j.autoIncrement,Z&&typeof Z!="string",!0),H=[],Y=0;Y<j.indexNames.length;++Y){var ae=j.index(j.indexNames[Y]),Z=ae.keyPath,ae=Ur(ae.name,Z,!!ae.unique,!!ae.multiEntry,!1,Z&&typeof Z!="string",!1);H.push(ae)}A[C]=Ui(C,L,H)}),A}function Os(d,y,w){for(var A=w.db.objectStoreNames,C=0;C<A.length;++C){var j=A[C],L=w.objectStore(j);d._hasGetAll="getAll"in L;for(var H=0;H<L.indexNames.length;++H){var Y=L.indexNames[H],Z=L.index(Y).keyPath,ae=typeof Z=="string"?Z:"["+$(Z).join("+")+"]";!y[j]||(Z=y[j].idxByName[ae])&&(Z.name=Y,delete y[j].idxByName[ae],y[j].idxByName[Y]=Z)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&c.WorkerGlobalScope&&c instanceof c.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(d._hasGetAll=!1)}function Gu(d){return d.split(",").map(function(y,w){var A=(y=y.trim()).replace(/([&*]|\+\+)/g,""),C=/^\[/.test(A)?A.match(/^\[(.*)\]$/)[1].split("+"):A;return Ur(A,C||null,/\&/.test(y),/\*/.test(y),/\+\+/.test(y),f(C),w===0)})}var Sh=(Ds.prototype._parseStoresSpec=function(d,y){u(d).forEach(function(w){if(d[w]!==null){var A=Gu(d[w]),C=A.shift();if(C.unique=!0,C.multi)throw new Ie.Schema("Primary key cannot be multi-valued");A.forEach(function(j){if(j.auto)throw new Ie.Schema("Only primary key can be marked as autoIncrement (++)");if(!j.keyPath)throw new Ie.Schema("Index must have a name and cannot be an empty string")}),y[w]=Ui(w,C,A)}})},Ds.prototype.stores=function(w){var y=this.db;this._cfg.storesSource=this._cfg.storesSource?p(this._cfg.storesSource,w):w;var w=y._versions,A={},C={};return w.forEach(function(j){p(A,j._cfg.storesSource),C=j._cfg.dbschema={},j._parseStoresSpec(A,C)}),y._dbSchema=C,Oo(y,[y._allTables,y,y.Transaction.prototype]),Ts(y,[y._allTables,y,y.Transaction.prototype,this._cfg.tables],u(C),C),y._storeNames=u(C),this},Ds.prototype.upgrade=function(d){return this._cfg.contentUpgrade=aa(this._cfg.contentUpgrade||St,d),this},Ds);function Ds(){}function tc(d,y){var w=d._dbNamesDB;return w||(w=d._dbNamesDB=new Br(pr,{addons:[],indexedDB:d,IDBKeyRange:y})).version(1).stores({dbnames:"name"}),w.table("dbnames")}function ks(d){return d&&typeof d.databases=="function"}function nc(d){return Yt(function(){return Xe.letThrough=!0,d()})}function rc(d){return!("from"in d)}var Mn=function(d,y){if(!this){var w=new Mn;return d&&"d"in d&&p(w,d),w}p(this,arguments.length?{d:1,from:d,to:1<arguments.length?y:d}:{d:0})};function ko(d,y,w){var A=gt(y,w);if(!isNaN(A)){if(0<A)throw RangeError();if(rc(d))return p(d,{from:y,to:w,d:1});var C=d.l,A=d.r;if(gt(w,d.from)<0)return C?ko(C,y,w):d.l={from:y,to:w,d:1,l:null,r:null},Yu(d);if(0<gt(y,d.to))return A?ko(A,y,w):d.r={from:y,to:w,d:1,l:null,r:null},Yu(d);gt(y,d.from)<0&&(d.from=y,d.l=null,d.d=A?A.d+1:1),0<gt(w,d.to)&&(d.to=w,d.r=null,d.d=d.l?d.l.d+1:1),w=!d.r,C&&!d.l&&ii(d,C),A&&w&&ii(d,A)}}function ii(d,y){rc(y)||function w(A,Y){var j=Y.from,L=Y.to,H=Y.l,Y=Y.r;ko(A,j,L),H&&w(A,H),Y&&w(A,Y)}(d,y)}function Ku(d,y){var w=Ps(y),A=w.next();if(A.done)return!1;for(var C=A.value,j=Ps(d),L=j.next(C.from),H=L.value;!A.done&&!L.done;){if(gt(H.from,C.to)<=0&&0<=gt(H.to,C.from))return!0;gt(C.from,H.from)<0?C=(A=w.next(H.from)).value:H=(L=j.next(C.from)).value}return!1}function Ps(d){var y=rc(d)?null:{s:0,n:d};return{next:function(w){for(var A=0<arguments.length;y;)switch(y.s){case 0:if(y.s=1,A)for(;y.n.l&&gt(w,y.n.from)<0;)y={up:y,n:y.n.l,s:1};else for(;y.n.l;)y={up:y,n:y.n.l,s:1};case 1:if(y.s=2,!A||gt(w,y.n.to)<=0)return{value:y.n,done:!1};case 2:if(y.n.r){y.s=3,y={up:y,n:y.n.r,s:0};continue}case 3:y=y.up}return{done:!0}}}}function Yu(d){var y,w,A=(((y=d.r)===null||y===void 0?void 0:y.d)||0)-(((w=d.l)===null||w===void 0?void 0:w.d)||0),C=1<A?"r":A<-1?"l":"";C&&(y=C=="r"?"l":"r",w=i({},d),A=d[C],d.from=A.from,d.to=A.to,d[C]=A[C],w[C]=A[y],(d[y]=w).d=ac(w)),d.d=ac(d)}function ac(w){var y=w.r,w=w.l;return(y?w?Math.max(y.d,w.d):y.d:w?w.d:0)+1}function Ls(d,y){return u(y).forEach(function(w){d[w]?ii(d[w],y[w]):d[w]=function A(C){var j,L,H={};for(j in C)x(C,j)&&(L=C[j],H[j]=!L||typeof L!="object"||Re.has(L.constructor)?L:A(L));return H}(y[w])}),d}function ic(d,y){return d.all||y.all||Object.keys(d).some(function(w){return y[w]&&Ku(y[w],d[w])})}E(Mn.prototype,((or={add:function(d){return ii(this,d),this},addKey:function(d){return ko(this,d,d),this},addKeys:function(d){var y=this;return d.forEach(function(w){return ko(y,w,w)}),this},hasKey:function(d){var y=Ps(this).next(d).value;return y&&gt(y.from,d)<=0&&0<=gt(y.to,d)}})[pe]=function(){return Ps(this)},or));var oi={},oc={},sc=!1;function Is(d){Ls(oc,d),sc||(sc=!0,setTimeout(function(){sc=!1,lc(oc,!(oc={}))},0))}function lc(d,y){y===void 0&&(y=!1);var w=new Set;if(d.all)for(var A=0,C=Object.values(oi);A<C.length;A++)Xu(L=C[A],d,w,y);else for(var j in d){var L,H=/^idb\:\/\/(.*)\/(.*)\//.exec(j);H&&(j=H[1],H=H[2],(L=oi["idb://".concat(j,"/").concat(H)])&&Xu(L,d,w,y))}w.forEach(function(Y){return Y()})}function Xu(d,y,w,A){for(var C=[],j=0,L=Object.entries(d.queries.query);j<L.length;j++){for(var H=L[j],Y=H[0],Z=[],ae=0,G=H[1];ae<G.length;ae++){var ce=G[ae];
vendor: 21,566 bytes, line 341
341ic(y,ce.obsSet)?ce.subscribers.forEach(function(te){return w.add(te)}):A&&Z.push(ce)}A&&C.push([Y,Z])}if(A)for(var X=0,ne=C;X<ne.length;X++){var le=ne[X],Y=le[0],Z=le[1];d.queries.query[Y]=Z}}function Eh(d){var y=d._state,w=d._deps.indexedDB;if(y.isBeingOpened||d.idbdb)return y.dbReadyPromise.then(function(){return y.dbOpenError?Lt(y.dbOpenError):d});y.isBeingOpened=!0,y.dbOpenError=null,y.openComplete=!1;var A=y.openCanceller,C=Math.round(10*d.verno),j=!1;function L(){if(y.openCanceller!==A)throw new Ie.DatabaseClosed("db.open() was cancelled")}function H(){return new Fe(function(ce,X){if(L(),!w)throw new Ie.MissingAPI;var ne=d.name,le=y.autoSchema||!C?w.open(ne):w.open(ne,C);if(!le)throw new Ie.MissingAPI;le.onerror=Un(X),le.onblocked=Pt(d._fireOnBlocked),le.onupgradeneeded=Pt(function(te){var fe;ae=le.transaction,y.autoSchema&&!d._options.allowEmptyDB?(le.onerror=Vi,ae.abort(),le.result.close(),(fe=w.deleteDatabase(ne)).onsuccess=fe.onerror=Pt(function(){X(new Ie.NoSuchDatabase("Database ".concat(ne," doesnt exist")))})):(ae.onerror=Un(X),te=te.oldVersion>Math.pow(2,62)?0:te.oldVersion,G=te<1,d.idbdb=le.result,j&&Rs(d,ae),Do(d,te/10,ae,X))},X),le.onsuccess=Pt(function(){ae=null;var te,fe,ye,ve,Ee,Pe=d.idbdb=le.result,qe=$(Pe.objectStoreNames);if(0<qe.length)try{var Le=Pe.transaction((ve=qe).length===1?ve[0]:ve,"readonly");if(y.autoSchema)fe=Pe,ye=Le,(te=d).verno=fe.version/10,ye=te._dbSchema=Fi(0,fe,ye),te._storeNames=$(fe.objectStoreNames,0),Ts(te,[te._allTables],u(ye),ye);else if(Os(d,d._dbSchema,Le),((Ee=js(Fi(0,(Ee=d).idbdb,Le),Ee._dbSchema)).add.length||Ee.change.some(function(ze){return ze.add.length||ze.change.length}))&&!j)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Pe.close(),C=Pe.version+1,j=!0,ce(H());Ma(d,Le)}catch{}Yn.push(d),Pe.onversionchange=Pt(function(ze){y.vcFired=!0,d.on("versionchange").fire(ze)}),Pe.onclose=Pt(function(ze){d.on("close").fire(ze)}),G&&(Ee=d._deps,Le=ne,Pe=Ee.indexedDB,Ee=Ee.IDBKeyRange,ks(Pe)||Le===pr||tc(Pe,Ee).put({name:Le}).catch(St)),ce()},X)}).catch(function(ce){switch(ce==null?void 0:ce.name){case"UnknownError":if(0<y.PR1398_maxLoop)return y.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),H();break;case"VersionError":if(0<C)return C=0,H()}return Fe.reject(ce)})}var Y,Z=y.dbReadyResolve,ae=null,G=!1;return Fe.race([A,(typeof navigator>"u"?Fe.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(ce){function X(){return indexedDB.databases().finally(ce)}Y=setInterval(X,100),X()}).finally(function(){return clearInterval(Y)}):Promise.resolve()).then(H)]).then(function(){return L(),y.onReadyBeingFired=[],Fe.resolve(nc(function(){return d.on.ready.fire(d.vip)})).then(function ce(){if(0<y.onReadyBeingFired.length){var X=y.onReadyBeingFired.reduce(aa,St);return y.onReadyBeingFired=[],Fe.resolve(nc(function(){return X(d.vip)})).then(ce)}})}).finally(function(){y.openCanceller===A&&(y.onReadyBeingFired=null,y.isBeingOpened=!1)}).catch(function(ce){y.dbOpenError=ce;try{ae&&ae.abort()}catch{}return A===y.openCanceller&&d._close(),Lt(ce)}).finally(function(){y.openComplete=!0,Z()}).then(function(){var ce;return G&&(ce={},d.tables.forEach(function(X){X.schema.indexes.forEach(function(ne){ne.name&&(ce["idb://".concat(d.name,"/").concat(X.name,"/").concat(ne.name)]=new Mn(-1/0,[[[]]]))}),ce["idb://".concat(d.name,"/").concat(X.name,"/")]=ce["idb://".concat(d.name,"/").concat(X.name,"/:dels")]=new Mn(-1/0,[[[]]])}),gr(ri).fire(ce),lc(ce,!0)),d})}function Po(d){function y(j){return d.next(j)}var w=C(y),A=C(function(j){return d.throw(j)});function C(j){return function(Y){var H=j(Y),Y=H.value;return H.done?Y:Y&&typeof Y.then=="function"?Y.then(w,A):f(Y)?Promise.all(Y).then(w,A):w(Y)}}return C(y)()}function Oa(d,y,w){for(var A=f(d)?d.slice():[d],C=0;C<w;++C)A.push(y);return A}var Ah={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(d){return i(i({},d),{table:function(y){var w=d.table(y),A=w.schema,C={},j=[];function L(G,ce,X){var ne=xn(G),le=C[ne]=C[ne]||[],te=G==null?0:typeof G=="string"?1:G.length,fe=0<ce,fe=i(i({},X),{name:fe?"".concat(ne,"(virtual-from:").concat(X.name,")"):X.name,lowLevelIndex:X,isVirtual:fe,keyTail:ce,keyLength:te,extractKey:$i(G),unique:!fe&&X.unique});return le.push(fe),fe.isPrimaryKey||j.push(fe),1<te&&L(te===2?G[0]:G.slice(0,te-1),ce+1,X),le.sort(function(ye,ve){return ye.keyTail-ve.keyTail}),fe}y=L(A.primaryKey.keyPath,0,A.primaryKey),C[":id"]=[y];for(var H=0,Y=A.indexes;H<Y.length;H++){var Z=Y[H];L(Z.keyPath,0,Z)}function ae(G){var ce,X=G.query.index;return X.isVirtual?i(i({},G),{query:{index:X.lowLevelIndex,range:(ce=G.query.range,X=X.keyTail,{type:ce.type===1?2:ce.type,lower:Oa(ce.lower,ce.lowerOpen?d.MAX_KEY:d.MIN_KEY,X),lowerOpen:!0,upper:Oa(ce.upper,ce.upperOpen?d.MIN_KEY:d.MAX_KEY,X),upperOpen:!0})}}):G}return i(i({},w),{schema:i(i({},A),{primaryKey:y,indexes:j,getIndexByKeyPath:function(G){return(G=C[xn(G)])&&G[0]}}),count:function(G){return w.count(ae(G))},query:function(G){return w.query(ae(G))},openCursor:function(G){var ce=G.query.index,X=ce.keyTail,ne=ce.isVirtual,le=ce.keyLength;return ne?w.openCursor(ae(G)).then(function(fe){return fe&&te(fe)}):w.openCursor(G);function te(fe){return Object.create(fe,{continue:{value:function(ye){ye!=null?fe.continue(Oa(ye,G.reverse?d.MAX_KEY:d.MIN_KEY,X)):G.unique?fe.continue(fe.key.slice(0,le).concat(G.reverse?d.MIN_KEY:d.MAX_KEY,X)):fe.continue()}},continuePrimaryKey:{value:function(ye,ve){fe.continuePrimaryKey(Oa(ye,d.MAX_KEY,X),ve)}},primaryKey:{get:function(){return fe.primaryKey}},key:{get:function(){var ye=fe.key;return le===1?ye[0]:ye.slice(0,le)}},value:{get:function(){return fe.value}}})}}})}})}};function zs(d,y,w,A){return w=w||{},A=A||"",u(d).forEach(function(C){var j,L,H;x(y,C)?(j=d[C],L=y[C],typeof j=="object"&&typeof L=="object"&&j&&L?(H=tt(j))!==tt(L)?w[A+C]=y[C]:H==="Object"?zs(j,L,w,A+C+"."):j!==L&&(w[A+C]=y[C]):j!==L&&(w[A+C]=y[C])):w[A+C]=void 0}),u(y).forEach(function(C){x(d,C)||(w[A+C]=y[C])}),w}function Vs(d,y){return y.type==="delete"?y.keys:y.keys||y.values.map(d.extractKey)}var Wu={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(d){return i(i({},d),{table:function(y){var w=d.table(y),A=w.schema.primaryKey;return i(i({},w),{mutate:function(C){var j=Xe.trans,L=j.table(y).hook,H=L.deleting,Y=L.creating,Z=L.updating;switch(C.type){case"add":if(Y.fire===St)break;return j._promise("readwrite",function(){return ae(C)},!0);case"put":if(Y.fire===St&&Z.fire===St)break;return j._promise("readwrite",function(){return ae(C)},!0);case"delete":if(H.fire===St)break;return j._promise("readwrite",function(){return ae(C)},!0);case"deleteRange":if(H.fire===St)break;return j._promise("readwrite",function(){return function G(ce,X,ne){return w.query({trans:ce,values:!1,query:{index:A,range:X},limit:ne}).then(function(le){var te=le.result;return ae({type:"delete",keys:te,trans:ce}).then(function(fe){return 0<fe.numFailures?Promise.reject(fe.failures[0]):te.length<ne?{failures:[],numFailures:0,lastResult:void 0}:G(ce,i(i({},X),{lower:te[te.length-1],lowerOpen:!0}),ne)})})}(C.trans,C.range,1e4)},!0)}return w.mutate(C);function ae(G){var ce,X,ne,le=Xe.trans,te=G.keys||Vs(A,G);if(!te)throw new Error("Keys missing");return(G=G.type==="add"||G.type==="put"?i(i({},G),{keys:te}):i({},G)).type!=="delete"&&(G.values=s([],G.values)),G.keys&&(G.keys=s([],G.keys)),ce=w,ne=te,((X=G).type==="add"?Promise.resolve([]):ce.getMany({trans:X.trans,keys:ne,cache:"immutable"})).then(function(fe){var ye=te.map(function(ve,Ee){var Pe,qe,Le,ze=fe[Ee],Ge={onerror:null,onsuccess:null};return G.type==="delete"?H.fire.call(Ge,ve,ze,le):G.type==="add"||ze===void 0?(Pe=Y.fire.call(Ge,ve,G.values[Ee],le),ve==null&&Pe!=null&&(G.keys[Ee]=ve=Pe,A.outbound||ie(G.values[Ee],A.keyPath,ve))):(Pe=zs(ze,G.values[Ee]),(qe=Z.fire.call(Ge,Pe,ve,ze,le))&&(Le=G.values[Ee],Object.keys(qe).forEach(function(Be){x(Le,Be)?Le[Be]=qe[Be]:ie(Le,Be,qe[Be])}))),Ge});return w.mutate(G).then(function(ve){for(var Ee=ve.failures,Pe=ve.results,qe=ve.numFailures,ve=ve.lastResult,Le=0;Le<te.length;++Le){var ze=(Pe||te)[Le],Ge=ye[Le];ze==null?Ge.onerror&&Ge.onerror(Ee[Le]):Ge.onsuccess&&Ge.onsuccess(G.type==="put"&&fe[Le]?G.values[Le]:ze)}return{failures:Ee,results:Pe,numFailures:qe,lastResult:ve}}).catch(function(ve){return ye.forEach(function(Ee){return Ee.onerror&&Ee.onerror(ve)}),Promise.reject(ve)})})}}})}})}};function cc(d,y,w){try{if(!y||y.keys.length<d.length)return null;for(var A=[],C=0,j=0;C<y.keys.length&&j<d.length;++C)gt(y.keys[C],d[j])===0&&(A.push(w?Ue(y.values[C]):y.values[C]),++j);return A.length===d.length?A:null}catch{return null}}var Zu={stack:"dbcore",level:-1,create:function(d){return{table:function(y){var w=d.table(y);return i(i({},w),{getMany:function(A){if(!A.cache)return w.getMany(A);var C=cc(A.keys,A.trans._cache,A.cache==="clone");return C?Fe.resolve(C):w.getMany(A).then(function(j){return A.trans._cache={keys:A.keys,values:A.cache==="clone"?Ue(j):j},j})},mutate:function(A){return A.type!=="add"&&(A.trans._cache=null),w.mutate(A)}})}}}};function si(d,y){return d.trans.mode==="readonly"&&!!d.subscr&&!d.trans.explicit&&d.trans.db._options.cache!=="disabled"&&!y.schema.primaryKey.outbound}function Qu(d,y){switch(d){case"query":return y.values&&!y.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var _h={stack:"dbcore",level:0,name:"Observability",create:function(d){var y=d.schema.name,w=new Mn(d.MIN_KEY,d.MAX_KEY);return i(i({},d),{transaction:function(A,C,j){if(Xe.subscr&&C!=="readonly")throw new Ie.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Xe.querier));return d.transaction(A,C,j)},table:function(A){var C=d.table(A),j=C.schema,L=j.primaryKey,G=j.indexes,H=L.extractKey,Y=L.outbound,Z=L.autoIncrement&&G.filter(function(X){return X.compound&&X.keyPath.includes(L.keyPath)}),ae=i(i({},C),{mutate:function(X){function ne(Be){return Be="idb://".concat(y,"/").concat(A,"/").concat(Be),ve[Be]||(ve[Be]=new Mn)}var le,te,fe,ye=X.trans,ve=X.mutatedParts||(X.mutatedParts={}),Ee=ne(""),Pe=ne(":dels"),qe=X.type,Ge=X.type==="deleteRange"?[X.range]:X.type==="delete"?[X.keys]:X.values.length<50?[Vs(L,X).filter(function(Be){return Be}),X.values]:[],Le=Ge[0],ze=Ge[1],Ge=X.trans._cache;return f(Le)?(Ee.addKeys(Le),(Ge=qe==="delete"||Le.length===ze.length?cc(Le,Ge):null)||Pe.addKeys(Le),(Ge||ze)&&(le=ne,te=Ge,fe=ze,j.indexes.forEach(function(Be){var Ke=le(Be.name||"");function at(yt){return yt!=null?Be.extractKey(yt):null}function dt(yt){return Be.multiEntry&&f(yt)?yt.forEach(function(On){return Ke.addKey(On)}):Ke.addKey(yt)}(te||fe).forEach(function(yt,wn){var st=te&&at(te[wn]),wn=fe&&at(fe[wn]);gt(st,wn)!==0&&(st!=null&&dt(st),wn!=null&&dt(wn))})}))):Le?(ze={from:(ze=Le.lower)!==null&&ze!==void 0?ze:d.MIN_KEY,to:(ze=Le.upper)!==null&&ze!==void 0?ze:d.MAX_KEY},Pe.add(ze),Ee.add(ze)):(Ee.add(w),Pe.add(w),j.indexes.forEach(function(Be){return ne(Be.name).add(w)})),C.mutate(X).then(function(Be){return!Le||X.type!=="add"&&X.type!=="put"||(Ee.addKeys(Be.results),Z&&Z.forEach(function(Ke){for(var at=X.values.map(function(st){return Ke.extractKey(st)}),dt=Ke.keyPath.findIndex(function(st){return st===L.keyPath}),yt=0,On=Be.results.length;yt<On;++yt)at[yt][dt]=Be.results[yt];ne(Ke.name).addKeys(at)})),ye.mutatedParts=Ls(ye.mutatedParts||{},ve),Be})}}),G=function(ne){var le=ne.query,ne=le.index,le=le.range;return[ne,new Mn((ne=le.lower)!==null&&ne!==void 0?ne:d.MIN_KEY,(le=le.upper)!==null&&le!==void 0?le:d.MAX_KEY)]},ce={get:function(X){return[L,new Mn(X.key)]},getMany:function(X){return[L,new Mn().addKeys(X.keys)]},count:G,query:G,openCursor:G};return u(ce).forEach(function(X){ae[X]=function(ne){var le=Xe.subscr,te=!!le,fe=si(Xe,C)&&Qu(X,ne)?ne.obsSet={}:le;if(te){var ye=function(ze){return ze="idb://".concat(y,"/").concat(A,"/").concat(ze),fe[ze]||(fe[ze]=new Mn)},ve=ye(""),Ee=ye(":dels"),le=ce[X](ne),te=le[0],le=le[1];if((X==="query"&&te.isPrimaryKey&&!ne.values?Ee:ye(te.name||"")).add(le),!te.isPrimaryKey){if(X!=="count"){var Pe=X==="query"&&Y&&ne.values&&C.query(i(i({},ne),{values:!1}));return C[X].apply(this,arguments).then(function(ze){if(X==="query"){if(Y&&ne.values)return Pe.then(function(at){return at=at.result,ve.addKeys(at),ze});var Ge=ne.values?ze.result.map(H):ze.result;(ne.values?ve:Ee).addKeys(Ge)}else if(X==="openCursor"){var Be=ze,Ke=ne.values;return Be&&Object.create(Be,{key:{get:function(){return Ee.addKey(Be.primaryKey),Be.key}},primaryKey:{get:function(){var at=Be.primaryKey;return Ee.addKey(at),at}},value:{get:function(){return Ke&&ve.addKey(Be.primaryKey),Be.value}}})}return ze})}Ee.add(w)}}return C[X].apply(this,arguments)}}),ae}})}};function Ju(d,y,w){if(w.numFailures===0)return y;if(y.type==="deleteRange")return null;var A=y.keys?y.keys.length:"values"in y&&y.values?y.values.length:1;return w.numFailures===A?null:(y=i({},y),f(y.keys)&&(y.keys=y.keys.filter(function(C,j){return!(j in w.failures)})),"values"in y&&f(y.values)&&(y.values=y.values.filter(function(C,j){return!(j in w.failures)})),y)}function Us(d,y){return w=d,((A=y).lower===void 0||(A.lowerOpen?0<gt(w,A.lower):0<=gt(w,A.lower)))&&(d=d,(y=y).upper===void 0||(y.upperOpen?gt(d,y.upper)<0:gt(d,y.upper)<=0));var w,A}function uc(d,y,ce,A,C,j){if(!ce||ce.length===0)return d;var L=y.query.index,H=L.multiEntry,Y=y.query.range,Z=A.schema.primaryKey.extractKey,ae=L.extractKey,G=(L.lowLevelIndex||L).extractKey,ce=ce.reduce(function(X,ne){var le=X,te=[];if(ne.type==="add"||ne.type==="put")for(var fe=new Mn,ye=ne.values.length-1;0<=ye;--ye){var ve,Ee=ne.values[ye],Pe=Z(Ee);fe.hasKey(Pe)||(ve=ae(Ee),(H&&f(ve)?ve.some(function(Be){return Us(Be,Y)}):Us(ve,Y))&&(fe.addKey(Pe),te.push(Ee)))}switch(ne.type){case"add":var qe=new Mn().addKeys(y.values?X.map(function(Ke){return Z(Ke)}):X),le=X.concat(y.values?te.filter(function(Ke){return Ke=Z(Ke),!qe.hasKey(Ke)&&(qe.addKey(Ke),!0)}):te.map(function(Ke){return Z(Ke)}).filter(function(Ke){return!qe.hasKey(Ke)&&(qe.addKey(Ke),!0)}));break;case"put":var Le=new Mn().addKeys(ne.values.map(function(Ke){return Z(Ke)}));le=X.filter(function(Ke){return!Le.hasKey(y.values?Z(Ke):Ke)}).concat(y.values?te:te.map(function(Ke){return Z(Ke)}));break;case"delete":var ze=new Mn().addKeys(ne.keys);le=X.filter(function(Ke){return!ze.hasKey(y.values?Z(Ke):Ke)});break;case"deleteRange":var Ge=ne.range;le=X.filter(function(Ke){return!Us(Z(Ke),Ge)})}return le},d);return ce===d?d:(ce.sort(function(X,ne){return gt(G(X),G(ne))||gt(Z(X),Z(ne))}),y.limit&&y.limit<1/0&&(ce.length>y.limit?ce.length=y.limit:d.length===y.limit&&ce.length<y.limit&&(C.dirty=!0)),j?Object.freeze(ce):ce)}function qi(d,y){return gt(d.lower,y.lower)===0&&gt(d.upper,y.upper)===0&&!!d.lowerOpen==!!y.lowerOpen&&!!d.upperOpen==!!y.upperOpen}function Lo(d,y){return function(w,A,C,j){if(w===void 0)return A!==void 0?-1:0;if(A===void 0)return 1;if((A=gt(w,A))===0){if(C&&j)return 0;if(C)return 1;if(j)return-1}return A}(d.lower,y.lower,d.lowerOpen,y.lowerOpen)<=0&&0<=function(w,A,C,j){if(w===void 0)return A!==void 0?1:0;if(A===void 0)return-1;if((A=gt(w,A))===0){if(C&&j)return 0;if(C)return-1;if(j)return 1}return A}(d.upper,y.upper,d.upperOpen,y.upperOpen)}function Nh(d,y,w,A){d.subscribers.add(w),A.addEventListener("abort",function(){var C,j;d.subscribers.delete(w),d.subscribers.size===0&&(C=d,j=y,setTimeout(function(){C.subscribers.size===0&&B(j,C)},3e3))})}var Bs={stack:"dbcore",level:0,name:"Cache",create:function(d){var y=d.schema.name;return i(i({},d),{transaction:function(w,A,C){var j,L,H=d.transaction(w,A,C);return A==="readwrite"&&(L=(j=new AbortController).signal,C=function(Y){return function(){if(j.abort(),A==="readwrite"){for(var Z=new Set,ae=0,G=w;ae<G.length;ae++){var ce=G[ae],X=oi["idb://".concat(y,"/").concat(ce)];if(X){var ne=d.table(ce),le=X.optimisticOps.filter(function(Ke){return Ke.trans===H});if(H._explicit&&Y&&H.mutatedParts)for(var te=0,fe=Object.values(X.queries.query);te<fe.length;te++)for(var ye=0,ve=(qe=fe[te]).slice();ye<ve.length;ye++)ic((Le=ve[ye]).obsSet,H.mutatedParts)&&(B(qe,Le),Le.subscribers.forEach(function(Ke){return Z.add(Ke)}));else if(0<le.length){X.optimisticOps=X.optimisticOps.filter(function(Ke){return Ke.trans!==H});for(var Ee=0,Pe=Object.values(X.queries.query);Ee<Pe.length;Ee++)for(var qe,Le,ze,Ge=0,Be=(qe=Pe[Ee]).slice();Ge<Be.length;Ge++)(Le=Be[Ge]).res!=null&&H.mutatedParts&&(Y&&!Le.dirty?(ze=Object.isFrozen(Le.res),ze=uc(Le.res,Le.req,le,ne,Le,ze),Le.dirty?(B(qe,Le),Le.subscribers.forEach(function(Ke){return Z.add(Ke)})):ze!==Le.res&&(Le.res=ze,Le.promise=Fe.resolve({result:ze}))):(Le.dirty&&B(qe,Le),Le.subscribers.forEach(function(Ke){return Z.add(Ke)})))}}}Z.forEach(function(Ke){return Ke()})}}},H.addEventListener("abort",C(!1),{signal:L}),H.addEventListener("error",C(!1),{signal:L}),H.addEventListener("complete",C(!0),{signal:L})),H},table:function(w){var A=d.table(w),C=A.schema.primaryKey;return i(i({},A),{mutate:function(j){var L=Xe.trans;if(C.outbound||L.db._options.cache==="disabled"||L.explicit||L.idbtrans.mode!=="readwrite")return A.mutate(j);var H=oi["idb://".concat(y,"/").concat(w)];return H?(L=A.mutate(j),j.type!=="add"&&j.type!=="put"||!(50<=j.values.length||Vs(C,j).some(function(Y){return Y==null}))?(H.optimisticOps.push(j),j.mutatedParts&&Is(j.mutatedParts),L.then(function(Y){0<Y.numFailures&&(B(H.optimisticOps,j),(Y=Ju(0,j,Y))&&H.optimisticOps.push(Y),j.mutatedParts&&Is(j.mutatedParts))}),L.catch(function(){B(H.optimisticOps,j),j.mutatedParts&&Is(j.mutatedParts)})):L.then(function(Y){var Z=Ju(0,i(i({},j),{values:j.values.map(function(ae,G){var ce;return Y.failures[G]?ae:(ae=(ce=C.keyPath)!==null&&ce!==void 0&&ce.includes(".")?Ue(ae):i({},ae),ie(ae,C.keyPath,Y.results[G]),ae)})}),Y);H.optimisticOps.push(Z),queueMicrotask(function(){return j.mutatedParts&&Is(j.mutatedParts)})}),L):A.mutate(j)},query:function(j){if(!si(Xe,A)||!Qu("query",j))return A.query(j);var L=((Z=Xe.trans)===null||Z===void 0?void 0:Z.db._options.cache)==="immutable",G=Xe,H=G.requery,Y=G.signal,Z=function(ne,le,te,fe){var ye=oi["idb://".concat(ne,"/").concat(le)];if(!ye)return[];if(!(le=ye.queries[te]))return[null,!1,ye,null];var ve=le[(fe.query?fe.query.index.name:null)||""];if(!ve)return[null,!1,ye,null];switch(te){case"query":var Ee=ve.find(function(Pe){return Pe.req.limit===fe.limit&&Pe.req.values===fe.values&&qi(Pe.req.query.range,fe.query.range)});return Ee?[Ee,!0,ye,ve]:[ve.find(function(Pe){return("limit"in Pe.req?Pe.req.limit:1/0)>=fe.limit&&(!fe.values||Pe.req.values)&&Lo(Pe.req.query.range,fe.query.range)}),!1,ye,ve];case"count":return Ee=ve.find(function(Pe){return qi(Pe.req.query.range,fe.query.range)}),[Ee,!!Ee,ye,ve]}}(y,w,"query",j),ae=Z[0],G=Z[1],ce=Z[2],X=Z[3];return ae&&G?ae.obsSet=j.obsSet:(G=A.query(j).then(function(ne){var le=ne.result;if(ae&&(ae.res=le),L){for(var te=0,fe=le.length;te<fe;++te)Object.freeze(le[te]);Object.freeze(le)}else ne.result=Ue(le);return ne}).catch(function(ne){return X&&ae&&B(X,ae),Promise.reject(ne)}),ae={obsSet:j.obsSet,promise:G,subscribers:new Set,type:"query",req:j,dirty:!1},X?X.push(ae):(X=[ae],(ce=ce||(oi["idb://".concat(y,"/").concat(w)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[j.query.index.name||""]=X)),Nh(ae,X,H,Y),ae.promise.then(function(ne){return{result:uc(ne.result,j,ce==null?void 0:ce.optimisticOps,A,ae,L)}})}})}})}};function Io(d,y){return new Proxy(d,{get:function(w,A,C){return A==="db"?y:Reflect.get(w,A,C)}})}var Br=(Zt.prototype.version=function(d){if(isNaN(d)||d<.1)throw new Ie.Type("Given version is not a positive number");if(d=Math.round(10*d)/10,this.idbdb||this._state.isBeingOpened)throw new Ie.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,d);var y=this._versions,w=y.filter(function(A){return A._cfg.version===d})[0];return w||(w=new this.Version(d),y.push(w),y.sort(Jl),w.stores({}),this._state.autoSchema=!1,w)},Zt.prototype._whenReady=function(d){var y=this;return this.idbdb&&(this._state.openComplete||Xe.letThrough||this._vip)?d():new Fe(function(w,A){if(y._state.openComplete)return A(new Ie.DatabaseClosed(y._state.dbOpenError));if(!y._state.isBeingOpened){if(!y._state.autoOpen)return void A(new Ie.DatabaseClosed);y.open().catch(St)}y._state.dbReadyPromise.then(w,A)}).then(d)},Zt.prototype.use=function(d){var y=d.stack,w=d.create,A=d.level,C=d.name;return C&&this.unuse({stack:y,name:C}),d=this._middlewares[y]||(this._middlewares[y]=[]),d.push({stack:y,create:w,level:A??10,name:C}),d.sort(function(j,L){return j.level-L.level}),this},Zt.prototype.unuse=function(d){var y=d.stack,w=d.name,A=d.create;return y&&this._middlewares[y]&&(this._middlewares[y]=this._middlewares[y].filter(function(C){return A?C.create!==A:!!w&&C.name!==w})),this},Zt.prototype.open=function(){var d=this;return Ar(Pr,function(){return Eh(d)})},Zt.prototype._close=function(){var d=this._state,y=Yn.indexOf(this);if(0<=y&&Yn.splice(y,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}d.isBeingOpened||(d.dbReadyPromise=new Fe(function(w){d.dbReadyResolve=w}),d.openCanceller=new Fe(function(w,A){d.cancelOpen=A}))},Zt.prototype.close=function(w){var y=(w===void 0?{disableAutoOpen:!0}:w).disableAutoOpen,w=this._state;y?(w.isBeingOpened&&w.cancelOpen(new Ie.DatabaseClosed),this._close(),w.autoOpen=!1,w.dbOpenError=ne
vendor: 6,266 bytes, line 341
341w Ie.DatabaseClosed):(this._close(),w.autoOpen=this._options.autoOpen||w.isBeingOpened,w.openComplete=!1,w.dbOpenError=null)},Zt.prototype.delete=function(d){var y=this;d===void 0&&(d={disableAutoOpen:!0});var w=0<arguments.length&&typeof arguments[0]!="object",A=this._state;return new Fe(function(C,j){function L(){y.close(d);var H=y._deps.indexedDB.deleteDatabase(y.name);H.onsuccess=Pt(function(){var Y,Z,ae;Y=y._deps,Z=y.name,ae=Y.indexedDB,Y=Y.IDBKeyRange,ks(ae)||Z===pr||tc(ae,Y).delete(Z).catch(St),C()}),H.onerror=Un(j),H.onblocked=y._fireOnBlocked}if(w)throw new Ie.InvalidArgument("Invalid closeOptions argument to db.delete()");A.isBeingOpened?A.dbReadyPromise.then(L):L()})},Zt.prototype.backendDB=function(){return this.idbdb},Zt.prototype.isOpen=function(){return this.idbdb!==null},Zt.prototype.hasBeenClosed=function(){var d=this._state.dbOpenError;return d&&d.name==="DatabaseClosed"},Zt.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Zt.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Zt.prototype,"tables",{get:function(){var d=this;return u(this._allTables).map(function(y){return d._allTables[y]})},enumerable:!1,configurable:!0}),Zt.prototype.transaction=function(){var d=(function(y,w,A){var C=arguments.length;if(C<2)throw new Ie.InvalidArgument("Too few arguments");for(var j=new Array(C-1);--C;)j[C-1]=arguments[C];return A=j.pop(),[y,xe(j),A]}).apply(this,arguments);return this._transaction.apply(this,d)},Zt.prototype._transaction=function(d,y,w){var A=this,C=Xe.trans;C&&C.db===this&&d.indexOf("!")===-1||(C=null);var j,L,H=d.indexOf("?")!==-1;d=d.replace("!","").replace("?","");try{if(L=y.map(function(Z){if(Z=Z instanceof A.Table?Z.name:Z,typeof Z!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return Z}),d=="r"||d===ir)j=ir;else{if(d!="rw"&&d!=Vn)throw new Ie.InvalidArgument("Invalid transaction mode: "+d);j=Vn}if(C){if(C.mode===ir&&j===Vn){if(!H)throw new Ie.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");C=null}C&&L.forEach(function(Z){if(C&&C.storeNames.indexOf(Z)===-1){if(!H)throw new Ie.SubTransaction("Table "+Z+" not included in parent transaction.");C=null}}),H&&C&&!C.active&&(C=null)}}catch(Z){return C?C._promise(null,function(ae,G){G(Z)}):Lt(Z)}var Y=(function Z(ae,G,ce,X,ne){return Fe.resolve().then(function(){var le=Xe.transless||Xe,te=ae._createTransaction(G,ce,ae._dbSchema,X);if(te.explicit=!0,le={trans:te,transless:le},X)te.idbtrans=X.idbtrans;else try{te.create(),te.idbtrans._explicit=!0,ae._state.PR1398_maxLoop=3}catch(ve){return ve.name===ct.InvalidState&&ae.isOpen()&&0<--ae._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),ae.close({disableAutoOpen:!1}),ae.open().then(function(){return Z(ae,G,ce,null,ne)})):Lt(ve)}var fe,ye=se(ne);return ye&&ar(),le=Fe.follow(function(){var ve;(fe=ne.call(te,te))&&(ye?(ve=mr.bind(null,null),fe.then(ve,ve)):typeof fe.next=="function"&&typeof fe.throw=="function"&&(fe=Po(fe)))},le),(fe&&typeof fe.then=="function"?Fe.resolve(fe).then(function(ve){return te.active?ve:Lt(new Ie.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):le.then(function(){return fe})).then(function(ve){return X&&te._resolve(),te._completion.then(function(){return ve})}).catch(function(ve){return te._reject(ve),Lt(ve)})})}).bind(null,this,j,L,C,w);return C?C._promise(j,Y,"lock"):Xe.trans?Ar(Xe.transless,function(){return A._whenReady(Y)}):this._whenReady(Y)},Zt.prototype.table=function(d){if(!x(this._allTables,d))throw new Ie.InvalidTable("Table ".concat(d," does not exist"));return this._allTables[d]},Zt);function Zt(d,y){var w=this;this._middlewares={},this.verno=0;var A=Zt.dependencies;this._options=y=i({addons:Zt.addons,autoOpen:!0,indexedDB:A.indexedDB,IDBKeyRange:A.IDBKeyRange,cache:"cloned"},y),this._deps={indexedDB:y.indexedDB,IDBKeyRange:y.IDBKeyRange},A=y.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var C,j,L,H,Y,Z={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:St,dbReadyPromise:null,cancelOpen:St,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:y.autoOpen};Z.dbReadyPromise=new Fe(function(G){Z.dbReadyResolve=G}),Z.openCanceller=new Fe(function(G,ce){Z.cancelOpen=ce}),this._state=Z,this.name=d,this.on=J(this,"populate","blocked","versionchange","close",{ready:[aa,St]}),this.on.ready.subscribe=I(this.on.ready.subscribe,function(G){return function(ce,X){Zt.vip(function(){var ne,le=w._state;le.openComplete?(le.dbOpenError||Fe.resolve().then(ce),X&&G(ce)):le.onReadyBeingFired?(le.onReadyBeingFired.push(ce),X&&G(ce)):(G(ce),ne=w,X||G(function te(){ne.on.ready.unsubscribe(ce),ne.on.ready.unsubscribe(te)}))})}}),this.Collection=(C=this,oe(Xt.prototype,function(fe,te){this.db=C;var X=jo,ne=null;if(te)try{X=te()}catch(ye){ne=ye}var le=fe._ctx,te=le.table,fe=te.hook.reading.fire;this._ctx={table:te,index:le.index,isPrimKey:!le.index||te.schema.primKey.keyPath&&le.index===te.schema.primKey.name,range:X,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:ne,or:le.or,valueMapper:fe!==ln?fe:null}})),this.Table=(j=this,oe(V.prototype,function(G,ce,X){this.db=j,this._tx=X,this.name=G,this.schema=ce,this.hook=j._allTables[G]?j._allTables[G].hook:J(null,{creating:[Dr,St],reading:[ra,ln],updating:[br,St],deleting:[Aa,St]})})),this.Transaction=(L=this,oe(Ql.prototype,function(G,ce,X,ne,le){var te=this;this.db=L,this.mode=G,this.storeNames=ce,this.schema=X,this.chromeTransactionDurability=ne,this.idbtrans=null,this.on=J(this,"complete","error","abort"),this.parent=le||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Fe(function(fe,ye){te._resolve=fe,te._reject=ye}),this._completion.then(function(){te.active=!1,te.on.complete.fire()},function(fe){var ye=te.active;return te.active=!1,te.on.error.fire(fe),te.parent?te.parent._reject(fe):ye&&te.idbtrans&&te.idbtrans.abort(),Lt(fe)})}
vendor: 5,645 bytes, line 341
341)),this.Version=(H=this,oe(Sh.prototype,function(G){this.db=H,this._cfg={version:G,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(Y=this,oe(As.prototype,function(G,ce,X){if(this.db=Y,this._ctx={table:G,index:ce===":id"?null:ce,or:X},this._cmp=this._ascending=gt,this._descending=function(ne,le){return gt(le,ne)},this._max=function(ne,le){return 0<gt(ne,le)?ne:le},this._min=function(ne,le){return gt(ne,le)<0?ne:le},this._IDBKeyRange=Y._deps.IDBKeyRange,!this._IDBKeyRange)throw new Ie.MissingAPI})),this.on("versionchange",function(G){0<G.newVersion?console.warn("Another connection wants to upgrade database '".concat(w.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(w.name,"'. Closing db now to resume the delete request.")),w.close({disableAutoOpen:!1})}),this.on("blocked",function(G){!G.newVersion||G.newVersion<G.oldVersion?console.warn("Dexie.delete('".concat(w.name,"') was blocked")):console.warn("Upgrade '".concat(w.name,"' blocked by other connection holding version ").concat(G.oldVersion/10))}),this._maxKey=Bi(y.IDBKeyRange),this._createTransaction=function(G,ce,X,ne){return new w.Transaction(G,ce,X,w._options.chromeTransactionDurability,ne)},this._fireOnBlocked=function(G){w.on("blocked").fire(G),Yn.filter(function(ce){return ce.name===w.name&&ce!==w&&!ce._state.vcFired}).map(function(ce){return ce.on("versionchange").fire(G)})},this.use(Zu),this.use(Bs),this.use(_h),this.use(Ah),this.use(Wu);var ae=new Proxy(this,{get:function(G,ce,X){if(ce==="_vip")return!0;if(ce==="table")return function(le){return Io(w.table(le),ae)};var ne=Reflect.get(G,ce,X);return ne instanceof V?Io(ne,ae):ce==="tables"?ne.map(function(le){return Io(le,ae)}):ce==="_createTransaction"?function(){return Io(ne.apply(this,arguments),ae)}:ne}});this.vip=ae,A.forEach(function(G){return G(w)})}var Hi,or=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",ed=($s.prototype.subscribe=function(d,y,w){return this._subscribe(d&&typeof d!="function"?d:{next:d,error:y,complete:w})},$s.prototype[or]=function(){return this},$s);function $s(d){this._subscribe=d}try{Hi={indexedDB:c.indexedDB||c.mozIndexedDB||c.webkitIndexedDB||c.msIndexedDB,IDBKeyRange:c.IDBKeyRange||c.webkitIDBKeyRange}}catch{Hi={indexedDB:null,IDBKeyRange:null}}function td(d){var y,w=!1,A=new ed(function(C){var j=se(d),L,H=!1,Y={},Z={},ae={get closed(){return H},unsubscribe:function(){H||(H=!0,L&&L.abort(),G&&gr.storagemutated.unsubscribe(X))}};C.start&&C.start(ae);var G=!1,ce=function(){return Vr(ne)},X=function(le){Ls(Y,le),ic(Z,Y)&&ce()},ne=function(){var le,te,fe;!H&&Hi.indexedDB&&(Y={},le={},L&&L.abort(),L=new AbortController,fe=function(ye){var ve=sa();try{j&&ar();var Ee=Yt(d,ye);return Ee=j?Ee.finally(mr):Ee}finally{ve&&Ir()}}(te={subscr:le,signal:L.signal,requery:ce,querier:d,trans:null}),Promise.resolve(fe).then(function(ye){w=!0,y=ye,H||te.signal.aborted||(Y={},function(ve){for(var Ee in ve)if(x(ve,Ee))return;return 1}(Z=le)||G||(gr(ri,X),G=!0),Vr(function(){return!H&&C.next&&C.next(ye)}))},function(ye){w=!1,["DatabaseClosedError","AbortError"].includes(ye==null?void 0:ye.name)||H||Vr(function(){H||C.error&&C.error(ye)})}))};return setTimeout(ce,0),ae});return A.hasValue=function(){return w},A.getValue=function(){return y},A}var li=Br;function dc(d){var y=Da;try{Da=!0,gr.storagemutated.fire(d),lc(d,!0)}finally{Da=y}}E(li,i(i({},vn),{delete:function(d){return new li(d,{addons:[]}).delete()},exists:function(d){return new li(d,{addons:[]}).open().then(function(y){return y.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(d){try{return y=li.dependencies,w=y.indexedDB,y=y.IDBKeyRange,(ks(w)?Promise.resolve(w.databases()).then(function(A){return A.map(function(C){return C.name}).filter(function(C){return C!==pr})}):tc(w,y).toCollection().primaryKeys()).then(d)}catch{return Lt(new Ie.MissingAPI)}var y,w},defineClass:function(){return function(d){p(this,d)}},ignoreTransaction:function(d){return Xe.trans?Ar(Xe.transless,d):d()},vip:nc,async:function(d){return function(){try{var y=Po(d.apply(this,arguments));return y&&typeof y.then=="function"?y:Fe.resolve(y)}catch(w){return Lt(w)}}},spawn:function(d,y,w){try{var A=Po(d.apply(w,y||[]));return A&&typeof A.then=="function"?A:Fe.resolve(A)}catch(C){return Lt(C)}},currentTransaction:{get:function(){return Xe.trans||null}},waitFor:function(d,y){return y=Fe.resolve(typeof d=="function"?li.ignoreTransaction(d):d).timeout(y||6e4),Xe.trans?Xe.trans.waitFor(y):y},Promise:Fe,debug:{get:function(){return Rn},set:function(d){To(d)}},derive:R,extend:p,props:E,override:I,Events:J,on:gr,liveQuery:td,extendObservabilitySet:Ls,getByKeyPath:q,setByKeyPath:ie,delByKeyPath:function(d,y){typeof y=="string"?ie(d,y,void 0):"length"in y&&[].map.call(y,function(w){ie(d,w,void 0)})},shallowClone:be,deepClone:Ue,getObjectDiff:zs,cmp:gt,asap:z,minKey:-1/0,addons:[],connections:Yn,errnames:ct,dependencies:Hi,cache:oi,semVer:"4.0.11",version:"4.0.11".split(".").map(function(d){return parseInt(d)}).reduce(function(d,y,w){return d+y/Math.pow(10,2*w)})})),li.maxKey=Bi(li.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(gr(ri,function(d){Da||(d=new CustomEvent(_s,{detail:d}),Da=!0,dispatchEvent(d),Da=!1)}),addEventListener(_s,function(d){d=d.detail,Da||dc(d)}));var Gi,Da=!1,Wn=function(){};return typeof BroadcastChannel<"u"&&((Wn=function(){(Gi=new BroadcastChannel(_s)).onmessage=function(d){return d.data&&dc(d.data)}})(),typeof Gi.unref=="function"&&Gi.unref(),gr(ri,function(d){Da||Gi.postMessage(d)}
341)),typeof addEventListener<"u"&&(addEventListener("pagehide",function(d){if(!Br.disableBfCache&&d.persisted){Rn&&console.debug("Dexie: handling persisted pagehide"),Gi!=null&&Gi.close();for(var y=0,w=Yn;y<w.length;y++)w[y].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(d){!Br.disableBfCache&&d.persisted&&(Rn&&console.debug("Dexie: handling persisted pageshow"),Wn(),dc({all:new Mn(-1/0,[[]])}))})),Fe.rejectionMapper=function(d,y){return!d||d instanceof Ne||d instanceof TypeError||d instanceof SyntaxError||!d.name||!Ct[d.name]?d:(y=new Ct[d.name](y||d.message,d),"stack"in d&&T(y,"stack",{get:function(){return this.inner.stack}}),y)},To(Rn),i(Br,Object.freeze({__proto__:null,Dexie:Br,liveQuery:td,Entity:Ss,cmp:gt,PropModification:xt,replacePrefix:function(d,y){return new xt({replacePrefix:[d,y]})},add:function(d){return new xt({add:d})},remove:function(d){return new xt({remove:d})},default:Br,RangeSet:Mn,mergeRanges:ii,rangesOverlap:Ku}),{default:Br}),Br})}(Mf)),Mf.exports}var NV=_V();const Tg=Dg(NV),O1=Symbol.for("Dexie"),th=globalThis[O1]||(globalThis[O1]=Tg);if(Tg.semVer!==th.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${Tg.semVer} and ${th.semVer}`);const{liveQuery:CV,mergeRanges:SU,rangesOverlap:EU,RangeSet:AU,cmp:_U,Entity:NU,PropModification:CU,replacePrefix:TU,add:RU,remove:jU}=th;function TV(e,n,a){var i,s;typeof e=="function"?(i=n||[],s=a):(i=[],s=n);var c=In.useRef({hasResult:!1,result:s,error:null}),u=In.useReducer(function(g){return g+1},0);u[0];var f=u[1],p=In.useMemo(function(){var g=typeof e=="function"?e():e;if(!g||typeof g.subscribe!="function")throw e===g?new TypeError("Given argument to useObservable() was neither a valid observable nor a function."):new TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!c.current.hasResult&&typeof window<"u"&&(typeof g.hasValue!="function"||g.hasValue()))if(typeof g.getValue=="function")c.current.result=g.getValue(),c.current.hasResult=!0;else{var b=g.subscribe(function(x){c.current.result=x,c.current.hasResult=!0});typeof b=="function"?b():b.unsubscribe()}return g},i);if(In.useDebugValue(c.current.result),In.useEffect(function(){var g=p.subscribe(function(b){var x=c.current;(x.error!==null||x.result!==b)&&(x.error=null,x.result=b,x.hasResult=!0,f())},function(b){var x=c.current;x.error!==b&&(x.error=b,f())});return typeof g=="function"?g:g.unsubscribe.bind(g)},i),c.current.error)throw c.current.error;return c.current.result}function RV(e,n,a){return TV(function(){return CV(e)},n||[],a)}class jV extends th{constructor(){super("vaultKeyDB");Xd(this,"passwords");Xd(this,"userSettings");Xd(this,"masterPassword");this.version(4).stores({passwords:"++id, userId, title, username, category, createdAt, updatedAt",userSettings:"++id, email, masterPasswordHash, hasMasterPassword",masterPassword:"++id, hashedPassword, salt"})}async initialize(){try{return await this.open(),console.log("Database initialized successfully"),!0}catch(a){return console.error("Failed to initialize database:",a),!1}}}const er=new jV;er.initialize().catch(e=>{console.error("Failed to initialize VaultKeyDB:",e)});async function MV(){const e=crypto.getRandomValues(new Uint8Array(16));return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}async function D1(e,n){const i=new TextEncoder().encode(e+n),s=await crypto.subtle.digest("SHA-256",i);return Array.from(new Uint8Array(s)).map(u=>u.toString(16).padStart(2,"0")).join("")}const mv={async setMasterPassword(e){const n=await MV(),a=await D1(e,n);await er.masterPassword.clear(),await er.masterPassword.add({hashedPassword:a,salt:n})},async verifyMasterPassword(e){const n=await er.masterPassword.toCollection().first();return n?await D1(e,n.salt)===n.hashedPassword:!1},async hasMasterPassword(){return await er.masterPassword.count()>0},async clearMasterPassword(){await er.masterPassword.clear()}};var pv="Progress",gv=100,[OV,MU]=Xa(pv),[DV,kV]=OV(pv),qN=S.forwardRef((e,n)=>{const{__scopeProgress:a,value:i=null,max:s,getValueLabel:c=PV,...u}=e;(s||s===0)&&!k1(s)&&console.error(LV(`${s}`,"Progress"));const f=k1(s)?s:gv;i!==null&&!P1(i,f)&&console.error(IV(`${i}`,"Progress"));const p=P1(i,f)?i:null,g=nh(p)?c(p,f):void 0;return m.jsx(DV,{scope:a,value:p,max:f,children:m.jsx($t.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":nh(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":KN(p,f),"data-value":p??void 0,"data-max":f,...u,ref:n})})});qN.displayName=pv;
341var HN="ProgressIndicator",GN=S.forwardRef((e,n)=>{const{__scopeProgress:a,...i}=e,s=kV(HN,a);return m.jsx($t.div,{"data-state":KN(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:n})});GN.displayName=HN;function PV(e,n){return`${Math.round(e/n*100)}%`}function KN(e,n){return e==null?"indeterminate":e===n?"complete":"loading"}function nh(e){return typeof e=="number"}function k1(e){return nh(e)&&!isNaN(e)&&e>0}function P1(e,n){return nh(e)&&!isNaN(e)&&e<=n&&e>=0}function LV(e,n){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${gv}\`.`}function IV(e,n){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${n}\`. The \`value\` prop must be:
342  - a positive number
343  - less than the value passed to \`max\` (or ${gv} if no \`max\` prop is set)
344  - \`null\` or \`undefined\` if the progress is indeterminate.
345
346Defaulting to \`null\`.`}var YN=qN,zV=GN;const Rg=S.forwardRef(({className:e,value:n,...a},i)=>m.jsx(YN,{ref:i,className:pt("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...a,children:m.jsx(zV,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));Rg.displayName=YN.displayName;function VV({onSuccess:e}){const[n,a]=S.useState(1),[i,s]=S.useState(""),[c,u]=S.useState(""),[f,p]=S.useState(!1),[g,b]=S.useState(0),[x,E]=S.useState(!1),N=Re=>{if(!Re)return 0;let Ve=0;return Re.length>=8&&(Ve+=1),Re.length>=12&&(Ve+=1),Re.length>=16&&(Ve+=1),/[A-Z]/.test(Re)&&(Ve+=1),/[a-z]/.test(Re)&&(Ve+=1),/[0-9]/.test(Re)&&(Ve+=1),/[^A-Za-z0-9]/.test(Re)&&(Ve+=1),Math.min(Ve,5)},T=Re=>{const Ve=Re.target.value;s(Ve),b(N(Ve))},R=()=>{if(i.length<8){Bt.error("Password must be at least 8 characters long");return}if(g<3){Bt.error("Please create a stronger password");return}a(2)},M=async Re=>{if(Re.preventDefault(),i!==c){Bt.error("Passwords do not match");return}E(!0),a(3);try{await mv.setMasterPassword(i),a(4)}catch(Ve){Bt.error("Failed to set master password. Please try again."),console.error("Error setting master password:",Ve),a(2)}finally{E(!1)}},D=()=>g<=1?{label:"Very Weak",color:"bg-red-500",textColor:"text-red-500"}:g===2?{label:"Weak",color:"bg-orange-500",textColor:"text-orange-500"}:g===3?{label:"Moderate",color:"bg-yellow-500",textColor:"text-yellow-500"}:g===4?{label:"Strong",color:"bg-green-500",textColor:"text-green-500"}:{label:"Very Strong",color:"bg-emerald-500",textColor:"text-emerald-500"},{label:$,color:I,textColor:ee}=D(),z=[{label:"At least 12 characters",met:i.length>=12},{label:"Uppercase letter",met:/[A-Z]/.test(i)},{label:"Lowercase letter",met:/[a-z]/.test(i)},{label:"Number",met:/[0-9]/.test(i)},{label:"Special character",met:/[^A-Za-z0-9]/.test(i)}],q=()=>m.jsxs("div",{className:"space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[m.jsxs("div",{className:"text-center mb-6",children:[m.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Create Master Password"}),m.jsx("p",{className:"text-muted-foreground",children:"This password will protect all your stored passwords"})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"password",className:"text-sm font-medium",children:"Master Password"}),m.jsxs("div",{className:"relative",children:[m.jsx(gn,{type:f?"text":"password",id:"password",value:i,onChange:T,className:pt("h-12 px-4 text-base rounded-lg transition-all duration-200","border-2 focus:ring-2 focus:ring-offset-2",g>=4?"border-green-500 focus:border-green-500 focus:ring-green-500/20":g>=3?"border-yellow-500 focus:border-yellow-500 focus:ring-yellow-500/20":g>0?"border-orange-500 focus:border-orange-500 focus:ring-orange-500/20":"border-gray-200 dark:border-gray-800 focus:border-primary focus:ring-primary/20"),placeholder:"Enter your master password",autoComplete:"new-password"}),m.jsx(wt,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 w-8 hover:bg-transparent",onClick:()=>
346p(!f),children:f?m.jsx(Uf,{size:16}):m.jsx(Ol,{size:16})})]})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsx("span",{className:"text-sm font-medium",children:"Password Strength"}),m.jsx("span",{className:pt("text-sm font-semibold",ee),children:$})]}),m.jsx(Rg,{value:g/5*100,className:pt("h-2",I)})]}),m.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900/50 rounded-lg p-4 space-y-3",children:[m.jsx("h4",{className:"text-sm font-medium",children:"Password Requirements:"}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:z.map((Re,Ve)=>m.jsxs("div",{className:"flex items-center text-sm space-x-2",children:[m.jsx("div",{className:pt("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center",Re.met?"bg-green-500/20 text-green-500":"bg-gray-200 dark:bg-gray-800 text-gray-400"),children:Re.met?m.jsx(ey,{size:12}):m.jsx(Cl,{size:12})}),m.jsx("span",{className:Re.met?"text-green-600 dark:text-green-400":"text-gray-500",children:Re.label})]},Ve))})]})]}),m.jsx(wt,{variant:"teal",size:"xl",className:"w-full",onClick:R,disabled:!i||g<3||x,children:"Continue"})]}),ie=()=>m.jsxs("div",{className:"space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[m.jsxs("div",{className:"text-center mb-6",children:[m.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Confirm Master Password"}),m.jsx("p",{className:"text-muted-foreground",children:"Please re-enter your password to confirm"})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"confirm-password",className:"text-sm font-medium",children:"Confirm Password"}),m.jsxs("div",{className:"relative",children:[m.jsx(gn,{type:f?"text":"password",id:"confirm-password",value:c,onChange:Re=>u(Re.target.value),className:pt("h-12 px-4 text-base rounded-lg transition-all duration-200","border-2 focus:ring-2 focus:ring-offset-2",c&&(i===c?"border-green-500 focus:border-green-500 focus:ring-green-500/20":"border-red-500 focus:border-red-500 focus:ring-red-500/20"),!c&&"border-gray-200 dark:border-gray-800 focus:border-primary focus:ring-primary/20"),placeholder:"Confirm your master password",autoComplete:"new-password"}),m.jsx(wt,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 w-8 hover:bg-transparent",onClick:()=>
346p(!f),children:f?m.jsx(Uf,{size:16}):m.jsx(Ol,{size:16})})]}),c&&i!==c&&m.jsx("p",{className:"text-sm text-red-500 mt-1",children:"Passwords do not match"})]}),m.jsxs("div",{className:"bg-amber-50 dark:bg-amber-900/20 rounded-lg p-4 flex items-start space-x-3",children:[m.jsx(TD,{size:18,className:"text-amber-500 flex-shrink-0 mt-0.5"}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-300",children:"Important Security Notice"}),m.jsx("p",{className:"text-sm text-amber-700 dark:text-amber-400",children:"We cannot recover your master password if you forget it. Please store it securely or remember it well."})]})]})]}),m.jsx(wt,{variant:"teal",size:"xl",className:"w-full",onClick:M,disabled:!c||i!==c||x,children:x?m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),m.jsx("span",{children:"Creating Master Password..."})]}):"Create Master Password"})]}),be=()=>m.jsxs("div",{className:"flex flex-col items-center justify-center py-10 animate-fade-in",children:[m.jsx("div",{className:"w-16 h-16 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center mb-4",children:m.jsx(Dl,{size:28,className:"text-blue-600 dark:text-blue-400 animate-pulse"})}),m.jsx("h3",{className:"text-lg font-medium mb-1",children:"Generating encryption key"}),m.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-6 text-center",children:"We're creating your encryption keys locally. This may take a moment..."}),m.jsx(Rg,{value:65,className:"w-full max-w-xs mb-4"})]}),me=()=>m.jsxs("div",{className:"flex flex-col items-center justify-center py-10 animate-fade-in",children:[m.jsx("div",{className:"w-16 h-16 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center mb-4",children:m.jsx(kl,{size:28,className:"text-green-600 dark:text-green-400"})}),m.jsx("h3",{className:"text-lg font-medium mb-1",children:"Setup Complete!"}),m.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-8 text-center",children:"Your encryption key has been created and saved locally on your device."}),m.jsx(wt,{variant:"teal",size:"xl",className:"w-full",onClick:e,children:"Continue to Vault"})]}),xe=()=>{switch(n){case 1:return q();case 2:return ie();case 3:return be();case 4:return me();default:return null}};return m.jsxs(m.Fragment,{children:[m.jsx(ds,{}),m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gradient-mesh p-4",children:m.jsxs("div",{className:"glass-panel p-8 rounded-xl max-w-md w-full mx-auto shadow-2xl",children:[m.jsx("div",{className:"flex items-center justify-center mb-8",children:m.jsx("div",{className:"h-1 flex-1 bg-gray-200 dark:bg-gray-800 rounded-full overflow-hidden",children:m.jsx("div",{className:"h-full bg-primary transition-all duration-500",style:{width:`${n/4*100}%`}})})}),xe()]})})]})}function UV({onSuccess:e}){const[n,a]=S.useState(""),[i,s]=S.useState(null),[c,u]=S.useState(!1),[f,p]=S.useState(!1),g=async b=>{b.preventDefault(),s(null),u(!0);try{await mv.verifyMasterPassword(n)?(localStorage.setItem("masterPasswordVerified","true"),Bt.success("Master password verified successfully"),e()):(s("Incorrect master password"),Bt.error("Incorrect master password"))}catch(x){s("An error occurred while verifying the password"),Bt.error(`An error occurred while verifying the password - ${x}`)}finally{u(!1)}};return m.jsxs(m.Fragment,{children:[m.jsx(ds,{}),m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gradient-mesh p-4",children:m.jsxs("div",{className:"glass-panel p-8 rounded-xl max-w-md w-full mx-auto shadow-2xl",children:[m.jsxs("div",{className:"flex flex-col items-center justify-center mb-8",children:[m.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:m.jsx(Dl,{size:28,className:"text-primary"})}),m.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Welcome Back"}),m.jsx("p",{className:"text-muted-foreground text-center",children:"Please enter your master password to access your stored passwords"})]}),m.jsx("form",{onSubmit:g,className:"space-y-6",children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"password",className:"text-sm font-medium",children:"Master Password"}),m.jsxs("div",{className:"relative",children:[m.jsx(gn,{id:"password",type:f?"text":"password",value:n,onChange:b=>a(b.target.value),className:pt("h-12 px-4 text-base rounded-lg transition-all duration-200","border-2 focus:ring-2 focus:ring-offset-2",i?"border-red-500 focus:border-red-500 focus:ring-red-500/20":"border-gray-200 dark:border-gray-800 focus:border-primary focus:ring-primary/20"),placeholder:"Enter your master password",required:!0}),m.jsx(wt,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 w-8 hover:bg-transparent",onClick:()=>
346p(!f),children:f?m.jsx(Uf,{size:16}):m.jsx(Ol,{size:16})})]})]}),i&&m.jsxs("div",{className:"bg-red-50 dark:bg-red-900/20 text-red-600 dark:text-red-400 text-sm rounded-lg p-3 flex items-center",children:[m.jsx("div",{className:"w-2 h-2 rounded-full bg-red-500 mr-2"}),i]}),m.jsx(wt,{type:"submit",variant:"teal",size:"xl",className:"w-full",disabled:c||!n,children:c?m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),m.jsx("span",{children:"Verifying..."})]}):"Access Dashboard"})]})})]})})]})}function BV(){const e=ps(),n=localStorage.getItem("isAuthenticated")==="true",a=localStorage.getItem("userEmail")||"",i=RV(()=>er.passwords.where("userId").equals(a).toArray(),[a])||[],[s,c]=S.useState(""),[u,f]=S.useState("grid"),[p,g]=S.useState(null),[b,x]=S.useState(!1),[E,N]=S.useState(!1),[T,R]=S.useState(!1),[M,D]=S.useState(!1),[$,I]=S.useState(!1),[ee,z]=S.useState(null),[q,ie]=S.useState({userId:a,title:"",username:"",password:"",url:"",category:"Uncategorized",createdAt:new Date,updatedAt:new Date}),[be,me]=S.useState(!0),[xe,Re]=S.useState(null),[Ve,Ue]=S.useState(!1),Ye=S.useCallback(async()=>{try{if(await er.initialize(),await er.passwords.where("userId").equals(a).count()===0){const He={userId:a,title:"Google",username:"[email protected]",password:"StrongPassword123!",url:"https://google.com",category:"Work",createdAt:new Date,updatedAt:new Date};await er.passwords.add(He)}return!0}catch(de){return console.error("Error initializing data:",de),Bt.error("Failed to initialize dashboard data"),!1}},[a]);S.useEffect(()=>{n&&(async()=>{try{me(!0);const He=await mv.hasMasterPassword();Re(!He),localStorage.getItem("masterPasswordVerified")==="true"&&(await Ye()?Ue(!0):(localStorage.removeItem("masterPasswordVerified"),Ue(!1)))}catch(He){console.error("Error checking master password status:",He),Bt.error("Error loading dashboard"),localStorage.removeItem("masterPasswordVerified"),Ue(!1)}finally{me(!1)}})()},[n,Ye]);const tt=async()=>{try{if(me(!0),await Ye())Ue(!0),localStorage.setItem("masterPasswordVerified","true"),Bt.success("Successfully accessed dashboard");else throw new Error("Failed to initialize dashboard")}catch(de){console.error("Error initializing dashboard:",de),Bt.error("Error accessing dashboard"),Ue(!1),localStorage.removeItem("masterPasswordVerified")}finally{me(!1)}};if(!n)return m.jsxs("div",{className:"min-h-screen bg-gradient-mesh",children:[m.jsx(ds,{}),m.jsx("div",{className:"flex items-center justify-center px-4 py-32",children:m.jsxs("div",{className:"auth-card text-center max-w-md w-full mx-auto",children:[m.jsx("div",{className:"mb-6 text-destructive",children:m.jsx(yu,{className:"h-12 w-12 mx-auto"})}),m.jsx("h2",{className:"text-h2 mb-4",children:"Authentication Required"}),m.jsx("p",{className:"text-muted-foreground mb-8",children:"You must be signed in to view your secure dashboard and manage your passwords."}),m.jsxs(wt,{variant:"teal",size:"xl",onClick:()=>e("/auth"),className:"w-full flex items-center justify-center gap-2",children:[m.jsx(VD,{className:"h-5 w-5"}),"Sign In to Access Dashboard"]}),m.jsxs("p",{className:"mt-4 text-sm text-muted-foreground",children:["Don't have an account?"," ",m.jsx("button",{onClick:()=>e("/auth",{state:{isSignUp:!0}}),className:"text-teal hover:underline",children:"Create one now"})]})]})})]});if(be)return m.jsx("div",{className:"flex min-h-screen items-center justify-center",children:m.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"})});if(!Ve)return xe?m.jsx(VV,{onSuccess:tt}):m.jsx(UV,{onSuccess:tt});const pe=i.filter(de=>{var ct;const He=de.title.toLowerCase().includes(s.toLowerCase())||de.username.toLowerCase().includes(s.toLowerCase())||((ct=de.url)==null?void 0:ct.toLowerCase().includes(s.toLowerCase())),$e=!p||de.category===p;return He&&$e}),Me=Array.from(new Set(i.map(de=>de.category||"Uncategorized"))),B=async de=>{const He=parseInt(de);if(!isNaN(He))try{const $e=await er.passwords.get(He);$e&&(ie({userId:a,title:$e.title,username:$e.username,password:$e.password,url:$e.url||"",category:$e.category,createdAt:$e.createdAt,updatedAt:$e.updatedAt}),z(He),N(!0))}catch($e){Bt.error(`Failed to retrieve password - ${$e}`)}},K=async()=>
346{if(ee){if(!q.title||!q.username||!q.password){Bt.error("Please fill in all required fields");return}try{const de=await er.passwords.get(ee);if(!de||de.userId!==a){Bt.error("You don't have permission to edit this password");return}await er.passwords.update(ee,{...q,userId:a,updatedAt:new Date}),N(!1),z(null),ie({userId:a,title:"",username:"",password:"",url:"",category:"Uncategorized",createdAt:new Date,updatedAt:new Date}),Bt.success("Password updated successfully")}catch(de){Bt.error(`Failed to update password - ${de}`)}}},P=async de=>{const He=parseInt(de);if(!isNaN(He))try{const $e=await er.passwords.get(He);if(!$e||$e.userId!==a){Bt.error("You don't have permission to delete this password");return}await er.passwords.delete(He),Bt.success("Password deleted successfully")}catch($e){Bt.error(`Failed to delete password - ${$e}`)}},se=async()=>{if(!q.title||!q.username||!q.password){Bt.error("Please fill in all required fields");return}if(i.length>=3){x(!1),R(!0);return}try{await er.passwords.add({...q,userId:a,updatedAt:new Date}),ie({userId:a,title:"",username:"",password:"",url:"",category:"Uncategorized",createdAt:new Date,updatedAt:new Date}),x(!1),Bt.success("Password added successfully"),i.length===2&&setTimeout(()=>{R(!0)},500)}catch(de){Bt.error(`Failed to add password - ${de}`)}},_e=()=>{R(!1),D(!0)},Ne=()=>{I(!0),D(!1),Bt.success("Upgrade successful! You now have unlimited password storage.",{duration:5e3}),(q.title||q.username||q.password)&&x(!0)};return m.jsxs("div",{className:"min-h-screen flex flex-col",children:[m.jsx(ds,{}),m.jsx("main",{className:"flex-1 pt-24 pb-16 px-4",children:m.jsxs("div",{className:"container mx-auto max-w-6xl",children:[m.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center mb-8 space-y-4 md:space-y-0",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Password Vault"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Manage your secure passwords in one place"})]}),m.jsxs("div",{className:"flex flex-col sm:flex-row items-end gap-3",children:[!$&&m.jsxs(wt,{onClick:()=>R(!0),variant:"outline",className:"rounded-lg shadow-sm border-gradient-to-r from-amber-400 to-amber-600 text-amber-700 dark:text-amber-400",children:[m.jsx(of,{size:16,className:"mr-2 text-amber-500"}),"Upgrade (",Math.max(0,3-i.length)," slots left)"]}),m.jsxs(wt,{onClick:()=>{i.length>=3&&!$?R(!0):x(!0)},className:"rounded-lg shadow-sm",children:[m.jsx(xp,{size:16,className:"mr-2"}),"Add Password"]})]})]}),$&&m.jsx("div",{className:"mb-6",children:m.jsx("div",{className:"glass-panel rounded-xl p-4 border-gradient-to-r from-amber-300 to-amber-500",children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"bg-amber-400/20 p-2 rounded-full",children:m.jsx(of,{className:"h-5 w-5 text-amber-500"})}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-medium",children:"Premium Account"}),m.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Unlimited password storage"})]})]})})}),m.jsx("div",{className:"glass-panel rounded-xl p-4 mb-8",children:m.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[m.jsxs("div",{className:"relative flex-1",children:[m.jsx(WD,{size:18,className:"absolute top-1/2 transform -translate-y-1/2 left-3 text-gray-400"}),m.jsx(gn,{placeholder:"Search passwords...",value:s,onChange:de=>c(de.target.value),className:"pl-10"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsxs(Iz,{children:[m.jsx(zz,{asChild:!0,children:m.jsx(wt,{variant:"outline",size:"icon",children:m.jsx(SD,{className:"h-4 w-4"})})}),m.jsxs(W_,{align:"end",children:[m.jsx(Ng,{onClick:()=>g(null),children:"All Categories"}),m.jsx(Z_,{}),Me.map(de=>m.jsx(Ng,{onClick:()=>g(de),children:de},de))]})]}),m.jsxs("div",{className:"flex border rounded-md overflow-hidden",children:[m.jsx(wt,{variant:"ghost",size:"icon",className:`rounded-none ${u==="grid"?"bg-secondary":""}`,onClick:()=>f("grid"),children:m.jsx(AD,{size:16})}),m.jsx(wt,{variant:"ghost",size:"icon",className:`rounded-none ${u==="list"?"bg-secondary":""}`,onClick:()=>f("list"),children:m.jsx(PD,{size:16})})]})]})]})}),pe.length===0?m.jsxs("div",{className:"text-center py-16",children:[m.jsx("div",{className:"rounded-full bg-gray-100 dark:bg-gray-800 p-4 inline-flex items-center justify-center mb-4",children:m.jsx(Jp,{size:32,className:"text-gray-400"})}),m.jsx("h3",{className:"text-xl font-medium mb-2",children:"No passwords foun
346d"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6",children:s||p?"No passwords match your search criteria":"You haven't added any passwords yet"}),m.jsxs(wt,{onClick:()=>x(!0),children:[m.jsx(xp,{size:16,className:"mr-2"}),"Add Your First Password"]})]}):m.jsxs("div",{className:`grid ${u==="grid"?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"grid-cols-1"} gap-6`,children:[pe.map(de=>m.jsx(cV,{id:String(de.id),title:de.title,username:de.username,password:de.password,url:de.url,category:de.category||"Uncategorized",updatedAt:de.updatedAt,onEdit:B,onDelete:P},de.id)),!$&&i.length<3&&m.jsxs("div",{className:"border border-dashed rounded-xl flex flex-col items-center justify-center p-8 hover:border-primary/50 transition-colors cursor-pointer hover:bg-primary/5",onClick:()=>x(!0),children:[m.jsx("div",{className:"p-3 rounded-full bg-primary/10 mb-4",children:m.jsx(xp,{size:24,className:"text-primary"})}),m.jsx("h3",{className:"font-medium mb-1",children:"Add Password"}),m.jsxs("p",{className:"text-sm text-center text-gray-500 dark:text-gray-400",children:[Math.max(0,3-i.length)," free slots available"]})]})]})]})}),m.jsx(Fp,{open:b,onOpenChange:x,children:m.jsxs(Nf,{className:"sm:max-w-md",children:[m.jsxs(Cf,{children:[m.jsx(Rf,{children:"Add New Password"}),m.jsx(jf,{children:"Add a new password to your encrypted vault"})]}),m.jsxs("div",{className:"grid gap-4 py-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"title",className:"text-sm font-medium",children:"Title"}),m.jsx(gn,{id:"title",value:q.title,onChange:de=>ie({...q,title:de.target.value}),placeholder:"e.g. Google, Twitter, Bank"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"username",className:"text-sm font-medium",children:"Username"}),m.jsx(gn,{id:"username",value:q.username,onChange:de=>ie({...q,username:de.target.value}),placeholder:"e.g. [email protected]"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"password",className:"text-sm font-medium",children:"Password"}),m.jsx(gn,{id:"password",type:"password",value:q.password,onChange:de=>ie({...q,password:de.target.value}),placeholder:"Enter password"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"url",className:"text-sm font-medium",children:"Website URL (optional)"}),m.jsx(gn,{id:"url",value:q.url,onChange:de=>ie({...q,url:de.target.value}),placeholder:"e.g. https://example.com"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"category",className:"text-sm font-medium",children:"Category"}),m.jsx(gn,{id:"category",value:q.category,onChange:de=>ie({...q,category:de.target.value}),placeholder:"e.g. Work, Personal, Finance"})]})]}),m.jsxs(Tf,{className:"flex space-x-2 sm:space-x-0",children:[m.jsxs(wt,{variant:"outline",onClick:()=>x(!1),children:[m.jsx(Cl,{size:16,className:"mr-2"}),"Cancel"]}),m.jsxs(wt,{onClick:se,children:[m.jsx(Bx,{size:16,className:"mr-2"}),"Save Password"]})]})]})}),m.jsx(Fp,{open:E,onOpenChange:N,children:m.jsxs(Nf,{className:"sm:max-w-md",children:[m.jsxs(Cf,{children:[m.jsx(Rf,{children:"Edit Password"}),m.jsx(jf,{children:"Update your stored password information"})]}),m.jsxs("div",{className:"grid gap-4 py-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"edit-title",className:"text-sm font-medium",children:"Title"}),m.jsx(gn,{id:"edit-title",value:q.title,onChange:de=>ie({...q,title:de.target.value}),placeholder:"e.g. Google, Twitter, Bank"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"edit-username",className:"text-sm font-medium",children:"Username"}),m.jsx(gn,{id:"edit-username",value:q.username,onChange:de=>ie({...q,username:de.target.value}),placeholder:"e.g. [email protected]"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"edit-password",className:"text-sm font-medium",children:"Password"}),m.jsx(gn,{id:"edit-password",type:"password",value:q.password,onChange:de=>ie({...q,password:de.target.value}),placeholder:"Enter password"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"edit-url",className:"text-sm font-medium",children:"Website URL (optional)"}),m.jsx(gn,{id:"edit-url",value:q.url,onChange:de=>ie({...q,url:de.target.value}),placeholder:"e.g. https://example.com"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"edit-category",className:"text-sm font-medium",children:"Category"}),m.jsx(gn,{id:"edit-category",value:q.category,onChange:de=>ie({...q,category:de.target.value}),placeholder:"e.g. Work, Personal, Finance"})]})]}),m.jsxs(Tf,{className:"flex space-x-2 sm:space-x-0",children:[m.jsxs(wt,{variant:"outline",onClick:()=>{N(!1),z(null),ie({userId:a,title:"",username:"",password:"",url:"",category:"Uncategorized",createdAt:new Date,updatedAt:new Date})},children:[m.jsx(Cl,{size:16,className:"mr-2"}),"Cancel"]}),m.jsxs(wt,{onClick:K,children:[m.jsx(Bx,{size:16,className:"mr-2"}),"Save Changes"]})]})]})}),m.jsx(SV,{open:T,onOpenChange:R,children:m.jsxs(IN,{className:"font-jakarta",children:[m.jsxs(zN,{children:[m.jsx("div",{className:"mx-auto w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:m.jsx(yu,{className:"h-8 w-8 text-primary"})}),m.jsx(UN,{className:"text-xl text-center",children:"Upgrade to Premium"}),m.jsx(BN,{className:"text-center",children:"You've reached the limit of 3 free passwords. Upgrade to premium for unlimited password storage."})]}),m.jsxs("div",{className:"my-4 p-4 bg-primary/5 rounded-lg",children:[m.jsx("h3",{className:"font-bold text-lg mb-2",children:"Premium Benefits:"}),m.jsxs("ul",{className:"space-y-2",children:[m.jsxs("li",{className:"flex items-center",children:[m.jsx(af,{className:"h-5 w-5 text-primary mr-2"}),m.jsx("span",{children:"Unlimited password storage"})]}),m.jsxs("li",{className:"flex items-center",children:[m.jsx(af,{className:"h-5 w-5 text-primary mr-2"}),m.jsx("span",{children:"Advanced security features"})]}),m.jsxs("li",{className:"flex items-center",children:[m.jsx(af,{className:"h-5 w-5 text-primary mr-2"}),m.jsx("span",{children:"Priority customer support"})]}),m.jsxs("li",{className:"flex items-center",children:[m.jsx(af,{className:"h-5 w-5 text-primary mr-2"}),m.jsx("span",{children:"Cross-device synchronization"})]})]})]}),m.jsxs(VN,{children:[m.jsx(FN,{className:"hover:bg-gray-100",children:"Maybe Later"}),m.jsx($N,{onClick:_e,className:"bg-gradient-to-r from-primary to-accent hover:opacity-90 transition-opacity",children:"Upgrade Now - $4.99/month"})]})]})}),m.jsx(Fp,{open:M,onOpenChange:D,children:m.jsxs(Nf,{className:"sm:max-w-md",children:[m.jsxs(Cf,{children:[m.jsx(Rf,{children:"Complete Your Purchase"}),m.jsx(jf,{children:"Enter your payment details to upgrade to Premium"})]}),m.jsxs("div",{className:"grid gap-4 py-4",children:[m.jsx("div",{className:"p-3 bg-amber-50 dark:bg-amber-900/20 rounded-lg border border-amber-200 dark:border-amber-800 mb-2",children:m.jsxs("div",{className:"flex items-center",children:[m.jsx(of,{className:"h-5 w-5 text-amber-500 mr-2"}),m.jsx("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-300",children:"Premium Plan - $4.99/month"})]})}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"cardName",className:"text-sm font-medium",children:"Name on Card"}),m.jsx(gn,{id:"cardName",placeholder:"John Smith"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"cardNumber",className:"text-sm font-medium",children:"Card Number"}),m.jsx(gn,{id:"cardNumber",placeholder:"1234 5678 9012 3456"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"expiry",className:"text-sm font-medium",children:"Expiry Date"}),m.jsx(gn,{id:"expiry",placeholder:"MM/YY"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{htmlFor:"cvc",className:"text-sm font-medium",children:"CVC"}),m.jsx(gn,{id:"cvc",placeholder:"123"})]})]})]}),m.jsxs(Tf,{className:"flex space-x-2 sm:space-x-0",children:[m.jsxs(wt,{variant:"outline",onClick:()=>D(!1),children:[m.jsx(Cl,{size:16,className:"mr-2"}),"Cancel"]}),m.jsxs(wt,{onClick:Ne,className:"bg-gradient-to-r from-primary to-accent hover:opacity-90 transition-opacity",children:[m.jsx(of,{size:16,className:"mr-2"}),"Pay $4.99/month"]})]})]})}),m.jsx(fh,{})]})}function XN(e,[n,a]){return Math.min(a,Math.max(n,e))}function WN(e){const n=S.useRef({value:e,previous:e});return S.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var ZN=["PageUp","PageDown"],QN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],JN={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Xl="Slider",[jg,$V,FV]=Py(Xl),[eC,OU]=Xa(Xl,[FV]),[qV,wh]=eC(Xl),tC=S.forwardRef((e,n
346)=>{const{name:a,min:i=0,max:s=100,step:c=1,orientation:u="horizontal",disabled:f=!1,minStepsBetweenThumbs:p=0,defaultValue:g=[i],value:b,onValueChange:x=()=>{},onValueCommit:E=()=>{},inverted:N=!1,form:T,...R}=e,M=S.useRef(new Set),D=S.useRef(0),I=u==="horizontal"?HV:GV,[ee=[],z]=Uu({prop:b,defaultProp:g,onChange:Re=>{var Ue;(Ue=[...M.current][D.current])==null||Ue.focus(),x(Re)}}),q=S.useRef(ee);function ie(Re){const Ve=ZV(ee,Re);xe(Re,Ve)}function be(Re){xe(Re,D.current)}function me(){const Re=q.current[D.current];ee[D.current]!==Re&&E(ee)}function xe(Re,Ve,{commit:Ue}={commit:!1}){const Ye=tU(c),tt=nU(Math.round((Re-i)/c)*c+i,Ye),pe=XN(tt,[i,s]);z((Me=[])=>{const B=XV(Me,pe,Ve);if(eU(B,p*c)){D.current=B.indexOf(pe);const K=String(B)!==String(Me);return K&&Ue&&E(B),K?B:Me}else return Me})}return m.jsx(qV,{scope:e.__scopeSlider,name:a,disabled:f,min:i,max:s,valueIndexToChangeRef:D,thumbs:M.current,values:ee,orientation:u,form:T,children:m.jsx(jg.Provider,{scope:e.__scopeSlider,children:m.jsx(jg.Slot,{scope:e.__scopeSlider,children:m.jsx(I,{"aria-disabled":f,"data-disabled":f?"":void 0,...R,ref:n,onPointerDown:lt(R.onPointerDown,()=>{f||(q.current=ee)}),min:i,max:s,inverted:N,onSlideStart:f?void 0:ie,onSlideMove:f?void 0:be,onSlideEnd:f?void 0:me,onHomeKeyDown:()=>!f&&xe(i,0,{commit:!0}),onEndKeyDown:()=>!f&&xe(s,ee.length-1,{commit:!0}),onStepKeyDown:({event:Re,direction:Ve})=>{if(!f){const tt=ZN.includes(Re.key)||Re.shiftKey&&QN.includes(Re.key)?10:1,pe=D.current,Me=ee[pe],B=c*tt*Ve;xe(Me+B,pe,{commit:!0})}}})})})})});tC.displayName=Xl;var[nC,rC]=eC(Xl,{startEdge:"left",endEdge:"right",size:"width",direction:1}),HV=S.forwardRef((e,n)=>{const{min:a,max:i,dir:s,inverted:c,onSlideStart:u,onSlideMove:f,onSlideEnd:p,onStepKeyDown:g,...b}=e,[x,E]=S.useState(null),N=Jt(n,I=>E(I)),T=S.useRef(void 0),R=Ly(s),M=R==="ltr",D=M&&!c||!M&&c;function $(I){const ee=T.current||x.getBoundingClientRect(),z=[0,ee.width],ie=yv(z,D?[a,i]:[i,a]);return T.current=ee,ie(I-ee.left)}return m.jsx(nC,{scope:e.__scopeSlider,startEdge:D?"left":"right",endEdge:D?"right":"left",direction:D?1:-1,size:"width",children:m.jsx(aC,{dir:R,"data-orientation":"horizontal",...b,ref:N,style:{...b.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:I=>{const ee=$(I.clientX);u==null||u(ee)},onSlideMove:I=>{const ee=$(I.clientX);f==null||f(ee)},onSlideEnd:()=>{T.current=void 0,p==null||p()},onStepKeyDown:I=>{const z=JN[D?"from-left":"from-right"].includes(I.key);g==null||g({event:I,direction:z?-1:1})}})})}),GV=S.forwardRef((e,n)=>{const{min:a,max:i,inverted:s,onSlideStart:c,onSlideMove:u,onSlideEnd:f,onStepKeyDown:p,...g}=e,b=S.useRef(null),x=Jt(n,b),E=S.useRef(void 0),N=!s;function T(R){const M=E.current||b.current.getBoundingClientRect(),D=[0,M.height],I=yv(D,N?[i,a]:[a,i]);return E.current=M,I(R-M.top)}return m.jsx(nC,{scope:e.__scopeSlider,startEdge:N?"bottom":"top",endEdge:N?"top":"bottom",size:"height",direction:N?1:-1,children:m.jsx(aC,{"data-orientation":"vertical",...g,ref:x,style:{...g.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:R=>{const M=T(R.clientY);c==null||c(M)},onSlideMove:R=>{const M=T(R.clientY);u==null||u(M)},onSlideEnd:()=>{E.current=void 0,f==null||f()},onStepKeyDown:R=>{const D=JN[N?"from-bottom":"from-top"].includes(R.key);p==null||p({event:R,direction:D?-1:1})}})})}),aC=S.forwardRef((e,n)=>{const{__scopeSlider:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:u,onEndKeyDown:f,onStepKeyDown:p,...g}=e,b=wh(Xl,a);return m.jsx($t.span,{...g,ref:n,onKeyDown:lt(e.onKeyDown,x=>{x.key==="Home"?(u(x),x.preventDefault()):x.key==="End"?(f(x),x.preventDefault()):ZN.concat(QN).includes(x.key)&&(p(x),x.preventDefault())}),onPointerDown:lt(e.onPointerDown,x=>{const E=x.target;E.setPointerCapture(x.pointerId),x.preventDefault(),b.thumbs.has(E)?E.focus():i(x)}),onPointerMove:lt(e.onPointerMove,x=>{x.target.hasPointerCapture(x.pointerId)&&s(x)}),onPointerUp:lt(e.onPointerUp,x=>{const E=x.target;E.hasPointerCapture(x.pointerId)&&(E.releasePointerCapture(x.pointerId),c(x))})})}
346),iC="SliderTrack",oC=S.forwardRef((e,n)=>{const{__scopeSlider:a,...i}=e,s=wh(iC,a);return m.jsx($t.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...i,ref:n})});oC.displayName=iC;var Mg="SliderRange",sC=S.forwardRef((e,n)=>{const{__scopeSlider:a,...i}=e,s=wh(Mg,a),c=rC(Mg,a),u=S.useRef(null),f=Jt(n,u),p=s.values.length,g=s.values.map(E=>cC(E,s.min,s.max)),b=p>1?Math.min(...g):0,x=100-Math.max(...g);return m.jsx($t.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...i,ref:f,style:{...e.style,[c.startEdge]:b+"%",[c.endEdge]:x+"%"}})});sC.displayName=Mg;var Og="SliderThumb",lC=S.forwardRef((e,n)=>{const a=$V(e.__scopeSlider),[i,s]=S.useState(null),c=Jt(n,f=>s(f)),u=S.useMemo(()=>i?a().findIndex(f=>f.ref.current===i):-1,[a,i]);return m.jsx(KV,{...e,ref:c,index:u})}),KV=S.forwardRef((e,n)=>{const{__scopeSlider:a,index:i,name:s,...c}=e,u=wh(Og,a),f=rC(Og,a),[p,g]=S.useState(null),b=Jt(n,$=>g($)),x=p?u.form||!!p.closest("form"):!0,E=Gy(p),N=u.values[i],T=N===void 0?0:cC(N,u.min,u.max),R=WV(i,u.values.length),M=E==null?void 0:E[f.size],D=M?QV(M,T,f.direction):0;return S.useEffect(()=>{if(p)return u.thumbs.add(p),()=>{u.thumbs.delete(p)}},[p,u.thumbs]),m.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${T}% + ${D}px)`},children:[m.jsx(jg.ItemSlot,{scope:e.__scopeSlider,children:m.jsx($t.span,{role:"slider","aria-label":e["aria-label"]||R,"aria-valuemin":u.min,"aria-valuenow":N,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...c,ref:b,style:N===void 0?{display:"none"}:e.style,onFocus:lt(e.onFocus,()=>{u.valueIndexToChangeRef.current=i})})}),x&&m.jsx(YV,{name:s??(u.name?u.name+(u.values.length>1?"[]":""):void 0),form:u.form,value:N},i)]})});lC.displayName=Og;var YV=e=>{const{value:n,...a}=e,i=S.useRef(null),s=WN(n);return S.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"value").set;if(s!==n&&p){const g=new Event("input",{bubbles:!0});p.call(c,n),c.dispatchEvent(g)}},[s,n]),m.jsx("input",{style:{display:"none"},...a,ref:i,defaultValue:n})};function XV(e=[],n,a){const i=[...e];return i[a]=n,i.sort((s,c)=>s-c)}function cC(e,n,a){const c=100/(a-n)*(e-n);return XN(c,[0,100])}function WV(e,n){return n>2?`Value ${e+1} of ${n}`:n===2?["Minimum","Maximum"][e]:void 0}function ZV(e,n){if(e.length===1)return 0;const a=e.map(s=>Math.abs(s-n)),i=Math.min(...a);return a.indexOf(i)}function QV(e,n,a){const i=e/2,c=yv([0,50],[0,i]);return(i-c(n)*a)*a}function JV(e){return e.slice(0,-1).map((n,a)=>e[a+1]-n)}function eU(e,n){if(n>0){const a=JV(e);return Math.min(...a)>=n}return!0}function yv(e,n){return a=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const i=(n[1]-n[0])/(e[1]-e[0]);return n[0]+i*(a-e[0])}}function tU(e){return(String(e).split(".")[1]||"").length}function nU(e,n){const a=Math.pow(10,n);return Math.round(e*a)/a}var uC=tC,rU=oC,aU=sC,iU=lC;const dC=S.forwardRef(({className:e,...n},a)=>m.jsxs(uC,{ref:a,className:pt("relative flex w-full touch-none select-none items-center",e),...n,children:[m.jsx(rU,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:m.jsx(aU,{className:"absolute h-full bg-primary"})}),m.jsx(iU,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));dC.displayName=uC.displayName;var vv="Switch",[oU,DU]=Xa(vv),[sU,lU]=oU(vv),fC=S.forwardRef((e,n)=>{const{__scopeSwitch:a,name:i,checked:s,defaultChecked:c,required:u,disabled:f,value:p="on",onCheckedChange:g,form:b,...x}=e,[E,N]=S.useState(null),T=Jt(n,I=>N(I)),R=S.useRef(!1),M=E?b||!!E.closest("form"):!0,[D=!1,$]=Uu({prop:s,defaultProp:c,onChange:g});return m.jsxs(sU,{scope:a,checked:D,disabled:f,children:[m.jsx($t.button,{type:"button",role:"switch","aria-checked":D,"aria-required":u,"data-state":pC(D),"data-disabled":f?"":void 0,disabled:f,value:p,...x,ref:T,onClick:lt(e.onClick,I=>{$(ee=>!ee),M&&(R.current=I.isPropagationStopped(),R.current||I.stopPropagation())})}),M&&m.jsx(cU,{control:E,bubbles:!R.current,name:i,value:p,checked:D,required:u,disabled:f,form:b,style:{transform:"translateX(-100%)"}})]})});fC.displayName=vv;
346var hC="SwitchThumb",mC=S.forwardRef((e,n)=>{const{__scopeSwitch:a,...i}=e,s=lU(hC,a);return m.jsx($t.span,{"data-state":pC(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:n})});mC.displayName=hC;var cU=e=>{const{control:n,checked:a,bubbles:i=!0,...s}=e,c=S.useRef(null),u=WN(a),f=Gy(n);return S.useEffect(()=>{const p=c.current,g=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(g,"checked").set;if(u!==a&&x){const E=new Event("click",{bubbles:i});x.call(p,a),p.dispatchEvent(E)}},[u,a,i]),m.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...s,tabIndex:-1,ref:c,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function pC(e){return e?"checked":"unchecked"}var gC=fC,uU=mC;const lu=S.forwardRef(({className:e,...n},a)=>m.jsx(gC,{className:pt("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...n,ref:a,children:m.jsx(uU,{className:pt("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));lu.displayName=gC.displayName;const dU=({onChange:e})=>{const[n,a]=S.useState(16),[i,s]=S.useState(!0),[c,u]=S.useState(!0),[f,p]=S.useState(!0),[g,b]=S.useState(!0),[x,E]=S.useState(""),[N,T]=S.useState(0),[R,M]=S.useState(!1),[D,$]=S.useState(!0),I=()=>{const me="ABCDEFGHIJKLMNOPQRSTUVWXYZ",xe="abcdefghijklmnopqrstuvwxyz",Re="0123456789",Ve="!@#$%^&*()_+~`|}{[]:;?><,./-=";let Ue="",Ye="";i&&(Ue+=me),c&&(Ue+=xe),f&&(Ue+=Re),g&&(Ue+=Ve),Ue===""&&(u(!0),Ue=xe);for(let tt=0;tt<n;tt++){const pe=Math.floor(Math.random()*Ue.length);Ye+=Ue[pe]}E(Ye),e==null||e(Ye),ee(Ye)},ee=me=>{let xe=0;me.length>=8&&(xe+=1),me.length>=12&&(xe+=1),me.length>=16&&(xe+=1),/[A-Z]/.test(me)&&(xe+=1),/[a-z]/.test(me)&&(xe+=1),/[0-9]/.test(me)&&(xe+=1),/[^A-Za-z0-9]/.test(me)&&(xe+=1),T(Math.min(xe,5))},z=()=>{navigator.clipboard.writeText(x),M(!0),setTimeout(()=>M(!1),2e3),Bt.success("Password copied to clipboard")};S.useEffect(()=>{I()},[]);const q=()=>N<=1?{label:"Very Weak",color:"bg-red-500"}:N===2?{label:"Weak",color:"bg-orange-500"}:N===3?{label:"Moderate",color:"bg-yellow-500"}:N===4?{label:"Strong",color:"bg-green-500"}:{label:"Very Strong",color:"bg-emerald-500"},{label:ie,color:be}=q();return m.jsxs("div",{className:"bg-white/70 dark:bg-gray-900/70 backdrop-blur-xl border border-white/30 dark:border-gray-800/30 rounded-xl p-6 space-y-5 shadow-premium overflow-hidden",children:[m.jsxs("div",{className:"flex flex-col relative spotlight-effect",children:[m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:"text",value:x,readOnly:!0,className:"w-full h-14 px-4 pr-20 text-lg bg-gray-50/80 dark:bg-gray-900/80 border border-gray-200/80 dark:border-gray-800/80 rounded-lg font-mono"}),m.jsxs("div",{className:"absolute right-2 top-2 flex space-x-1",children:[m.jsx("div",{children:m.jsx(wt,{variant:"glass",size:"icon",onClick:I,className:"h-10 w-10 rounded-lg",children:m.jsx(Hx,{size:18})})}),m.jsx("div",{children:m.jsx(wt,{variant:"glass",size:"icon",onClick:z,className:"h-10 w-10 rounded-lg relative",children:R?m.jsx("div",{children:m.jsx(ey,{size:18,className:"text-green-500"})},"check"):m.jsx("div",{children:m.jsx(Vf,{size:18})},"copy")})})]})]}),m.jsxs("div",{className:"mt-2 flex items-center space-x-2",children:[m.jsxs("div",{className:"text-sm font-medium flex items-center gap-1",children:[m.jsx(kl,{size:14,className:"text-primary"}),"Strength:"]}),m.jsx("div",{className:"flex-1 h-2 bg-gray-200 dark:bg-gray-800 rounded-full overflow-hidden",children:m.jsx("div",{className:`h-full ${be} transition-all`})}),m.jsx("div",{className:"text-sm font-medium",children:ie})]})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("h3",{className:"text-base font-medium",children:"Password Settings"}),m.jsx(wt,{variant:"ghost",size:"icon-sm",onClick:()=>$(!D),className:"h-6 w-6",children:D?m.jsx(cD,{size:16}):m.jsx(iD,{size:16})})]}),D&&m.jsxs("div",{className:"space-y-4 overflow-hidden",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("div",{className:"flex justify-between items-center",children:m.jsxs("label",{className:"text-sm font-medium",children:["Password Length: ",n]})}),m.jsx(dC,{value:[n],min:8,max:32,step:1,onValueChange:me=>a(me[0]),className:"py-2"}),m.jsxs("div",{className:"flex justify-between text-xs text-gray-500",children:[m.jsx("span",{children:"8"}),m.jsx("span",{children:"16"}),m.jsx("span",{children:"24"}),m.jsx("span",{children:"32"})]})]}),m.jsxs("div",{className:"space-y-3 mt-5",children:[m.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-gray-50/80 dark:bg-gray-900/80 border border-gray-100/80 dark:border-gray-800/80 transition-colors",children:[m.jsx("label",{className:"text-sm",children:"Include Uppercase Letters"}),m.jsx(lu,{checked:i,onCheckedChange:s})]}),m.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-gray-50/80 dark:bg-gray-900/80 border border-gray-100/80 dark:border-gray-800/80 transition-colors",children:[m.jsx("label",{className:"text-sm",children:"Include Lowercase Letters"}),m.jsx(lu,{checked:c,onCheckedChange:u})]}),m.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-gray-50/80 dark:bg-gray-900/80 border border-gray-100/80 dark:border-gray-800/80 transition-colors",children:[m.jsx("label",{className:"text-sm",children:"Include Numbers"}),m.jsx(lu,{checked:f,onCheckedChange:p})]}),m.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-gray-50/80 dark:bg-gray-900/80 border border-gray-100/80 dark:border-gray-800/80 transition-colors",children:[m.jsx("label",{className:"text-sm",children:"Include Symbols"}),m.jsx(lu,{checked:g,onCheckedChange:b})]})]})]}),m.jsx("div",{className:"w-full",children:m.jsxs(wt,{variant:"premium",onClick:I,className:"w-full py-6 rounded-lg",children:[m.jsx(Hx,{size:16,className:"mr-2"}),"Generate New Password"]})})]})},fU=()=>{const[e,n]=S.useState(""),[a,i]=S.useState([]),s=f=>{n(f)},c=()=>
346{if(!e){Bt.error("Please generate a password first");return}i([{password:e,date:new Date().toLocaleDateString()},...a]),Bt.success("Password saved to history")},u=f=>{navigator.clipboard.writeText(f),Bt.success("Password copied to clipboard")};return m.jsxs("div",{className:"min-h-screen flex flex-col",children:[m.jsx(ds,{}),m.jsx("main",{className:"flex-1 pt-24 pb-16 px-4",children:m.jsxs("div",{className:"container mx-auto max-w-6xl",children:[m.jsx("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center mb-8 space-y-4 md:space-y-0",children:m.jsxs("div",{children:[m.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Password Generator"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Create strong, unique passwords for your accounts"})]})}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[m.jsxs("div",{className:"lg:col-span-2",children:[m.jsx(dU,{onChange:s}),m.jsx("div",{className:"mt-6 flex justify-end",children:m.jsxs(wt,{onClick:c,className:"rounded-lg",children:[m.jsx(YD,{size:16,className:"mr-2"}),"Save to History"]})}),m.jsxs("div",{className:"mt-10 glass-panel rounded-xl p-6",children:[m.jsxs("h3",{className:"text-xl font-semibold mb-4 flex items-center",children:[m.jsx(kl,{size:20,className:"mr-2 text-green-500"}),"Password Strength Tips"]}),m.jsx("ul",{className:"space-y-3",children:["Use a minimum of 12 characters","Include uppercase and lowercase letters","Add numbers and special characters","Avoid using easily guessable information","Use a unique password for each account","Consider using a passphrase for better memorability"].map((f,p)=>m.jsxs("li",{className:"flex items-start",children:[m.jsx("div",{className:"h-5 w-5 rounded-full bg-green-100 dark:bg-green-900/20 flex items-center justify-center text-green-600 dark:text-green-400 shrink-0 mt-0.5 mr-3",children:m.jsx(hU,{className:"h-3 w-3"})}),m.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:f})]},p))})]})]}),m.jsxs("div",{className:"glass-panel rounded-xl p-6 overflow-hidden",children:[m.jsxs("h3",{className:"text-xl font-semibold mb-4 flex items-center",children:[m.jsx($x,{size:20,className:"mr-2 text-blue-500"}),"Password History"]}),a.length===0?m.jsxs("div",{className:"text-center py-10",children:[m.jsx("div",{className:"rounded-full bg-gray-100 dark:bg-gray-800 p-3 inline-flex items-center justify-center mb-3",children:m.jsx($x,{size:24,className:"text-gray-400"})}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Your saved passwords will appear here"})]}):m.jsx("div",{className:"space-y-3 max-h-[500px] overflow-y-auto pr-2",children:a.map((f,p)=>m.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900/50 rounded-lg p-3 border border-gray-100 dark:border-gray-800 flex justify-between items-center",children:[m.jsxs("div",{className:"flex-1 mr-3",children:[m.jsx("div",{className:"font-mono text-sm truncate",children:f.password}),m.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:f.date})]}),m.jsx(wt,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-800",onClick:()=>u(f.password),children:m.jsx(Vf,{size:14})})]},p))})]})]})]})}),m.jsx(fh,{})]})},hU=({className:e})=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:m.jsx("polyline",{points:"20 6 9 17 4 12"})});function mU(){const[e,n]=S.useState({x:0,y:0}),[a,i]=S.useState("hero"),s=ps(),c=S.useRef(null),u=S.useRef(null),f=S.useRef(null),p=S.useRef(null),g=BL(),b=()=>{s("/auth")},x=N=>{var T;(T=N.current)==null||T.scrollIntoView({behavior:"smooth"})};S.useEffect(()=>{const N=R=>{n({x:R.clientX,y:R.clientY})},T=()=>{if(!c.current||!u.current||!f.current||!p.current)return;const R=window.scrollY+window.innerHeight/2;R<u.current.offsetTop?i("hero"):R>=u.current.offsetTop&&R<f.current.offsetTop?i("features"):R>=f.current.offsetTop&&R<p.current.offsetTop?i("howItWorks"):i("cta")};return g.start({opacity:1,y:0}),window.addEventListener("mousemove",N),window.addEventListener("scroll",T),()=>{window.removeEventListener("mousemove",N),window.removeEventListener("scroll",T)}},[g]);const E={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.7,ease:[.22,1,.36,1]}}};return m.jsxs("div",{className:"min-h-screen bg-white dark:bg-navy overflow-hidden",children:[m.jsx(ds,{}),m.jsxs("div",{className:"fixed right-4 top-1/2 -translate-y-1/2 z-40 hidden lg:flex flex-col items-center space-y-4",children:[m.jsx("div",{className:`scroll-indicator-dot cursor-pointer ${a==="hero"?"active":""}`,onClick:()=>x(c)}),m.jsx("div",{className:`scroll-indicator-dot cursor-pointer ${a==="features"?"active":""}`,onClick:()=>x(u)}),m.jsx("div",{className:`scroll-indicator-dot cursor-pointer ${a==="howItWorks"?"active":""}`,onClick:()=>x(f)}),m.jsx("div",{className:`scroll-indicator-dot cursor-pointer ${a==="cta"?"active":""}`,onClick:()=>x(p)})]}),m.jsxs("section",{ref:c,className:"pt-32 pb-20 px-4 md:pt-40 md:pb-32 relative",children:[m.jsx("div",{className:"particles-container",children:[...Array(20)].map((N,T)=>
346m.jsx(It.div,{className:"absolute rounded-full bg-teal/10 dark:bg-teal/5",style:{width:Math.random()*6+2,height:Math.random()*6+2,left:`${Math.random()*100}%`,top:`${Math.random()*100}%`},animate:{y:[0,-20,0],opacity:[.3,.8,.3]},transition:{duration:Math.random()*3+2,repeat:1/0,delay:Math.random()*5}},T))}),m.jsxs("div",{className:"container mx-auto max-w-6xl relative z-10",children:[m.jsx("div",{className:"absolute -top-20 right-10 w-64 h-64 rounded-full bg-linear-to-br from-teal/5 to-teal/10 blur-3xl"}),m.jsx("div",{className:"absolute bottom-10 left-10 w-32 h-32 rounded-full bg-linear-to-tr from-gold/5 to-gold/10 blur-3xl"}),m.jsx("div",{className:"absolute top-40 -right-20 w-80 h-80 rounded-full border border-teal/5 opacity-20"}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[m.jsxs(It.div,{className:"text-left",initial:"hidden",animate:"visible",variants:E,children:[m.jsxs("div",{className:"mb-8 inline-flex items-center px-3 py-1 space-x-1 border border-teal/10 rounded-full text-xs font-medium text-teal",children:[m.jsx(Dl,{className:"w-3.5 h-3.5 mr-1.5"}),m.jsx("span",{children:"Zero-Knowledge Encryption"})]}),m.jsx("div",{className:"text-reveal-container",children:m.jsxs(It.h1,{className:"font-poppins text-h1 font-bold text-navy dark:text-white mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.2},children:["Your Passwords, ",m.jsx("span",{className:"text-teal",children:"Your Control"})]})}),m.jsx(It.p,{className:"text-body text-gray-600 dark:text-gray-300 mb-8 max-w-md",initial:{opacity:0}
346,animate:{opacity:1},transition:{duration:.7,delay:.4},children:"VaultKey combines elegant encryption with intuitive design. Manage your passwords with confidence, knowing your data never leaves your device unprotected."}),m.jsxs(It.div,{className:"flex items-center space-x-4",initial:{opacity:0},animate:{opacity:1},transition:{duration:.7,delay:.6},children:[m.jsxs(wt,{onClick:b,className:"rounded-xl px-6 py-6 text-white shadow-md text-sm",children:["Get Started",m.jsx(bf,{className:"ml-2 h-4 w-4"})]}),m.jsxs("a",{href:"/generator",className:"group flex items-center text-sm text-gray-600 dark:text-gray-300 hover:text-teal dark:hover:text-teal transition-colors animated-underline",children:[m.jsx("span",{children:"Try password generator"}),m.jsx(bf,{className:"ml-1 h-3 w-3 transform group-hover:translate-x-1 transition-transform"})]})]}),m.jsx(It.div,{className:"mt-16 grid grid-cols-3 gap-6",initial:{opacity:0},animate:{opacity:1},transition:{duration:.7,delay:.8},children:[{label:"Security",value:"Client-Side"},{label:"Encryption",value:"AES-256"},{label:"Architecture",value:"Zero-Knowledge"}].map((N,T)=>m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400 mb-1",children:N.label}),m.jsx("span",{className:"text-navy dark:text-white font-semibold",children:N.value})]},T))})]}),m.jsx(It.div,{className:"relative",initial:{opacity:0}
346,animate:{opacity:1},transition:{duration:1,delay:.3},children:m.jsx("div",{className:"aspect-square max-w-md mx-auto relative",children:m.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:m.jsxs("div",{className:"relative w-full h-full",children:[m.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[m.jsx("div",{className:"w-48 h-48 rounded-full border border-teal/20 dark:border-teal/10 opacity-80 animate-slow-spin"}),m.jsx("div",{className:"w-64 h-64 rounded-full border border-teal/20 dark:border-teal/10 opacity-80 animate-reverse-spin"}),m.jsx("div",{className:"w-80 h-80 rounded-full border border-teal/20 dark:border-teal/10 opacity-80 animate-slow-spin"})]}),m.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",children:m.jsxs("div",{className:"relative",children:[m.jsx(It.div,{className:"w-24 h-24 rounded-full bg-gradient-teal flex items-center justify-center shadow-teal-glow",animate:{boxShadow:["0 0 20px 0px rgba(45, 212, 191, 0.3)","0 0 20px 5px rgba(45, 212, 191, 0.5)","0 0 20px 0px rgba(45, 212, 191, 0.3)"]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:m.jsx(yu,{className:"w-8 h-8 text-white"})}),m.jsx(It.div,{className:"absolute -top-6 -right-12 w-8 h-8 rounded-lg bg-white dark:bg-navy-800 shadow-md flex items-center justify-center",animate:{y:[0,-10,0]},transition:{repeat:1/0,duration:4,ease:"easeInOut"},children:m.jsx(Jp,{className:"w-4 h-4 text-teal"})}),m.jsx(It.div,{className:"absolute -bottom-4 -left-10 w-8 h-8 rounded-lg bg-white dark:bg-navy-800 shadow-md flex items-center justify-center",animate:{y:[0,10,0]},transition:{repeat:1/0,duration:5,ease:"easeInOut"},children:m.jsx(Ol,{className:"w-4 h-4 text-gold"})}),m.jsx(It.div,{className:"absolute top-16 right-0 w-8 h-8 rounded-lg bg-white dark:bg-navy-800 shadow-md flex items-center justify-center",animate:{y:[0,8,0]},transition:{repeat:1/0,duration:6,ease:"easeInOut",delay:1},children:m.jsx(Fx,{className:"w-4 h-4 text-navy dark:text-white"})}),m.jsx(It.div,{className:"absolute top-26 -right-20 w-8 h-8 rounded-lg bg-white dark:bg-navy-800 shadow-md flex items-center justify-center",transition:{repeat:1/0,duration:7,ease:"easeInOut",delay:1},children:m.jsx(MD,{className:"w-4 h-4 text-orange-500"})})]})})]})})})})]})]})]}),m.jsx("div",{className:"w-full overflow-hidden relative h-28",children:m.jsx("svg",{className:"w-full absolute top-0",viewBox:"0 0 1440 100",preserveAspectRatio:"none",children:m.jsx("path",{d:"M0,30 C240,120 720,-10 1440,40 L1440,100 L0,100 Z",fill:"#2dd4bf",fillOpacity:"0.4"})})}),m.jsxs("section",{ref:u,className:"relative py-24 px-4 overflow-hidden bg-linear-to-br from-white to-gray-50 dark:from-navy dark:to-navy-900",children:[m.jsx("div",{className:"absolute top-1/4 left-1/4 w-[600px] h-[600px] rounded-full bg-linear-to-br from-teal/5 to-teal/2 opacity-50 blur-xl"}),m.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-[600px] h-[600px] rounded-full bg-linear-to-br from-gold/5 to-gold/2 opacity-30 blur-xl"}),m.jsxs("div",{className:"container mx-auto max-w-6xl relative z-10",children:[m.jsxs(It.div,{className:"mb-16 inline-flex w-full  items-center flex-col",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[m.jsxs("div",{className:"inline-flex items-center px-3 py-1 space-x-1 border border-teal/10 rounded-full text-xs font-medium text-teal mb-4",children:[m.jsx(Gx,{className:"w-3.5 h-3.5 mr-1.5"}),m.jsx("span",{children:"Core Principles"})]}),m.jsx("h2",{className:"font-poppins text-h2 font-bold mb-4 text-navy dark:text-white",children:"Designed for true privacy"}),m.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-body",children:"Your credentials remain exclusively yours"})]}),m.jsx(It.div,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[{icon:kl,title:"Zero-Knowledge Security",description:"Your data is encrypted with AES-256 before leaving your device. We never see your passwords - only you have the key."},{icon:Dl,title:"Master Password Protection",description:"One master password unlocks your vault. With client-side encryption and secure hashing, your master key never leaves your device."},{icon:Ol,title:"Password Generator",description:"Create strong, unique passwords with our advanced generator. Customize length, include special characters, and track password history."},{icon:Fx,title:"Smart Organization",description:"Categorize passwords, add notes, and quickly find what you need with powerful search and filtering options."},{icon:Jp,title:"Security First",description:"Auto-logout, password strength assessment, and secure password verification ensure your data stays protected."},{icon:Gx,title:"Modern Experience",description:"Clean interface with dark mode, quick copy features, and website favicon integration for a seamless password management experience."}].map((N,T)=>m.jsx("div",{children:m.jsxs(ss,{variant:"hover",className:"h-full group",children:[m.jsxs(cu,{children:[m.jsxs("div",{className:"w-12 h-12 mb-6 relative overflow-hidden rounded-xl",children:[m.jsx("div",{className:"absolute inset-0 bg-gradient-teal opacity-10 group-hover:opacity-20 transition-opacity"}),m.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:m.jsx(N.icon,{className:"h-6 w-6 text-teal"})})]}),m.jsx(bl,{className:"text-xl mb-3",children:N.title})]}),m.jsx(xl,{children:m.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm leading-relaxed",children:N.description})})]})},T))})]})]}),m.jsxs("section",{ref:f,className:"py-24 px-4 relative overflow-hidden",children:[m.jsx("div",{className:"absolute inset-0 bg-gradient-mesh opacity-20 -z-10"}),m.jsxs("div",{className:"container mx-auto max-w-6xl",children:[m.jsxs(It.div,{className:"text-center inline-flex w-full items-center flex-col mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},children:[m.jsxs("div",{className:"inline-flex items-center px-3 py-1 space-x-1 border border-teal/10 rounded-full text-xs font-medium text-teal mb-4",children:[m.jsx(kl,{className:"w-3.5 h-3.5 mr-1.5"}),m.jsx("span",{children:"How It Works"})]}),m.jsxs("h2",{className:"font-poppins text-h2 mb-4 font-bold text-navy dark:text-white",children:["Simple on the surface,"," "]}),m.jsx("span",{className:"text-gray-600 dark:text-gray-300 text-body",children:"Secure underneath"})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 mb-24",children:[m.jsx(It.div,{className:"parallax-container",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},children:m.jsxs(ss,{variant:"premium",className:"h-full relative overflow-hidden py-10 px-4",children:[m.jsx(cu,{children:m.jsx(bl,{className:"text-2xl mb-6",children:"Encryption at your fingertips"})}),m.jsxs(xl,{className:"space-y-6",children:[m.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:"Your vault is secured with AES-256 encryption, the gold standard in data protection. Your master password creates a unique encryption key that never leaves your device, ensuring only you can access your data."}),m.jsx("ul",{className:"space-y-3",children:["Zero-knowledge architecture - we can't access your data","Client-side encryption with secure key derivation","Automatic secure logout for protection","Password strength monitoring and alerts"].map((N,T)=>m.jsxs(IS,{depth:1,className:"flex items-start",children:[m.jsx("div",{className:"shrink-0 h-6 w-6 rounded-full bg-teal/10 flex items-center justify-center mt-0.5 mr-3",children:m.jsx("span",{className:"h-2 w-2 bg-teal rounded-full"})}),m.jsx("span",{className:"text-navy-800 dark:text-gray-300",children:N})]},T))})]})]})}),m.jsx(It.div,{className:"flex items-center justify-center",initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7,delay:.2},children:m.jsxs("div",{className:"relative w-full max-w-md aspect-square",children:[m.jsx("div",{className:"absolute w-full h-full rounded-full bg-linear-to-br from-teal/5 to-teal/2 animate-pulse-glow"}),m.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[m.jsx(It.div,{animate:{rotate:[0,360]},transition:{duration:120,repeat:1/0,ease:"linear"},children:m.jsx("svg",{className:"w-3/4 h-3/4 text-teal/10",viewBox:"0 0 24 24",fill:"
346currentColor",children:m.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-15a3 3 0 00-3 3v2a3 3 0 006 0v-2a3 3 0 00-3-3zm1 13h-2v-2h2v2zm-2-4v-2.1A5 5 0 0117 9v-.5a5 5 0 10-10 0V9a5 5 0 016 4.9V16h-2z"})})}),m.jsx(It.div,{animate:{scale:[1,1.05,1]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},children:m.jsx(yu,{className:"absolute w-12 h-12 text-teal"})})]})]})})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16",children:[m.jsx(It.div,{className:"flex items-center justify-center order-last lg:order-first",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},children:m.jsx("div",{className:"grid grid-cols-2 gap-6 w-full",children:[{step:1,title:"Magic Link Sign In",description:"Secure passwordless authentication via email"},{step:2,title:"Set Master Password",description:"Create one strong key to unlock your vault"},{step:3,title:"Add Passwords",description:"Store and organize your credentials securely"},{step:4,title:"Access Anywhere",description:"Quick, secure access to your passwords"}].map(N=>m.jsxs(It.div,{className:"glass-panel p-6 shadow-lg",whileHover:{y:-5,boxShadow:"0 0 20px 0px rgba(45, 212, 191, 0.3)"},transition:{duration:.3},children:[m.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-teal opacity-10 flex items-center justify-center mb-4",children:m.jsx("span",{className:"text-sm font-bold text-teal",children:N.step})}),m.jsx("h4",{className:"font-medium text-navy-800 dark:text-white text-sm mb-2",children:N.title}),m.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:N.description})]},N.step))})}),m.jsx(It.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7,delay:.2},children:m.jsx(ss,{variant:"gradient",className:"h-full",children:m.jsxs("div",{className:"pt-6",children:[m.jsx(cu,{children:m.jsx(bl,{className:"text-2xl mb-6",children:"Security Made Simple"})}),m.jsxs(xl,{className:"space-y-6",children:[m.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:"VaultKey combines advanced security with an intuitive workflow, making password management both secure and effortless."}),m.jsx("div",{className:"space-y-6",children:[{title:"Local Encryption",description:"All passwords are encrypted on your device before storage"},{title:"Passwordless Auth",description:"No need to remember another password for login"},{title:"Instant Access",description:"Quick copy, auto-fill, and secure password sharing"}].map((N,T)=>m.jsxs("div",{className:"flex",children:[m.jsx("div",{className:"shrink-0 h-10 w-10 rounded-full bg-gradient-teal opacity-10 flex items-center justify-center mr-4 mt-1",children:m.jsx("span",{className:"font-medium text-teal",children:T+1})}),m.jsxs("div",{children:[m.jsx("h4",{className:"font-medium text-navy-800 dark:text-white mb-1",children:N.title}),m.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:N.description})]})]},T))})]})]})})})]})]})]}),m.jsxs("section",{ref:p,className:"py-24 px-4 relative overflow-hidden bg-gradient-to-br from-gray-50 to-white dark:from-navy dark:to-navy-900",children:[m.jsx("div",{className:"absolute -top-40 -right-40 w-96 h-96 rounded-full bg-teal/10 blur-3xl"}),m.jsx("div",{className:"absolute -bottom-40 -left-40 w-96 h-96 rounded-full bg-gold/5 blur-3xl"}),m.jsx("div",{className:"container mx-auto max-w-5xl",children:m.jsxs(It.div,{className:"relative z-10 mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[m.jsx(ss,{variant:"gradient",className:"overflow-hidden",children:m.jsxs("div",{className:"p-12 md:p-16",children:[m.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[m.jsxs("div",{className:"max-w-md",children:[m.jsx(bl,{gradient:!0,className:"text-3xl md:text-4xl mb-4",children:"Ready to secure your digital life?"}),m.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-0",children:"Start protecting your passwords with military-grade encryption, under your control."})]}),m.jsxs(wt,{onClick:b,className:"whitespace-nowrap rounded-xl px-8 py-6 bg-gradient-teal hover:shadow-teal-glow text-white shadow-md font-normal",children:["Get Started",m.jsx(bf,{className:"ml-2 h-4 w-4"})]})]}),m.jsx("div",{className:"absolute top-5 right-5 grid grid-cols-3 gap-1.5",children:[...Array(9)].map((N,T)=>m.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-teal/20"},T))})]})}),m.jsx("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-6",children:[{quote:"Finally found a password manager that puts security first without compromising on usability.",name:"Alex M.",role:"Security Engineer"},{quote:"The password generator and strength checker have helped me upgrade all my weak passwords.",name:"Sarah L.",role:"Business Owner"},{quote:"Clean interface, quick access to passwords, and knowing my data is encrypted gives me peace of mind.",name:"Michael R.",role:"IT Professional"}].map((N,T)=>m.jsx(It.div,{className:"h-full",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:T*.2},whileHover:{y:-10,transition:{duration:.3}},children:m.jsx(ss,{variant:"glass",className:"h-full",children:m.jsxs(xl,{className:"p-6 flex flex-col h-full",children:[m.jsx("div",{className:"flex-1",children:m.jsxs("p",{className:"text-navy-800 dark:text-gray-300 italic mb-4",children:['"',N.quote,'"']})}),m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-navy dark:text-white",children:N.name}),m.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:N.role})]})]})})},T))}),m.jsxs("div",{className:"mt-20",children:[m.jsx("div",{className:"text-center mb-8",children:m.jsx("p",{className:"text-sm uppercase tracking-wider text-gray-500 dark:text-gray-400 font-medium",children:"Trusted by teams worldwide"})}),m.jsx("div",{className:"flex flex-wrap justify-center items-center gap-8 md:gap-12",children:[1,2,3,4,5].map(N=>m.jsx("div",{className:"h-7 w-24 bg-gray-300/30 dark:bg-gray-700/30 rounded-md blur-0 backdrop-blur-sm"},N))})]})]})})]}),m.jsx(fh,{})]})}function pU(){return m.jsx(gR,{defaultTheme:"dark",storageKey:"vite-ui-theme",children:m.jsx(aR,{
346children:m.jsxs(PT,{children:[m.jsx(vl,{path:"/",element:m.jsx(mU,{})}),m.jsx(vl,{path:"/auth",element:m.jsx($L,{})}),m.jsx(vl,{path:"/verify",element:m.jsx(FL,{})}),m.jsx(vl,{path:"/dashboard",element:m.jsx(qL,{children:m.jsx(BV,{})})}),m.jsx(vl,{path:"/generator",element:m.jsx(fU,{})})]})})})}q2.createRoot(document.getElementById("root")).render(m.jsx(S.StrictMode,{children:m.jsx(pU,{})}));

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.