PageSourceSearch

https://studiorsafilms.onhercules.app/assets/index-CzulsPuv.js

js studiorsafilms.onhercules.app collected 2026-10-03 05:06:32 UTC 810,062 bytes, 99 lines download raw bytes

vendor: 4,925 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-CdWr1ncP.js","assets/empty-0Xz1sdH3.js","assets/format-DI_lVtyD.js","assets/en-US-BZ0UpF_e.js","assets/star-63wyDKqd.js","assets/page-JYdXMWNP.js","assets/label-DnMXf8lg.js","assets/input-QwY6SgUw.js","assets/textarea-Q62--htq.js","assets/check-BI_Kg9Qr.js","assets/pencil-CWE1qtwz.js","assets/sparkles-Dxqovfeq.js","assets/film-BpgTnldF.js","assets/dollar-sign-B5gOBXUf.js","assets/calendar-AlN4NibP.js","assets/dialog-D6ffYHiK.js","assets/user-CRUfvfoO.js","assets/trash-2-CeRL-6Q7.js","assets/page-B-sSNRem.js","assets/circle-check-big-Cy4C5Ue-.js","assets/tag-Cim_0yT4.js","assets/circle-alert-BbTGnFuq.js","assets/lock-eCF8dq9M.js","assets/eye-CPjvOU5-.js","assets/error-state-DW2tT5gn.js","assets/page-Bzw58jr-.js","assets/arrow-left-DHHb6kk2.js","assets/AdminLayout-Cm7MONhp.js","assets/receipt-BX0iiQ9U.js","assets/users-BwQx7tkC.js","assets/page-BfhX_DhR.js","assets/plus-Bsed5zxc.js","assets/page-BvHbGpXi.js","assets/MovieForm-C8OoU3lE.js","assets/select-DytL1QPc.js","assets/index-eRjVCUHI.js","assets/switch-DrCoJSCZ.js","assets/page-Bs0tm1Yr.js","assets/page-DR4qPPwZ.js","assets/page-CaBo5nu7.js","assets/trending-up-RDND3XmN.js","assets/page-dR_mzEm6.js","assets/page-CmuyyMzu.js","assets/badge-DG0mcZza.js","assets/page-CoX0BRw6.js","assets/megaphone-Cn7yyBQH.js","assets/page-CDfFnDsh.js"])))=>i.map(i=>d[i]);
2function tM(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(s,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function __(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tp={exports:{}},Ko={};var dw;function nM(){if(dw)return Ko;dw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(s,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var d in a)d!=="key"&&(l[d]=a[d])}else l=a;return a=l.ref,{$$typeof:e,type:s,key:c,ref:a!==void 0?a:null,props:l}}return Ko.Fragment=t,Ko.jsx=n,Ko.jsxs=n,Ko}var fw;function rM(){return fw||(fw=1,tp.exports=nM()),tp.exports}var S=rM(),np={exports:{}},Yo={},rp={exports:{}},sp={};var hw;function sM(){return hw||(hw=1,(function(e){function t(N,Q){var Z=N.length;N.push(Q);e:for(;0<Z;){var J=Z-1>>>1,Y=N[J];if(0<a(Y,Q))N[J]=Q,N[Z]=Y,Z=J;else break e}}function n(N){return N.length===0?null:N[0]}function s(N){if(N.length===0)return null;var Q=N[0],Z=N.pop();if(Z!==Q){N[0]=Z;e:for(var J=0,Y=N.length,D=Y>>>1;J<D;){var H=2*(J+1)-1,X=N[H],re=H+1,se=N[re];if(0>a(X,Z))re<Y&&0>a(se,X)?(N[J]=se,N[re]=Z,J=re):(N[J]=X,N[H]=Z,J=H);else if(re<Y&&0>a(se,Z))N[J]=se,N[re]=Z,J=re;else break e}}return Q}function a(N,Q){var Z=N.sortIndex-Q.sortIndex;return Z!==0?Z:N.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],p=[],y=1,m=null,v=3,x=!1,_=!1,E=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function M(N){for(var Q=n(p);Q!==null;){if(Q.callback===null)s(p);else if(Q.startTime<=N)s(p),Q.sortIndex=Q.expirationTime,t(f,Q);else break;Q=n(p)}}function j(N){if(E=!1,M(N),!_)if(n(f)!==null)_=!0,U||(U=!0,ae());else{var Q=n(p);Q!==null&&de(j,Q.startTime-N)}}var U=!1,I=-1,z=5,K=-1;function ee(){return T?!0:!(e.unstable_now()-K<z)}function ie(){if(T=!1,U){var N=e.unstable_now();K=N;var Q=!0;try{e:{_=!1,E&&(E=!1,k(I),I=-1),x=!0;var Z=v;try{t:{for(M(N),m=n(f);m!==null&&!(m.expirationTime>N&&ee());){var J=m.callback;if(typeof J=="function"){m.callback=null,v=m.priorityLevel;var Y=J(m.expirationTime<=N);if(N=e.unstable_now(),typeof Y=="function"){m.callback=Y,M(N),Q=!0;break t}m===n(f)&&s(f),M(N)}else s(f);m=n(f)}if(m!==null)Q=!0;else{var D=n(p);D!==null&&de(j,D.startTime-N),Q=!1}}break e}finally{m=null,v=Z,x=!1}Q=void 0}}finally{Q?ae():U=!1}
vendor: 16,788 bytes, line 2
2}}var ae;if(typeof R=="function")ae=function(){R(ie)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,me=pe.port2;pe.port1.onmessage=ie,ae=function(){me.postMessage(null)}}else ae=function(){C(ie,0)};function de(N,Q){I=C(function(){N(e.unstable_now())},Q)}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(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(N){switch(v){case 1:case 2:case 3:var Q=3;break;default:Q=v}var Z=v;v=Q;try{return N()}finally{v=Z}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(N,Q){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var Z=v;v=N;try{return Q()}finally{v=Z}},e.unstable_scheduleCallback=function(N,Q,Z){var J=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?J+Z:J):Z=J,N){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=Z+Y,N={id:y++,callback:Q,priorityLevel:N,startTime:Z,expirationTime:Y,sortIndex:-1},Z>J?(N.sortIndex=Z,t(p,N),n(f)===null&&N===n(p)&&(E?(k(I),I=-1):E=!0,de(j,Z-J))):(N.sortIndex=Y,t(f,N),_||x||(_=!0,U||(U=!0,ae()))),N},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(N){var Q=v;return function(){var Z=v;v=Q;try{return N.apply(this,arguments)}finally{v=Z}}}})(sp)),sp}var pw;function iM(){return pw||(pw=1,rp.exports=sM()),rp.exports}var ip={exports:{}},_e={};var mw;function aM(){if(mw)return _e;mw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),v=Symbol.iterator;function x(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function C(D,H,X){this.props=D,this.context=H,this.refs=T,this.updater=X||_}C.prototype.isReactComponent={},C.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,H,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function k(){}k.prototype=C.prototype;function R(D,H,X){this.props=D,this.context=H,this.refs=T,this.updater=X||_}var M=R.prototype=new k;M.constructor=R,E(M,C.prototype),M.isPureReactComponent=!0;var j=Array.isArray;function U(){}var I={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function K(D,H,X){var re=X.ref;return{$$typeof:e,type:D,key:H,ref:re!==void 0?re:null,props:X}}function ee(D,H){return K(D.type,H,D.props)}function ie(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function ae(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(X){return H[X]})}var pe=/\/+/g;function me(D,H){return typeof D=="object"&&D!==null&&D.key!=null?ae(""+D.key):H.toString(36)}function de(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(U,U):(D.status="pending",D.then(function(H){D.status==="pending"&&(D.status="fulfilled",D.value=H)},function(H){D.status==="pending"&&(D.status="rejected",D.reason=H)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function N(D,H,X,re,se){var oe=typeof D;(oe==="undefined"||oe==="boolean")&&(D=null);var he=!1;if(D===null)he=!0;else switch(oe){case"bigint":case"string":case"number":he=!0;break;case"object":switch(D.$$typeof){case e:case t:he=!0;break;case y:return he=D._init,N(he(D._payload),H,X,re,se)}}if(he)return se=se(D),he=re===""?"."+me(D,0):re,j(se)?(X="",he!=null&&(X=he.replace(pe,"$&/")+"/"),N(se,H,X,"",function(Vt){return Vt})):se!=null&&(ie(se)&&(se=ee(se,X+(se.key==null||D&&D.key===se.key?"":(""+se.key).replace(pe,"$&/")+"/")+he)),H.push(se)),1;he=0;var be=re===""?".":re+":";if(j(D))for(var we=0;we<D.length;we++)re=D[we],oe=be+me(re,we),he+=N(re,H,X,oe,se);else if(we=x(D),typeof we=="function")for(D=we.call(D),we=0;!(re=D.next()).done;)re=re.value,oe=be+me(re,we++),he+=N(re,H,X,oe,se);else if(oe==="object"){if(typeof D.then=="function")return N(de(D),H,X,re,se);throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return he}function Q(D,H,X){if(D==null)return D;var re=[],se=0;return N(D,re,"","",function(oe){return H.call(X,oe,se++)}),re}function Z(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(X){(D._status===0||D._status===-1)&&(D._status=1,D._result=X)},function(X){(D._status===0||D._status===-1)&&(D._status=2,D._result=X)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var J=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},Y={map:Q,forEach:function(D,H,X){Q(D,function(){H.apply(this,arguments)},X)},count:function(D){var H=0;return Q(D,function(){H++}),H},toArray:function(D){return Q(D,function(H){return H})||[]},only:function(D){if(!ie(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return _e.Activity=m,_e.Children=Y,_e.Component=C,_e.Fragment=n,_e.Profiler=a,_e.PureComponent=R,_e.StrictMode=s,_e.Suspense=f,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,_e.__COMPILER_RUNTIME={__proto__:null,c:function(D){return I.H.useMemoCache(D)}},_e.cache=function(D){return function(){return D.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(D,H,X){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var re=E({},D.props),se=D.key;if(H!=null)for(oe in H.key!==void 0&&(se=""+H.key),H)!z.call(H,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&H.ref===void 0||(re[oe]=H[oe]);var oe=arguments.length-2;if(oe===1)re.children=X;else if(1<oe){for(var he=Array(oe),be=0;be<oe;be++)he[be]=arguments[be+2];re.children=he}return K(D.type,se,re)},_e.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:l,_context:D},D},_e.createElement=function(D,H,X){var re,se={},oe=null;if(H!=null)for(re in H.key!==void 0&&(oe=""+H.key),H)z.call(H,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(se[re]=H[re]);var he=arguments.length-2;if(he===1)se.children=X;else if(1<he){for(var be=Array(he),we=0;we<he;we++)be[we]=arguments[we+2];se.children=be}if(D&&D.defaultProps)for(re in he=D.defaultProps,he)se[re]===void 0&&(se[re]=he[re]);return K(D,oe,se)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(D){return{$$typeof:d,render:D}},_e.isValidElement=ie,_e.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:Z}},_e.memo=function(D,H){return{$$typeof:p,type:D,compare:H===void 0?null:H}},_e.startTransition=function(D){var H=I.T,X={};I.T=X;try{var re=D(),se=I.S;se!==null&&se(X,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(U,J)}catch(oe){J(oe)}finally{H!==null&&X.types!==null&&(H.types=X.types),I.T=H}},_e.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},_e.use=function(D){return I.H.use(D)},_e.useActionState=function(D,H,X){return I.H.useActionState(D,H,X)},_e.useCallback=function(D,H){return I.H.useCallback(D,H)},_e.useContext=function(D){return I.H.useContext(D)},_e.useDebugValue=function(){},_e.useDeferredValue=function(D,H){return I.H.useDeferredValue(D,H)},_e.useEffect=function(D,H){return I.H.useEffect(D,H)},_e.useEffectEvent=function(D){return I.H.useEffectEvent(D)},_e.useId=function(){return I.H.useId()},_e.useImperativeHandle=function(D,H,X){return I.H.useImperativeHandle(D,H,X)},_e.useInsertionEffect=function(D,H){return I.H.useInsertionEffect(D,H)},_e.useLayoutEffect=function(D,H){return I.H.useLayoutEffect(D,H)},_e.useMemo=function(D,H){return I.H.useMemo(D,H)},_e.useOptimistic=function(D,H){return I.H.useOptimistic(D,H)},_e.useReducer=function(D,H,X){return I.H.useReducer(D,H,X)},_e.useRef=function(D){return I.H.useRef(D)},_e.useState=function(D){return I.H.useState(D)},_e.useSyncExternalStore=function(D,H,X){return I.H.useSyncExternalStore(D,H,X)},_e.useTransition=function(){return I.H.useTransition()},_e.version="19.2.4",_e}var gw;function Xm(){return gw||(gw=1,ip.exports=aM()),ip.exports}var ap={exports:{}},Ut={};var yw;function oM(){if(yw)return Ut;yw=1;var e=Xm();function t(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var s={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(f,p,y){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:f,containerInfo:p,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(f,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return l(f,p,null,y)},Ut.flushSync=function(f){var p=c.T,y=s.p;try{if(c.T=null,s.p=2,f)return f()}finally{c.T=p,s.p=y,s.d.f()}},Ut.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(f,p))},Ut.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},Ut.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var y=p.as,m=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?s.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:x}):y==="script"&&s.d.X(f,{crossOrigin:m,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);s.d.M(f,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(f)},Ut.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,m=d(y,p.crossOrigin);s.d.L(f,y,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(f,p){if(typeof f=="string")if(p){var y=d(p.as,p.crossOrigin);s.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(f)},Ut.requestFormReset=function(f){s.d.r(f)},Ut.unstable_batchedUpdates=function(f,p){return f(p)},Ut.useFormState=function(f,p,y){return c.H.useFormState(f,p,y)},Ut.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ut.version="19.2.4",Ut}var vw;function E_(){if(vw)return ap.exports;vw=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(t){console.error(t)}}return e(),ap.exports=oM(),ap.exports}var bw;function lM(){if(bw)return Yo;bw=1;var e=iM(),t=Xm(),n=E_();function s(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var i=r,o=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(o=i.return),r=i.return;while(r)}return i.tag===3?o:null}function c(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function d(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function f(r){if(l(r)!==r)throw Error(s(188))}function p(r){var i=r.alternate;if(!i){if(i=l(r),i===null)throw Error(s(188));return i!==r?null:r}for(var o=r,u=i;;){var h=o.return;if(h===null)break;var g=h.alternate;if(g===null){if(u=h.return,u!==null){o=u;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===o)return f(h),r;if(g===u)return f(h),i;g=g.sibling}throw Error(s(188))}if(o.return!==u.return)o=h,u=g;else{for(var w=!1,A=h.child;A;){if(A===o){w=!0,o=h,u=g;break}if(A===u){w=!0,u=h,o=g;break}A=A.sibling}if(!w){for(A=g.child;A;){if(A===o){w=!0,o=g,u=h;break}if(A===u){w=!0,u=g,o=h;break}A=A.sibling}if(!w)throw Error(s(189))}}if(o.alternate!==u)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?r:i}function y(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=y(r),i!==null)return i;r=r.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),R=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ae(r){return r===null||typeof r!="object"?null:(r=ie&&r[ie]||r["@@iterator"],typeof r=="function"?r:null)}var pe=Symbol.for("react.client.reference");function me(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===pe?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case j:return"Suspense";case U:return"SuspenseList";case K:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case _:return"Portal";case R:return r.displayName||"Context";case k:return(r._context.displayName||"Context")+".Consumer";case M:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case I:return i=r.displayName||null,i!==null?i:me(r.type)||"Memo";case z:i=r._payload,r=r._init;try{return me(r(i))}catch{}}return null}var de=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},J=[],Y=-1;function D(r){return{current:r}}function H(r){0>Y||(r.current=J[Y],J[Y]=null,Y--)}
vendor: 9,269 bytes, lines 2-9
2function X(r,i){Y++,J[Y]=r.current,r.current=i}var re=D(null),se=D(null),oe=D(null),he=D(null);function be(r,i){switch(X(oe,i),X(se,r),X(re,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?P0(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=P0(i),r=j0(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}H(re),X(re,r)}function we(){H(re),H(se),H(oe)}function Vt(r){r.memoizedState!==null&&X(he,r);var i=re.current,o=j0(i,r.type);i!==o&&(X(se,r),X(re,o))}function Pt(r){se.current===r&&(H(re),H(se)),he.current===r&&(H(he),Fo._currentValue=Z)}var Et,fn;function jt(r){if(Et===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Et=i&&i[1]||"",fn=-1<o.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+Et+r+fn}var Ja=!1;function Di(r,i){if(!r||Ja)return"";Ja=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(q){var $=q}Reflect.construct(r,[],W)}else{try{W.call()}catch(q){$=q}r.call(W.prototype)}}else{try{throw Error()}catch(q){$=q}(W=r())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(q){if(q&&$&&typeof q.stack=="string")return[q.stack,$.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),w=g[0],A=g[1];if(w&&A){var O=w.split(`
5`),V=A.split(`
6`);for(h=u=0;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;for(;h<V.length&&!V[h].includes("DetermineComponentFrameRoot");)h++;if(u===O.length||h===V.length)for(u=O.length-1,h=V.length-1;1<=u&&0<=h&&O[u]!==V[h];)h--;for(;1<=u&&0<=h;u--,h--)if(O[u]!==V[h]){if(u!==1||h!==1)do if(u--,h--,0>h||O[u]!==V[h]){var F=`
7`+O[u].replace(" at new "," at ");return r.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",r.displayName)),F}while(1<=u&&0<=h);break}}}finally{Ja=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?jt(o):""}function Fs(r,i){switch(r.tag){case 26:case 27:case 5:return jt(r.type);case 16:return jt("Lazy");case 13:return r.child!==i&&i!==null?jt("Suspense Fallback"):jt("Suspense");case 19:return jt("SuspenseList");case 0:case 15:return Di(r.type,!1);case 11:return Di(r.type.render,!1);case 1:return Di(r.type,!0);case 31:return jt("Activity");default:return""}}function eo(r){try{var i="",o=null;do i+=Fs(r,o),o=r,r=r.return;while(r);return i}catch(u){return`
8Error generating stack: `+u.message+`
9`+u.stack}}var hn=Object.prototype.hasOwnProperty,to=e.unstable_scheduleCallback,no=e.unstable_cancelCallback,$t=e.unstable_shouldYield,ns=e.unstable_requestPaint,qt=e.unstable_now,$d=e.unstable_getCurrentPriorityLevel,Qs=e.unstable_ImmediatePriority,Vl=e.unstable_UserBlockingPriority,Zs=e.unstable_NormalPriority,ro=e.unstable_LowPriority,Cr=e.unstable_IdlePriority,$l=e.log,rs=e.unstable_setDisableYieldValue,Gs=null,Ht=null;function Fn(r){if(typeof $l=="function"&&rs(r),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(Gs,r)}catch{}}var zt=Math.clz32?Math.clz32:rr,qd=Math.log,so=Math.LN2;function rr(r){return r>>>=0,r===0?32:31-(qd(r)/so|0)|0}var Ni=256,Pi=262144,Ks=4194304;function sr(r){var i=r&42;if(i!==0)return i;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function xe(r,i,o){var u=r.pendingLanes;if(u===0)return 0;var h=0,g=r.suspendedLanes,w=r.pingedLanes;r=r.warmLanes;var A=u&134217727;return A!==0?(u=A&~g,u!==0?h=sr(u):(w&=A,w!==0?h=sr(w):o||(o=A&~r,o!==0&&(h=sr(o))))):(A=u&~g,A!==0?h=sr(A):w!==0?h=sr(w):o||(o=u&~r,o!==0&&(h=sr(o)))),h===0?0:i!==0&&i!==h&&(i&g)===0&&(g=h&-h,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:h}function Ge(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function wt(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+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 Lt(){var r=Ks;return Ks<<=1,(Ks&62914560)===0&&(Ks=4194304),r}function ss(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function We(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Wt(r,i,o,u,h,g){var w=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var A=r.entanglements,O=r.expirationTimes,V=r.hiddenUpdates;for(o=w&~o;0<o;){var F=31-zt(o),W=1<<F;A[F]=0,O[F]=-1;var $=V[F];if($!==null)for(V[F]=null,F=0;F<$.length;F++){var q=$[F];q!==null&&(q.lane&=-536870913)}o&=~W}u!==0&&Ys(r,u,0),g!==0&&h===0&&r.tag!==0&&(r.suspendedLanes|=g&~(w&~i))}function Ys(r,i,o){r.pendingLanes|=i,r.suspendedLanes&=~i;var u=31-zt(i);r.entangledLanes|=i,r.entanglements[u]=r.entanglements[u]|1073741824|o&261930}function Jt(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var u=31-zt(o),h=1<<u;h&i|r[u]&i&&(r[u]|=i),o&=~h}}function en(r,i){var o=i&-i;return o=(o&42)!==0?1:ji(o),(o&(r.suspendedLanes|i))!==0?0:o}function ji(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Qn(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Hd(){var r=Q.p;return r!==0?r:(r=window.event,r===void 0?32:sw(r.type))}function wy(r,i){var o=Q.p;try{return Q.p=r,i()}finally{Q.p=o}}var is=Math.random().toString(36).slice(2),Tt="__reactFiber$"+is,tn="__reactProps$"+is,zi="__reactContainer$"+is,Fd="__reactEvents$"+is,HC="__reactListeners$"+is,FC="__reactHandles$"+is,xy="__reactResources$"+is,io="__reactMarker$"+is;function Qd(r){delete r[Tt],delete r[tn],delete r[Fd],delete r[HC],delete r[FC]}function Li(r){var i=r[Tt];if(i)return i;for(var o=r.parentNode;o;){if(i=o[zi]||o[Tt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=$0(r);r!==null;){if(o=r[Tt])return o;r=$0(r)}return i}r=o,o=r.parentNode}return null}function Ui(r){if(r=r[Tt]||r[zi]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function ao(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(s(33))}function Ii(r){var i=r[xy];return i||(i=r[xy]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function xt(r){r[io]=!0}var Sy=new Set,_y={};function Xs(r,i){Bi(r,i),Bi(r+"Capture",i)}function Bi(r,i){for(_y[r]=i,r=0;r<i.length;r++)Sy.add(i[r])}var QC=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]*$"),Ey={},Ty={};function ZC(r){return hn.call(Ty,r)?!0:hn.call(Ey,r)?!1:QC.test(r)?Ty[r]=!0:(Ey[r]=!0,!1)}function ql(r,i,o){if(ZC(i))if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+o)}}function Hl(r,i,o){if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+o)}}function Rr(r,i,o,u){if(u===null)r.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(i,o,""+u)}}function Tn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ay(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function GC(r,i,o){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,i
vendor: 5,332 bytes, line 9
9);if(!r.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var h=u.get,g=u.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return h.call(this)},set:function(w){o=""+w,g.call(this,w)}}),Object.defineProperty(r,i,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(w){o=""+w},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Zd(r){if(!r._valueTracker){var i=Ay(r)?"checked":"value";r._valueTracker=GC(r,i,""+r[i])}}function Cy(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var o=i.getValue(),u="";return r&&(u=Ay(r)?r.checked?"true":"false":r.value),r=u,r!==o?(i.setValue(r),!0):!1}function Fl(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var KC=/[\n"\\]/g;function An(r){return r.replace(KC,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Gd(r,i,o,u,h,g,w,A){r.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.type=w:r.removeAttribute("type"),i!=null?w==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+Tn(i)):r.value!==""+Tn(i)&&(r.value=""+Tn(i)):w!=="submit"&&w!=="reset"||r.removeAttribute("value"),i!=null?Kd(r,w,Tn(i)):o!=null?Kd(r,w,Tn(o)):u!=null&&r.removeAttribute("value"),h==null&&g!=null&&(r.defaultChecked=!!g),h!=null&&(r.checked=h&&typeof h!="function"&&typeof h!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.name=""+Tn(A):r.removeAttribute("name")}function Ry(r,i,o,u,h,g,w,A){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),i!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){Zd(r);return}o=o!=null?""+Tn(o):"",i=i!=null?""+Tn(i):o,A||i===r.value||(r.value=i),r.defaultValue=i}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=A?r.checked:!!u,r.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(r.name=w),Zd(r)}function Kd(r,i,o){i==="number"&&Fl(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function Vi(r,i,o,u){if(r=r.options,i){i={};for(var h=0;h<o.length;h++)i["$"+o[h]]=!0;for(o=0;o<r.length;o++)h=i.hasOwnProperty("$"+r[o].value),r[o].selected!==h&&(r[o].selected=h),h&&u&&(r[o].defaultSelected=!0)}else{for(o=""+Tn(o),i=null,h=0;h<r.length;h++){if(r[h].value===o){r[h].selected=!0,u&&(r[h].defaultSelected=!0);return}i!==null||r[h].disabled||(i=r[h])}i!==null&&(i.selected=!0)}}function ky(r,i,o){if(i!=null&&(i=""+Tn(i),i!==r.value&&(r.value=i),o==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=o!=null?""+Tn(o):""}function My(r,i,o,u){if(i==null){if(u!=null){if(o!=null)throw Error(s(92));if(de(u)){if(1<u.length)throw Error(s(93));u=u[0]}o=u}o==null&&(o=""),i=o}o=Tn(i),r.defaultValue=o,u=r.textContent,u===o&&u!==""&&u!==null&&(r.value=u),Zd(r)}function $i(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var YC=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 Oy(r,i,o){var u=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":u?r.setProperty(i,o):typeof o!="number"||o===0||YC.has(i)?i==="float"?r.cssFloat=o:r[i]=(""+o).trim():r[i]=o+"px"}function Dy(r,i,o){if(i!=null&&typeof i!="object")throw Error(s(62));if(r=r.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var h in i)u=i[h],i.hasOwnProperty(h)&&o[h]!==u&&Oy(r,h,u)}else for(var g in i)i.hasOwnProperty(g)&&Oy(r,g,i[g])}function Yd(r){if(r.indexOf("-")===-1)return!1;switch(r){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 XC=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
9dering","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"]]),WC=/^[\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 Ql(r){return WC.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function kr(){}var Xd=null;function Wd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var qi=null,Hi=null;function Ny(r){var i=Ui(r);if(i&&(r=i.stateNode)){var o=r[tn]||null;e:switch(r=i.stateNode,i.type){case"input":if(Gd(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+An(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var u=o[i];if(u!==r&&u.form===r.form){var h=u[tn]||null;if(!h)throw Error(s(90));Gd(u,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<o.length;i++)u=o[i],u.form===r.form&&Cy(u)}break e;case"textarea":ky(r,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&Vi(r,!!o.multiple,i,!1)}}}var Jd=!1;function Py(r,i,o){if(Jd)return r(i,o);Jd=!0;try{var u=r(i);return u}finally{if(Jd=!1,(qi!==null||Hi!==null)&&(Nc(),qi&&(i=qi,r=Hi,Hi=qi=null,Ny(i),r)))for(i=0;i<r.length;i++)Ny(r[i])}}function oo(r,i){var o=r.stateNode;if(o===null)return null;var u=o[tn]||null;if(u===null)return null;o=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(s(231,i,typeof o));return o}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ef=!1;if(Mr)try{var lo={};Object.defineProperty(lo,"passive",{get:function(){ef=!0}}),window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{ef=!1}var as=null,tf=null,Zl=null;function jy(){if(Zl)return Zl;var r,i=tf,o=i.length,u,h="value"in as?as.value:as.textContent,g=h.length;for(r=0;r<o&&i[r]===h[r];r++);var w=o-r;for(u=1;u<=w&&i[o-u]===h[g-u];u++);return Zl=h.slice(r,1<u?1-u:void 0)}function Gl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Kl(){return!0}function zy(){return!1}function nn(r){function i(o,u,h,g,w){this._reactName=o,this._targetInst=h,this.type=u,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var A in r)r.hasOwnProperty(A)&&(o=r[A],this[A]=o?o(g):g[A]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Kl:zy,this.isPropagationStopped=zy,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Kl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Kl)},persist:function(){},isPersistent:Kl}),i}var Ws={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yl=nn(Ws),co=m({},Ws,{view:0,detail:0}),JC=nn(co),nf,rf,uo,Xl=m({},co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:af,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==uo&&(uo&&r.type==="mousemove"?(nf=r.screenX-uo.screenX,rf=r.screenY-uo.screenY):rf=nf=0,uo=r),nf)},movementY:function(r){return"movementY"in r?r.movementY:rf}}),Ly=nn(Xl),eR=m({},Xl,{dataTransfer:0}),tR=nn(eR),nR=m({},co,{relatedTarget:0}),sf=nn(nR),rR=m({},Ws,{animationName:0,elapsedTime:0,pseudoElement:0}),sR=nn(rR),iR=m({},Ws,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),aR=nn(iR),oR=m({},Ws,{data:0}
vendor: 4,464 bytes, line 9
9),Uy=nn(oR),lR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cR={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"},uR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dR(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=uR[r])?!!i[r]:!1}function af(){return dR}var fR=m({},co,{key:function(r){if(r.key){var i=lR[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Gl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?cR[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:af,charCode:function(r){return r.type==="keypress"?Gl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Gl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),hR=nn(fR),pR=m({},Xl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Iy=nn(pR),mR=m({},co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:af}),gR=nn(mR),yR=m({},Ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),vR=nn(yR),bR=m({},Xl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),wR=nn(bR),xR=m({},Ws,{newState:0,oldState:0}),SR=nn(xR),_R=[9,13,27,32],of=Mr&&"CompositionEvent"in window,fo=null;Mr&&"documentMode"in document&&(fo=document.documentMode);var ER=Mr&&"TextEvent"in window&&!fo,By=Mr&&(!of||fo&&8<fo&&11>=fo),Vy=" ",$y=!1;function qy(r,i){switch(r){case"keyup":return _R.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hy(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Fi=!1;function TR(r,i){switch(r){case"compositionend":return Hy(i);case"keypress":return i.which!==32?null:($y=!0,Vy);case"textInput":return r=i.data,r===Vy&&$y?null:r;default:return null}}function AR(r,i){if(Fi)return r==="compositionend"||!of&&qy(r,i)?(r=jy(),Zl=tf=as=null,Fi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return By&&i.locale!=="ko"?null:i.data;default:return null}}var CR={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 Fy(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!CR[r.type]:i==="textarea"}function Qy(r,i,o,u){qi?Hi?Hi.push(u):Hi=[u]:qi=u,i=Bc(i,"onChange"),0<i.length&&(o=new Yl("onChange","change",null,o,u),r.push({event:o,listeners:i}))}var ho=null,po=null;function RR(r){R0(r,0)}function Wl(r){var i=ao(r);if(Cy(i))return r}function Zy(r,i){if(r==="change")return i}var Gy=!1;if(Mr){var lf;if(Mr){var cf="oninput"in document;if(!cf){var Ky=document.createElement("div");Ky.setAttribute("oninput","return;"),cf=typeof Ky.oninput=="function"}lf=cf}else lf=!1;Gy=lf&&(!document.documentMode||9<document.documentMode)}function Yy(){ho&&(ho.detachEvent("onpropertychange",Xy),po=ho=null)}function Xy(r){if(r.propertyName==="value"&&Wl(po)){var i=[];Qy(i,po,r,Wd(r)),Py(RR,i)}}function kR(r,i,o){r==="focusin"?(Yy(),ho=i,po=o,ho.attachEvent("onpropertychange",Xy)):r==="focusout"&&Yy()}function MR(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Wl(po)}function OR(r,i){if(r==="click")return Wl(i)}function DR(r,i){if(r==="input"||r==="change")return Wl(i)}function NR(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var pn=typeof Object.is=="function"?Object.is:NR;function mo(r,i){if(pn(r,i))return!0;
vendor: 20,643 bytes, line 9
9if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var o=Object.keys(r),u=Object.keys(i);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var h=o[u];if(!hn.call(i,h)||!pn(r[h],i[h]))return!1}return!0}function Wy(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Jy(r,i){var o=Wy(r);r=0;for(var u;o;){if(o.nodeType===3){if(u=r+o.textContent.length,r<=i&&u>=i)return{node:o,offset:i-r};r=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Wy(o)}}function ev(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?ev(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function tv(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=Fl(r.document);i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=Fl(r.document)}return i}function uf(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var PR=Mr&&"documentMode"in document&&11>=document.documentMode,Qi=null,df=null,go=null,ff=!1;function nv(r,i,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ff||Qi==null||Qi!==Fl(u)||(u=Qi,"selectionStart"in u&&uf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),go&&mo(go,u)||(go=u,u=Bc(df,"onSelect"),0<u.length&&(i=new Yl("onSelect","select",null,i,o),r.push({event:i,listeners:u}),i.target=Qi)))}function Js(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var Zi={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionrun:Js("Transition","TransitionRun"),transitionstart:Js("Transition","TransitionStart"),transitioncancel:Js("Transition","TransitionCancel"),transitionend:Js("Transition","TransitionEnd")},hf={},rv={};Mr&&(rv=document.createElement("div").style,"AnimationEvent"in window||(delete Zi.animationend.animation,delete Zi.animationiteration.animation,delete Zi.animationstart.animation),"TransitionEvent"in window||delete Zi.transitionend.transition);function ei(r){if(hf[r])return hf[r];if(!Zi[r])return r;var i=Zi[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in rv)return hf[r]=i[o];return r}var sv=ei("animationend"),iv=ei("animationiteration"),av=ei("animationstart"),jR=ei("transitionrun"),zR=ei("transitionstart"),LR=ei("transitioncancel"),ov=ei("transitionend"),lv=new Map,pf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");pf.push("scrollEnd");function Zn(r,i){lv.set(r,i),Xs(i,[r])}var Jl=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Cn=[],Gi=0,mf=0;function ec(){for(var r=Gi,i=mf=Gi=0;i<r;){var o=Cn[i];Cn[i++]=null;var u=Cn[i];Cn[i++]=null;var h=Cn[i];Cn[i++]=null;var g=Cn[i];if(Cn[i++]=null,u!==null&&h!==null){var w=u.pending;w===null?h.next=h:(h.next=w.next,w.next=h),u.pending=h}g!==0&&cv(o,h,g)}}function tc(r,i,o,u){Cn[Gi++]=r,Cn[Gi++]=i,Cn[Gi++]=o,Cn[Gi++]=u,mf|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function gf(r,i,o,u){return tc(r,i,o,u),nc(r)}function ti(r,i){return tc(r,null,null,i),nc(r)}function cv(r,i,o){r.lanes|=o;var u=r.alternate;u!==null&&(u.lanes|=o);for(var h=!1,g=r.return;g!==null;)g.childLanes|=o,u=g.alternate,u!==null&&(u.childLanes|=o),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(h=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,h&&i!==null&&(h=31-zt(o),r=g.hiddenUpdates,u=r[h],u===null?r[h]=[i]:u.push(i),i.lane=o|536870912),g):null}function nc(r){if(50<Uo)throw Uo=0,Th=null,Error(s(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var Ki={};function UR(r,i,o,u){this.tag=r,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=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(r,i,o,u){return new UR(r,i,o,u)}function yf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Or(r,i){var o=r.alternate;return o===null?(o=mn(r.tag,i,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=i,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,i=r.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function uv(r,i){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function rc(r,i,o,u,h,g){var w=0;if(u=r,typeof r=="function")yf(r)&&(w=1);else if(typeof r=="string")w=qk(r,o,re.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case K:return r=mn(31,o,i,h),r.elementType=K,r.lanes=g,r;case E:return ni(o.children,h,g,i);case T:w=8,h|=24;break;case C:return r=mn(12,o,i,h|2),r.elementType=C,r.lanes=g,r;case j:return r=mn(13,o,i,h),r.elementType=j,r.lanes=g,r;case U:return r=mn(19,o,i,h),r.elementType=U,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case R:w=10;break e;case k:w=9;break e;case M:w=11;break e;case I:w=14;break e;case z:w=16,u=null;break e}w=29,o=Error(s(130,r===null?"null":typeof r,"")),u=null}return i=mn(w,o,i,h),i.elementType=r,i.type=u,i.lanes=g,i}function ni(r,i,o,u){return r=mn(7,r,u,i),r.lanes=o,r}function vf(r,i,o){return r=mn(6,r,null,i),r.lanes=o,r}function dv(r){var i=mn(18,null,null,0);return i.stateNode=r,i}function bf(r,i,o){return i=mn(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var fv=new WeakMap;function Rn(r,i){if(typeof r=="object"&&r!==null){var o=fv.get(r);return o!==void 0?o:(i={value:r,source:i,stack:eo(i)},fv.set(r,i),i)}return{value:r,source:i,stack:eo(i)}}var Yi=[],Xi=0,sc=null,yo=0,kn=[],Mn=0,os=null,ir=1,ar="";function Dr(r,i){Yi[Xi++]=yo,Yi[Xi++]=sc,sc=r,yo=i}function hv(r,i,o){kn[Mn++]=ir,kn[Mn++]=ar,kn[Mn++]=os,os=r;var u=ir;r=ar;var h=32-zt(u)-1;u&=~(1<<h),o+=1;var g=32-zt(i)+h;if(30<g){var w=h-h%5;g=(u&(1<<w)-1).toString(32),u>>=w,h-=w,ir=1<<32-zt(i)+h|o<<h|u,ar=g+r}else ir=1<<g|o<<h|u,ar=r}function wf(r){r.return!==null&&(Dr(r,1),hv(r,1,0))}function xf(r){for(;r===sc;)sc=Yi[--Xi],Yi[Xi]=null,yo=Yi[--Xi],Yi[Xi]=null;for(;r===os;)os=kn[--Mn],kn[Mn]=null,ar=kn[--Mn],kn[Mn]=null,ir=kn[--Mn],kn[Mn]=null}function pv(r,i){kn[Mn++]=ir,kn[Mn++]=ar,kn[Mn++]=os,ir=i.id,ar=i.overflow,os=r}var At=null,Fe=null,De=!1,ls=null,On=!1,Sf=Error(s(519));function cs(r){var i=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vo(Rn(i,r)),Sf}function mv(r){var i=r.stateNode,o=r.type,u=r.memoizedProps;switch(i[Tt]=r,i[tn]=u,o){case"dialog":ke("cancel",i),ke("close",i);break;case"iframe":case"object":case"embed":ke("load",i);break;case"video":case"audio":for(o=0;o<Bo.length;o++)ke(Bo[o],i);break;case"source":ke("error",i);break;case"img":case"image":case"link":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"input":ke("invalid",i),Ry(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":ke("invalid",i);break;case"textarea":ke("invalid",i),My(i,u.value,u.defaultValue,u.children)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||u.suppressHydrationWarning===!0||D0(i.textContent,o)?(u.popover!=null&&(ke("beforetoggle",i),ke("toggle",i)),u.onScroll!=null&&ke("scroll",i),u.onScrollEnd!=null&&ke("scrollend",i),u.onClick!=null&&(i.onclick=kr),i=!0):i=!1,i||cs(r,!0)}function gv(r){for(At=r.return;At;)switch(At.tag){case 5:case 31:case 13:On=!1;return;case 27:case 3:On=!0;return;default:At=At.return}}function Wi(r){if(r!==At)return!1;if(!De)return gv(r),De=!0,!1;var i=r.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||Bh(r.type,r.memoizedProps)),o=!o),o&&Fe&&cs(r),gv(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Fe=V0(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Fe=V0(r)}else i===27?(i=Fe,_s(r.type)?(r=Fh,Fh=null,Fe=r):Fe=i):Fe=At?Nn(r.stateNode.nextSibling):null;return!0}function ri(){Fe=At=null,De=!1}function _f(){var r=ls;return r!==null&&(on===null?on=r:on.push.apply(on,r),ls=null),r}function vo(r){ls===null?ls=[r]:ls.push(r)}var Ef=D(null),si=null,Nr=null;function us(r,i,o){X(Ef,i._currentValue),i._currentValue=o}function Pr(r){r._currentValue=Ef.current,H(Ef)}function Tf(r,i,o){for(;r!==null;){var u=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),r===o)break;r=r.return}}function Af(r,i,o,u){var h=r.child;for(h!==null&&(h.return=r);h!==null;){var g=h.dependencies;if(g!==null){var w=h.child;g=g.firstContext;e:for(;g!==null;){var A=g;g=h;for(var O=0;O<i.length;O++)if(A.context===i[O]){g.lanes|=o,A=g.alternate,A!==null&&(A.lanes|=o),Tf(g.return,o,r),u||(w=null);break e}g=A.next}}else if(h.tag===18){if(w=h.return,w===null)throw Error(s(341));w.lanes|=o,g=w.alternate,g!==null&&(g.lanes|=o),Tf(w,o,r),w=null}else w=h.child;if(w!==null)w.return=h;else for(w=h;w!==null;){if(w===r){w=null;break}if(h=w.sibling,h!==null){h.return=w.return,w=h;break}w=w.return}h=w}}function Ji(r,i,o,u){r=null;for(var h=i,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var w=h.alternate;if(w===null)throw Error(s(387));if(w=w.memoizedProps,w!==null){var A=h.type;pn(h.pendingProps.value,w.value)||(r!==null?r.push(A):r=[A])}}else if(h===he.current){if(w=h.alternate,w===null)throw Error(s(387));w.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(r!==null?r.push(Fo):r=[Fo])}h=h.return}r!==null&&Af(i,r,o,u),i.flags|=262144}function ic(r){for(r=r.firstContext;r!==null;){if(!pn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ii(r){si=r,Nr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ct(r){return yv(si,r)}function ac(r,i){return si===null&&ii(r),yv(r,i)}function yv(r,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Nr===null){if(r===null)throw Error(s(308));Nr=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else Nr=Nr.next=i;return o}var IR=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(o,u){r.push(u)}};this.abort=function(){i.aborted=!0,r.forEach(function(o){return o()})}},BR=e.unstable_scheduleCallback,VR=e.unstable_NormalPriority,at={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cf(){return{controller:new IR,data:new Map,refCount:0}}function bo(r){r.refCount--,r.refCount===0&&BR(VR,function(){r.controller.abort()})}var wo=null,Rf=0,ea=0,ta=null;function $R(r,i){if(wo===null){var o=wo=[];Rf=0,ea=Oh(),ta={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Rf++,i.then(vv,vv),i}function vv(){if(--Rf===0&&wo!==null){ta!==null&&(ta.status="fulfilled");var r=wo;wo=null,ea=0,ta=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function qR(r,i){var o=[],u={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return r.then(function(){u.status="fulfilled",u.value=i;for(var h=0;h<o.length;h++)(0,o[h])(i)},function(h){for(u.status="rejected",u.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),u}var bv=N.S;N.S=function(r,i){n0=qt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&$R(r,i),bv!==null&&bv(r,i)};var ai=D(null);function kf(){var r=ai.current;return r!==null?r:qe.pooledCache}function oc(r,i){i===null?X(ai,ai.current):X(ai,i.pool)}function wv(){var r=kf();return r===null?null:{parent:at._currentValue,pool:r}}var na=Error(s(460)),Mf=Error(s(474)),lc=Error(s(542)),cc={then:function(){}};function xv(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Sv(r,i,o){switch(o=r[o],o===void 0?r.push(i):o!==i&&(i.then(kr,kr),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,Ev(r),r;default:if(typeof i.status=="string")i.then(kr,kr);else{if(r=qe,r!==null&&100<r.shellSuspendCounter)throw Error(s(482));r=i,r.status="pending",r.then(function(u){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=u}},function(u){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,Ev(r),r}throw li=i,na}}function oi(r){try{var i=r._init;return i(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(li=o,na):o}}var li=null;function _v(){if(li===null)throw Error(s(459));var r=li;return li=null,r}function Ev(r){if(r===na||r===lc)throw Error(s(483))}var ra=null,xo=0;function uc(r){var i=xo;return xo+=1,ra===null&&(ra=[]),Sv(ra,r,i)}function So(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function dc(r,i){throw i.$$typeof===v?Error(s(525)):(r=Object.prototype.toString.call(i),Error(s(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function Tv(r){function i(L,P){if(r){var B=L.deletions;B===null?(L.deletions=[P],L.flags|=16):B.push(P)}}function o(L,P){if(!r)return null;for(;P!==null;)i(L,P),P=P.sibling;return null}function u(L){for(var P=new Map;L!==null;)L.key!==null?P.set(L.key,L):P.set(L.index,L),L=L.sibling;return P}function h(L,P){return L=Or(L,P),L.index=0,L.sibling=null,L}function g(L,P,B){return L.index=B,r?(B=L.alternate,B!==null?(B=B.index,B<P?(L.flags|=67108866,P):B):(L.flags|=67108866,P)):(L.flags|=1048576,P)}function w(L){return r&&L.alternate===null&&(L.flags|=67108866),L}function A(L,P,B,G){return P===null||P.tag!==6?(P=vf(B,L.mode,G),P.return=L,P):(P=h(P,B),P.return=L,P)}function O(L,P,B,G){var ye=B.type;return ye===E?F(L,P,B.props.children,G,B.key):P!==null&&(P.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===z&&oi(ye)===P.type)?(P=h(P,B.props),So(P,B),P.return=L,P):(P=rc(B.type,B.key,B.props,null,L.mode,G),So(P,B),P.return=L,P)}function V(L,P,B,G){return P===null||P.tag!==4||P.stateNode.containerInfo!==B.containerInfo||P.stateNode.implementation!==B.implementation?(P=bf(B,L.mode,G),P.return=L,P):(P=h(P,B.children||[]),P.return=L,P)}function F(L,P,B,G,ye){return P===null||P.tag!==7?(P=ni(B,L.mode,G,ye),P.return=L,P):(P=h(P,B),P.return=L,P)}function W(L,P,B){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=vf(""+P,L.mode,B),P.return=L,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case x:return B=rc(P.type,P.key,P.props,null,L.mode,B),So(B,P),B.return=L,B;case _:return P=bf(P,L.mode,B),P.return=L,P;case z:return P=oi(P),W(L,P,B)}if(de(P)||ae(P))return P=ni(P,L.mode,B,null),P.return=L,P;if(typeof P.then=="function")return W(L,uc(P),B);if(P.$$typeof===R)return W(L,ac(L,P),B);dc(L,P)}return null}function $(L,P,B,G){var ye=P!==null?P.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ye!==null?null:A(L,P,""+B,G);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case x:return B.key===ye?O(L,P,B,G):null;case _:return B.key===ye?V(L,P,B,G):null;case z:return B=oi(B),$(L,P,B,G)}if(de(B)||ae(B))return ye!==null?null:F(L,P,B,G,null);if(typeof B.then=="function")return $(L,P,uc(B),G);if(B.$$typeof===R)return $(L,P,ac(L,B),G);dc(L,B)}return null}function q(L,P,B,G,ye){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return L=L.get(B)||null,A(P,L,""+G,ye);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return L=L.get(G.key===null?B:G.key)||null,O(P,L,G,ye);case _:return L=L.get(G.key===null?B:G.key)||null,V(P,L,G,ye);case z:return G=oi(G),q(L,P,B,G,ye)}if(de(G)||ae(G))return L=L.get(B)||null,F(P,L,G,ye,null);if(typeof G.then=="function")return q(L,P,B,uc(G),ye);if(G.$$typeof===R)return q(L,P,B,ac(P,G),ye);dc(P,G)}return null}function le(L,P,B,G){for(var ye=null,Pe=null,ge=P,Te=P=0,Oe=null;ge!==null&&Te<B.length;Te++){ge.index>Te?(Oe=ge,ge=null):Oe=ge.sibling;var je=$(L,ge,B[Te],G);if(je===null){ge===null&&(ge=Oe);break}r&&ge&&je.alternate===null&&i(L,ge),P=g(je,P,Te),Pe===null?ye=je:Pe.sibling=je,Pe=je,ge=Oe}if(Te===B.length)return o(L,ge),De&&Dr(L,Te),ye;if(ge===null){for(;Te<B.length;Te++)ge=W(L,B[Te],G),ge!==null&&(P=g(ge,P,Te),Pe===null?ye=ge:Pe.sibling=ge,Pe=ge);return De&&Dr(L,Te),ye}for(ge=u(ge);Te<B.length;Te++)Oe=q(ge,L,Te,B[Te],G),Oe!==null&&(r&&Oe.alternate!==null&&ge.delete(Oe.key===null?Te:Oe.key),P=g(Oe,P,Te),Pe===null?ye=Oe:Pe.sibling=Oe,Pe=Oe);return r&&ge.forEach(function(Rs){return i(L,Rs)}),De&&Dr(L,Te),ye}function ve(L,P,B,G){if(B==null)throw Error(s(151));for(var ye=null,Pe=null,ge=P,Te=P=0,Oe=null,je=B.next();ge!==null&&!je.done;Te++,je=B.next()){ge.index>Te?(Oe=ge,ge=null):Oe=ge.sibling;var Rs=$(L,ge,je.value,G);if(Rs===null){ge===null&&(ge=Oe);break}r&&ge&&Rs.alternate===null&&i(L,ge),P=g(Rs,P,Te),Pe===null?ye=Rs:Pe.sibling=Rs,Pe=Rs,ge=Oe}if(je.done)return o(L,ge),De&&Dr(L,Te),ye;if(ge===null){for(;!je.done;Te++,je=B.next())je=W(L,je.value,G),je!==null&&(P=g(je,P,Te),Pe===null?ye=je:Pe.sibling=je,Pe=je);return De&&Dr(L,Te),ye}for(ge=u(ge);!je.done;Te++,je=B.next())je=q(ge,L,Te,je.value,G),je!==null&&(r&&je.alternate!==null&&ge.delete(je.key===null?Te:je.key),P=g(je,P,Te),Pe===null?ye=je:Pe.sibling=je,Pe=je);return r&&ge.forEach(function(eM){return i(L,eM)}),De&&Dr(L,Te),ye}function $e(L,P,B,G){if(typeof B=="object"&&B!==null&&B.type===E&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case x:e:{for(var ye=B.key;P!==null;){if(P.key===ye){if(ye=B.type,ye===E){if(P.tag===7){o(L,P.sibling),G=h(P,B.props.children),G.return=L,L=G;break e}}else if(P.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===z&&oi(ye)===P.type){o(L,P.sibling),G=h(P,B.props),So(G,B),G.return=L,L=G;break e}o(L,P);break}else i(L,P);P=P.sibling}B.type===E?(G=ni(B.props.children,L.mode,G,B.key),G.return=L,L=G):(G=rc(B.type,B.key,B.props,null,L.mode,G),So(G,B),G.return=L,L=G)}return w(L);case _:e:{for(ye=B.key;P!==null;){if(P.key===ye)if(P.tag===4&&P.stateNode.containerInfo===B.containerInfo&&P.stateNode.implementation===B.implementation){o(L,P.sibling),G=h(P,B.children||[]),G.return=L,L=G;break e}else{o(L,P);break}else i(L,P);P=P.sibling}G=bf(B,L.mode,G),G.return=L,L=G}return w(L);case z:return B=oi(B),$e(L,P,B,G)}if(de(B))return le(L,P,B,G);if(ae(B)){if(ye=ae(B),typeof ye!="function")throw Error(s(150));return B=ye.call(B),ve(L,P,B,G)}if(typeof B.then=="function")return $e(L,P,uc(B),G);if(B.$$typeof===R)return $e(L,P,ac(L,B),G);dc(L,B)}
vendor: 4,983 bytes, line 9
9return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,P!==null&&P.tag===6?(o(L,P.sibling),G=h(P,B),G.return=L,L=G):(o(L,P),G=vf(B,L.mode,G),G.return=L,L=G),w(L)):o(L,P)}return function(L,P,B,G){try{xo=0;var ye=$e(L,P,B,G);return ra=null,ye}catch(ge){if(ge===na||ge===lc)throw ge;var Pe=mn(29,ge,null,L.mode);return Pe.lanes=G,Pe.return=L,Pe}}}var ci=Tv(!0),Av=Tv(!1),ds=!1;function Of(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Df(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function fs(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function hs(r,i,o){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(ze&2)!==0){var h=u.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),u.pending=i,i=nc(r),cv(r,null,o),i}return tc(r,u,i,o),nc(r)}function _o(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var u=i.lanes;u&=r.pendingLanes,o|=u,i.lanes=o,Jt(r,o)}}function Nf(r,i){var o=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var h=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?h=g=w:g=g.next=w,o=o.next}while(o!==null);g===null?h=g=i:g=g.next=i}else h=g=i;o={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:u.shared,callbacks:u.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}var Pf=!1;function Eo(){if(Pf){var r=ta;if(r!==null)throw r}}function To(r,i,o,u){Pf=!1;var h=r.updateQueue;ds=!1;var g=h.firstBaseUpdate,w=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var O=A,V=O.next;O.next=null,w===null?g=V:w.next=V,w=O;var F=r.alternate;F!==null&&(F=F.updateQueue,A=F.lastBaseUpdate,A!==w&&(A===null?F.firstBaseUpdate=V:A.next=V,F.lastBaseUpdate=O))}if(g!==null){var W=h.baseState;w=0,F=V=O=null,A=g;do{var $=A.lane&-536870913,q=$!==A.lane;if(q?(Me&$)===$:(u&$)===$){$!==0&&$===ea&&(Pf=!0),F!==null&&(F=F.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var le=r,ve=A;$=i;var $e=o;switch(ve.tag){case 1:if(le=ve.payload,typeof le=="function"){W=le.call($e,W,$);break e}W=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ve.payload,$=typeof le=="function"?le.call($e,W,$):le,$==null)break e;W=m({},W,$);break e;case 2:ds=!0}}$=A.callback,$!==null&&(r.flags|=64,q&&(r.flags|=8192),q=h.callbacks,q===null?h.callbacks=[$]:q.push($))}else q={lane:$,tag:A.tag,payload:A.payload,callback:A.callback,next:null},F===null?(V=F=q,O=W):F=F.next=q,w|=$;if(A=A.next,A===null){if(A=h.shared.pending,A===null)break;q=A,A=q.next,q.next=null,h.lastBaseUpdate=q,h.shared.pending=null}}while(!0);F===null&&(O=W),h.baseState=O,h.firstBaseUpdate=V,h.lastBaseUpdate=F,g===null&&(h.shared.lanes=0),vs|=w,r.lanes=w,r.memoizedState=W}}function Cv(r,i){if(typeof r!="function")throw Error(s(191,r));r.call(i)}function Rv(r,i){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)Cv(o[r],i)}var sa=D(null),fc=D(0);function kv(r,i){r=qr,X(fc,r),X(sa,i),qr=r|i.baseLanes}function jf(){X(fc,qr),X(sa,sa.current)}function zf(){qr=fc.current,H(sa),H(fc)}var gn=D(null),Dn=null;function ps(r){var i=r.alternate;X(rt,rt.current&1),X(gn,r),Dn===null&&(i===null||sa.current!==null||i.memoizedState!==null)&&(Dn=r)}function Lf(r){X(rt,rt.current),X(gn,r),Dn===null&&(Dn=r)}function Mv(r){r.tag===22?(X(rt,rt.current),X(gn,r),Dn===null&&(Dn=r)):ms()}function ms(){X(rt,rt.current),X(gn,gn.current)}function yn(r){H(gn),Dn===r&&(Dn=null),H(rt)}var rt=D(0);function hc(r){for(var i=r;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||qh(o)||Hh(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var jr=0,Ee=null,Be=null,ot=null,pc=!1,ia=!1,ui=!1,mc=0,Ao=0,aa=null,HR=0;function et(){throw Error(s(321))}function Uf(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!pn(r[o],i[o]))return!1;return!0}function If(r,i,o,u,h,g){return jr=g,Ee=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,N.H=r===null||r.memoizedState===null?hb:eh,ui=!1,g=o(u,h),ui=!1,ia&&(g=Dv(i,o,u,h)),Ov(r),g}function Ov(r){N.H=ko;var i=Be!==null&&Be.next!==null;if(jr=0,ot=Be=Ee=null,pc=!1,Ao=0,aa=null,i)throw Error(s(300));r===null||lt||(r=r.dependencies,r!==null&&ic(r)&&(lt=!0))}function Dv(r,i,o,u){Ee=r;var h=0;
vendor: 5,341 bytes, line 9
9do{if(ia&&(aa=null),Ao=0,ia=!1,25<=h)throw Error(s(301));if(h+=1,ot=Be=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}N.H=pb,g=i(o,u)}while(ia);return g}function FR(){var r=N.H,i=r.useState()[0];return i=typeof i.then=="function"?Co(i):i,r=r.useState()[0],(Be!==null?Be.memoizedState:null)!==r&&(Ee.flags|=1024),i}function Bf(){var r=mc!==0;return mc=0,r}function Vf(r,i,o){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~o}function $f(r){if(pc){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}pc=!1}jr=0,ot=Be=Ee=null,ia=!1,Ao=mc=0,aa=null}function Ft(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Ee.memoizedState=ot=r:ot=ot.next=r,ot}function st(){if(Be===null){var r=Ee.alternate;r=r!==null?r.memoizedState:null}else r=Be.next;var i=ot===null?Ee.memoizedState:ot.next;if(i!==null)ot=i,Be=r;else{if(r===null)throw Ee.alternate===null?Error(s(467)):Error(s(310));Be=r,r={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},ot===null?Ee.memoizedState=ot=r:ot=ot.next=r}return ot}function gc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Co(r){var i=Ao;return Ao+=1,aa===null&&(aa=[]),r=Sv(aa,r,i),i=Ee,(ot===null?i.memoizedState:ot.next)===null&&(i=i.alternate,N.H=i===null||i.memoizedState===null?hb:eh),r}function yc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Co(r);if(r.$$typeof===R)return Ct(r)}throw Error(s(438,String(r)))}function qf(r){var i=null,o=Ee.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var u=Ee.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=gc(),Ee.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(r),u=0;u<r;u++)o[u]=ee;return i.index++,o}function zr(r,i){return typeof i=="function"?i(r):i}function vc(r){var i=st();return Hf(i,Be,r)}function Hf(r,i,o){var u=r.queue;if(u===null)throw Error(s(311));u.lastRenderedReducer=o;var h=r.baseQueue,g=u.pending;if(g!==null){if(h!==null){var w=h.next;h.next=g.next,g.next=w}i.baseQueue=h=g,u.pending=null}if(g=r.baseState,h===null)r.memoizedState=g;else{i=h.next;var A=w=null,O=null,V=i,F=!1;do{var W=V.lane&-536870913;if(W!==V.lane?(Me&W)===W:(jr&W)===W){var $=V.revertLane;if($===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),W===ea&&(F=!0);else if((jr&$)===$){V=V.next,$===ea&&(F=!0);continue}else W={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(A=O=W,w=g):O=O.next=W,Ee.lanes|=$,vs|=$;W=V.action,ui&&o(g,W),g=V.hasEagerState?V.eagerState:o(g,W)}else $={lane:W,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(A=O=$,w=g):O=O.next=$,Ee.lanes|=W,vs|=W;V=V.next}while(V!==null&&V!==i);if(O===null?w=g:O.next=A,!pn(g,r.memoizedState)&&(lt=!0,F&&(o=ta,o!==null)))throw o;r.memoizedState=g,r.baseState=w,r.baseQueue=O,u.lastRenderedState=g}return h===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function Ff(r){var i=st(),o=i.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=r;var u=o.dispatch,h=o.pending,g=i.memoizedState;if(h!==null){o.pending=null;var w=h=h.next;do g=r(g,w.action),w=w.next;while(w!==h);pn(g,i.memoizedState)||(lt=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),o.lastRenderedState=g}return[g,u]}function Nv(r,i,o){var u=Ee,h=st(),g=De;if(g){if(o===void 0)throw Error(s(407));o=o()}else o=i();var w=!pn((Be||h).memoizedState,o);if(w&&(h.memoizedState=o,lt=!0),h=h.queue,Gf(zv.bind(null,u,h,r),[r]),h.getSnapshot!==i||w||ot!==null&&ot.memoizedState.tag&1){if(u.flags|=2048,oa(9,{destroy:void 0},jv.bind(null,u,h,o,i),null),qe===null)throw Error(s(349));g||(jr&127)!==0||Pv(u,i,o)}return o}function Pv(r,i,o){r.flags|=16384,r={getSnapshot:i,value:o},i=Ee.updateQueue,i===null?(i=gc(),Ee.updateQueue=i,i.stores=[r]):(o=i.stores,o===null?i.stores=[r]:o.push(r))}function jv(r,i,o,u){i.value=o,i.getSnapshot=u,Lv(i)&&Uv(r)}function zv(r,i,o){return o(function(){Lv(i)&&Uv(r)})}function Lv(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!pn(r,o)}catch{return!0}}function Uv(r){var i=ti(r,2);i!==null&&ln(i,r,2)}function Qf(r){var i=Ft();if(typeof r=="function"){var o=r;if(r=o(),ui){Fn(!0);try{o()}finally{Fn(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:r},i}function Iv(r,i,o,u){return r.baseState=o,Hf(r,Be,typeof u=="function"?u:zr)}function QR(r,i,o,u,h){if(xc(r))throw Error(s(485));if(r=i.action,r!==null){var g={payload:h,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){g.listeners.push(w)}};N.T!==null?o(!0):g.isTransition=!1,u(g),o=i.pending,o===null?(g.next=i.pending=g,Bv(i,g)):(g.next=o.next,i.pending=o.next=g)}}function Bv(r,i){var o=i.action,u=i.payload,h=r.state;if(i.isTransition){var g=N.T,w={};N.T=w;try{var A=o(h,u),O=N.S;O!==null&&O(w,A),Vv(r,i,A)}
vendor: 7,316 bytes, line 9
9catch(V){Zf(r,i,V)}finally{g!==null&&w.types!==null&&(g.types=w.types),N.T=g}}else try{g=o(h,u),Vv(r,i,g)}catch(V){Zf(r,i,V)}}function Vv(r,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){$v(r,i,u)},function(u){return Zf(r,i,u)}):$v(r,i,o)}function $v(r,i,o){i.status="fulfilled",i.value=o,qv(i),r.state=o,i=r.pending,i!==null&&(o=i.next,o===i?r.pending=null:(o=o.next,i.next=o,Bv(r,o)))}function Zf(r,i,o){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=o,qv(i),i=i.next;while(i!==u)}r.action=null}function qv(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function Hv(r,i){return i}function Fv(r,i){if(De){var o=qe.formState;if(o!==null){e:{var u=Ee;if(De){if(Fe){t:{for(var h=Fe,g=On;h.nodeType!==8;){if(!g){h=null;break t}if(h=Nn(h.nextSibling),h===null){h=null;break t}}g=h.data,h=g==="F!"||g==="F"?h:null}if(h){Fe=Nn(h.nextSibling),u=h.data==="F!";break e}}cs(u)}u=!1}u&&(i=o[0])}}return o=Ft(),o.memoizedState=o.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hv,lastRenderedState:i},o.queue=u,o=ub.bind(null,Ee,u),u.dispatch=o,u=Qf(!1),g=Jf.bind(null,Ee,!1,u.queue),u=Ft(),h={state:i,dispatch:null,action:r,pending:null},u.queue=h,o=QR.bind(null,Ee,h,g,o),h.dispatch=o,u.memoizedState=r,[i,o,!1]}function Qv(r){var i=st();return Zv(i,Be,r)}function Zv(r,i,o){if(i=Hf(r,i,Hv)[0],r=vc(zr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Co(i)}catch(w){throw w===na?lc:w}else u=i;i=st();var h=i.queue,g=h.dispatch;return o!==i.memoizedState&&(Ee.flags|=2048,oa(9,{destroy:void 0},ZR.bind(null,h,o),null)),[u,g,r]}function ZR(r,i){r.action=i}function Gv(r){var i=st(),o=Be;if(o!==null)return Zv(i,o,r);st(),i=i.memoizedState,o=st();var u=o.queue.dispatch;return o.memoizedState=r,[i,u,!1]}function oa(r,i,o,u){return r={tag:r,create:o,deps:u,inst:i,next:null},i=Ee.updateQueue,i===null&&(i=gc(),Ee.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=r.next=r:(u=o.next,o.next=r,r.next=u,i.lastEffect=r),r}function Kv(){return st().memoizedState}function bc(r,i,o,u){var h=Ft();Ee.flags|=r,h.memoizedState=oa(1|i,{destroy:void 0},o,u===void 0?null:u)}function wc(r,i,o,u){var h=st();u=u===void 0?null:u;var g=h.memoizedState.inst;Be!==null&&u!==null&&Uf(u,Be.memoizedState.deps)?h.memoizedState=oa(i,g,o,u):(Ee.flags|=r,h.memoizedState=oa(1|i,g,o,u))}function Yv(r,i){bc(8390656,8,r,i)}function Gf(r,i){wc(2048,8,r,i)}function GR(r){Ee.flags|=4;var i=Ee.updateQueue;if(i===null)i=gc(),Ee.updateQueue=i,i.events=[r];else{var o=i.events;o===null?i.events=[r]:o.push(r)}}function Xv(r){var i=st().memoizedState;return GR({ref:i,nextImpl:r}),function(){if((ze&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}function Wv(r,i){return wc(4,2,r,i)}function Jv(r,i){return wc(4,4,r,i)}function eb(r,i){if(typeof i=="function"){r=r();var o=i(r);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function tb(r,i,o){o=o!=null?o.concat([r]):null,wc(4,4,eb.bind(null,i,r),o)}function Kf(){}function nb(r,i){var o=st();i=i===void 0?null:i;var u=o.memoizedState;return i!==null&&Uf(i,u[1])?u[0]:(o.memoizedState=[r,i],r)}function rb(r,i){var o=st();i=i===void 0?null:i;var u=o.memoizedState;if(i!==null&&Uf(i,u[1]))return u[0];if(u=r(),ui){Fn(!0);try{r()}finally{Fn(!1)}}return o.memoizedState=[u,i],u}function Yf(r,i,o){return o===void 0||(jr&1073741824)!==0&&(Me&261930)===0?r.memoizedState=i:(r.memoizedState=o,r=s0(),Ee.lanes|=r,vs|=r,o)}function sb(r,i,o,u){return pn(o,i)?o:sa.current!==null?(r=Yf(r,o,u),pn(r,i)||(lt=!0),r):(jr&42)===0||(jr&1073741824)!==0&&(Me&261930)===0?(lt=!0,r.memoizedState=o):(r=s0(),Ee.lanes|=r,vs|=r,i)}function ib(r,i,o,u,h){var g=Q.p;Q.p=g!==0&&8>g?g:8;var w=N.T,A={};N.T=A,Jf(r,!1,i,o);try{var O=h(),V=N.S;if(V!==null&&V(A,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var F=qR(O,u);Ro(r,i,F,wn(r))}else Ro(r,i,u,wn(r))}catch(W){Ro(r,i,{then:function(){},status:"rejected",reason:W},wn())}finally{Q.p=g,w!==null&&A.types!==null&&(w.types=A.types),N.T=w}}function KR(){}function Xf(r,i,o,u){if(r.tag!==5)throw Error(s(476));var h=ab(r).queue;ib(r,h,i,Z,o===null?KR:function(){return ob(r),o(u)})}function ab(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:Z},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:o},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function ob(r){var i=ab(r);i.next===null&&(i=r.alternate.memoizedState),Ro(r,i.next.queue,{},wn())}function Wf(){return Ct(Fo)}function lb(){return st().memoizedState}function cb(){return st().memoizedState}function YR(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var o=wn();r=fs(o);var u=hs(i,r,o);u!==null&&(ln(u,i,o),_o(u,i,o)),i={cache:Cf()},r.payload=i;return}i=i.return}}function XR(r,i,o){var u=wn();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},xc(r)?db(i,o):(o=gf(r,i,o,u),o!==null&&(ln(o,r,u),fb(o,i,u)))}function ub(r,i,o){var u=wn();Ro(r,i,o,u)}function Ro(r,i,o,u){var h={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(xc(r))db(i,h);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var w=i.lastRenderedState,A=g(w,o);if(h.hasEagerState=!0,h.eagerState=A,pn(A,w))return tc(r,i,h,0),qe===null&&ec(),!1}catch{}if(o=gf(r,i,h,u),o!==null)return ln(o,r,u),fb(o,i,u),!0}return!1}function Jf(r,i,o,u){if(u={lane:2,revertLane:Oh(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},xc(r)){if(i)throw Error(s(479))}else i=gf(r,o,u,2),i!==null&&ln(i,r,2)}function xc(r){var i=r.alternate;return r===Ee||i!==null&&i===Ee}function db(r,i){ia=pc=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function fb(r,i,o){if((o&4194048)!==0){var u=i.lanes;u&=r.pendingLanes,o|=u,i.lanes=o,Jt(r,o)}}var ko={readContext:Ct,use:yc,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};ko.useEffectEvent=et;var hb={readContext:Ct,use:yc,useCallback:function(r,i){return Ft().memoizedState=[r,i===void 0?null:i],r},useContext:Ct,useEffect:Yv,useImperativeHandle:function(r,i,o){o=o!=null?o.concat([r]):null,bc(4194308,4,eb.bind(null,i,r),o)},useLayoutEffect:function(r,i){return bc(4194308,4,r,i)},useInsertionEffect:function(r,i){bc(4,2,r,i)},useMemo:function(r,i){var o=Ft();i=i===void 0?null:i;var u=r();if(ui){Fn(!0);try{r()}finally{Fn(!1)}}return o.memoizedState=[u,i],u},useReducer:function(r,i,o){var u=Ft();if(o!==void 0){var h=o(i);if(ui){Fn(!0);try{o(i)}finally{Fn(!1)}}}else h=i;return u.memoizedState=u.baseState=h,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:h},u.queue=r,r=r.dispatch=XR.bind(null,Ee,r),[u.memoizedState,r]}
vendor: 6,960 bytes, line 9
9,useRef:function(r){var i=Ft();return r={current:r},i.memoizedState=r},useState:function(r){r=Qf(r);var i=r.queue,o=ub.bind(null,Ee,i);return i.dispatch=o,[r.memoizedState,o]},useDebugValue:Kf,useDeferredValue:function(r,i){var o=Ft();return Yf(o,r,i)},useTransition:function(){var r=Qf(!1);return r=ib.bind(null,Ee,r.queue,!0,!1),Ft().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,o){var u=Ee,h=Ft();if(De){if(o===void 0)throw Error(s(407));o=o()}else{if(o=i(),qe===null)throw Error(s(349));(Me&127)!==0||Pv(u,i,o)}h.memoizedState=o;var g={value:o,getSnapshot:i};return h.queue=g,Yv(zv.bind(null,u,g,r),[r]),u.flags|=2048,oa(9,{destroy:void 0},jv.bind(null,u,g,o,i),null),o},useId:function(){var r=Ft(),i=qe.identifierPrefix;if(De){var o=ar,u=ir;o=(u&~(1<<32-zt(u)-1)).toString(32)+o,i="_"+i+"R_"+o,o=mc++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=HR++,i="_"+i+"r_"+o.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:Wf,useFormState:Fv,useActionState:Fv,useOptimistic:function(r){var i=Ft();i.memoizedState=i.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Jf.bind(null,Ee,!0,o),o.dispatch=i,[r,i]},useMemoCache:qf,useCacheRefresh:function(){return Ft().memoizedState=YR.bind(null,Ee)},useEffectEvent:function(r){var i=Ft(),o={impl:r};return i.memoizedState=o,function(){if((ze&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},eh={readContext:Ct,use:yc,useCallback:nb,useContext:Ct,useEffect:Gf,useImperativeHandle:tb,useInsertionEffect:Wv,useLayoutEffect:Jv,useMemo:rb,useReducer:vc,useRef:Kv,useState:function(){return vc(zr)},useDebugValue:Kf,useDeferredValue:function(r,i){var o=st();return sb(o,Be.memoizedState,r,i)},useTransition:function(){var r=vc(zr)[0],i=st().memoizedState;return[typeof r=="boolean"?r:Co(r),i]},useSyncExternalStore:Nv,useId:lb,useHostTransitionStatus:Wf,useFormState:Qv,useActionState:Qv,useOptimistic:function(r,i){var o=st();return Iv(o,Be,r,i)},useMemoCache:qf,useCacheRefresh:cb};eh.useEffectEvent=Xv;var pb={readContext:Ct,use:yc,useCallback:nb,useContext:Ct,useEffect:Gf,useImperativeHandle:tb,useInsertionEffect:Wv,useLayoutEffect:Jv,useMemo:rb,useReducer:Ff,useRef:Kv,useState:function(){return Ff(zr)},useDebugValue:Kf,useDeferredValue:function(r,i){var o=st();return Be===null?Yf(o,r,i):sb(o,Be.memoizedState,r,i)},useTransition:function(){var r=Ff(zr)[0],i=st().memoizedState;return[typeof r=="boolean"?r:Co(r),i]},useSyncExternalStore:Nv,useId:lb,useHostTransitionStatus:Wf,useFormState:Gv,useActionState:Gv,useOptimistic:function(r,i){var o=st();return Be!==null?Iv(o,Be,r,i):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:qf,useCacheRefresh:cb};pb.useEffectEvent=Xv;function th(r,i,o,u){i=r.memoizedState,o=o(u,i),o=o==null?i:m({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var nh={enqueueSetState:function(r,i,o){r=r._reactInternals;var u=wn(),h=fs(u);h.payload=i,o!=null&&(h.callback=o),i=hs(r,h,u),i!==null&&(ln(i,r,u),_o(i,r,u))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var u=wn(),h=fs(u);h.tag=1,h.payload=i,o!=null&&(h.callback=o),i=hs(r,h,u),i!==null&&(ln(i,r,u),_o(i,r,u))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=wn(),u=fs(o);u.tag=2,i!=null&&(u.callback=i),i=hs(r,u,o),i!==null&&(ln(i,r,o),_o(i,r,o))}};function mb(r,i,o,u,h,g,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,g,w):i.prototype&&i.prototype.isPureReactComponent?!mo(o,u)||!mo(h,g):!0}function gb(r,i,o,u){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,u),i.state!==r&&nh.enqueueReplaceState(i,i.state,null)}function di(r,i){var o=i;if("ref"in i){o={};for(var u in i)u!=="ref"&&(o[u]=i[u])}if(r=r.defaultProps){o===i&&(o=m({},o));for(var h in r)o[h]===void 0&&(o[h]=r[h])}return o}function yb(r){Jl(r)}function vb(r){console.error(r)}function bb(r){Jl(r)}function Sc(r,i){try{var o=r.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function wb(r,i,o){try{var u=r.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function rh(r,i,o){return o=fs(o),o.tag=3,o.payload={element:null},o.callback=function(){Sc(r,i)},o}function xb(r){return r=fs(r),r.tag=3,r}function Sb(r,i,o,u){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var g=u.value;r.payload=function(){return h(g)},r.callback=function(){wb(i,o,u)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(r.callback=function(){wb(i,o,u),typeof h!="function"&&(bs===null?bs=new Set([this]):bs.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function WR(r,i,o,u,h){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=o.alternate,i!==null&&Ji(i,o,h,!0),o=gn.current,o!==null){switch(o.tag){case 31:case 13:return Dn===null?Pc():o.alternate===null&&tt===0&&(tt=3),o.flags&=-257,o.flags|=65536,o.lanes=h,u===cc?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([u]):i.add(u),Rh(r,u,h)),!1;case 22:return o.flags|=65536,u===cc?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([u]):o.add(u)),Rh(r,u,h)),!1}throw Error(s(435,o.tag))}return Rh(r,u,h),Pc(),!1}if(De)return i=gn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,u!==Sf&&(r=Error(s(422),{cause:u}),vo(Rn(r,o)))):(u!==Sf&&(i=Error(s(423),{cause:u}),vo(Rn(i,o))),r=r.current.alternate,r.flags|=65536,h&=-h,r.lanes|=h,u=Rn(u,o),h=rh(r.stateNode,u,h),Nf(r,h),tt!==4&&(tt=2)),!1;var g=Error(s(520),{cause:u});if(g=Rn(g,o),Lo===null?Lo=[g]:Lo.push(g),tt!==4&&(tt=2),i===null)return!0;u=Rn(u,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,r=h&-h,o.lanes|=r,r=rh(o.stateNode,u,r),Nf(o,r),!1;case 1:if(i=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(bs===null||!bs.has(g))))return o.flags|=65536,h&=-h,o.lanes|=h,h=xb(h),Sb(h,r,o,u),Nf(o,h),!1}o=o.return}while(o!==null);return!1}var sh=Error(s(461)),lt=!1;function Rt(r,i,o,u){i.child=r===null?Av(i,null,o,u):ci(i,r.child,o,u)}function _b(r,i,o,u,h){o=o.render;var g=i.ref;if("ref"in u){var w={};for(var A in u)A!=="ref"&&(w[A]=u[A])}else w=u;return ii(i),u=If(r,i,o,w,g,h),A=Bf(),r!==null&&!lt?(Vf(r,i,h),Lr(r,i,h)):(De&&A&&wf(i),i.flags|=1,Rt(r,i,u,h),i.child)}function Eb(r,i,o,u,h){if(r===null){var g=o.type;return typeof g=="function"&&!yf(g)&&g.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=g,Tb(r,i,g,u,h)):(r=rc(o.type,null,u,i,i.mode,h),r.ref=i.ref,r.return=i,i.child=r)}if(g=r.child,!fh(r,h)){var w=g.memoizedProps;
vendor: 8,491 bytes, line 9
9if(o=o.compare,o=o!==null?o:mo,o(w,u)&&r.ref===i.ref)return Lr(r,i,h)}return i.flags|=1,r=Or(g,u),r.ref=i.ref,r.return=i,i.child=r}function Tb(r,i,o,u,h){if(r!==null){var g=r.memoizedProps;if(mo(g,u)&&r.ref===i.ref)if(lt=!1,i.pendingProps=u=g,fh(r,h))(r.flags&131072)!==0&&(lt=!0);else return i.lanes=r.lanes,Lr(r,i,h)}return ih(r,i,o,u,h)}function Ab(r,i,o,u){var h=u.children,g=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,r!==null){for(u=i.child=r.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;u=h&~g}else u=0,i.child=null;return Cb(r,i,g,o,u)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&oc(i,g!==null?g.cachePool:null),g!==null?kv(i,g):jf(),Mv(i);else return u=i.lanes=536870912,Cb(r,i,g!==null?g.baseLanes|o:o,o,u)}else g!==null?(oc(i,g.cachePool),kv(i,g),ms(),i.memoizedState=null):(r!==null&&oc(i,null),jf(),ms());return Rt(r,i,h,o),i.child}function Mo(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Cb(r,i,o,u,h){var g=kf();return g=g===null?null:{parent:at._currentValue,pool:g},i.memoizedState={baseLanes:o,cachePool:g},r!==null&&oc(i,null),jf(),Mv(i),r!==null&&Ji(r,i,u,!0),i.childLanes=h,null}function _c(r,i){return i=Tc({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function Rb(r,i,o){return ci(i,r.child,null,o),r=_c(i,i.pendingProps),r.flags|=2,yn(i),i.memoizedState=null,r}function JR(r,i,o){var u=i.pendingProps,h=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(De){if(u.mode==="hidden")return r=_c(i,u),i.lanes=536870912,Mo(null,r);if(Lf(i),(r=Fe)?(r=B0(r,On),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:os!==null?{id:ir,overflow:ar}:null,retryLane:536870912,hydrationErrors:null},o=dv(r),o.return=i,i.child=o,At=i,Fe=null)):r=null,r===null)throw cs(i);return i.lanes=536870912,null}return _c(i,u)}var g=r.memoizedState;if(g!==null){var w=g.dehydrated;if(Lf(i),h)if(i.flags&256)i.flags&=-257,i=Rb(r,i,o);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(s(558));else if(lt||Ji(r,i,o,!1),h=(o&r.childLanes)!==0,lt||h){if(u=qe,u!==null&&(w=en(u,o),w!==0&&w!==g.retryLane))throw g.retryLane=w,ti(r,w),ln(u,r,w),sh;Pc(),i=Rb(r,i,o)}else r=g.treeContext,Fe=Nn(w.nextSibling),At=i,De=!0,ls=null,On=!1,r!==null&&pv(i,r),i=_c(i,u),i.flags|=4096;return i}return r=Or(r.child,{mode:u.mode,children:u.children}),r.ref=i.ref,i.child=r,r.return=i,r}function Ec(r,i){var o=i.ref;if(o===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(r===null||r.ref!==o)&&(i.flags|=4194816)}}function ih(r,i,o,u,h){return ii(i),o=If(r,i,o,u,void 0,h),u=Bf(),r!==null&&!lt?(Vf(r,i,h),Lr(r,i,h)):(De&&u&&wf(i),i.flags|=1,Rt(r,i,o,h),i.child)}function kb(r,i,o,u,h,g){return ii(i),i.updateQueue=null,o=Dv(i,u,o,h),Ov(r),u=Bf(),r!==null&&!lt?(Vf(r,i,g),Lr(r,i,g)):(De&&u&&wf(i),i.flags|=1,Rt(r,i,o,g),i.child)}function Mb(r,i,o,u,h){if(ii(i),i.stateNode===null){var g=Ki,w=o.contextType;typeof w=="object"&&w!==null&&(g=Ct(w)),g=new o(u,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=nh,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=u,g.state=i.memoizedState,g.refs={},Of(i),w=o.contextType,g.context=typeof w=="object"&&w!==null?Ct(w):Ki,g.state=i.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(th(i,o,w,u),g.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(w=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),w!==g.state&&nh.enqueueReplaceState(g,g.state,null),To(i,u,g,h),Eo(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(r===null){g=i.stateNode;var A=i.memoizedProps,O=di(o,A);g.props=O;var V=g.context,F=o.contextType;w=Ki,typeof F=="object"&&F!==null&&(w=Ct(F));var W=o.getDerivedStateFromProps;F=typeof W=="function"||typeof g.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,F||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A||V!==w)&&gb(i,g,u,w),ds=!1;var $=i.memoizedState;g.state=$,To(i,u,g,h),Eo(),V=i.memoizedState,A||$!==V||ds?(typeof W=="function"&&(th(i,o,W,u),V=i.memoizedState),(O=ds||mb(i,o,O,u,$,V,w))?(F||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=V),g.props=u,g.state=V,g.context=w,u=O):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{g=i.stateNode,Df(r,i),w=i.memoizedProps,F=di(o,w),g.props=F,W=i.pendingProps,$=g.context,V=o.contextType,O=Ki,typeof V=="object"&&V!==null&&(O=Ct(V)),A=o.getDerivedStateFromProps,(V=typeof A=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==W||$!==O)&&gb(i,g,u,O),ds=!1,$=i.memoizedState,g.state=$,To(i,u,g,h),Eo();var q=i.memoizedState;w!==W||$!==q||ds||r!==null&&r.dependencies!==null&&ic(r.dependencies)?(typeof A=="function"&&(th(i,o,A,u),q=i.memoizedState),(F=ds||mb(i,o,F,u,$,q,O)||r!==null&&r.dependencies!==null&&ic(r.dependencies))?(V||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,q,O),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,q,O)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===r.memoizedProps&&$===r.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&$===r.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=q),g.props=u,g.state=q,g.context=O,u=F):(typeof g.componentDidUpdate!="function"||w===r.memoizedProps&&$===r.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&$===r.memoizedState||(i.flags|=1024),u=!1)}return g=u,Ec(r,i),u=(i.flags&128)!==0,g||u?(g=i.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,r!==null&&u?(i.child=ci(i,r.child,null,h),i.child=ci(i,null,o,h)):Rt(r,i,o,h),i.memoizedState=g.state,r=i.child):r=Lr(r,i,h),r}function Ob(r,i,o,u){return ri(),i.flags|=256,Rt(r,i,o,u),i.child}var ah={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oh(r){return{baseLanes:r,cachePool:wv()}}function lh(r,i,o){return r=r!==null?r.childLanes&~o:0,i&&(r|=bn),r}function Db(r,i,o){var u=i.pendingProps,h=!1,g=(i.flags&128)!==0,w;if((w=g)||(w=r!==null&&r.memoizedState===null?!1:(rt.current&2)!==0),w&&(h=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,r===null){if(De){if(h?ps(i):ms(),(r=Fe)?(r=B0(r,On),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:os!==null?{id:ir,overflow:ar}:null,retryLane:536870912,hydrationErrors:null},o=dv(r),o.return=i,i.child=o,At=i,Fe=null)):r=null,r===null)throw cs(i);return Hh(r)?i.lanes=32:i.lanes=536870912,null}var A=u.children;return u=u.fallback,h?(ms(),h=i.mode,A=Tc({mode:"hidden",children:A},h),u=ni(u,h,o,null),A.return=i,u.return=i,A.sibling=u,i.child=A,u=i.child,u.memoizedState=oh(o),u.childLanes=lh(r,w,o),i.memoizedState=ah,Mo(null,u)):(ps(i),ch(i,A))}var O=r.memoizedState;if(O!==null&&(A=O.dehydrated,A!==null)){if(g)i.flags&256?(ps(i),i.flags&=-257,i=uh(r,i,o)):i.memoizedState!==null?(ms(),i.child=r.child,i.flags|=128,i=null):(ms(),A=u.fallback,h=i.mode,u=Tc({mode:"visible",children:u.children},h),A=ni(A,h,o,null),A.flags|=2,u.return=i,A.return=i,u.sibling=A,i.child=u,ci(i,r.child,null,o),u=i.child,u.memoizedState=oh(o),u.childLanes=lh(r,w,o),i.memoizedState=ah,i=Mo(null,u));
vendor: 5,521 bytes, line 9
9else if(ps(i),Hh(A)){if(w=A.nextSibling&&A.nextSibling.dataset,w)var V=w.dgst;w=V,u=Error(s(419)),u.stack="",u.digest=w,vo({value:u,source:null,stack:null}),i=uh(r,i,o)}else if(lt||Ji(r,i,o,!1),w=(o&r.childLanes)!==0,lt||w){if(w=qe,w!==null&&(u=en(w,o),u!==0&&u!==O.retryLane))throw O.retryLane=u,ti(r,u),ln(w,r,u),sh;qh(A)||Pc(),i=uh(r,i,o)}else qh(A)?(i.flags|=192,i.child=r.child,i=null):(r=O.treeContext,Fe=Nn(A.nextSibling),At=i,De=!0,ls=null,On=!1,r!==null&&pv(i,r),i=ch(i,u.children),i.flags|=4096);return i}return h?(ms(),A=u.fallback,h=i.mode,O=r.child,V=O.sibling,u=Or(O,{mode:"hidden",children:u.children}),u.subtreeFlags=O.subtreeFlags&65011712,V!==null?A=Or(V,A):(A=ni(A,h,o,null),A.flags|=2),A.return=i,u.return=i,u.sibling=A,i.child=u,Mo(null,u),u=i.child,A=r.child.memoizedState,A===null?A=oh(o):(h=A.cachePool,h!==null?(O=at._currentValue,h=h.parent!==O?{parent:O,pool:O}:h):h=wv(),A={baseLanes:A.baseLanes|o,cachePool:h}),u.memoizedState=A,u.childLanes=lh(r,w,o),i.memoizedState=ah,Mo(r.child,u)):(ps(i),o=r.child,r=o.sibling,o=Or(o,{mode:"visible",children:u.children}),o.return=i,o.sibling=null,r!==null&&(w=i.deletions,w===null?(i.deletions=[r],i.flags|=16):w.push(r)),i.child=o,i.memoizedState=null,o)}function ch(r,i){return i=Tc({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function Tc(r,i){return r=mn(22,r,null,i),r.lanes=0,r}function uh(r,i,o){return ci(i,r.child,null,o),r=ch(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function Nb(r,i,o){r.lanes|=i;var u=r.alternate;u!==null&&(u.lanes|=i),Tf(r.return,i,o)}function dh(r,i,o,u,h,g){var w=r.memoizedState;w===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:h,treeForkCount:g}:(w.isBackwards=i,w.rendering=null,w.renderingStartTime=0,w.last=u,w.tail=o,w.tailMode=h,w.treeForkCount=g)}function Pb(r,i,o){var u=i.pendingProps,h=u.revealOrder,g=u.tail;u=u.children;var w=rt.current,A=(w&2)!==0;if(A?(w=w&1|2,i.flags|=128):w&=1,X(rt,w),Rt(r,i,u,o),u=De?yo:0,!A&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Nb(r,o,i);else if(r.tag===19)Nb(r,o,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(h){case"forwards":for(o=i.child,h=null;o!==null;)r=o.alternate,r!==null&&hc(r)===null&&(h=o),o=o.sibling;o=h,o===null?(h=i.child,i.child=null):(h=o.sibling,o.sibling=null),dh(i,!1,h,o,g,u);break;case"backwards":case"unstable_legacy-backwards":for(o=null,h=i.child,i.child=null;h!==null;){if(r=h.alternate,r!==null&&hc(r)===null){i.child=h;break}r=h.sibling,h.sibling=o,o=h,h=r}dh(i,!0,o,null,g,u);break;case"together":dh(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function Lr(r,i,o){if(r!==null&&(i.dependencies=r.dependencies),vs|=i.lanes,(o&i.childLanes)===0)if(r!==null){if(Ji(r,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(s(153));if(i.child!==null){for(r=i.child,o=Or(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=Or(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function fh(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&ic(r)))}function ek(r,i,o){switch(i.tag){case 3:be(i,i.stateNode.containerInfo),us(i,at,r.memoizedState.cache),ri();break;case 27:case 5:Vt(i);break;case 4:be(i,i.stateNode.containerInfo);break;case 10:us(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Lf(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(ps(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Db(r,i,o):(ps(i),r=Lr(r,i,o),r!==null?r.sibling:null);ps(i);break;case 19:var h=(r.flags&128)!==0;if(u=(o&i.childLanes)!==0,u||(Ji(r,i,o,!1),u=(o&i.childLanes)!==0),h){if(u)return Pb(r,i,o);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),X(rt,rt.current),u)break;return null;case 22:return i.lanes=0,Ab(r,i,o,i.pendingProps);case 24:us(i,at,r.memoizedState.cache)}return Lr(r,i,o)}function jb(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps)lt=!0;else{if(!fh(r,o)&&(i.flags&128)===0)return lt=!1,ek(r,i,o);lt=(r.flags&131072)!==0}else lt=!1,De&&(i.flags&1048576)!==0&&hv(i,yo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(r=oi(i.elementType),i.type=r,typeof r=="function")yf(r)?(u=di(r,u),i.tag=1,i=Mb(null,i,r,u,o)):(i.tag=0,i=ih(null,i,r,u,o));else{if(r!=null){var h=r.$$typeof;if(h===M){i.tag=11,i=_b(null,i,r,u,o);break e}else if(h===I){i.tag=14,i=Eb(null,i,r,u,o);break e}}throw i=me(r)||r,Error(s(306,i,""))}}return i;case 0:return ih(r,i,i.type,i.pendingProps,o);case 1:return u=i.type,h=di(u,i.pendingProps),Mb(r,i,u,h,o);case 3:e:{if(be(i,i.stateNode.containerInfo),r===null)throw Error(s(387));u=i.pendingProps;var g=i.memoizedState;h=g.element,Df(r,i),To(i,u,null,o);var w=i.memoizedState;if(u=w.cache,us(i,at,u),u!==g.cache&&Af(i,[at],o,!0),Eo(),u=w.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=Ob(r,i,u,o);break e}else if(u!==h){h=Rn(Error(s(424)),i),vo(h),i=Ob(r,i,u,o);break e}else for(r=i.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Fe=Nn(r.firstChild),At=i,De=!0,ls=null,On=!0,o=Av(i,null,u,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;
vendor: 2,233 bytes, line 9
9else{if(ri(),u===h){i=Lr(r,i,o);break e}Rt(r,i,u,o)}i=i.child}return i;case 26:return Ec(r,i),r===null?(o=Q0(i.type,null,i.pendingProps,null))?i.memoizedState=o:De||(o=i.type,r=i.pendingProps,u=Vc(oe.current).createElement(o),u[Tt]=i,u[tn]=r,kt(u,o,r),xt(u),i.stateNode=u):i.memoizedState=Q0(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return Vt(i),r===null&&De&&(u=i.stateNode=q0(i.type,i.pendingProps,oe.current),At=i,On=!0,h=Fe,_s(i.type)?(Fh=h,Fe=Nn(u.firstChild)):Fe=h),Rt(r,i,i.pendingProps.children,o),Ec(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&De&&((h=u=Fe)&&(u=Mk(u,i.type,i.pendingProps,On),u!==null?(i.stateNode=u,At=i,Fe=Nn(u.firstChild),On=!1,h=!0):h=!1),h||cs(i)),Vt(i),h=i.type,g=i.pendingProps,w=r!==null?r.memoizedProps:null,u=g.children,Bh(h,g)?u=null:w!==null&&Bh(h,w)&&(i.flags|=32),i.memoizedState!==null&&(h=If(r,i,FR,null,null,o),Fo._currentValue=h),Ec(r,i),Rt(r,i,u,o),i.child;case 6:return r===null&&De&&((r=o=Fe)&&(o=Ok(o,i.pendingProps,On),o!==null?(i.stateNode=o,At=i,Fe=null,r=!0):r=!1),r||cs(i)),null;case 13:return Db(r,i,o);case 4:return be(i,i.stateNode.containerInfo),u=i.pendingProps,r===null?i.child=ci(i,null,u,o):Rt(r,i,u,o),i.child;case 11:return _b(r,i,i.type,i.pendingProps,o);case 7:return Rt(r,i,i.pendingProps,o),i.child;case 8:return Rt(r,i,i.pendingProps.children,o),i.child;case 12:return Rt(r,i,i.pendingProps.children,o),i.child;case 10:return u=i.pendingProps,us(i,i.type,u.value),Rt(r,i,u.children,o),i.child;case 9:return h=i.type._context,u=i.pendingProps.children,ii(i),h=Ct(h),u=u(h),i.flags|=1,Rt(r,i,u,o),i.child;case 14:return Eb(r,i,i.type,i.pendingProps,o);case 15:return Tb(r,i,i.type,i.pendingProps,o);case 19:return Pb(r,i,o);case 31:return JR(r,i,o);case 22:return Ab(r,i,o,i.pendingProps);case 24:return ii(i),u=Ct(at),r===null?(h=kf(),h===null&&(h=qe,g=Cf(),h.pooledCache=g,g.refCount++,g!==null&&(h.pooledCacheLanes|=o),h=g),i.memoizedState={parent:u,cache:h},Of(i),us(i,at,h)):((r.lanes&o)!==0&&(Df(r,i),To(i,null,null,o),Eo()),h=r.memoizedState,g=i.memoizedState,h.parent!==u?(h={parent:u,cache:u},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),us(i,at,u)):(u=g.cache,us(i,at,u),u!==h.c
vendor: 4,306 bytes, line 9
9ache&&Af(i,[at],o,!0))),Rt(r,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}function Ur(r){r.flags|=4}function hh(r,i,o,u,h){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(h&335544128)===h)if(r.stateNode.complete)r.flags|=8192;else if(l0())r.flags|=8192;else throw li=cc,Mf}else r.flags&=-16777217}function zb(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!X0(i))if(l0())r.flags|=8192;else throw li=cc,Mf}function Ac(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Lt():536870912,r.lanes|=i,da|=i)}function Oo(r,i){if(!De)switch(r.tailMode){case"hidden":i=r.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function Qe(r){var i=r.alternate!==null&&r.alternate.child===r.child,o=0,u=0;if(i)for(var h=r.child;h!==null;)o|=h.lanes|h.childLanes,u|=h.subtreeFlags&65011712,u|=h.flags&65011712,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)o|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=u,r.childLanes=o,i}function tk(r,i,o){var u=i.pendingProps;switch(xf(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(i),null;case 1:return Qe(i),null;case 3:return o=i.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Pr(at),we(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Wi(i)?Ur(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,_f())),Qe(i),null;case 26:var h=i.type,g=i.memoizedState;return r===null?(Ur(i),g!==null?(Qe(i),zb(i,g)):(Qe(i),hh(i,h,null,u,o))):g?g!==r.memoizedState?(Ur(i),Qe(i),zb(i,g)):(Qe(i),i.flags&=-16777217):(r=r.memoizedProps,r!==u&&Ur(i),Qe(i),hh(i,h,r,u,o)),null;case 27:if(Pt(i),o=oe.current,h=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&Ur(i);else{if(!u){if(i.stateNode===null)throw Error(s(166));return Qe(i),null}r=re.current,Wi(i)?mv(i):(r=q0(h,u,o),i.stateNode=r,Ur(i))}return Qe(i),null;case 5:if(Pt(i),h=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&Ur(i);else{if(!u){if(i.stateNode===null)throw Error(s(166));return Qe(i),null}if(g=re.current,Wi(i))mv(i);else{var w=Vc(oe.current);switch(g){case 1:g=w.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:g=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":g=w.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":g=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":g=w.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof u.is=="string"?w.createElement("select",{is:u.is}):w.createElement("select"),u.multiple?g.multiple=!0:u.size&&(g.size=u.size);break;default:g=typeof u.is=="string"?w.createElement(h,{is:u.is}):w.createElement(h)}}g[Tt]=i,g[tn]=u;e:for(w=i.child;w!==null;){if(w.tag===5||w.tag===6)g.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===i)break e;for(;w.sibling===null;){if(w.return===null||w.return===i)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}i.stateNode=g;e:switch(kt(g,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Ur(i)}}return Qe(i),hh(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,o),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==u&&Ur(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(s(166));if(r=oe.current,Wi(i)){if(r=i.stateNode,o=i.memoizedProps,u=null,h=At,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}r[Tt]=i,r=!!(r.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||D0(r.nodeValue,o)),r||cs(i,!0)}else r=Vc(r).createTextNode(u),r[Tt]=i,i.stateNode=r}return Qe(i),null;case 31:if(o=i.memoizedState,r===null||r.memoizedState!==null){if(u=Wi(i),o!==null){if(r===null){if(!u)throw Error(s(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(557)
vendor: 23,217 bytes, line 9
9);r[Tt]=i}else ri(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Qe(i),r=!1}else o=_f(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return i.flags&256?(yn(i),i):(yn(i),null);if((i.flags&128)!==0)throw Error(s(558))}return Qe(i),null;case 13:if(u=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(h=Wi(i),u!==null&&u.dehydrated!==null){if(r===null){if(!h)throw Error(s(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[Tt]=i}else ri(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Qe(i),h=!1}else h=_f(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(yn(i),i):(yn(i),null)}return yn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=u!==null,r=r!==null&&r.memoizedState!==null,o&&(u=i.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),g=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==h&&(u.flags|=2048)),o!==r&&o&&(i.child.flags|=8192),Ac(i,i.updateQueue),Qe(i),null);case 4:return we(),r===null&&jh(i.stateNode.containerInfo),Qe(i),null;case 10:return Pr(i.type),Qe(i),null;case 19:if(H(rt),u=i.memoizedState,u===null)return Qe(i),null;if(h=(i.flags&128)!==0,g=u.rendering,g===null)if(h)Oo(u,!1);else{if(tt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(g=hc(r),g!==null){for(i.flags|=128,Oo(u,!1),r=g.updateQueue,i.updateQueue=r,Ac(i,r),i.subtreeFlags=0,r=o,o=i.child;o!==null;)uv(o,r),o=o.sibling;return X(rt,rt.current&1|2),De&&Dr(i,u.treeForkCount),i.child}r=r.sibling}u.tail!==null&&qt()>Oc&&(i.flags|=128,h=!0,Oo(u,!1),i.lanes=4194304)}else{if(!h)if(r=hc(g),r!==null){if(i.flags|=128,h=!0,r=r.updateQueue,i.updateQueue=r,Ac(i,r),Oo(u,!0),u.tail===null&&u.tailMode==="hidden"&&!g.alternate&&!De)return Qe(i),null}else 2*qt()-u.renderingStartTime>Oc&&o!==536870912&&(i.flags|=128,h=!0,Oo(u,!1),i.lanes=4194304);u.isBackwards?(g.sibling=i.child,i.child=g):(r=u.last,r!==null?r.sibling=g:i.child=g,u.last=g)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=qt(),r.sibling=null,o=rt.current,X(rt,h?o&1|2:o&1),De&&Dr(i,u.treeForkCount),r):(Qe(i),null);case 22:case 23:return yn(i),zf(),u=i.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(o&536870912)!==0&&(i.flags&128)===0&&(Qe(i),i.subtreeFlags&6&&(i.flags|=8192)):Qe(i),o=i.updateQueue,o!==null&&Ac(i,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==o&&(i.flags|=2048),r!==null&&H(ai),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Pr(at),Qe(i),null;case 25:return null;case 30:return null}throw Error(s(156,i.tag))}function nk(r,i){switch(xf(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Pr(at),we(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return Pt(i),null;case 31:if(i.memoizedState!==null){if(yn(i),i.alternate===null)throw Error(s(340));ri()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(yn(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(s(340));ri()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return H(rt),null;case 4:return we(),null;case 10:return Pr(i.type),null;case 22:case 23:return yn(i),zf(),r!==null&&H(ai),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return Pr(at),null;case 25:return null;default:return null}}function Lb(r,i){switch(xf(i),i.tag){case 3:Pr(at),we();break;case 26:case 27:case 5:Pt(i);break;case 4:we();break;case 31:i.memoizedState!==null&&yn(i);break;case 13:yn(i);break;case 19:H(rt);break;case 10:Pr(i.type);break;case 22:case 23:yn(i),zf(),r!==null&&H(ai);break;case 24:Pr(at)}}function Do(r,i){try{var o=i.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var h=u.next;o=h;do{if((o.tag&r)===r){u=void 0;var g=o.create,w=o.inst;u=g(),w.destroy=u}o=o.next}while(o!==h)}}catch(A){Ue(i,i.return,A)}}function gs(r,i,o){try{var u=i.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&r)===r){var w=u.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,h=i;var O=o,V=A;try{V()}catch(F){Ue(h,O,F)}}}u=u.next}while(u!==g)}}catch(F){Ue(i,i.return,F)}}function Ub(r){var i=r.updateQueue;if(i!==null){var o=r.stateNode;try{Rv(i,o)}catch(u){Ue(r,r.return,u)}}}function Ib(r,i,o){o.props=di(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(u){Ue(r,i,u)}}function No(r,i){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof o=="function"?r.refCleanup=o(u):o.current=u}}catch(h){Ue(r,i,h)}}function or(r,i){var o=r.ref,u=r.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(h){Ue(r,i,h)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){Ue(r,i,h)}else o.current=null}function Bb(r){var i=r.type,o=r.memoizedProps,u=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(h){Ue(r,r.return,h)}}function ph(r,i,o){try{var u=r.stateNode;Ek(u,r.type,o,i),u[tn]=i}catch(h){Ue(r,r.return,h)}}function Vb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&_s(r.type)||r.tag===4}function mh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Vb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&_s(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function gh(r,i,o){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(r),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=kr));else if(u!==4&&(u===27&&_s(r.type)&&(o=r.stateNode,i=null),r=r.child,r!==null))for(gh(r,i,o),r=r.sibling;r!==null;)gh(r,i,o),r=r.sibling}function Cc(r,i,o){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(u!==4&&(u===27&&_s(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(Cc(r,i,o),r=r.sibling;r!==null;)Cc(r,i,o),r=r.sibling}function $b(r){var i=r.stateNode,o=r.memoizedProps;try{for(var u=r.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);kt(i,u,o),i[Tt]=r,i[tn]=o}catch(g){Ue(r,r.return,g)}}var Ir=!1,ct=!1,yh=!1,qb=typeof WeakSet=="function"?WeakSet:Set,St=null;function rk(r,i){if(r=r.containerInfo,Uh=Gc,r=tv(r),uf(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var h=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var w=0,A=-1,O=-1,V=0,F=0,W=r,$=null;t:for(;;){for(var q;W!==o||h!==0&&W.nodeType!==3||(A=w+h),W!==g||u!==0&&W.nodeType!==3||(O=w+u),W.nodeType===3&&(w+=W.nodeValue.length),(q=W.firstChild)!==null;)$=W,W=q;for(;;){if(W===r)break t;if($===o&&++V===h&&(A=w),$===g&&++F===u&&(O=w),(q=W.nextSibling)!==null)break;W=$,$=W.parentNode}W=q}o=A===-1||O===-1?null:{start:A,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for(Ih={focusedElem:r,selectionRange:o},Gc=!1,St=i;St!==null;)if(i=St,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,St=r;else for(;St!==null;){switch(i=St,g=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)h=r[o],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,o=i,h=g.memoizedProps,g=g.memoizedState,u=o.stateNode;try{var le=di(o.type,h);r=u.getSnapshotBeforeUpdate(le,g),u.__reactInternalSnapshotBeforeUpdate=r}catch(ve){Ue(o,o.return,ve)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,o=r.nodeType,o===9)$h(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":$h(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(s(163))}if(r=i.sibling,r!==null){r.return=i.return,St=r;break}St=i.return}}function Hb(r,i,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:Vr(r,o),u&4&&Do(5,o);break;case 1:if(Vr(r,o),u&4)if(r=o.stateNode,i===null)try{r.componentDidMount()}catch(w){Ue(o,o.return,w)}else{var h=di(o.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(h,i,r.__reactInternalSnapshotBeforeUpdate)}catch(w){Ue(o,o.return,w)}}u&64&&Ub(o),u&512&&No(o,o.return);break;case 3:if(Vr(r,o),u&64&&(r=o.updateQueue,r!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{Rv(r,i)}catch(w){Ue(o,o.return,w)}}break;case 27:i===null&&u&4&&$b(o);case 26:case 5:Vr(r,o),i===null&&u&4&&Bb(o),u&512&&No(o,o.return);break;case 12:Vr(r,o);break;case 31:Vr(r,o),u&4&&Zb(r,o);break;case 13:Vr(r,o),u&4&&Gb(r,o),u&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=fk.bind(null,o),Dk(r,o))));break;case 22:if(u=o.memoizedState!==null||Ir,!u){i=i!==null&&i.memoizedState!==null||ct,h=Ir;var g=ct;Ir=u,(ct=i)&&!g?$r(r,o,(o.subtreeFlags&8772)!==0):Vr(r,o),Ir=h,ct=g}break;case 30:break;default:Vr(r,o)}}function Fb(r){var i=r.alternate;i!==null&&(r.alternate=null,Fb(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Qd(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Ke=null,rn=!1;function Br(r,i,o){for(o=o.child;o!==null;)Qb(r,i,o),o=o.sibling}function Qb(r,i,o){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Gs,o)}catch{}switch(o.tag){case 26:ct||or(o,i),Br(r,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ct||or(o,i);var u=Ke,h=rn;_s(o.type)&&(Ke=o.stateNode,rn=!1),Br(r,i,o),$o(o.stateNode),Ke=u,rn=h;break;case 5:ct||or(o,i);case 6:if(u=Ke,h=rn,Ke=null,Br(r,i,o),Ke=u,rn=h,Ke!==null)if(rn)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(o.stateNode)}catch(g){Ue(o,i,g)}else try{Ke.removeChild(o.stateNode)}catch(g){Ue(o,i,g)}break;case 18:Ke!==null&&(rn?(r=Ke,U0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),ba(r)):U0(Ke,o.stateNode));break;case 4:u=Ke,h=rn,Ke=o.stateNode.containerInfo,rn=!0,Br(r,i,o),Ke=u,rn=h;break;case 0:case 11:case 14:case 15:gs(2,o,i),ct||gs(4,o,i),Br(r,i,o);break;case 1:ct||(or(o,i),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Ib(o,i,u)),Br(r,i,o);break;case 21:Br(r,i,o);break;case 22:ct=(u=ct)||o.memoizedState!==null,Br(r,i,o),ct=u;break;default:Br(r,i,o)}}function Zb(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{ba(r)}catch(o){Ue(i,i.return,o)}}}function Gb(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{ba(r)}catch(o){Ue(i,i.return,o)}}function sk(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new qb),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new qb),i;default:throw Error(s(435,r.tag))}}function Rc(r,i){var o=sk(r);i.forEach(function(u){if(!o.has(u)){o.add(u);var h=hk.bind(null,r,u);u.then(h,h)}})}function sn(r,i){var o=i.deletions;if(o!==null)for(var u=0;u<o.length;u++){var h=o[u],g=r,w=i,A=w;e:for(;A!==null;){switch(A.tag){case 27:if(_s(A.type)){Ke=A.stateNode,rn=!1;break e}break;case 5:Ke=A.stateNode,rn=!1;break e;case 3:case 4:Ke=A.stateNode.containerInfo,rn=!0;break e}A=A.return}if(Ke===null)throw Error(s(160));Qb(g,w,h),Ke=null,rn=!1,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Kb(i,r),i=i.sibling}var Gn=null;function Kb(r,i){var o=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:sn(i,r),an(r),u&4&&(gs(3,r,r.return),Do(3,r),gs(5,r,r.return));break;case 1:sn(i,r),an(r),u&512&&(ct||o===null||or(o,o.return)),u&64&&Ir&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var h=Gn;if(sn(i,r),an(r),u&512&&(ct||o===null||or(o,o.return)),u&4){var g=o!==null?o.memoizedState:null;if(u=r.memoizedState,o===null)if(u===null)if(r.stateNode===null){e:{u=r.type,o=r.memoizedProps,h=h.ownerDocument||h;t:switch(u){case"title":g=h.getElementsByTagName("title")[0],(!g||g[io]||g[Tt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=h.createElement(u),h.head.insertBefore(g,h.querySelector("head > title"))),kt(g,u,o),g[Tt]=r,xt(g),u=g;break e;case"link":var w=K0("link","href",h).get(u+(o.href||""));if(w){for(var A=0;A<w.length;A++)if(g=w[A],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){w.splice(A,1);break t}}g=h.createElement(u),kt(g,u,o),h.head.appendChild(g);break;case"meta":if(w=K0("meta","content",h).get(u+(o.content||""))){for(A=0;A<w.length;A++)if(g=w[A],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){w.splice(A,1);break t}}g=h.createElement(u),kt(g,u,o),h.head.appendChild(g);break;default:throw Error(s(468,u))}g[Tt]=r,xt(g),u=g}r.stateNode=u}else Y0(h,r.type,r.stateNode);else r.stateNode=G0(h,u,r.memoizedProps);else g!==u?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,u===null?Y0(h,r.type,r.stateNode):G0(h,u,r.memoizedProps)):u===null&&r.stateNode!==null&&ph(r,r.memoizedProps,o.memoizedProps)}break;case 27:sn(i,r),an(r),u&512&&(ct||o===null||or(o,o.return)),o!==null&&u&4&&ph(r,r.memoizedProps,o.memoizedProps);break;case 5:if(sn(i,r),an(r),u&512&&(ct||o===null||or(o,o.return)),r.flags&32){h=r.stateNode;try{$i(h,"")}catch(le){Ue(r,r.return,le)}}u&4&&r.stateNode!=null&&(h=r.memoizedProps,ph(r,h,o!==null?o.memoizedProps:h)),u&1024&&(yh=!0);break;case 6:if(sn(i,r),an(r),u&4){if(r.stateNode===null)throw Error(s(162));u=r.memoizedProps,o=r.stateNode;try{o.nodeValue=u}catch(le){Ue(r,r.return,le)}}break;case 3:if(Hc=null,h=Gn,Gn=$c(i.containerInfo),sn(i,r),Gn=h,an(r),u&4&&o!==null&&o.memoizedState.isDehydrated)try{ba(i.containerInfo)}catch(le){Ue(r,r.return,le)}yh&&(yh=!1,Yb(r));break;case 4:u=Gn,Gn=$c(r.stateNode.containerInfo),sn(i,r),an(r),Gn=u;break;case 12:sn(i,r),an(r);break;case 31:sn(i,r),an(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Rc(r,u)));break;case 13:sn(i,r),an(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Mc=qt()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Rc(r,u)));break;case 22:h=r.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,V=Ir,F=ct;if(Ir=V||h,ct=F||O,sn(i,r),ct=F,Ir=V,an(r),u&8192)e:for(i=r.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(o===null||O||Ir||ct||fi(r)),o=null,i=r;;){if(i.tag===5||i.tag===26){if(o===null){O=o=i;try{if(g=O.stateNode,h)w=g.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{A=O.stateNode;var W=O.memoizedProps.style,$=W!=null&&W.hasOwnProperty("display")?W.display:null;A.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(le){Ue(O,O.return,le)}}}else if(i.tag===6){if(o===null){O=i;try{O.stateNode.nodeValue=h?"":O.memoizedProps}catch(le){Ue(O,O.return,le)}}}else if(i.tag===18){if(o===null){O=i;try{var q=O.stateNode;h?I0(q,!0):I0(O.stateNode,!1)}catch(le){Ue(O,O.return,le)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=r.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Rc(r,o))));break;case 19:sn(i,r),an(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Rc(r,u)));break;case 30:break;case 21:break;default:sn(i,r),an(r)}}function an(r){var i=r.flags;if(i&2){try{for(var o,u=r.return;u!==null;){if(Vb(u)){o=u;break}u=u.return}if(o==null)throw Error(s(160));switch(o.tag){case 27:var h=o.stateNode,g=mh(r);Cc(r,g,h);break;case 5:var w=o.stateNode;o.flags&32&&($i(w,""),o.flags&=-33);var A=mh(r);Cc(r,A,w);break;case 3:case 4:var O=o.stateNode.containerInfo,V=mh(r);gh(r,V,O);break;default:throw Error(s(161))}}catch(F){Ue(r,r.return,F)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function Yb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;Yb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function Vr(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Hb(r,i.alternate,i),i=i.sibling}function fi(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:gs(4,i,i.return),fi(i);break;case 1:or(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&Ib(i,i.return,o),fi(i);break;case 27:$o(i.stateNode);case 26:case 5:or(i,i.return),fi(i);break;case 22:i.memoizedState===null&&fi(i);break;case 30:fi(i);break;default:fi(i)}r=r.sibling}}function $r(r,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,h=r,g=i,w=g.flags;switch(g.tag){case 0:case 11:case 15:$r(h,g,o),Do(4,g);break;case 1:if($r(h,g,o),u=g,h=u.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(V){Ue(u,u.return,V)}if(u=g,h=u.updateQueue,h!==null){var A=u.stateNode;try{var O=h.shared.hiddenCallbacks;if(O!==null)for(h.shared.hiddenCallbacks=null,h=0;h<O.length;h++)Cv(O[h],A)}catch(V){Ue(u,u.return,V)}}o&&w&64&&Ub(g),No(g,g.return);break;case 27:$b(g);case 26:case 5:$r(h,g,o),o&&u===null&&w&4&&Bb(g),No(g,g.return);break;case 12:$r(h,g,o);break;case 31:$r(h,g,o),o&&w&4&&Zb(h,g);break;case 13:$r(h,g,o),o&&w&4&&Gb(h,g);break;case 22:g.memoizedState===null&&$r(h,g,o),No(g,g.return);break;case 30:break;default:$r(h,g,o)}i=i.sibling}}function vh(r,i){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&bo(o))}function bh(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&bo(r))}function Kn(r,i,o,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Xb(r,i,o,u),i=i.sibling}function Xb(r,i,o,u){var h=i.flags;switch(i.tag){case 0:case 11:case 15:Kn(r,i,o,u),h&2048&&Do(9,i);break;case 1:Kn(r,i,o,u);break;case 3:Kn(r,i,o,u),h&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&bo(r)));break;case 12:if(h&2048){Kn(r,i,o,u),r=i.stateNode;try{var g=i.memoizedProps,w=g.id,A=g.onPostCommit;typeof A=="function"&&A(w,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(O){Ue(i,i.return,O)}}else Kn(r,i,o,u);break;case 31:Kn(r,i,o,u);break;case 13:Kn(r,i,o,u);break;case 23:break;case 22:g=i.stateNode,w=i.alternate,i.memoizedState!==null?g._visibility&2?Kn(r,i,o,u):Po(r,i):g._visibility&2?Kn(r,i,o,u):(g._visibility|=2,la(r,i,o,u,(i.subtreeFlags&10256)!==0||!1)),h&2048&&vh(w,i);break;case 24:Kn(r,i,o,u),h&2048&&bh(i.alternate,i);break;default:Kn(r,i,o,u)}}function la(r,i,o,u,h){for(h=h&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=r,w=i,A=o,O=u,V=w.flags;switch(w.tag){case 0:case 11:case 15:la(g,w,A,O,h),Do(8,w);break;case 23:break;case 22:var F=w.stateNode;w.memoizedState!==null?F._visibility&2?la(g,w,A,O,h):Po(g,w):(F._visibility|=2,la(g,w,A,O,h)),h&&V&2048&&vh(w.alternate,w);break;case 24:la(g,w,A,O,h),h&&V&2048&&bh(w.alternate,w);break;default:la(g,w,A,O,h)}i=i.sibling}}function Po(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=r,u=i,h=u.flags;switch(u.tag){case 22:Po(o,u),h&2048&&vh(u.alternate,u);break;case 24:Po(o,u),h&2048&&bh(u.alternate,u);break;default:Po(o,u)}i=i.sibling}}var jo=8192;function ca(r,i,o){if(r.subtreeFlags&jo)for(r=r.child;r!==null;)Wb(r,i,o),r=r.sibling}function Wb(r,i,o){switch(r.tag){case 26:ca(r,i,o),r.flags&jo&&r.memoizedState!==null&&Hk(o,Gn,r.memoizedState,r.memoizedProps);break;case 5:ca(r,i,o);break;case 3:case 4:var u=Gn;Gn=$c(r.stateNode.containerInfo),ca(r,i,o),Gn=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=jo,jo=16777216,ca(r,i,o),jo=u):ca(r,i,o));break;default:ca(r,i,o)}}function Jb(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function zo(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var u=i[o];St=u,t0(u,r)}Jb(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)e0(r),r=r.sibling}function e0(r){switch(r.tag){case 0:case 11:case 15:zo(r),r.flags&2048&&gs(9,r,r.return);break;case 3:zo(r);break;case 12:zo(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,kc(r)):zo(r);break;default:zo(r)}}function kc(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var u=i[o];St=u,t0(u,r)}Jb(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:gs(8,i,i.return),kc(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,kc(i));break;default:kc(i)}r=r.sibling}}function t0(r,i){for(;St!==null;){var o=St;switch(o.tag){case 0:case 11:case 15:gs(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:bo(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,St=u;else e:for(o=r;St!==null;){u=St;var h=u.sibling,g=u.return;if(Fb(u),u===o){St=null;break e}if(h!==null){h.return=g,St=h;break e}St=g}}}var ik={getCacheForType:function(r){var i=Ct(at),o=i.data.get(r);return o===void 0&&(o=r(),i.data.set(r,o)),o},cacheSignal:function(){return Ct(at).controller.signal}},ak=typeof WeakMap=="function"?WeakMap:Map,ze=0,qe=null,Re=null,Me=0,Le=0,vn=null,ys=!1,ua=!1,wh=!1,qr=0,tt=0,vs=0,hi=0,xh=0,bn=0,da=0,Lo=null,on=null,Sh=!1,Mc=0,n0=0,Oc=1/0,Dc=null,bs=null,mt=0,ws=null,fa=null,Hr=0,_h=0,Eh=null,r0=null,U
vendor: 24,638 bytes, lines 9-10
9o=0,Th=null;function wn(){return(ze&2)!==0&&Me!==0?Me&-Me:N.T!==null?Oh():Hd()}function s0(){if(bn===0)if((Me&536870912)===0||De){var r=Pi;Pi<<=1,(Pi&3932160)===0&&(Pi=262144),bn=r}else bn=536870912;return r=gn.current,r!==null&&(r.flags|=32),bn}function ln(r,i,o){(r===qe&&(Le===2||Le===9)||r.cancelPendingCommit!==null)&&(ha(r,0),xs(r,Me,bn,!1)),We(r,o),((ze&2)===0||r!==qe)&&(r===qe&&((ze&2)===0&&(hi|=o),tt===4&&xs(r,Me,bn,!1)),lr(r))}function i0(r,i,o){if((ze&6)!==0)throw Error(s(327));var u=!o&&(i&127)===0&&(i&r.expiredLanes)===0||Ge(r,i),h=u?ck(r,i):Ch(r,i,!0),g=u;do{if(h===0){ua&&!u&&xs(r,i,0,!1);break}else{if(o=r.current.alternate,g&&!ok(o)){h=Ch(r,i,!1),g=!1;continue}if(h===2){if(g=i,r.errorRecoveryDisabledLanes&g)var w=0;else w=r.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var A=r;h=Lo;var O=A.current.memoizedState.isDehydrated;if(O&&(ha(A,w).flags|=256),w=Ch(A,w,!1),w!==2){if(wh&&!O){A.errorRecoveryDisabledLanes|=g,hi|=g,h=4;break e}g=on,on=h,g!==null&&(on===null?on=g:on.push.apply(on,g))}h=w}if(g=!1,h!==2)continue}}if(h===1){ha(r,0),xs(r,i,0,!0);break}e:{switch(u=r,g=h,g){case 0:case 1:throw Error(s(345));case 4:if((i&4194048)!==i)break;case 6:xs(u,i,bn,!ys);break e;case 2:on=null;break;case 3:case 5:break;default:throw Error(s(329))}if((i&62914560)===i&&(h=Mc+300-qt(),10<h)){if(xs(u,i,bn,!ys),xe(u,0,!0)!==0)break e;Hr=i,u.timeoutHandle=z0(a0.bind(null,u,o,on,Dc,Sh,i,bn,hi,da,ys,g,"Throttled",-0,0),h);break e}a0(u,o,on,Dc,Sh,i,bn,hi,da,ys,g,null,-0,0)}}break}while(!0);lr(r)}function a0(r,i,o,u,h,g,w,A,O,V,F,W,$,q){if(r.timeoutHandle=-1,W=i.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kr},Wb(i,g,W);var le=(g&62914560)===g?Mc-qt():(g&4194048)===g?n0-qt():0;if(le=Fk(W,le),le!==null){Hr=g,r.cancelPendingCommit=le(p0.bind(null,r,i,g,o,u,h,w,A,O,F,W,null,$,q)),xs(r,g,w,!V);return}}p0(r,i,g,o,u,h,w,A,O)}function ok(r){for(var i=r;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var h=o[u],g=h.getSnapshot;h=h.value;try{if(!pn(g(),h))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function xs(r,i,o,u){i&=~xh,i&=~hi,r.suspendedLanes|=i,r.pingedLanes&=~i,u&&(r.warmLanes|=i),u=r.expirationTimes;for(var h=i;0<h;){var g=31-zt(h),w=1<<g;u[g]=-1,h&=~w}o!==0&&Ys(r,o,i)}function Nc(){return(ze&6)===0?(Io(0),!1):!0}function Ah(){if(Re!==null){if(Le===0)var r=Re.return;else r=Re,Nr=si=null,$f(r),ra=null,xo=0,r=Re;for(;r!==null;)Lb(r.alternate,r),r=r.return;Re=null}}function ha(r,i){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,Ck(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Hr=0,Ah(),qe=r,Re=o=Or(r.current,null),Me=i,Le=0,vn=null,ys=!1,ua=Ge(r,i),wh=!1,da=bn=xh=hi=vs=tt=0,on=Lo=null,Sh=!1,(i&8)!==0&&(i|=i&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=i;0<u;){var h=31-zt(u),g=1<<h;i|=r[h],u&=~g}return qr=i,ec(),o}function o0(r,i){Ee=null,N.H=ko,i===na||i===lc?(i=_v(),Le=3):i===Mf?(i=_v(),Le=4):Le=i===sh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,vn=i,Re===null&&(tt=1,Sc(r,Rn(i,r.current)))}function l0(){var r=gn.current;return r===null?!0:(Me&4194048)===Me?Dn===null:(Me&62914560)===Me||(Me&536870912)!==0?r===Dn:!1}function c0(){var r=N.H;return N.H=ko,r===null?ko:r}function u0(){var r=N.A;return N.A=ik,r}function Pc(){tt=4,ys||(Me&4194048)!==Me&&gn.current!==null||(ua=!0),(vs&134217727)===0&&(hi&134217727)===0||qe===null||xs(qe,Me,bn,!1)}function Ch(r,i,o){var u=ze;ze|=2;var h=c0(),g=u0();(qe!==r||Me!==i)&&(Dc=null,ha(r,i)),i=!1;var w=tt;e:do try{if(Le!==0&&Re!==null){var A=Re,O=vn;switch(Le){case 8:Ah(),w=6;break e;case 3:case 2:case 9:case 6:gn.current===null&&(i=!0);var V=Le;if(Le=0,vn=null,pa(r,A,O,V),o&&ua){w=0;break e}break;default:V=Le,Le=0,vn=null,pa(r,A,O,V)}}lk(),w=tt;break}catch(F){o0(r,F)}while(!0);return i&&r.shellSuspendCounter++,Nr=si=null,ze=u,N.H=h,N.A=g,Re===null&&(qe=null,Me=0,ec()),w}function lk(){for(;Re!==null;)d0(Re)}function ck(r,i){var o=ze;ze|=2;var u=c0(),h=u0();qe!==r||Me!==i?(Dc=null,Oc=qt()+500,ha(r,i)):ua=Ge(r,i);e:do try{if(Le!==0&&Re!==null){i=Re;var g=vn;t:switch(Le){case 1:Le=0,vn=null,pa(r,i,g,1);break;case 2:case 9:if(xv(g)){Le=0,vn=null,f0(i);break}i=function(){Le!==2&&Le!==9||qe!==r||(Le=7),lr(r)},g.then(i,i);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:xv(g)?(Le=0,vn=null,f0(i)):(Le=0,vn=null,pa(r,i,g,7));break;case 5:var w=null;switch(Re.tag){case 26:w=Re.memoizedState;case 5:case 27:var A=Re;if(w?X0(w):A.stateNode.complete){Le=0,vn=null;var O=A.sibling;if(O!==null)Re=O;else{var V=A.return;V!==null?(Re=V,jc(V)):Re=null}break t}}Le=0,vn=null,pa(r,i,g,5);break;case 6:Le=0,vn=null,pa(r,i,g,6);break;case 8:Ah(),tt=6;break e;default:throw Error(s(462))}}uk();break}catch(F){o0(r,F)}while(!0);return Nr=si=null,N.H=u,N.A=h,ze=o,Re!==null?0:(qe=null,Me=0,ec(),tt)}function uk(){for(;Re!==null&&!$t();)d0(Re)}function d0(r){var i=jb(r.alternate,r,qr);r.memoizedProps=r.pendingProps,i===null?jc(r):Re=i}function f0(r){var i=r,o=i.alternate;switch(i.tag){case 15:case 0:i=kb(o,i,i.pendingProps,i.type,void 0,Me);break;case 11:i=kb(o,i,i.pendingProps,i.type.render,i.ref,Me);break;case 5:$f(i);default:Lb(o,i),i=Re=uv(i,qr),i=jb(o,i,qr)}r.memoizedProps=r.pendingProps,i===null?jc(r):Re=i}function pa(r,i,o,u){Nr=si=null,$f(i),ra=null,xo=0;var h=i.return;try{if(WR(r,h,i,o,Me)){tt=1,Sc(r,Rn(o,r.current)),Re=null;return}}catch(g){if(h!==null)throw Re=h,g;tt=1,Sc(r,Rn(o,r.current)),Re=null;return}i.flags&32768?(De||u===1?r=!0:ua||(Me&536870912)!==0?r=!1:(ys=r=!0,(u===2||u===9||u===3||u===6)&&(u=gn.current,u!==null&&u.tag===13&&(u.flags|=16384))),h0(i,r)):jc(i)}function jc(r){var i=r;do{if((i.flags&32768)!==0){h0(i,ys);return}r=i.return;var o=tk(i.alternate,i,qr);if(o!==null){Re=o;return}if(i=i.sibling,i!==null){Re=i;return}Re=i=r}while(i!==null);tt===0&&(tt=5)}function h0(r,i){do{var o=nk(r.alternate,r);if(o!==null){o.flags&=32767,Re=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(r=r.sibling,r!==null)){Re=r;return}Re=r=o}while(r!==null);tt=6,Re=null}function p0(r,i,o,u,h,g,w,A,O){r.cancelPendingCommit=null;do zc();while(mt!==0);if((ze&6)!==0)throw Error(s(327));if(i!==null){if(i===r.current)throw Error(s(177));if(g=i.lanes|i.childLanes,g|=mf,Wt(r,o,g,w,A,O),r===qe&&(Re=qe=null,Me=0),fa=i,ws=r,Hr=o,_h=g,Eh=h,r0=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,pk(Zs,function(){return b0(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=N.T,N.T=null,h=Q.p,Q.p=2,w=ze,ze|=4;try{rk(r,i,o)}finally{ze=w,Q.p=h,N.T=u}}mt=1,m0(),g0(),y0()}}function m0(){if(mt===1){mt=0;var r=ws,i=fa,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=N.T,N.T=null;var u=Q.p;Q.p=2;var h=ze;ze|=4;try{Kb(i,r);var g=Ih,w=tv(r.containerInfo),A=g.focusedElem,O=g.selectionRange;if(w!==A&&A&&A.ownerDocument&&ev(A.ownerDocument.documentElement,A)){if(O!==null&&uf(A)){var V=O.start,F=O.end;if(F===void 0&&(F=V),"selectionStart"in A)A.selectionStart=V,A.selectionEnd=Math.min(F,A.value.length);else{var W=A.ownerDocument||document,$=W&&W.defaultView||window;if($.getSelection){var q=$.getSelection(),le=A.textContent.length,ve=Math.min(O.start,le),$e=O.end===void 0?ve:Math.min(O.end,le);!q.extend&&ve>$e&&(w=$e,$e=ve,ve=w);var L=Jy(A,ve),P=Jy(A,$e);if(L&&P&&(q.rangeCount!==1||q.anchorNode!==L.node||q.anchorOffset!==L.offset||q.focusNode!==P.node||q.focusOffset!==P.offset)){var B=W.createRange();B.setStart(L.node,L.offset),q.removeAllRanges(),ve>$e?(q.addRange(B),q.extend(P.node,P.offset)):(B.setEnd(P.node,P.offset),q.addRange(B))}}}}for(W=[],q=A;q=q.parentNode;)q.nodeType===1&&W.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<W.length;A++){var G=W[A];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Gc=!!Uh,Ih=Uh=null}finally{ze=h,Q.p=u,N.T=o}}r.current=i,mt=2}}function g0(){if(mt===2){mt=0;var r=ws,i=fa,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=N.T,N.T=null;var u=Q.p;Q.p=2;var h=ze;ze|=4;try{Hb(r,i.alternate,i)}finally{ze=h,Q.p=u,N.T=o}}mt=3}}function y0(){if(mt===4||mt===3){mt=0,ns();var r=ws,i=fa,o=Hr,u=r0;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?mt=5:(mt=0,fa=ws=null,v0(r,r.pendingLanes));var h=r.pendingLanes;if(h===0&&(bs=null),Qn(o),i=i.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Gs,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=N.T,h=Q.p,Q.p=2,N.T=null;try{for(var g=r.onRecoverableError,w=0;w<u.length;w++){var A=u[w];g(A.value,{componentStack:A.stack})}}finally{N.T=i,Q.p=h}}(Hr&3)!==0&&zc(),lr(r),h=r.pendingLanes,(o&261930)!==0&&(h&42)!==0?r===Th?Uo++:(Uo=0,Th=r):Uo=0,Io(0)}}function v0(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,bo(i)))}function zc(){return m0(),g0(),y0(),b0()}function b0(){if(mt!==5)return!1;var r=ws,i=_h;_h=0;var o=Qn(Hr),u=N.T,h=Q.p;try{Q.p=32>o?32:o,N.T=null,o=Eh,Eh=null;var g=ws,w=Hr;if(mt=0,fa=ws=null,Hr=0,(ze&6)!==0)throw Error(s(331));var A=ze;if(ze|=4,e0(g.current),Xb(g,g.current,w,o),ze=A,Io(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Gs,g)}catch{}return!0}finally{Q.p=h,N.T=u,v0(r,i)}}function w0(r,i,o){i=Rn(o,i),i=rh(r.stateNode,i,2),r=hs(r,i,2),r!==null&&(We(r,2),lr(r))}function Ue(r,i,o){if(r.tag===3)w0(r,r,o);else for(;i!==null;){if(i.tag===3){w0(i,r,o);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(bs===null||!bs.has(u))){r=Rn(o,r),o=xb(2),u=hs(i,o,2),u!==null&&(Sb(o,u,i,r),We(u,2),lr(u));break}}i=i.return}}function Rh(r,i,o){var u=r.pingCache;if(u===null){u=r.pingCache=new ak;var h=new Set;u.set(i,h)}else h=u.get(i),h===void 0&&(h=new Set,u.set(i,h));h.has(o)||(wh=!0,h.add(o),r=dk.bind(null,r,i,o),i.then(r,r))}function dk(r,i,o){var u=r.pingCache;u!==null&&u.delete(i),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,qe===r&&(Me&o)===o&&(tt===4||tt===3&&(Me&62914560)===Me&&300>qt()-Mc?(ze&2)===0&&ha(r,0):xh|=o,da===Me&&(da=0)),lr(r)}function x0(r,i){i===0&&(i=Lt()),r=ti(r,i),r!==null&&(We(r,i),lr(r))}function fk(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),x0(r,o)}function hk(r,i){var o=0;switch(r.tag){case 31:case 13:var u=r.stateNode,h=r.memoizedState;h!==null&&(o=h.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(s(314))}u!==null&&u.delete(i),x0(r,o)}function pk(r,i){return to(r,i)}var Lc=null,ma=null,kh=!1,Uc=!1,Mh=!1,Ss=0;function lr(r){r!==ma&&r.next===null&&(ma===null?Lc=ma=r:ma=ma.next=r),Uc=!0,kh||(kh=!0,gk())}function Io(r,i){if(!Mh&&Uc){Mh=!0;do for(var o=!1,u=Lc;u!==null;){if(r!==0){var h=u.pendingLanes;if(h===0)var g=0;else{var w=u.suspendedLanes,A=u.pingedLanes;g=(1<<31-zt(42|r)+1)-1,g&=h&~(w&~A),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,T0(u,g))}else g=Me,g=xe(u,u===qe?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(g&3)===0||Ge(u,g)||(o=!0,T0(u,g));u=u.next}while(o);Mh=!1}}function mk(){S0()}function S0(){Uc=kh=!1;var r=0;Ss!==0&&Ak()&&(r=Ss);for(var i=qt(),o=null,u=Lc;u!==null;){var h=u.next,g=_0(u,i);g===0?(u.next=null,o===null?Lc=h:o.next=h,h===null&&(ma=o)):(o=u,(r!==0||(g&3)!==0)&&(Uc=!0)),u=h}mt!==0&&mt!==5||Io(r),Ss!==0&&(Ss=0)}function _0(r,i){for(var o=r.suspendedLanes,u=r.pingedLanes,h=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var w=31-zt(g),A=1<<w,O=h[w];O===-1?((A&o)===0||(A&u)!==0)&&(h[w]=wt(A,i)):O<=i&&(r.expiredLanes|=A),g&=~A}if(i=qe,o=Me,o=xe(r,r===i?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,o===0||r===i&&(Le===2||Le===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&no(u),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||Ge(r,o)){if(i=o&-o,i===r.callbackPriority)return i;switch(u!==null&&no(u),Qn(o)){case 2:case 8:o=Vl;break;case 32:o=Zs;break;case 268435456:o=Cr;break;default:o=Zs}return u=E0.bind(null,r),o=to(o,u),r.callbackPriority=i,r.callbackNode=o,i}return u!==null&&u!==null&&no(u),r.callbackPriority=2,r.callbackNode=null,2}function E0(r,i){if(mt!==0&&mt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(zc()&&r.callbackNode!==o)return null;var u=Me;return u=xe(r,r===qe?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(i0(r,u,i),_0(r,qt()),r.callbackNode!=null&&r.callbackNode===o?E0.bind(null,r):null)}function T0(r,i){if(zc())return null;i0(r,i,!0)}function gk(){Rk(function(){(ze&6)!==0?to(Qs,mk):S0()})}function Oh(){if(Ss===0){var r=ea;r===0&&(r=Ni,Ni<<=1,(Ni&261888)===0&&(Ni=256)),Ss=r}return Ss}function A0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Ql(""+r)}function C0(r,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,r.id&&o.setAttribute("form",r.id),i.parentNode.insertBefore(o,i),r=new FormData(r),o.parentNode.removeChild(o),r}function yk(r,i,o,u,h){if(i==="submit"&&o&&o.stateNode===h){var g=A0((h[tn]||null).action),w=u.submitter;w&&(i=(i=w[tn]||null)?A0(i.formAction):w.getAttribute("formAction"),i!==null&&(g=i,w=null));var A=new Yl("action","action",null,u,h);r.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ss!==0){var O=w?C0(h,w):new FormData(h);Xf(o,{pending:!0,data:O,method:h.method,action:g},null,O)}}else typeof g=="function"&&(A.preventDefault(),O=w?C0(h,w):new FormData(h),Xf(o,{pending:!0,data:O,method:h.method,action:g},g,O))},currentTarget:h}]})}}for(var Dh=0;Dh<pf.length;Dh++){var Nh=pf[Dh],vk=Nh.toLowerCase(),bk=Nh[0].toUpperCase()+Nh.slice(1);Zn(vk,"on"+bk)}Zn(sv,"onAnimationEnd"),Zn(iv,"onAnimationIteration"),Zn(av,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(jR,"onTransitionRun"),Zn(zR,"onTransitionStart"),Zn(LR,"onTransitionCancel"),Zn(ov,"onTransitionEnd"),Bi("onMouseEnter",["mouseout","mouseover"]),Bi("onMouseLeave",["mouseout","mouseover"]),Bi("onPointerEnter",["pointerout","pointerover"]),Bi("onPointerLeave",["pointerout","pointerover"]),Xs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="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(" "),wk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bo));function R0(r,i){i=(i&4)!==0;for(var o=0;o<r.length;o++){var u=r[o],h=u.event;u=u.listeners;e:{var g=void 0;if(i)for(var w=u.length-1;0<=w;w--){var A=u[w],O=A.instance,V=A.currentTarget;if(A=A.listener,O!==g&&h.isPropagationStopped())break e;g=A,h.currentTarget=V;try{g(h)}catch(F){Jl(F)}h.currentTarget=null,g=O}else for(w=0;w<u.length;w++){if(A=u[w],O=A.instance,V=A.currentTarget,A=A.listener,O!==g&&h.isPropagationStopped())break e;g=A,h.currentTarget=V;try{g(h)}catch(F){Jl(F)}h.currentTarget=null,g=O}}}}function ke(r,i){var o=i[Fd];o===void 0&&(o=i[Fd]=new Set);var u=r+"__bubble";o.has(u)||(k0(i,r,2,!1),o.add(u))}function Ph(r,i,o){var u=0;i&&(u|=4),k0(o,r,u,i)}var Ic="_reactListening"+Math.random().toString(36).slice(2);function jh(r){if(!r[Ic]){r[Ic]=!0,Sy.forEach(function(o){o!=="selectionchange"&&(wk.has(o)||Ph(o,!1,r),Ph(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Ic]||(i[Ic]=!0,Ph("selectionchange",!1,i))}}function k0(r,i,o,u){switch(sw(i)){case 2:var h=Gk;break;case 8:h=Kk;break;default:h=Yh}o=h.bind(null,i,o,r),h=void 0,!ef||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),u?h!==void 0?r.addEventListener(i,o,{capture:!0,passive:h}):r.addEventListener(i,o,!0):h!==void 0?r.addEventListener(i,o,{passive:h}):r.addEventListener(i,o,!1)}function zh(r,i,o,u,h){var g=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var w=u.tag;if(w===3||w===4){var A=u.stateNode.containerInfo;if(A===h)break;if(w===4)for(w=u.return;w!==null;){var O=w.tag;if((O===3||O===4)&&w.stateNode.containerInfo===h)return;w=w.return}for(;A!==null;){if(w=Li(A),w===null)return;if(O=w.tag,O===5||O===6||O===26||O===27){u=g=w;continue e}A=A.parentNode}}u=u.return}Py(function(){var V=g,F=Wd(o),W=[];e:{var $=lv.get(r);if($!==void 0){var q=Yl,le=r;switch(r){case"keypress":if(Gl(o)===0)break e;case"keydown":case"keyup":q=hR;break;case"focusin":le="focus",q=sf;break;case"focusout":le="blur",q=sf;break;case"beforeblur":case"afterblur":q=sf;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":q=Ly;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=tR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=gR;break;case sv:case iv:case av:q=sR;break;case ov:q=vR;break;case"scroll":case"scrollend":q=JC;break;case"wheel":q=wR;break;case"copy":case"cut":case"paste":q=aR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Iy;break;case"toggle":case"beforetoggle":q=SR}var ve=(i&4)!==0,$e=!ve&&(r==="scroll"||r==="scrollend"),L=ve?$!==null?$+"Capture":null:$;ve=[];for(var P=V,B;P!==null;){var G=P;if(B=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||B===null||L===null||(G=oo(P,L),G!=null&&ve.push(Vo(P,G,B))),$e)break;P=P.return}0<ve.length&&($=new q($,le,null,o,F),W.push({event:$,listeners:ve}))}}if((i&7)===0){e:{if($=r==="mouseover"||r==="pointerover",q=r==="mouseout"||r==="pointerout",$&&o!==Xd&&(le=o.relatedTarget||o.fromElement)&&(Li(le)||le[zi]))break e;if((q||$)&&($=F.window===F?F:($=F.ownerDocument)?$.defaultView||$.parentWindow:window,q?(le=o.relatedTarget||o.toElement,q=V,le=le?Li(le):null,le!==null&&($e=l(le),ve=le.tag,le!==$e||ve!==5&&ve!==27&&ve!==6)&&(le=null)):(q=null,le=V),q!==le)){if(ve=Ly,G="onMouseLeave",L="onMouseEnter",P="mouse",(r==="pointerout"||r==="pointerover")&&(ve=Iy,G="onPointerLeave",L="onPointerEnter",P="pointer"),$e=q==null?$:ao(q),B=le==null?$:ao(le),$=new ve(G,P+"leave",q,o,F),$.target=$e,$.relatedTarget=B,G=null,Li(F)===V&&(ve=new ve(L,P+"enter",le,o,F),ve.target=B,ve.relatedTarget=$e,G=ve),$e=G,q&&le)t:{for(ve=xk,L=q,P=le,B=0,G=L;G;G=ve(G))B++;G=0;for(var ye=P;ye;ye=ve(ye))G++;for(;0<B-G;)L=ve(L),B--;for(;0<G-B;)P=ve(P),G--;for(;B--;){if(L===P||P!==null&&L===P.alternate){ve=L;break t}L=ve(L),P=ve(P)}ve=null}else ve=null;q!==null&&M0(W,$,q,ve,!1),le!==null&&$e!==null&&M0(W,$e,le,ve,!0)}}e:{if($=V?ao(V):window,q=$.nodeName&&$.nodeName.toLowerCase(),q==="select"||q==="input"&&$.type==="file")var Pe=Zy;else if(Fy($))if(Gy)Pe=DR;else{Pe=MR;var ge=kR}else q=$.nodeName,!q||q.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?V&&Yd(V.elementType)&&(Pe=Zy):Pe=OR;if(Pe&&(Pe=Pe(r,V))){Qy(W,Pe,o,F);break e}ge&&ge(r,$,V),r==="focusout"&&V&&$.type==="number"&&V.memoizedProps.value!=null&&Kd($,"number",$.value)}switch(ge=V?ao(V):window,r){case"focusin":(Fy(ge)||ge.contentEditable==="true")&&(Qi=ge,df=V,go=null);break;case"focusout":go=df=Qi=null;break;case"mousedown":ff=!0;break;case"contextmenu":case"mouseup":case"dragend":ff=!1,nv(W,o,F);break;case"selectionchange":if(PR)break;case"keydown":case"keyup":nv(W,o,F)}var Te;if(of)e:{switch(r){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Fi?qy(r,o)&&(Oe="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Oe="onCompositionStart");Oe&&(By&&o.locale!=="ko"&&(Fi||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Fi&&(Te=jy()):(as=F,tf="value"in as?as.value:as.textContent,Fi=!0)),ge=Bc(V,Oe),0<ge.length&&(Oe=new Uy(Oe,r,null,o,F),W.push({event:Oe,listeners:ge}),Te?Oe.data=Te:(Te=Hy(o),Te!==null&&(Oe.data=Te)))),(Te=ER?TR(r,o):AR(r,o))&&(Oe=Bc(V,"onBeforeInput"),0<Oe.length&&(ge=new Uy("onBeforeInput","beforeinput",null,o,F),W.push({event:ge,listeners:Oe}),ge.data=Te)),yk(W,r,V,o,F)}R0(W,i)})}function Vo(r,i,o){return{instance:r,listener:i,currentTarget:o}}function Bc(r,i){for(var o=i+"Capture",u=[];r!==null;){var h=r,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=oo(r,o),h!=null&&u.unshift(Vo(r,h,g)),h=oo(r,i),h!=null&&u.push(Vo(r,h,g))),r.tag===3)return u;r=r.return}return[]}function xk(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function M0(r,i,o,u,h){for(var g=i._reactName,w=[];o!==null&&o!==u;){var A=o,O=A.alternate,V=A.stateNode;if(A=A.tag,O!==null&&O===u)break;A!==5&&A!==26&&A!==27||V===null||(O=V,h?(V=oo(o,g),V!=null&&w.unshift(Vo(o,V,O))):h||(V=oo(o,g),V!=null&&w.push(Vo(o,V,O)))),o=o.return}w.length!==0&&r.push({event:i,listeners:w})}var Sk=/\r\n?/g,_k=/\u0000|\uFFFD/g;function O0(r){return(typeof r=="string"?r:""+r).replace(Sk,`
10`).replace(_k,"")}function D0(r,i){return i=O0(i),O0(r)===i}function Ve(r,i,o,u,h,g){switch(o){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||$i(r,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&$i(r,""+u);break;case"className":Hl(r,"class",u);break;case"tabIndex":Hl(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Hl(r,o,u);break;case"style":Dy(r,u,g);break;case"data":if(i!=="object"){Hl(r,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||o!=="href")){r.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(o);break}u=Ql(""+u),r.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){r.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 g=="function"&&(o==="formAction"?(i!=="input"&&Ve(r,i,"name",h.name,h,null),Ve(r,i,"formEncType",h.formEncType,h,null),Ve(r,i,"formMethod",h.formMethod,h,null),Ve(r,i,"formTarget",h.formTarget,h,null)):(Ve(r,i,"encType",h.encType,h,null),Ve(r,i,"method",h.method,h,null),Ve(r,i,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(o);break}u=Ql(""+u),r.setAttribute(o,u);break;case"onClick":u!=null&&(r.onclick=kr);break;case"onScroll":u!=null&&ke("scroll",r);break;case"onScrollEnd":u!=null&&ke("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(h.children!=null)throw Error(s(60));r.innerHTML=o}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}o=Ql(""+u),r.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":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(o,""+u):r.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
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":u===!0?r.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(o,u):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(o,u):r.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(o):r.setAttribute(o,u);break;case"popover":ke("beforetoggle",r),ke("toggle",r),ql(r,"popover",u);break;case"xlinkActuate":Rr(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Rr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Rr(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Rr(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Rr(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Rr(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Rr(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Rr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Rr(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":ql(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=XC.get(o)||o,ql(r,o,u))}}function Lh(r,i,o,u,h,g){switch(o){case"style":Dy(r,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(h.children!=null)throw Error(s(60));r.innerHTML=o}}break;case"children":typeof u=="string"?$i(r,u):(typeof u=="number"||typeof u=="bigint")&&$i(r,""+u);break;case"onScroll":u!=null&&ke("scroll",r);break;case"onScrollEnd":u!=null&&ke("scrollend",r);break;case"onClick":u!=null&&(r.onclick=kr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_y.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(h=o.endsWith("Capture"),i=o.slice(2,h?o.length-7:void 0),g=r[tn]||null,g=g!=null?g[o]:null,typeof g=="function"&&r.removeEventListener(i,g,h),typeof u=="function")){typeof g!="function"&&g!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(i,u,h);break e}o in r?r[o]=u:u===!0?r.setAttribute(o,""):ql(r,o,u)}}}function kt(r,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",r),ke("load",r);var u=!1,h=!1,g;for(g in o)if(o.hasOwnProperty(g)){var w=o[g];if(w!=null)switch(g){case"src":u=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Ve(r,i,g,w,o,null)}}h&&Ve(r,i,"srcSet",o.srcSet,o,null),u&&Ve(r,i,"src",o.src,o,null);return;case"input":ke("invalid",r);var A=g=w=h=null,O=null,V=null;for(u in o)if(o.hasOwnProperty(u)){var F=o[u];if(F!=null)switch(u){case"name":h=F;break;case"type":w=F;break;case"checked":O=F;break;case"defaultChecked":V=F;break;case"value":g=F;break;case"defaultValue":A=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,i));break;default:Ve(r,i,u,F,o,null)}}Ry(r,g,A,O,V,w,h,!1);return;case"select":ke("invalid",r),u=w=g=null;for(h in o)if(o.hasOwnProperty(h)&&(A=o[h],A!=null))switch(h){case"value":g=A;break;case"defaultValue":w=A;break;case"multiple":u=A;default:Ve(r,i,h,A,o,null)}i=g,o=w,r.multiple=!!u,i!=null?Vi(r,!!u,i,!1):o!=null&&Vi(r,!!u,o,!0);return;case"textarea":ke("invalid",r),g=h=u=null;for(w in o)if(o.hasOwnProperty(w)&&(A=o[w],A!=null))switch(w){case"value":u=A;break;case"defaultValue":h=A;break;case"children":g=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(91));break;default:Ve(r,i,w,A,o,null)}My(r,u,h,g);return;case"option":for(O in o)o.hasOwnProperty(O)&&(u=o[O],u!=null)&&(O==="selected"?r.selected=u&&typeof u!="function"&&typeof u!="symbol":Ve(r,i,O,u,o,null));return;case"dialog":ke("beforetoggle",r),ke("toggle",r),ke("cancel",r),ke("close",r);break;case"iframe":case"object":ke("load",r);break;case"video":case"audio":for(u=0;
vendor: 5,786 bytes, line 10
10u<Bo.length;u++)ke(Bo[u],r);break;case"image":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"embed":case"source":case"link":ke("error",r),ke("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in o)if(o.hasOwnProperty(V)&&(u=o[V],u!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Ve(r,i,V,u,o,null)}return;default:if(Yd(i)){for(F in o)o.hasOwnProperty(F)&&(u=o[F],u!==void 0&&Lh(r,i,F,u,o,void 0));return}}for(A in o)o.hasOwnProperty(A)&&(u=o[A],u!=null&&Ve(r,i,A,u,o,null))}function Ek(r,i,o,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,w=null,A=null,O=null,V=null,F=null;for(q in o){var W=o[q];if(o.hasOwnProperty(q)&&W!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":O=W;default:u.hasOwnProperty(q)||Ve(r,i,q,null,u,W)}}for(var $ in u){var q=u[$];if(W=o[$],u.hasOwnProperty($)&&(q!=null||W!=null))switch($){case"type":g=q;break;case"name":h=q;break;case"checked":V=q;break;case"defaultChecked":F=q;break;case"value":w=q;break;case"defaultValue":A=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,i));break;default:q!==W&&Ve(r,i,$,q,u,W)}}Gd(r,w,A,O,V,F,g,h);return;case"select":q=w=A=$=null;for(g in o)if(O=o[g],o.hasOwnProperty(g)&&O!=null)switch(g){case"value":break;case"multiple":q=O;default:u.hasOwnProperty(g)||Ve(r,i,g,null,u,O)}for(h in u)if(g=u[h],O=o[h],u.hasOwnProperty(h)&&(g!=null||O!=null))switch(h){case"value":$=g;break;case"defaultValue":A=g;break;case"multiple":w=g;default:g!==O&&Ve(r,i,h,g,u,O)}i=A,o=w,u=q,$!=null?Vi(r,!!o,$,!1):!!u!=!!o&&(i!=null?Vi(r,!!o,i,!0):Vi(r,!!o,o?[]:"",!1));return;case"textarea":q=$=null;for(A in o)if(h=o[A],o.hasOwnProperty(A)&&h!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ve(r,i,A,null,u,h)}for(w in u)if(h=u[w],g=o[w],u.hasOwnProperty(w)&&(h!=null||g!=null))switch(w){case"value":$=h;break;case"defaultValue":q=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==g&&Ve(r,i,w,h,u,g)}ky(r,$,q);return;case"option":for(var le in o)$=o[le],o.hasOwnProperty(le)&&$!=null&&!u.hasOwnProperty(le)&&(le==="selected"?r.selected=!1:Ve(r,i,le,null,u,$));for(O in u)$=u[O],q=o[O],u.hasOwnProperty(O)&&$!==q&&($!=null||q!=null)&&(O==="selected"?r.selected=$&&typeof $!="function"&&typeof $!="symbol":Ve(r,i,O,$,u,q));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 ve in o)$=o[ve],o.hasOwnProperty(ve)&&$!=null&&!u.hasOwnProperty(ve)&&Ve(r,i,ve,null,u,$);for(V in u)if($=u[V],q=o[V],u.hasOwnProperty(V)&&$!==q&&($!=null||q!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(s(137,i));break;default:Ve(r,i,V,$,u,q)}return;default:if(Yd(i)){for(var $e in o)$=o[$e],o.hasOwnProperty($e)&&$!==void 0&&!u.hasOwnProperty($e)&&Lh(r,i,$e,void 0,u,$);for(F in u)$=u[F],q=o[F],!u.hasOwnProperty(F)||$===q||$===void 0&&q===void 0||Lh(r,i,F,$,u,q);return}}for(var L in o)$=o[L],o.hasOwnProperty(L)&&$!=null&&!u.hasOwnProperty(L)&&Ve(r,i,L,null,u,$);for(W in u)$=u[W],q=o[W],!u.hasOwnProperty(W)||$===q||$==null&&q==null||Ve(r,i,W,$,u,q)}function N0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tk(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var h=o[u],g=h.transferSize,w=h.initiatorType,A=h.duration;if(g&&A&&N0(w)){for(w=0,A=h.responseEnd,u+=1;u<o.length;u++){var O=o[u],V=O.startTime;if(V>A)break;var F=O.transferSize,W=O.initiatorType;F&&N0(W)&&(O=O.responseEnd,w+=F*(O<A?1:(A-V)/(O-V)))}if(--u,i+=8*(g+w)/(h.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Uh=null,Ih=null;function Vc(r){return r.nodeType===9?r:r.ownerDocument}function P0(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j0(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function Bh(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Vh=null;function Ak(){var r=window.event;return r&&r.type==="popstate"?r===Vh?!1:(Vh=r,!0):(Vh=null,!1)}var z0=typeof setTimeout=="function"?setTimeout:void 0,Ck=typeof clearTimeout=="function"?clearTimeout:void 0,L0=typeof Promise=="function"?Promise:void 0,Rk=typeof queueMicrotask=="function"?queueMicrotask:typeof L0<"u"?function(r){return L0.resolve(null).then(r).catch(kk)}:z0;function kk(r){setTimeout(function(){throw r})}function _s(r){return r==="head"}function U0(r,i){var o=i,u=0;do{var h=o.nextSibling;if(r.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"||o==="/&"){if(u===0){r.removeChild(h),ba(i);return}u--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")u++;else if(o==="html")$o(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,$o(o);for(var g=o.firstChild;g;){var w=g.nextSibling,A=g.nodeName;g[io]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=w}}else o==="body"&&$o(r.ownerDocument.body);o=h}while(o);ba(i)}function I0(r,i){var o=r;r=0;do{var u=o.nextSibling;
vendor: 5,665 bytes, line 10
10if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=u}while(o)}function $h(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":$h(o),Qd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function Mk(r,i,o,u){for(;r.nodeType===1;){var h=o;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[io])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==h.rel||r.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||r.getAttribute("title")!==(h.title==null?null:h.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(h.src==null?null:h.src)||r.getAttribute("type")!==(h.type==null?null:h.type)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=Nn(r.nextSibling),r===null)break}return null}function Ok(r,i,o){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Nn(r.nextSibling),r===null))return null;return r}function B0(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=Nn(r.nextSibling),r===null))return null;return r}function qh(r){return r.data==="$?"||r.data==="$~"}function Hh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Dk(r,i){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||o.readyState!=="loading")i();else{var u=function(){i(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function Nn(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var Fh=null;function V0(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(i===0)return Nn(r.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}r=r.nextSibling}return null}function $0(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return r;i--}else o!=="/$"&&o!=="/&"||i++}r=r.previousSibling}return null}function q0(r,i,o){switch(i=Vc(o),r){case"html":if(r=i.documentElement,!r)throw Error(s(452));return r;case"head":if(r=i.head,!r)throw Error(s(453));return r;case"body":if(r=i.body,!r)throw Error(s(454));return r;default:throw Error(s(451))}}function $o(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Qd(r)}var Pn=new Map,H0=new Set;function $c(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Fr=Q.d;Q.d={f:Nk,r:Pk,D:jk,C:zk,L:Lk,m:Uk,X:Bk,S:Ik,M:Vk};function Nk(){var r=Fr.f(),i=Nc();return r||i}function Pk(r){var i=Ui(r);i!==null&&i.tag===5&&i.type==="form"?ob(i):Fr.r(r)}var ga=typeof document>"u"?null:document;function F0(r,i,o){var u=ga;if(u&&typeof i=="string"&&i){var h=An(i);h='link[rel="'+r+'"][href="'+h+'"]',typeof o=="string"&&(h+='[crossorigin="'+o+'"]'),H0.has(h)||(H0.add(h),r={rel:r,crossOrigin:o,href:i},u.querySelector(h)===null&&(i=u.createElement("link"),kt(i,"link",r),xt(i),u.head.appendChild(i)))}}function jk(r){Fr.D(r),F0("dns-prefetch",r,null)}function zk(r,i){Fr.C(r,i),F0("preconnect",r,i)}function Lk(r,i,o){Fr.L(r,i,o);var u=ga;if(u&&r&&i){var h='link[rel="preload"][as="'+An(i)+'"]';i==="image"&&o&&o.imageSrcSet?(h+='[imagesrcset="'+An(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(h+='[imagesizes="'+An(o.imageSizes)+'"]')):h+='[href="'+An(r)+'"]';var g=h;switch(i){case"style":g=ya(r);break;case"script":g=va(r)}Pn.has(g)||(r=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:r,as:i},o),Pn.set(g,r),u.querySelector(h)!==null||i==="style"&&u.querySelector(qo(g))||i==="script"&&u.querySelector(Ho(g))||(i=u.createElement("link"),kt(i,"link",r),xt(i),u.head.appendChild(i)))}}function Uk(r,i){Fr.m(r,i);var o=ga;if(o&&r){var u=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+An(u)+'"][href="'+An(r)+'"]',g=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=va(r)}if(!Pn.has(g)&&(r=m({rel:"modulepreload",href:r},i),Pn.set(g,r),o.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ho(g)))return}u=o.createElement("link"),kt(u,"link",r),xt(u),o.head.appendChild(u)}}}function Ik(r,i,o){Fr.S(r,i,o);var u=ga;if(u&&r){var h=Ii(u).hoistableStyles,g=ya(r);i=i||"default";var w=h.get(g);if(!w){var A={loading:0,preload:null};if(w=u.querySelector(qo(g)))A.loading=5;
vendor: 5,827 bytes, line 10
10else{r=m({rel:"stylesheet",href:r,"data-precedence":i},o),(o=Pn.get(g))&&Qh(r,o);var O=w=u.createElement("link");xt(O),kt(O,"link",r),O._p=new Promise(function(V,F){O.onload=V,O.onerror=F}),O.addEventListener("load",function(){A.loading|=1}),O.addEventListener("error",function(){A.loading|=2}),A.loading|=4,qc(w,i,u)}w={type:"stylesheet",instance:w,count:1,state:A},h.set(g,w)}}}function Bk(r,i){Fr.X(r,i);var o=ga;if(o&&r){var u=Ii(o).hoistableScripts,h=va(r),g=u.get(h);g||(g=o.querySelector(Ho(h)),g||(r=m({src:r,async:!0},i),(i=Pn.get(h))&&Zh(r,i),g=o.createElement("script"),xt(g),kt(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(h,g))}}function Vk(r,i){Fr.M(r,i);var o=ga;if(o&&r){var u=Ii(o).hoistableScripts,h=va(r),g=u.get(h);g||(g=o.querySelector(Ho(h)),g||(r=m({src:r,async:!0,type:"module"},i),(i=Pn.get(h))&&Zh(r,i),g=o.createElement("script"),xt(g),kt(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(h,g))}}function Q0(r,i,o,u){var h=(h=oe.current)?$c(h):null;if(!h)throw Error(s(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=ya(o.href),o=Ii(h).hoistableStyles,u=o.get(i),u||(u={type:"style",instance:null,count:0,state:null},o.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=ya(o.href);var g=Ii(h).hoistableStyles,w=g.get(r);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,w),(g=h.querySelector(qo(r)))&&!g._p&&(w.instance=g,w.state.loading=5),Pn.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Pn.set(r,o),g||$k(h,r,o,w.state))),i&&u===null)throw Error(s(528,""));return w}if(i&&u!==null)throw Error(s(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=va(o),o=Ii(h).hoistableScripts,u=o.get(i),u||(u={type:"script",instance:null,count:0,state:null},o.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,r))}}function ya(r){return'href="'+An(r)+'"'}function qo(r){return'link[rel="stylesheet"]['+r+"]"}function Z0(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function $k(r,i,o,u){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=r.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),kt(i,"link",o),xt(i),r.head.appendChild(i))}function va(r){return'[src="'+An(r)+'"]'}function Ho(r){return"script[async]"+r}function G0(r,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var u=r.querySelector('style[data-href~="'+An(o.href)+'"]');if(u)return i.instance=u,xt(u),u;var h=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),xt(u),kt(u,"style",h),qc(u,o.precedence,r),i.instance=u;case"stylesheet":h=ya(o.href);var g=r.querySelector(qo(h));if(g)return i.state.loading|=4,i.instance=g,xt(g),g;u=Z0(o),(h=Pn.get(h))&&Qh(u,h),g=(r.ownerDocument||r).createElement("link"),xt(g);var w=g;return w._p=new Promise(function(A,O){w.onload=A,w.onerror=O}),kt(g,"link",u),i.state.loading|=4,qc(g,o.precedence,r),i.instance=g;case"script":return g=va(o.src),(h=r.querySelector(Ho(g)))?(i.instance=h,xt(h),h):(u=o,(h=Pn.get(g))&&(u=m({},o),Zh(u,h)),r=r.ownerDocument||r,h=r.createElement("script"),xt(h),kt(h,"link",u),r.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,qc(u,o.precedence,r));return i.instance}function qc(r,i,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,g=h,w=0;w<u.length;w++){var A=u[w];if(A.dataset.precedence===i)g=A;else if(g!==h)break}g?g.parentNode.insertBefore(r,g.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(r,i.firstChild))}function Qh(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function Zh(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var Hc=null;function K0(r,i,o){if(Hc===null){var u=new Map,h=Hc=new Map;h.set(o,u)}else h=Hc,u=h.get(o),u||(u=new Map,h.set(o,u));if(u.has(r))return u;for(u.set(r,null),o=o.getElementsByTagName(r),h=0;h<o.length;h++){var g=o[h];if(!(g[io]||g[Tt]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var w=g.getAttribute(i)||"";w=r+w;var A=u.get(w);A?A.push(g):u.set(w,[g])}}return u}function Y0(r,i,o){r=r.ownerDocument||r,r.head.insertBefore(o,i==="title"?r.querySelector("head > title"):null)}function qk(r,i,o){if(o===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(r=i.disabled,typeof i.precedence=="string"&&r==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function X0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Hk(r,i,o,u){if(o.type==="stylesheet"&&(typeof u.media!="str
10ing"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var h=ya(u.href),g=i.querySelector(qo(h));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=Fc.bind(r),i.then(r,r)),o.state.loading|=4,o.instance=g,xt(g);return}g=i.ownerDocument||i,u=Z0(u),(h=Pn.get(h))&&Qh(u,h),g=g.createElement("link"),xt(g);var w=g;w._p=new Promise(function(A,O){w.onload=A,w.onerror=O}),kt(g,"link",u),o.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=Fc.bind(r),i.addEventListener("load",o),i.addEventListener("error",o))}}var Gh=0;function Fk(r,i){return r.stylesheets&&r.count===0&&Zc(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var u=setTimeout(function(){if(r.stylesheets&&Zc(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+i);0<r.imgBytes&&Gh===0&&(Gh=62500*Tk());var h=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Zc(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>Gh?50:800)+i);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function Fc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Qc=null;function Zc(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Qc=new Map,i.forEach(Qk,r),Qc=null,Fc.call(r))}function Qk(r,i){if(!(i.state.loading&4)){var o=Qc.get(r);if(o)var u=o.get(null);else{o=new Map,Qc.set(r,o);for(var h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var w=h[g];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(o.set(w.dataset.precedence,w),u=w)}u&&o.set(null,u)}h=i.instance,w=h.getAttribute("data-precedence"),g=o.get(w)||u,g===u&&o.set(null,h),o.set(w,h),this.count++,u=Fc.bind(this),h.addEventListener("load",u),h.addEventListener("error",u),g?g.parentNode.insertBefore(h,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(h,r.firstChild)),i.state.loading|=4}}var Fo={$$typeof:R,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Zk(r,i,o,u,h,g,w,A,O){this.tag=1,this.containerInfo=r,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=ss(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ss(0),this.hiddenUpdates=ss(null),this.identifierPrefix=u,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function W0(r,i,o,u,h,g,w,A,O,V,F,W){return r=new Zk(r,i,o,w,O,V,F,W,A),i=1,g===!0&&(i|=24),g=mn(3,null,null,i),r.current=g,g.stateNode=r,i=Cf(),i.refCount++,r.pooledCache=i,i.refCount++,g.memoizedState={element:u,isDehydrated:o,cache:i},Of(g),r}function J0(r){return r?(r=Ki,r):Ki}function ew(r,i,o,u,h,g){h=J0(h),u.context===null?u.context=h:u.pendingContext=h,u=fs(i),u.payload={element:o},g=g===void 0?null:g,g!==null&&(u.callback=g),o=hs(r,u,i),o!==null&&(ln(o,r,i),_o(o,r,i))}function tw(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function Kh(r,i){tw(r,i),(r=r.alternate)&&tw(r,i)}function nw(r){if(r.tag===13||r.tag===31){var i=ti(r,67108864);i!==null&&ln(i,r,67108864),Kh(r,67108864)}}function rw(r){if(r.tag===13||r.tag===31){var i=wn();i=ji(i);var o=ti(r,i);o!==null&&ln(o,r,i),Kh(r,i)}}var Gc=!0;function Gk(r,i,o,u){var h=N.T;N.T=null;var g=Q.p;try{Q.p=2,Yh(r,i,o,u)}finally{Q.p=g,N.T=h}}function Kk(r,i,o,u){var h=N.T;N.T=null;var g=Q.p;try{Q.p=8,Yh(r,i,o,u)}finally{Q.p=g,N.T=h}}function Yh(r,i,o,u){if(Gc){var h=Xh(u);if(h===null)zh(r,i,u,Kc,o),iw(r,u);else if(Xk(h,r,i,o,u))u.stopPropagation();else if(iw(r,u),i&4&&-1<Yk.indexOf(r)){for(;h!==null;){var g=Ui(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var w=sr(g.pendingLanes);if(w!==0){var A=g;for(A.pendingLanes|=2,A.entangledLanes|=2;w;){var O=1<<31-zt(w);A.entanglements[1]|=O,w&=~O}lr(g),(ze&6)===0&&(Oc=qt()+500,Io(0))}}break;case 31:case 13:A=ti(g,2),A!==null&&ln(A,g,2),Nc(),Kh(g,2)}if(g=Xh(u),g===null&&zh(r,i,u,Kc,o),g===h)break;h=g}h!==null&&u.stopPropagation()}else zh(r,i,u,null,o)}}function Xh(r){return r=Wd(r),Wh(r)}var Kc=null;function Wh(r){if(Kc=null,r=Li(r),r!==null){var i=l(r);if(i===null)r=null;else{var o=i.tag;if(o===13){if(r=c(i),r!==null)return r;r=null}else if(o===31){if(r=d(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Kc=r,null}function sw(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,130 bytes, line 10
10: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($d()){case Qs:return 2;case Vl:return 8;case Zs:case ro:return 32;case Cr:return 268435456;default:return 32}default:return 32}}var Jh=!1,Es=null,Ts=null,As=null,Qo=new Map,Zo=new Map,Cs=[],Yk="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 iw(r,i){switch(r){case"focusin":case"focusout":Es=null;break;case"dragenter":case"dragleave":Ts=null;break;case"mouseover":case"mouseout":As=null;break;case"pointerover":case"pointerout":Qo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zo.delete(i.pointerId)}}function Go(r,i,o,u,h,g){return r===null||r.nativeEvent!==g?(r={blockedOn:i,domEventName:o,eventSystemFlags:u,nativeEvent:g,targetContainers:[h]},i!==null&&(i=Ui(i),i!==null&&nw(i)),r):(r.eventSystemFlags|=u,i=r.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),r)}function Xk(r,i,o,u,h){switch(i){case"focusin":return Es=Go(Es,r,i,o,u,h),!0;case"dragenter":return Ts=Go(Ts,r,i,o,u,h),!0;case"mouseover":return As=Go(As,r,i,o,u,h),!0;case"pointerover":var g=h.pointerId;return Qo.set(g,Go(Qo.get(g)||null,r,i,o,u,h)),!0;case"gotpointercapture":return g=h.pointerId,Zo.set(g,Go(Zo.get(g)||null,r,i,o,u,h)),!0}return!1}function aw(r){var i=Li(r.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=c(o),i!==null){r.blockedOn=i,wy(r.priority,function(){rw(o)});return}}else if(i===31){if(i=d(o),i!==null){r.blockedOn=i,wy(r.priority,function(){rw(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Yc(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=Xh(r.nativeEvent);if(o===null){o=r.nativeEvent;var u=new o.constructor(o.type,o);Xd=u,o.target.dispatchEvent(u),Xd=null}else return i=Ui(o),i!==null&&nw(i),r.blockedOn=o,!1;i.shift()}return!0}function ow(r,i,o){Yc(r)&&o.delete(i)}function Wk(){Jh=!1,Es!==null&&Yc(Es)&&(Es=null),Ts!==null&&Yc(Ts)&&(Ts=null),As!==null&&Yc(As)&&(As=null),Qo.forEach(ow),Zo.forEach(ow)}function Xc(r,i){r.blockedOn===i&&(r.blockedOn=null,Jh||(Jh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Wk)))}var Wc=null;function lw(r){Wc!==r&&(Wc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wc===r&&(Wc=null);for(var i=0;i<r.length;i+=3){var o=r[i],u=r[i+1],h=r[i+2];if(typeof u!="function"){if(Wh(u||o)===null)continue;break}var g=Ui(o);g!==null&&(r.splice(i,3),i-=3,Xf(g,{pending:!0,data:h,method:o.method,action:u},u,h))}}))}function ba(r){function i(O){return Xc(O,r)}Es!==null&&Xc(Es,r),Ts!==null&&Xc(Ts,r),As!==null&&Xc(As,r),Qo.forEach(i),Zo.forEach(i);for(var o=0;o<Cs.length;o++){var u=Cs[o];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Cs.length&&(o=Cs[0],o.blockedOn===null);)aw(o),o.blockedOn===null&&Cs.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(u=0;
vendor: 5,189 bytes, line 10
10u<o.length;u+=3){var h=o[u],g=o[u+1],w=h[tn]||null;if(typeof g=="function")w||lw(o);else if(w){var A=null;if(g&&g.hasAttribute("formAction")){if(h=g,w=g[tn]||null)A=w.formAction;else if(Wh(h)!==null)continue}else A=w.action;typeof A=="function"?o[u+1]=A:(o.splice(u,3),u-=3),lw(o)}}}function cw(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(w){return h=w})},focusReset:"manual",scroll:"manual"})}function i(){h!==null&&(h(),h=null),u||setTimeout(o,20)}function o(){if(!u&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,h=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),h!==null&&(h(),h=null)}}}function ep(r){this._internalRoot=r}Jc.prototype.render=ep.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(s(409));var o=i.current,u=wn();ew(o,u,r,i,null,null)},Jc.prototype.unmount=ep.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;ew(r.current,2,null,r,null,null),Nc(),i[zi]=null}};function Jc(r){this._internalRoot=r}Jc.prototype.unstable_scheduleHydration=function(r){if(r){var i=Hd();r={blockedOn:null,target:r,priority:i};for(var o=0;o<Cs.length&&i!==0&&i<Cs[o].priority;o++);Cs.splice(o,0,r),o===0&&aw(r)}};var uw=t.version;if(uw!=="19.2.4")throw Error(s(527,uw,"19.2.4"));Q.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(s(188)):(r=Object.keys(r).join(","),Error(s(268,r)));return r=p(i),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var Jk={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{Gs=eu.inject(Jk),Ht=eu}catch{}}return Yo.createRoot=function(r,i){if(!a(r))throw Error(s(299));var o=!1,u="",h=yb,g=vb,w=bb;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError)),i=W0(r,1,!1,null,null,o,u,null,h,g,w,cw),r[zi]=i.current,jh(r),new ep(i)},Yo.hydrateRoot=function(r,i,o){if(!a(r))throw Error(s(299));var u=!1,h="",g=yb,w=vb,A=bb,O=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.formState!==void 0&&(O=o.formState)),i=W0(r,1,!0,i,o??null,u,h,O,g,w,A,cw),i.context=J0(null),o=i.current,u=wn(),u=ji(u),h=fs(u),h.callback=null,hs(o,h,u),o=u,i.current.lanes=o,We(i,o),lr(i),r[zi]=i.current,jh(r),new Jc(i)},Yo.version="19.2.4",Yo}var ww;function cM(){if(ww)return np.exports;ww=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(t){console.error(t)}}return e(),np.exports=lM(),np.exports}var uM=cM();const dM="modulepreload",fM=function(e){return"/"+e},xw={},dn=function(t,n,s){let a=Promise.resolve();if(n&&n.length>0){let f=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=f(n.map(p=>{if(p=fM(p),p in xw)return;xw[p]=!0;const y=p.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":dM,y||(v.as="script"),v.crossOrigin="",v.href=p,d&&v.setAttribute("nonce",d),document.head.appendChild(v),y)return new Promise((x,_)=>{v.addEventListener("load",x),v.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return a.then(c=>{for(const d of c||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};var b=Xm();const te=__(b),Wm=tM({__proto__:null,default:te},[b]);var Sw="popstate";function _w(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function hM(e={}){function t(s,a){let l=a.state?.masked,{pathname:c,search:d,hash:f}=l||s.location;return Yp("",{pathname:c,search:d,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default",l?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}
10function n(s,a){return typeof a=="string"?a:dl(a)}return mM(t,n,null,e)}function Ye(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pM(){return Math.random().toString(36).substring(2,10)}function Ew(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Yp(e,t,n=null,s,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Va(t):t,state:n,key:t&&t.key||s||pM(),unstable_mask:a}}function dl({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Va(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function mM(e,t,n,s={}){let{window:a=document.defaultView,v5Compat:l=!1}=s,c=a.history,d="POP",f=null,p=y();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function y(){return(c.state||{idx:null}).idx}function m(){d="POP";let T=y(),C=T==null?null:T-p;p=T,f&&f({action:d,location:E.location,delta:C})}function v(T,C){d="PUSH";let k=_w(T)?T:Yp(E.location,T,C);p=y()+1;let R=Ew(k,p),M=E.createHref(k.unstable_mask||k);try{c.pushState(R,"",M)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;a.location.assign(M)}l&&f&&f({action:d,location:E.location,delta:1})}function x(T,C){d="REPLACE";let k=_w(T)?T:Yp(E.location,T,C);p=y();let R=Ew(k,p),M=E.createHref(k.unstable_mask||k);c.replaceState(R,"",M),l&&f&&f({action:d,location:E.location,delta:0})}function _(T){return gM(T)}let E={get action(){return d},get location(){return e(a,c)},listen(T){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(Sw,m),f=T,()=>{a.removeEventListener(Sw,m),f=null}},createHref(T){return t(a,T)},createURL:_,encodeLocation(T){let C=_(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:x,go(T){return c.go(T)}};return E}function gM(e,t=!1){let n="http://localhost";
10typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(n,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:dl(e);return s=s.replace(/ $/,"%20"),!t&&s.startsWith("//")&&(s=n+s),new URL(s,n)}function T_(e,t,n="/"){return yM(e,t,n,!1)}function yM(e,t,n,s){let a=typeof t=="string"?Va(t):t,l=Yr(a.pathname||"/",n);if(l==null)return null;let c=A_(e);vM(c);let d=null;for(let f=0;d==null&&f<c.length;++f){let p=kM(l);d=CM(c[f],p,s)}return d}function A_(e,t=[],n=[],s="",a=!1){let l=(c,d,f=a,p)=>{let y={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&f)return;Ye(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let m=br([s,y.relativePath]),v=n.concat(y);c.children&&c.children.length>0&&(Ye(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),A_(c.children,t,v,m,f)),!(c.path==null&&!c.index)&&t.push({path:m,score:TM(m,c.index),routesMeta:v})};return e.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))l(c,d);else for(let f of C_(c.path))l(c,d,!0,f)}),t}function C_(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(s.length===0)return a?[l,""]:[l];let c=C_(s.join("/")),d=[];return d.push(...c.map(f=>f===""?l:[l,f].join("/"))),a&&d.push(...c),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function vM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:AM(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}var bM=/^:[\w-]+$/,wM=3,xM=2,SM=1,_M=10,EM=-2,Tw=e=>e==="*";function TM(e,t){let n=e.split("/"),s=n.length;return n.some(Tw)&&(s+=EM),t&&(s+=xM),n.filter(a=>!Tw(a)).reduce((a,l)=>a+(bM.test(l)?wM:l===""?SM:_M),s)}function AM(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function CM(e,t,n=!1){let{routesMeta:s}=e,a={},l="/",c=[];for(let d=0;d<s.length;++d){let f=s[d],p=d===s.length-1,y=l==="/"?t:t.slice(l.length)||"/",m=Bu({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},y),v=f.route;if(!m&&p&&n&&!s[s.length-1].route.index&&(m=Bu({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},y)),!m)return null;
10Object.assign(a,m.params),c.push({params:a,pathname:br([l,m.pathname]),pathnameBase:NM(br([l,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(l=br([l,m.pathnameBase]))}return c}function Bu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=RM(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:s.reduce((p,{paramName:y,isOptional:m},v)=>{if(y==="*"){let _=d[v]||"";c=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const x=d[v];return m&&!x?p[y]=void 0:p[y]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:c,pattern:e}}function RM(e,t=!1,n=!0){Vn(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 s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,f,p,y)=>{if(s.push({paramName:d,isOptional:f!=null}),f){let m=y.charAt(p+c.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function kM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Yr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}var MM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function OM(e,t="/"){let{pathname:n,search:s="",hash:a=""}=typeof e=="string"?Va(e):e,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=Aw(n.substring(1),"/"):l=Aw(n,t)):l=t,{pathname:l,search:PM(s),hash:jM(a)}}function Aw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function op(e,t,n,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function DM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jm(e){let t=DM(e);return t.map((n,s)=>s===t.length-1?n.pathname:n.pathnameBase)}function md(e,t,n,s=!1){let a;typeof e=="string"?a=Va(e):(a={...e},Ye(!a.pathname||!a.pathname.includes("?"),op("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),op("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),op("#","search","hash",a)));let l=e===""||a.pathname==="",c=l?"/":a.pathname,d;if(c==null)d=n;else{let m=t.length-1;if(!s&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),m-=1;a.pathname=v.join("/")}d=m>=0?t[m]:"/"}let f=OM(a,d),p=c&&c!=="/"&&c.endsWith("/"),y=(l||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||y)&&(f.pathname+="/"),f}var br=e=>e.join("/").replace(/\/\/+/g,"/"),NM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,zM=class{constructor(e,t,n,s=!1){this.status=e,this.statusText=t||"",this.internal=s,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function LM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function UM(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var R_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function k_(e,t){let n=e;
10if(typeof n!="string"||!MM.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let s=n,a=!1;if(R_)try{let l=new URL(window.location.href),c=n.startsWith("//")?new URL(l.protocol+n):new URL(n),d=Yr(c.pathname,t);c.origin===l.origin&&d!=null?n=d+c.search+c.hash:a=!0}catch{Vn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var M_=["POST","PUT","PATCH","DELETE"];new Set(M_);var IM=["GET",...M_];new Set(IM);var $a=b.createContext(null);$a.displayName="DataRouter";var gd=b.createContext(null);gd.displayName="DataRouterState";var BM=b.createContext(!1),O_=b.createContext({isTransitioning:!1});O_.displayName="ViewTransition";var VM=b.createContext(new Map);VM.displayName="Fetchers";var $M=b.createContext(null);$M.displayName="Await";var En=b.createContext(null);En.displayName="Navigation";var Ml=b.createContext(null);Ml.displayName="Location";var $n=b.createContext({outlet:null,matches:[],isDataRoute:!1});$n.displayName="Route";var eg=b.createContext(null);eg.displayName="RouteError";var D_="REACT_ROUTER_ERROR",qM="REDIRECT",HM="ROUTE_ERROR_RESPONSE";function FM(e){if(e.startsWith(`${D_}:${qM}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function QM(e){if(e.startsWith(`${D_}:${HM}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new zM(t.status,t.statusText,t.data)}catch{}}function ZM(e,{relative:t}={}){Ye(qa(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:s}=b.useContext(En),{hash:a,pathname:l,search:c}=Ol(e,{relative:t}),d=l;return n!=="/"&&(d=l==="/"?n:br([n,l])),s.createHref({pathname:d,search:c,hash:a})}function qa(){return b.useContext(Ml)!=null}function qn(){return Ye(qa(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Ml).location}var N_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function P_(e){b.useContext(En).static||b.useLayoutEffect(e)}function Ha(){let{isDataRoute:e}=b.useContext($n);return e?lO():GM()}function GM(){Ye(qa(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext($a),{basename:t,navigator:n}=b.useContext(En),{matches:s}=b.useContext($n),{pathname:a}=qn(),l=JSON.stringify(Jm(s)),c=b.useRef(!1);return P_(()=>{c.current=!0}),b.useCallback((f,p={})=>{if(Vn(c.current,N_),!c.current)return;if(typeof f=="number"){n.go(f);return}let y=md(f,JSON.parse(l),a,p.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:br([t,y.pathname])),(p.replace?n.replace:n.push)(y,p.state,p)},[t,n,l,a,e])}var KM=b.createContext(null);function YM(e){let t=b.useContext($n).outlet;return b.useMemo(()=>t&&b.createElement(KM.Provider,{value:e},t),[t,e])}function cF(){let{matches:e}=b.useContext($n),t=e[e.length-1];return t?t.params:{}}function Ol(e,{relative:t}={}){let{matches:n}=b.useContext($n),{pathname:s}=qn(),a=JSON.stringify(Jm(n));return b.useMemo(()=>md(e,JSON.parse(a),s,t==="path"),[e,a,s,t])}function XM(e,t){return j_(e,t)}function j_(e,t,n){Ye(qa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(En),{matches:a}=b.useContext($n),l=a[a.length-1],c=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let T=p&&p.path||"";L_(d,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
12Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let y=qn(),m;if(t){let T=typeof t=="string"?Va(t):t;Ye(f==="/"||T.pathname?.startsWith(f),`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 "${f}" but pathname "${T.pathname}" was given in the \`location\` prop.`),m=T}else m=y;let v=m.pathname||"/",x=v;if(f!=="/"){let T=f.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(T.length).join("/")}let _=T_(e,{pathname:x});Vn(p||_!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Vn(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=nO(_&&_.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:br([f,s.encodeLocation?s.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?f:br([f,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),a,n);return t&&E?b.createElement(Ml.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},E):E}function WM(){let e=oO(),t=LM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:s},l={padding:"2px 4px",backgroundColor:s},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:l},"ErrorBoundary")," or"," ",b.createElement("code",{style:l},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application 
12Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:a},n):null,c)}var JM=b.createElement(WM,null),z_=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=QM(e.digest);n&&(e=n)}let t=e!==void 0?b.createElement($n.Provider,{value:this.props.routeContext},b.createElement(eg.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?b.createElement(eO,{error:e},t):t}};z_.contextType=BM;var lp=new WeakMap;function eO({children:e,error:t}){let{basename:n}=b.useContext(En);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let s=FM(t.digest);if(s){let a=lp.get(t);if(a)throw a;let l=k_(s.location,n);if(R_&&!lp.get(t))if(l.isExternal||s.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:s.replace}));throw lp.set(t,c),c}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function tO({routeContext:e,match:t,children:n}){let s=b.useContext($a);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement($n.Provider,{value:e},n)}function nO(e,t=[],n){let s=n?.state;if(e==null){if(!s)return null;if(s.errors)e=s.matches;else if(t.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let a=e,l=s?.errors;if(l!=null){let y=a.findIndex(m=>m.route.id&&l?.[m.route.id]!==void 0);Ye(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,y+1))}let c=!1,d=-1;if(n&&s){c=s.renderFallback;for(let y=0;y<a.length;y++){let m=a[y];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=y),m.route.id){let{loaderData:v,errors:x}=s,_=m.route.loader&&!v.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||_){n.isStatic&&(c=!0),d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}}let f=n?.onError,p=s&&f?(y,m)=>{f(y,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:UM(s.matches),errorInfo:m})}:void 0;return a.reduceRight((y,m,v)=>{let x,_=!1,E=null,T=null;s&&(x=l&&m.route.id?l[m.route.id]:void 0,E=m.route.errorElement||JM,c&&(d<0&&v===0?(L_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,T=null):d===v&&(_=!0,T=m.route.hydrateFallbackElement||null)));let C=t.concat(a.slice(0,v+1)),k=()=>{let R;return x?R=E:_?R=T:m.route.Component?R=b.createElement(m.route.Component,null):m.route.element?R=m.route.element:R=y,b.createElement(tO,{match:m,routeContext:{outlet:y,matches:C,isDataRoute:s!=null},children:R})};return s&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?b.createElement(z_,{location:s.location,revalidation:s.revalidation,component:E,error:x,children:k(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:p}):k()},null)}function tg(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function rO(e){let t=b.useContext($a);return Ye(t,tg(e)),t}function sO(e){let t=b.useContext(gd);return Ye(t,tg(e)),t}function iO(e){let t=b.useContext($n);return Ye(t,tg(e)),t}function ng(e){let t=iO(e),n=t.matches[t.matches.length-1];return Ye(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function aO(){return ng("useRouteId")}function oO(){let e=b.useContext(eg),t=sO("useRouteError"),n=ng("useRouteError");return e!==void 0?e:t.errors?.[n]}function lO(){let{router:e}=rO("useNavigate"),t=ng("useNavigate"),n=b.useRef(!1);return P_(()=>{n.current=!0}),b.useCallback(async(a,l={})=>{Vn(n.current,N_),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...l}))},[e,t])}var Cw={};function L_(e,t,n){!t&&!Cw[e]&&(Cw[e]=!0,Vn(!1,n))}b.memo(cO);function cO({routes:e,future:t,state:n,isStatic:s,onError:a}){return j_(e,void 0,{state:n,isStatic:s,onError:a})}function Rw({to:e,replace:t,state:n,relative:s}){Ye(qa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=b.useContext(En);Vn(!a,"<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:l}=b.useContext($n),{pathname:c}=qn(),d=Ha(),f=md(e,Jm(l),c,s==="path"),p=JSON.stringify(f);return b.useEffect(()=>{d(JSON.parse(p),{replace:t,state:n,relative:s})},[d,p,s,t,n]),null}function uO(e){return YM(e.context)}function it(e){Ye(!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 dO({basename:e="/",children:t=null,location:n,navigationType:s="POP",navigator:a,static:l=!1,unstable_useTransitions:c}){Ye(!qa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=b.useMemo(()=>({basename:d,navigator:a,static:l,unstable_useTransitions:c,future:{}}),[d,a,l,c]);typeof n=="string"&&(n=Va(n));
12let{pathname:p="/",search:y="",hash:m="",state:v=null,key:x="default",unstable_mask:_}=n,E=b.useMemo(()=>{let T=Yr(p,d);return T==null?null:{location:{pathname:T,search:y,hash:m,state:v,key:x,unstable_mask:_},navigationType:s}},[d,p,y,m,v,x,s,_]);return Vn(E!=null,`<Router basename="${d}"> is not able to match the URL "${p}${y}${m}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:b.createElement(En.Provider,{value:f},b.createElement(Ml.Provider,{children:t,value:E}))}function fO({children:e,location:t}){return XM(Xp(e),t)}function Xp(e,t=[]){let n=[];return b.Children.forEach(e,(s,a)=>{if(!b.isValidElement(s))return;let l=[...t,a];if(s.type===b.Fragment){n.push.apply(n,Xp(s.props.children,l));return}Ye(s.type===it,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!s.props.index||!s.props.children,"An index route cannot have child routes.");let c={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(c.children=Xp(s.props.children,l)),n.push(c)}),n}var _u="get",Eu="application/x-www-form-urlencoded";function yd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function hO(e){return yd(e)&&e.tagName.toLowerCase()==="button"}function pO(e){return yd(e)&&e.tagName.toLowerCase()==="form"}function mO(e){return yd(e)&&e.tagName.toLowerCase()==="input"}function gO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yO(e,t){return e.button===0&&(!t||t==="_self")&&!gO(e)}function Wp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(a=>[n,a]):[[n,s]])},[]))}function vO(e,t){let n=Wp(e);return t&&t.forEach((s,a)=>{n.has(a)||t.getAll(a).forEach(l=>{n.append(a,l)})}),n}var tu=null;function bO(){if(tu===null)try{new FormData(document.createElement("form"),0),tu=!1}catch{tu=!0}return tu}var wO=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cp(e){return e!=null&&!wO.has(e)?(Vn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Eu}"`),null):e}function xO(e,t){let n,s,a,l,c;if(pO(e)){let d=e.getAttribute("action");s=d?Yr(d,t):null,n=e.getAttribute("method")||_u,a=cp(e.getAttribute("enctype"))||Eu,l=new FormData(e)}else if(hO(e)||mO(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(s=f?Yr(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||_u,a=cp(e.getAttribute("formenctype"))||cp(d.getAttribute("enctype"))||Eu,l=new FormData(d,e),!bO()){let{name:p,type:y,value:m}=e;if(y==="image"){let v=p?`${p}.`:"";l.append(`${v}x`,"0"),l.append(`${v}y`,"0")}else p&&l.append(p,m)}}else{if(yd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=_u,s=null,a=Eu,c=e}return l&&a==="text/plain"&&(c=l,l=void 0),{action:s,method:n.toLowerCase(),encType:a,formData:l,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function SO(e,t,n,s){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${s}`:a.pathname=`${a.pathname}.${s}`:a.pathname==="/"?a.pathname=`_root.${s}`:t&&Yr(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${s}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${s}`,a}async function _O(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
12isSpaMode,window.location.reload(),new Promise(()=>{})}}function EO(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 TO(e,t,n){let s=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let c=await _O(l,n);return c.links?c.links():[]}return[]}));return kO(s.flat(1).filter(EO).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function kw(e,t,n,s,a,l){let c=(f,p)=>n[p]?f.route.id!==n[p].route.id:!0,d=(f,p)=>n[p].pathname!==f.pathname||n[p].route.path?.endsWith("*")&&n[p].params["*"]!==f.params["*"];return l==="assets"?t.filter((f,p)=>c(f,p)||d(f,p)):l==="data"?t.filter((f,p)=>{let y=s.routes[f.route.id];if(!y||!y.hasLoader)return!1;if(c(f,p)||d(f,p))return!0;if(f.route.shouldRevalidate){let m=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function AO(e,t,{includeHydrateFallback:n}={}){return CO(e.map(s=>{let a=t.routes[s.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function CO(e){return[...new Set(e)]}function RO(e){let t={},n=Object.keys(e).sort();for(let s of n)t[s]=e[s];return t}function kO(e,t){let n=new Set;return new Set(t),e.reduce((s,a)=>{let l=JSON.stringify(RO(a));return n.has(l)||(n.add(l),s.push({key:l,link:a})),s},[])}function U_(){let e=b.useContext($a);return rg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function MO(){let e=b.useContext(gd);return rg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var sg=b.createContext(void 0);sg.displayName="FrameworkContext";function I_(){let e=b.useContext(sg);return rg(e,"You must render this element inside a <HydratedRouter> element"),e}function OO(e,t){let n=b.useContext(sg),[s,a]=b.useState(!1),[l,c]=b.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:p,onMouseLeave:y,onTouchStart:m}=t,v=b.useRef(null);b.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let E=C=>{C.forEach(k=>{c(k.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[e]),b.useEffect(()=>{if(s){let E=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(E)}}},[s]);let x=()=>{a(!0)},_=()=>{a(!1),c(!1)};return n?e!=="intent"?[l,v,{}]:[l,v,{onFocus:Xo(d,x),onBlur:Xo(f,_),onMouseEnter:Xo(p,x),onMouseLeave:Xo(y,_),onTouchStart:Xo(m,x)}]:[!1,v,{}]}function Xo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function DO({page:e,...t}){let{router:n}=U_(),s=b.useMemo(()=>T_(n.routes,e,n.basename),[n.routes,e,n.basename]);return s?b.createElement(PO,{page:e,matches:s,...t}):null}function NO(e){let{manifest:t,routeModules:n}=I_(),[s,a]=b.useState([]);return b.useEffect(()=>{let l=!1;return TO(e,t,n).then(c=>{l||a(c)}),()=>{l=!0}},[e,t,n]),s}function PO({page:e,matches:t,...n}){let s=qn(),{future:a,manifest:l,routeModules:c}=I_(),{basename:d}=U_(),{loaderData:f,matches:p}=MO(),y=b.useMemo(()=>kw(e,t,p,l,s,"data"),[e,t,p,l,s]),m=b.useMemo(()=>kw(e,t,p,l,s,"assets"),[e,t,p,l,s]),v=b.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let E=new Set,T=!1;if(t.forEach(k=>{let R=l.routes[k.route.id];!R||!R.hasLoader||(!y.some(M=>M.route.id===k.route.id)&&k.route.id in f&&c[k.route.id]?.shouldRevalidate||R.hasCl
12ientLoader?T=!0:E.add(k.route.id))}),E.size===0)return[];let C=SO(e,d,a.unstable_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&C.searchParams.set("_routes",t.filter(k=>E.has(k.route.id)).map(k=>k.route.id).join(",")),[C.pathname+C.search]},[d,a.unstable_trailingSlashAwareDataRequests,f,s,l,y,t,e,c]),x=b.useMemo(()=>AO(m,l),[m,l]),_=NO(m);return b.createElement(b.Fragment,null,v.map(E=>b.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...n})),x.map(E=>b.createElement("link",{key:E,rel:"modulepreload",href:E,...n})),_.map(({key:E,link:T})=>b.createElement("link",{key:E,nonce:n.nonce,...T,crossOrigin:T.crossOrigin??n.crossOrigin})))}function jO(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var zO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zO&&(window.__reactRouterVersion="7.13.1")}catch{}function LO({basename:e,children:t,unstable_useTransitions:n,window:s}){let a=b.useRef();a.current==null&&(a.current=hM({window:s,v5Compat:!0}));let l=a.current,[c,d]=b.useState({action:l.action,location:l.location}),f=b.useCallback(p=>{n===!1?d(p):b.startTransition(()=>d(p))},[n]);return b.useLayoutEffect(()=>l.listen(f),[l,f]),b.createElement(dO,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:l,unstable_useTransitions:n})}var B_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ft=b.forwardRef(function({onClick:t,discover:n="render",prefetch:s="none",relative:a,reloadDocument:l,replace:c,unstable_mask:d,state:f,target:p,to:y,preventScrollReset:m,viewTransition:v,unstable_defaultShouldRevalidate:x,..._},E){let{basename:T,navigator:C,unstable_useTransitions:k}=b.useContext(En),R=typeof y=="string"&&B_.test(y),M=k_(y,T);y=M.to;let j=ZM(y,{relative:a}),U=qn(),I=null;if(d){let de=md(d,[],U.unstable_mask?U.unstable_mask.pathname:"/",!0);T!=="/"&&(de.pathname=de.pathname==="/"?T:br([T,de.pathname])),I=C.createHref(de)}let[z,K,ee]=OO(s,_),ie=VO(y,{replace:c,unstable_mask:d,state:f,target:p,preventScrollReset:m,relative:a,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:k});function ae(de){t&&t(de),de.defaultPrevented||ie(de)}let pe=!(M.isExternal||l),me=b.createElement("a",{..._,...ee,href:(pe?I:void 0)||M.absoluteURL||j,onClick:pe?ae:t,ref:jO(E,K),target:p,"data-discover":!R&&n==="render"?"true":void 0});return z&&!R?b.createElement(b.Fragment,null,me,b.createElement(DO,{page:j})):me});ft.displayName="Link";var UO=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:s="",end:a=!1,style:l,to:c,viewTransition:d,children:f,...p},y){let m=Ol(c,{relative:p.relative}),v=qn(),x=b.useContext(gd),{navigator:_,basename:E}=b.useContext(En),T=x!=null&&QO(m)&&d===!0,C=_.encodeLocation?_.encodeLocation(m).pathname:m.pathname,k=v.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(k=k.toLowerCase(),R=R?R.toLowerCase():null,C=C.toLowerCase()),R&&E&&(R=Yr(R,E)||R);const M=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let j=k===C||!a&&k.startsWith(C)&&k.charAt(M)==="/",U=R!=null&&(R===C||!a&&R.startsWith(C)&&R.charAt(C.length)==="/"),I={isActive:j,isPending:U,isTransitioning:T},z=j?t:void 0,K;typeof s=="function"?K=s(I):K=[s,j?"active":null,U?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ee=typeof l=="function"?l(I):l;return b.createElement(ft,{...p,"aria-current":z,className:K,ref:y,style:ee,to:c,viewTransition:d},typeof f=="function"?f(I):f)});UO.displayName="NavLink";var IO=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:s,replace:a,state:l,method:c=_u,action:d,onSubmit:f,relative:p,preventScrollReset:y,viewTransition:m,unstable_defaultShouldRevalidate:v,...x},_)=>{let{unstable_useTransitions:E}=b.useContext(En),T=HO(),C=FO(d,{relative:p}),k=c.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&B_.test(d),M=j=>{if(f&&f(j),j.defaultPrevented)return;j.preventDefault();let U=j.nativeEvent.submitter,I=U?.getAttribute("formmethod")||c,z=()=>T(U||j.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:a,state:l,relative:p,preventScrollReset:y,viewTransition:m,unstable_defaultShouldRevalidate:v});E&&n!==!1?b.startTransition(()=>z()):z()};return b.createElement("form",{ref:_,method:k,action:C,onSubmit:s?f:M,...x,"data-discover":!R&&e==="render"?"true":void 0})});IO.displayName="Form";function BO(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function V_(e){let t=b.useContext($a);return Ye(t,BO(e)),t}function VO(e,{target:t,replace:n,unstable_mask:s,state:a,preventScrollReset:l,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:p}={}){let y=Ha(),m=qn(),v=Ol(e,{relative:c}
12);return b.useCallback(x=>{if(yO(x,t)){x.preventDefault();let _=n!==void 0?n:dl(m)===dl(v),E=()=>y(e,{replace:_,unstable_mask:s,state:a,preventScrollReset:l,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:f});p?b.startTransition(()=>E()):E()}},[m,y,v,n,s,a,t,e,l,c,d,f,p])}function uF(e){Vn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(Wp(e)),n=b.useRef(!1),s=qn(),a=b.useMemo(()=>vO(s.search,n.current?null:t.current),[s.search]),l=Ha(),c=b.useCallback((d,f)=>{const p=Wp(typeof d=="function"?d(new URLSearchParams(a)):d);n.current=!0,l("?"+p,f)},[l,a]);return[a,c]}var $O=0,qO=()=>`__${String(++$O)}__`;function HO(){let{router:e}=V_("useSubmit"),{basename:t}=b.useContext(En),n=aO(),s=e.fetch,a=e.navigate;return b.useCallback(async(l,c={})=>{let{action:d,method:f,encType:p,formData:y,body:m}=xO(l,t);if(c.navigate===!1){let v=c.fetcherKey||qO();await s(v,n,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:m,formMethod:c.method||f,formEncType:c.encType||p,flushSync:c.flushSync})}else await a(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:m,formMethod:c.method||f,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[s,a,t,n])}function FO(e,{relative:t}={}){let{basename:n}=b.useContext(En),s=b.useContext($n);Ye(s,"useFormAction must be used inside a RouteContext");let[a]=s.matches.slice(-1),l={...Ol(e||".",{relative:t})},c=qn();if(e==null){l.search=c.search;let d=new URLSearchParams(l.search),f=d.getAll("index");if(f.some(y=>y==="")){d.delete("index"),f.filter(m=>m).forEach(m=>d.append("index",m));let y=d.toString();l.search=y?`?${y}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:br([n,l.pathname])),dl(l)}function QO(e,{relative:t}={}){let n=b.useContext(O_);Ye(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=V_("useViewTransitionState"),a=Ol(e,{relative:t});if(!n.isTransitioning)return!1;let l=Yr(n.currentLocation.pathname,s)||n.currentLocation.pathname,c=Yr(n.nextLocation.pathname,s)||n.nextLocation.pathname;return Bu(a.pathname,c)!=null||Bu(a.pathname,l)!=null}var ig=E_();const $_=__(ig);let el=class extends Error{};el.prototype.name="InvalidTokenError";function ZO(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function GO(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ZO(t)}catch{return atob(t)}}function KO(e,t){if(typeof e!="string")throw new el("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,s=e.split(".")[n];if(typeof s!="string")throw new el(`Invalid token specified: missing part #${n+1}`);let a;try{a=GO(s)}catch(l){throw new el(`Invalid token specified: invalid base64 for part #${n+1} (${l.message})`)}try{return JSON.parse(a)}catch(l){throw new el(`Invalid token specified: invalid json for part #${n+1} (${l.message})`)}}var YO={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},fr,hr,Vu=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(Vu||{});(e=>{function t(){fr=3,hr=YO}e.reset=t;function n(a){if(!(0<=a&&a<=4))throw new Error("Invalid log level");fr=a}e.setLevel=n;function s(a){hr=a}e.setLogger=s})(Vu||(Vu={}));var Ne=class dr{constructor(t){this._name=t}debug(...t){fr>=4&&hr.debug(dr._format(this._name,this._method),...t)}info(...t){fr>=3&&hr.info(dr._format(this._name,this._method),...t)}warn(...t){fr>=2&&hr.warn(dr._format(this._name,this._method),...t)}error(...t){fr>=1&&hr.error(dr._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const n=Object.create(this);return n._method=t,n.debug("begin"),n}static createStatic(t,n){const s=new dr(`${t}.${n}`);return s.debug("begin"),s}static _format(t,n){const s=`[${t}]`;return n?`${s} ${n}:`:s}static debug(t,...n){fr>=4&&hr.debug(dr._format(t),...n)}static info(t,...n){fr>=3&&hr.info(dr._format(t),...n)}static warn(t,...n){fr>=2&&hr.warn(dr._format(t),...n)}static error(t,...n){fr>=1&&hr.error(dr._format(t),...n)}};Vu.reset();var fl=class{static decode(e){try{return KO(e)}catch(t){throw Ne.error("JwtUtils.decode",t),t}}static async generateSignedJwt(e,t,n){const s=pt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),a=pt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),l=`${s}.${a}`,c=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},n,new TextEncoder().encode(l)),d=pt.encodeBase64Url(new Uint8Array(c));return`${l}.${d}`}static async generateSignedJwtWithHmac(e,t,n){const s=pt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),a=pt.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),l=`${s}.${a}`,c=await window.crypto.subtle.sign("HMAC",n,new TextEncoder().encode(l)),d=pt.encodeBase64Url(new Uint8Array(c));return`${l}.${d}`}},XO="10000000-1000-4000-8000-100000000000",Jp=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),q_=class Xn{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return XO.replace(/[018]/g,n=>(+n^Xn._randomWord()&15>>+n/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return Xn.generateUUIDv4()+Xn.generateUUIDv4()+Xn.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const s=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",s);return Jp(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(n){throw Ne.error("CryptoUtils.generateCodeChallenge",n),n}}static generateBasicAuth(t,n){const a=new TextEncoder().encode([t,n].join(":"));return Jp(a)}static async hash(t,n){const s=new TextEncoder().encode(n),a=await crypto.subtle.digest(t,s);return new Uint8Array(a)}static async customCalculateJwkThumbprint(t){let n;switch(t.kty){case"RSA":n={e:t.e,kty:t.kty,n:t.n};break;case"EC":n={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":n={crv:t.crv,kty:t.kty,x:t.x};break;case"oct":n={crv:t.k,kty:t.kty};break;default:throw new Error("Unknown jwk type")}const s=await Xn.hash("SHA-256",JSON.stringify(n));return Xn.encodeBase64Url(s)}static async generateDPoPProof({url:t,accessToken:n,httpMethod:s,keyPair:a,nonce:l}){let c,d;const f={jti:window.crypto.randomUUID(),htm:s??"GET",htu:t,iat:Math.floor(Date.now()/1e3)};
12n&&(c=await Xn.hash("SHA-256",n),d=Xn.encodeBase64Url(c),f.ath=d),l&&(f.nonce=l);try{const p=await crypto.subtle.exportKey("jwk",a.publicKey),y={alg:"ES256",typ:"dpop+jwt",jwk:{crv:p.crv,kty:p.kty,x:p.x,y:p.y}};return await fl.generateSignedJwt(y,f,a.privateKey)}catch(p){throw p instanceof TypeError?new Error(`Error exporting dpop public key: ${p.message}`):p}}static async generateDPoPJkt(t){try{const n=await crypto.subtle.exportKey("jwk",t.publicKey);return await Xn.customCalculateJwkThumbprint(n)}catch(n){throw n instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${n.message}`):n}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}static async generateClientAssertionJwt(t,n,s,a="HS256"){const l=Math.floor(Date.now()/1e3),c={alg:a,typ:"JWT"},d={iss:t,sub:t,aud:s,jti:Xn.generateUUIDv4(),exp:l+300,iat:l},p={HS256:"SHA-256",HS384:"SHA-384",HS512:"SHA-512"}[a];if(!p)throw new Error(`Unsupported algorithm: ${a}. Supported algorithms are: HS256, HS384, HS512`);const y=new TextEncoder,m=await crypto.subtle.importKey("raw",y.encode(n),{name:"HMAC",hash:p},!1,["sign"]);return await fl.generateSignedJwtWithHmac(c,d,m)}};q_.encodeBase64Url=e=>Jp(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var pt=q_,Ns=class{constructor(t){this._name=t,this._callbacks=[],this._logger=new Ne(`Event('${this._name}')`)}addHandler(t){return this._callbacks.push(t),()=>this.removeHandler(t)}removeHandler(t){const n=this._callbacks.lastIndexOf(t);n>=0&&this._callbacks.splice(n,1)}async raise(...t){this._logger.debug("raise:",...t);for(const n of this._callbacks)await n(...t)}},Mw=class{static center({...e}){var t,n,s;return e.width==null&&(e.width=(t=[800,720,600,480].find(a=>a<=window.outerWidth/1.618))!=null?t:360),(n=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((s=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,n])=>`${t}=${typeof n!="boolean"?n:n?"yes":"no"}`).join(",")}},Xr=class Tu extends Ns{constructor(){super(...arguments),this._logger=new Ne(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-Tu.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=Tu.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const n=this._logger.create("init");t=Math.max(Math.floor(t),1);const s=Tu.getEpochTime()+t;if(this.expiration===s&&this._timerHandle){n.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),n.debug("using duration",t),this._expiration=s;const a=Math.min(t,5);this._timerHandle=setInterval(this._callback,a*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},em=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const s=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(s.slice(1))}},Pa=";",_i=class extends Error{constructor(e,t){var n,s,a;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw Ne.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(n=e.error_description)!=null?n:null,this.error_uri=(s=e.error_uri)!=null?s:null,this.state=e.userState,this.session_state=(a=e.session_state)!=null?a:null,this.url_state=e.url_state}},ag=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},WO=class{constructor(e){this._logger=new Ne("AccessTokenEvents"),this._expiringTimer=new Xr("Access token expiring"),this._expiredTimer=new Xr("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}async load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const n=e.expires_in;if(t.debug("access token present, remaining duration:",n),n>0){let a=n-this._expiringNotificationTimeInSeconds;a<=0&&(a=1),t.debug("registering expiring timer, raising in",a,"seconds"),this._expiringTimer.init(a)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const s=n+1;t.debug("registering expired timer, raising in",s,"seconds"),this._expiredTimer.init(s)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},JO=class{constructor(e,t,n,s,a){this._callback=e,this._client_id=t,this._intervalInSeconds=s,this._stopOnError=a,this._logger=new Ne("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=c=>
12{c.origin===this._frame_origin&&c.source===this._frame.contentWindow&&(c.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):c.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(c.data+" message from check session op iframe"))};const l=new URL(n);this._frame_origin=l.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=l.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},H_=class{constructor(){this._logger=new Ne("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},tm=class extends Error{constructor(e,t){super(t),this.name="ErrorDPoPNonce",this.nonce=e}},og=class{constructor(e=[],t=null,n={}){this._jwtHandler=t,this._extraHeaders=n,this._logger=new Ne("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:n,...s}=t;if(!n)return await fetch(e,s);const a=new AbortController,l=setTimeout(()=>a.abort(),n*1e3);try{return await fetch(e,{...t,signal:a.signal})}catch(c){throw c instanceof DOMException&&c.name==="AbortError"?new ag("Network timed out"):c}finally{clearTimeout(l)}}async getJson(e,{token:t,credentials:n,timeoutInSeconds:s}={}){const a=this._logger.create("getJson"),l={Accept:this._contentTypes.join(", ")};t&&(a.debug("token passed, setting Authorization header"),l.Authorization="Bearer "+t),this._appendExtraHeaders(l);let c;try{a.debug("url:",e),c=await this.fetchWithTimeout(e,{method:"GET",headers:l,timeoutInSeconds:s,credentials:n})}catch(p){throw a.error("Network Error"),p}a.debug("HTTP response received, status",c.status);const d=c.headers.get("Content-Type");if(d&&!this._contentTypes.find(p=>d.startsWith(p))&&a.throw(new Error(`Invalid response Content-Type: ${d??"undefined"}, from URL: ${e}`)),c.ok&&this._jwtHandler&&d?.startsWith("application/jwt"))return await this._jwtHandler(await c.text());let f;try{f=await c.json()}catch(p){throw a.error("Error parsing JSON response",p),c.ok?p:new Error(`${c.statusText} (${c.status})`)}if(!c.ok)throw a.error("Error from server:",f),f.error?new _i(f):new Error(`${c.statusText} (${c.status}): ${JSON.stringify(f)}`);return f}async postForm(e,{body:t,basicAuth:n,timeoutInSeconds:s,initCredentials:a,extraHeaders:l}){const c=this._logger.create("postForm"),d={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...l};n!==void 0&&(d.Authorization="Basic "+n),this._appendExtraHeaders(d);let f;try{c.debug("url:",e),f=await this.fetchWithTimeout(e,{method:"POST",headers:d,body:t,timeoutInSeconds:s,credentials:a})}catch(v){throw c.error("Network error"),v}c.debug("HTTP response received, status",f.status);const p=f.headers.get("Content-Type");if(p&&!this._contentTypes.find(v=>p.startsWith(v)))throw new Error(`Invalid response Content-Type: ${p??"undefined"}, from URL: ${e}`);const y=await f.text();let m={};if(y)try{m=JSON.parse(y)}catch(v){throw c.error("Error parsing JSON response",v),f.ok?v:ne
12w Error(`${f.statusText} (${f.status})`)}if(!f.ok){if(c.error("Error from server:",m),f.headers.has("dpop-nonce")){const v=f.headers.get("dpop-nonce");throw new tm(v,`${JSON.stringify(m)}`)}throw m.error?new _i(m,t):new Error(`${f.statusText} (${f.status}): ${JSON.stringify(m)}`)}return m}_appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),n=Object.keys(this._extraHeaders),s=["accept","content-type"],a=["authorization"];n.length!==0&&n.forEach(l=>{if(s.includes(l.toLocaleLowerCase())){t.warn("Protected header could not be set",l,s);return}if(a.includes(l.toLocaleLowerCase())&&Object.keys(e).includes(l)){t.warn("Header could not be overridden",l,a);return}const c=typeof this._extraHeaders[l]=="function"?this._extraHeaders[l]():this._extraHeaders[l];c&&c!==""&&(e[l]=c)})}},e2=class{constructor(e){this._settings=e,this._logger=new Ne("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new og(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},t,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const n=this._logger.create(`_getMetadataProperty('${e}')`),s=await this.getMetadata();if(n.debug("resolved"),s[e]===void 0){if(t===!0){n.warn("Metadata does not contain optional property");return}n.throw(new Error("Metadata does not contain property "+e))}return s[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const n=await this._jsonService.getJson(t,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(e.debug("got key set",n),!Array.isArray(n.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=n.keys,this._signingKeys}},lg=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new Ne("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let n=0;n<e;n++){const s=await this._store.key(n);s&&s.indexOf(this._prefix)===0&&t.push(s.substr(this._prefix.length))}return t}},t2="code",n2="openid",r2="client_secret_post",s2=900,nm=class{constructor({authority:e,metadataUrl:t,metadata:n,signingKeys:s,metadataSeed:a,client_id:l,client_secret:c,response_type:d=t2,scope:f=n2,redirect_uri:p,post_logout_redirect_uri:y,client_authentication:m=r2,token_endpoint_auth_signing_alg:v="HS256",prompt:x,display:_,max_age:E,ui_locales:T,acr_values:C,resource:k,response_mode:R,filterProtocolClaims:M=!0,loadUserInfo:j=!1,requestTimeoutInSeconds:U,staleStateAgeInSeconds:I=s2,mergeClaimsStrategy:z={array:"replace"},disablePKCE:K=!1,stateStore:ee,revokeTokenAdditionalContentTypes:ie,fetchRequestCredentials:ae,refreshTokenAllowedScope:pe,extraQueryParams:me={},extraTokenParams:de={},extraHeaders:N={},dpop:Q,omitScopeWhenRequesting:Z=!1}){var J;if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=n,this.metadataSeed=a,this.signingKeys=s,this.client_id=l,this.client_secret=c,this.response_type=d,this.scope=f,this.redirect_uri=p,this.post_logout_redirect_uri=y,this.client_authentication=m,this.token_endpoint_auth_signing_alg=v,this.prompt=x,this.display=_,this.max_age=E,this.ui_locales=T,this.acr_values=C,this.resource=k,this.response_mode=R,this.filterProtocolClaims=M??!0,this.loadUserInfo=!!j,this.staleStateAgeInSeconds=I,this.mergeClaimsStrategy=z,this.omitScopeWhenRequesting=Z,this.disablePKCE=!!K,this.revokeTokenAdditionalContentTypes=ie,this.fetchRequestCredentials=ae||"same-origin",this.requestTimeoutInSeconds=U,ee)this.stateStore=ee;else{const Y=typeof window<"u"?window.localStorage:new H_;this.stateStore=new lg({store:Y})}if(this.refreshTokenAllowedScope=pe,this.extraQueryParams=me,this.extraTokenParams=de,this.extraHeaders=N,this.dpop=Q,this.dpop&&!((J=this.dpop)!=null&&J.store))throw new Error("A DPoPStore is required when dpop is enabled")}},i2=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Ne("UserInfoService"),this._getClaimsFromJwt=async n=>{const s=this._logger.create("_getClaimsFromJwt");try{const a=fl.decode(n);return s.debug("JWT decoding successful"),a}catch(a){throw s.error("Error parsing JWT response"),a}},this._jsonService=new og(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const n=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",n);const s=await this._jsonService.getJson(n,{token:e,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("got claims",s),s}},F_=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Ne("TokenClient"),this._jsonService=new og(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:n=this._settings.client_id,client_secret:s=this._settings.client_secret,extraHeaders:a,...l}){const c=this._logger.create("exchangeCode");n||c.throw(new Error("A client_id is required")),t||c.throw(new Error("A redirect_uri is required")),l.code||c.throw(new Error("A code is required"));const d=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[m,v]of Object.entries(l))v!=null&&d.set(m,v);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&s==null)throw c.throw(new Error("A client_secret is required")),null;let f;const p=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":f=pt.generateBasicAuth(n,s);break;case"client_secret_post":d.append("client_id",n),s&&d.append("client_secret",s);break;case"client_secret_jwt":{const m=await pt.generateClientAssertionJwt(n,s,p,this._settings.token_endpoint_auth_signing_alg);d.append("client_id",n),d.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),d.append("client_assertion",m);break}}c.debug("got token endpoint");const y=await this._jsonService.postForm(p,{body:d,basicAuth:f,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:a});return c.debug("got response"),y}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:n=this._settings.client_secret,scope:s=this._settings.scope,...a}){const l=this._logger.create("exchangeCredentials");t||l.throw(new Error("A client_id is required"));const c=new URLSearchParams({grant_type:e});this._settings.omitScopeWhenRequesting||c.set("scope",s);for(const[y,m]of Object.entries(a))m!=null&&c.set(y,m);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&n==null)throw l.throw(new Error("A client_secret is required")),null;let d;const f=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":d=pt.generateBasicAuth(t,n);break;case"client_secret_post":c.append("client_id",t),n&&c.append("client_secret",n);break;case"client_secret_jwt":{const y=await pt.generateClientAssertionJwt(t,n,f,this._settings.token_endpoint_auth_signing_alg);c.append("client_id",t),c.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),c.append("client_assertion",y);break}}l.debug("got token endpoint");const p=await this._jsonService.postForm(f,{body:c,basicAuth:d,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return l.debug("got response"),p}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:n=this._settings.client_secret,timeoutInSeconds:s,extraHeaders:a,...l}){const c=this._logger.create("exchangeRefreshToken");t||c.throw(new Error("A client_id is required")),l.refresh_token||c.throw(new Error("A refresh_token is required"));const d=new URLSearchParams({grant_type:e});for(const[m,v]of Object.entries(l))Array.isArray(v)?v.forEach(x=>d.append(m,x)):v!=null&&d.set(m,v);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&n==null)throw c.throw(new Error("A client_secret is required")),null;let f;const p=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":f=pt.generateBasicAuth(t,n);break;case"client_secret_post":d.append("client_id",t),n&&d.append("client_secret",n);break;case"client_secret_jwt":{const m=await pt.generateClientAssertionJwt(t,n,p,this._settings.token_endpoint_auth_signing_alg);d.append("client_id",t),d.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),d.append("client_assertion",m);break}}c.debug("got token endpoint");const y=await this._jsonService.postForm(p,{body:d,basicAuth:f,timeoutInSeconds:s,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:a});return c.debug("got response"),y}async revoke(e){var t;const n=this._logger.create("revoke");e.token||n.throw(new Error("A token is required"));const s=await this._metadataService.getRevocationEndpoint(!1);n.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const a=new URLSearchParams;for(const[l,c]of Object.entries(e))c!=null&&a.set(l,c);a.set("client_id",this._settings.client_id),this._settings.client_secret&&a.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(s,{body:a,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),n.debug("got response")}},a2=class{constructor(e,t,n){this._settings=e,this._metadataService=t,this._claimsService=n,this._logger=new Ne("ResponseValidator"),this._userInfoService=new i2(this._settings,this._metadataService),this._tokenClient=new F_(this._settings,this._metadataService)}async validateSigninResponse(e,t,n){const s=this._logger.create("validateSigninResponse");this._processSigninState(e,t),s.debug("state processed"),await this._processCode(e,t,n),s.debug("code processed"),e.isOpenId&&this._val
12idateIdTokenAttributes(e,"",t.nonce),s.debug("tokens validated"),await this._processClaims(e,t?.skipUserInfo,e.isOpenId),s.debug("claims processed")}async validateCredentialsResponse(e,t){const n=this._logger.create("validateCredentialsResponse"),s=e.isOpenId&&!!e.id_token;s&&this._validateIdTokenAttributes(e),n.debug("tokens validated"),await this._processClaims(e,t,s),n.debug("claims processed")}async validateRefreshResponse(e,t){var n,s;const a=this._logger.create("validateRefreshResponse");e.userState=t.data,(n=e.session_state)!=null||(e.session_state=t.session_state),(s=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),a.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const l=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,l),a.debug("claims processed")}validateSignoutResponse(e,t){const n=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&n.throw(new Error("State does not match")),n.debug("state validated"),e.userState=t.data,e.error)throw n.warn("Response was error",e.error),new _i(e)}_processSigninState(e,t){var n;const s=this._logger.create("_processSigninState");if(t.id!==e.state&&s.throw(new Error("State does not match")),t.client_id||s.throw(new Error("No client_id on state")),t.authority||s.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&s.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&s.throw(new Error("client_id mismatch on settings vs. signin state")),s.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(n=e.scope)!=null||(e.scope=t.scope),e.error)throw s.warn("Response was error",e.error),new _i(e);t.code_verifier&&!e.code&&s.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,n=!0){const s=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){s.debug("not loading user info");return}s.debug("loading user info");const a=await this._userInfoService.getClaims(e.access_token);s.debug("user info claims received from user info endpoint"),n&&a.sub!==e.profile.sub&&s.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(a)),s.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t,n){const s=this._logger.create("_processCode");if(e.code){s.debug("Validating code");const a=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,extraHeaders:n,...t.extraTokenParams});Object.assign(e,a)}else s.debug("No code to process")}_validateIdTokenAttributes(e,t,n){var s;const a=this._logger.create("_validateIdTokenAttributes");a.debug("decoding ID Token JWT");const l=fl.decode((s=e.id_token)!=null?s:"");if(l.sub||a.throw(new Error("ID Token is missing a subject claim")),n&&l.nonce!==n&&a.throw(new Error("nonce in id_token does not match nonce in client storage")),t){const c=fl.decode(t);l.sub!==c.sub&&a.throw(new Error("sub in id_token does not match current sub")),l.auth_time&&l.auth_time!==c.auth_time&&a.throw(new Error("auth_time in id_token does not match original auth_time")),l.azp&&l.azp!==c.azp&&a.throw(new Error("azp in id_token does not match original azp")),!l.azp&&c.azp&&a.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=l}},$u=class rm{constructor(t){this.id=t.id||pt.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=Xr.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new Ne("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return Ne.createStatic("State","fromStorageString"),Promise.resolve(new rm(JSON.parse(t)))}static async clearStaleState(t,n){const s=Ne.createStatic("State","clearStaleState"),a=Xr.getEpochTime()-n,l=await t.getAllKeys();s.debug("got keys",l);for(let c=0;c<l.length;c++){const d=l[c],f=await t.get(d);let p=!1;if(f)try{const y=await rm.fromStorageString(f);s.debug("got item from key:",d,y.created),y.created<=a&&(p=!0)}catch(y){s.error("Error parsing state for key:",d,y),p=!0}else s.debug("no item in storage for key:",d),p=!0;p&&(s.debug("removed item for key:",d),t.remove(d))}}},Q_=class sm extends $u{constructor(t){super(t),this.code_verifier=t.code_verifier,this.co
12de_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo,this.nonce=t.nonce}static async create(t){const n=t.code_verifier===!0?pt.generateCodeVerifier():t.code_verifier||void 0,s=n?await pt.generateCodeChallenge(n):void 0;return new sm({...t,code_verifier:n,code_challenge:s})}toStorageString(){return new Ne("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo,nonce:this.nonce})}static fromStorageString(t){Ne.createStatic("SigninState","fromStorageString");const n=JSON.parse(t);return sm.create(n)}},Z_=class G_{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:n,client_id:s,redirect_uri:a,response_type:l,scope:c,state_data:d,response_mode:f,request_type:p,client_secret:y,nonce:m,url_state:v,resource:x,skipUserInfo:_,extraQueryParams:E,extraTokenParams:T,disablePKCE:C,dpopJkt:k,omitScopeWhenRequesting:R,...M}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");if(!s)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!a)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!l)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!c)throw this._logger.error("create: No scope passed"),new Error("scope");if(!n)throw this._logger.error("create: No authority passed"),new Error("authority");const j=await Q_.create({data:d,request_type:p,url_state:v,code_verifier:!C,client_id:s,authority:n,redirect_uri:a,response_mode:f,client_secret:y,scope:c,extraTokenParams:T,skipUserInfo:_,nonce:m}),U=new URL(t);U.searchParams.append("client_id",s),U.searchParams.append("redirect_uri",a),U.searchParams.append("response_type",l),R||U.searchParams.append("scope",c),m&&U.searchParams.append("nonce",m),k&&U.searchParams.append("dpop_jkt",k);let I=j.id;v&&(I=`${I}${Pa}${v}`),U.searchParams.append("state",I),j.code_challenge&&(U.searchParams.append("code_challenge",j.code_challenge),U.searchParams.append("code_challenge_method","S256")),x&&(Array.isArray(x)?x:[x]).forEach(K=>U.searchParams.append("resource",K));for(const[z,K]of Object.entries({response_mode:f,...M,...E}))K!=null&&U.searchParams.append(z,K.toString());return new G_({url:U.href,state:j})}};Z_._logger=new Ne("SigninRequest");var o2=Z_,l2="openid",up=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(Pa);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(Pa))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Xr.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+Xr.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(l2))||!!this.id_token}},c2=class{constructor({url:e,state_data:t,id_token_hint:n,post_logout_redirect_uri:s,extraQueryParams:a,request_type:l,client_id:c,url_state:d}){if(this._logger=new Ne("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const f=new URL(e);if(n&&f.searchParams.append("id_token_hint",n),c&&f.searchParams.append("client_id",c),s&&(f.searchParams.append("post_logout_redirect_uri",s),t||d)){this.state=new $u({data:t,request_type:l,url_state:d});let p=this.state.id;d&&(p=`${p}${Pa}${d}`),f.searchParams.append("state",p)}for(const[p,y]of Object.entries({...a}))y!=null&&f.searchParams.append(p,y.toString());this.url=f.href}},u2=class{constructor(e){if(this.state=e.get("state"),this.state){const t=decodeURIComponent(this.state).split(Pa);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(Pa))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},d2=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],f2=["sub","iss","aud","exp","iat"],h2=class{constructor(e){this._settings=e,this._logger=new Ne("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let n;Array.isArray(this._settings.filterProtocolClaims)?n=this._settings.filterProtocolClaims:n=d2;for(const s of n)f2.includes(s)||delete t[s]}return t}mergeClaims(e,t){const n={...e};for(const[s,a]of Object.entries(t))if(n[s]!==a)if(Array.isArray(n[s])||Array.isArray(a))if(this._settings.mergeClaimsStrategy.array=="replace")n[s]=a;else{const l=Array.isArray(n[s])?n[s]:[n[s]];for(const c of Array.isArray(a)?a:[a])l.includes(c)||l.push(c);n[s]=l}else typeof n[s]=="object"&&typeof a=="object"?n[s]=this.mergeClaims(n[s],a):n[s]=a;return n}},K_=class{constructor(e,t){this.keys=e,this.nonce=t}},p2=class{constructor(e,t){this._logger=new Ne("OidcClient"),this.settings=e instanceof nm?e:new nm(e),this.metadataService=t??new e2(this.settings),this._claimsService=new h2(this.settings),this._val
12idator=new a2(this.settings,this.metadataService,this._claimsService),this._tokenClient=new F_(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:n,request_type:s,id_token_hint:a,login_hint:l,skipUserInfo:c,nonce:d,url_state:f,response_type:p=this.settings.response_type,scope:y=this.settings.scope,redirect_uri:m=this.settings.redirect_uri,prompt:v=this.settings.prompt,display:x=this.settings.display,max_age:_=this.settings.max_age,ui_locales:E=this.settings.ui_locales,acr_values:T=this.settings.acr_values,resource:C=this.settings.resource,response_mode:k=this.settings.response_mode,extraQueryParams:R=this.settings.extraQueryParams,extraTokenParams:M=this.settings.extraTokenParams,dpopJkt:j,omitScopeWhenRequesting:U=this.settings.omitScopeWhenRequesting}){const I=this._logger.create("createSigninRequest");if(p!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const z=await this.metadataService.getAuthorizationEndpoint();I.debug("Received authorization endpoint",z);const K=await o2.create({url:z,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:m,response_type:p,scope:y,state_data:e,url_state:f,prompt:v,display:x,max_age:_,ui_locales:E,id_token_hint:a,login_hint:l,acr_values:T,dpopJkt:j,resource:C,request:t,request_uri:n,extraQueryParams:R,extraTokenParams:M,request_type:s,response_mode:k,client_secret:this.settings.client_secret,skipUserInfo:c,nonce:d,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:U});await this.clearStaleState();const ee=K.state;return await this.settings.stateStore.set(ee.id,ee.toStorageString()),K}async readSigninResponseState(e,t=!1){const n=this._logger.create("readSigninResponseState"),s=new up(em.readParams(e,this.settings.response_mode));if(!s.state)throw n.throw(new Error("No state in response")),null;const a=await this.settings.stateStore[t?"remove":"get"](s.state);if(!a)throw n.throw(new Error("No matching state found in storage")),null;return{state:await Q_.fromStorageString(a),response:s}}async processSigninResponse(e,t,n=!0){const s=this._logger.create("processSigninResponse"),{state:a,response:l}=await this.readSigninResponseState(e,n);if(s.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const c=await this.getDpopProof(this.settings.dpop.store);t={...t,DPoP:c}}try{await this._validator.validateSigninResponse(l,a,t)}catch(c){if(c instanceof tm&&this.settings.dpop){const d=await this.getDpopProof(this.settings.dpop.store,c.nonce);t.DPoP=d,await this._validator.validateSigninResponse(l,a,t)}else throw c}return l}async getDpopProof(e,t){let n,s;return(await e.getAllKeys()).includes(this.settings.client_id)?(s=await e.get(this.settings.client_id),s.nonce!==t&&t&&(s.nonce=t,await e.set(this.settings.client_id,s))):(n=await pt.generateDPoPKeys(),s=new K_(n,t),await e.set(this.settings.client_id,s)),await pt.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:s.keys,nonce:s.nonce})}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:n=!1,extraTokenParams:s={}}){const a=await this._tokenClient.exchangeCredentials({username:e,password:t,...s}),l=new up(new URLSearchParams);return Object.assign(l,a),await this._validator.validateCredentialsResponse(l,n),l}async useRefreshToken({state:e,redirect_uri:t,resource:n,timeoutInSeconds:s,extraHeaders:a,extraTokenParams:l}){var c;const d=this._logger.create("useRefreshToken");let f;if(this.settings.refreshTokenAllowedScope===void 0)f=e.scope;else{const m=this.settings.refreshTokenAllowedScope.split(" ");f=(((c=e.scope)==null?void 0:c.split(" "))||[]).filter(x=>m.includes(x)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const m=await this.getDpopProof(this.settings.dpop.store);a={...a,DPoP:m}}let p;try{p=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:f,redirect_uri:t,resource:n,timeoutInSeconds:s,extraHeaders:a,...l})}catch(m){if(m instanceof tm&&this.settings.dpop)a.DPoP=await this.getDpopProof(this.settings.dpop.store,m.nonce),p=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:f,redirect_uri:t,resource:n,timeoutInSeconds:s,extraHeaders:a,...l});else throw m}const y=new up(new URLSearchParams);return Object.assign(y,p),d.debug("validating response",y),await this._val
12idator.validateRefreshResponse(y,{...e,scope:f}),y}async createSignoutRequest({state:e,id_token_hint:t,client_id:n,request_type:s,url_state:a,post_logout_redirect_uri:l=this.settings.post_logout_redirect_uri,extraQueryParams:c=this.settings.extraQueryParams}={}){const d=this._logger.create("createSignoutRequest"),f=await this.metadataService.getEndSessionEndpoint();if(!f)throw d.throw(new Error("No end session endpoint")),null;d.debug("Received end session endpoint",f),!n&&l&&!t&&(n=this.settings.client_id);const p=new c2({url:f,id_token_hint:t,client_id:n,post_logout_redirect_uri:l,state_data:e,extraQueryParams:c,request_type:s,url_state:a});await this.clearStaleState();const y=p.state;return y&&(d.debug("Signout request has state to persist"),await this.settings.stateStore.set(y.id,y.toStorageString())),p}async readSignoutResponseState(e,t=!1){const n=this._logger.create("readSignoutResponseState"),s=new u2(em.readParams(e,this.settings.response_mode));if(!s.state){if(n.debug("No state in response"),s.error)throw n.warn("Response was error:",s.error),new _i(s);return{state:void 0,response:s}}const a=await this.settings.stateStore[t?"remove":"get"](s.state);if(!a)throw n.throw(new Error("No matching state found in storage")),null;return{state:await $u.fromStorageString(a),response:s}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:n,response:s}=await this.readSignoutResponseState(e,!0);return n?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(s,n)):t.debug("No state from storage; skipping response validation"),s}clearStaleState(){return this._logger.create("clearStaleState"),$u.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},m2=class{constructor(e){this._userManager=e,this._logger=new Ne("SessionMonitor"),this._start=async t=>{const n=t.session_state;if(!n)return;const s=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,s.debug("session_state",n,", sub",this._sub)):(this._sub=void 0,s.debug("session_state",n,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(n);return}try{const a=await this._userManager.metadataService.getCheckSessionIframe();if(a){s.debug("initializing check session iframe");const l=this._userManager.settings.client_id,c=this._userManager.settings.checkSessionIntervalInSeconds,d=this._userManager.settings.stopCheckSessionOnError,f=new JO(this._callback,l,a,c,d);await f.load(),this._checkSessionIFrame=f,f.start(n)}else s.warn("no check session iframe found in the metadata")}catch(a){s.error("Error from getCheckSessionIframe:",a instanceof Error?a.message:a)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const n=setInterval(async()=>{clearInterval(n);try{const s=await this._userManager.querySessionStatus();if(s){const a={session_state:s.session_state,profile:s.sub?{sub:s.sub}:null};this._start(a)}}catch(s){t.error("error from querySessionStatus",s instanceof Error?s.message:s)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const n=await this._userManager.querySessionStatus();let s=!0;n&&this._checkSessionIFrame?n.sub===this._sub?(s=!1,this._checkSessionIFrame.start(n.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",n.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",n.sub):t.debug("subject no longer signed into OP"),s?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(n){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",n),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const n={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(n)}}}},dp=class Y_{constructor(t){var n;this.id_token=t.id_token,this.session_state=(n=t.session_state)!=null?n:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Xr.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+Xr.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,n;return(n=(t=this.scope)==null?void 0:t.split(" "))!=null?n:[]}toStorageString(){return new Ne("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return Ne.createStatic("User","fromStorageString"),new Y_(JSON.parse(t))}},Ow="oidc-client",X_=class{constructor(){this._abort=new Ns("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:n,keepOpen:s}=await new Promise((a,l)=>{const c=f=>{var p;const y=f.data,m=(p=e.scriptOrigin)!=null?p:window.location.origin;if(!(f.origin!==m||y?.source!==Ow)){try{const v=em.readParams(y.url,e.response_mode).get("state");if(v||t.warn("no state found in response url"),f.source!==this._window&&v!==e.state)return}catch{this._dispose(),l(new Error("Invalid response from window"))}a(y)}};window.addEventListener("message",c,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",c,!1));const d=new BroadcastChannel(`oidc-client-popup-${e.state}`);d.addEventListener("message",c,!1),this._disposeHandlers.add(()=>d.close()),this._disposeHandlers.add(this._abort.addHandler(f=>{this._dispose(),l(f)}))});return t.debug("got response from window"),this._dispose(),s||this.close(),{url:n}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,n=!1,s=window.location.origin){const a={source:Ow,url:t,keepOpen:n},l=new Ne("_notifyParent");
12if(e)l.debug("With parent. Using parent.postMessage."),e.postMessage(a,s);else{l.debug("No parent. Using BroadcastChannel.");const c=new URL(t).searchParams.get("state");if(!c)throw new Error("No parent and no state in URL. Can't complete notification.");const d=new BroadcastChannel(`oidc-client-popup-${c}`);d.postMessage(a),d.close()}}},W_={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},J_="_blank",g2=60,y2=2,e1=10,v2=class extends nm{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:n=e.post_logout_redirect_uri,popupWindowFeatures:s=W_,popupWindowTarget:a=J_,redirectMethod:l="assign",redirectTarget:c="self",iframeNotifyParentOrigin:d=e.iframeNotifyParentOrigin,iframeScriptOrigin:f=e.iframeScriptOrigin,requestTimeoutInSeconds:p,silent_redirect_uri:y=e.redirect_uri,silentRequestTimeoutInSeconds:m,automaticSilentRenew:v=!0,validateSubOnSilentRenew:x=!0,includeIdTokenInSilentRenew:_=!1,monitorSession:E=!1,monitorAnonymousSession:T=!1,checkSessionIntervalInSeconds:C=y2,query_status_response_type:k="code",stopCheckSessionOnError:R=!0,revokeTokenTypes:M=["access_token","refresh_token"],revokeTokensOnSignout:j=!1,includeIdTokenInSilentSignout:U=!1,accessTokenExpiringNotificationTimeInSeconds:I=g2,maxSilentRenewTimeoutRetries:z,userStore:K}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=n,this.popupWindowFeatures=s,this.popupWindowTarget=a,this.redirectMethod=l,this.redirectTarget=c,this.iframeNotifyParentOrigin=d,this.iframeScriptOrigin=f,this.silent_redirect_uri=y,this.silentRequestTimeoutInSeconds=m||p||e1,this.automaticSilentRenew=v,this.validateSubOnSilentRenew=x,this.includeIdTokenInSilentRenew=_,this.monitorSession=E,this.monitorAnonymousSession=T,this.checkSessionIntervalInSeconds=C,this.stopCheckSessionOnError=R,this.query_status_response_type=k,this.revokeTokenTypes=M,this.revokeTokensOnSignout=j,this.includeIdTokenInSilentSignout=U,this.accessTokenExpiringNotificationTimeInSeconds=I,this.maxSilentRenewTimeoutRetries=z,K)this.userStore=K;else{const ee=typeof window<"u"?window.sessionStorage:new H_;this.userStore=new lg({store:ee})}}},Dw=class t1 extends X_{constructor({silentRequestTimeoutInSeconds:t=e1}){super(),this._logger=new Ne("IFrameWindow"),this._timeoutInSeconds=t,this._frame=t1.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const n=setTimeout(()=>{this._abort.raise(new ag("IFrame timed out without a response"))},this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(n)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",n=>{var s;const a=n.target;(s=a.parentNode)==null||s.removeChild(a),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,n){return super._notifyParent(window.parent,t,!1,n)}},b2=class{constructor(e){this._settings=e,this._logger=new Ne("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new Dw({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),Dw.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},w2=500,x2=1e3,Nw=class extends X_{constructor({popupWindowTarget:e=J_,popupWindowFeatures:t={},popupSignal:n,popupAbortOnClose:s}){super(),this._logger=new Ne("PopupWindow");const a=Mw.center({...W_,...t});this._window=window.open(void 0,e,Mw.serialize(a)),this.abortOnClose=!!s,n&&n.addEventListener("abort",()=>{var l;this._abort.raise(new Error((l=n.reason)!=null?l:"Popup aborted"))}),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*x2)}async navigate(e){var t;(t=this._window)==null||t.focus();const n=setInterval(()=>{(!this._window||this._window.closed)&&(this._logger.debug("Popup closed by user or isolated by redirect"),s(),this._disposeHandlers.delete(s),this.abortOnClose&&this._abort.raise(new Error("Popup closed by user")))},w2),s=()=>clearInterval(n);return this._disposeHandlers.add(s),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){super._notifyParent(window.opener,e,t),!t&&!window.opener&&window.close()}},S2=class{constructor(e){this._settings=e,this._logger=new Ne("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget,popupSignal:n,popupAbortOnClose:s}){return new Nw({popupWindowFeatures:e,popupWindowTarget:t,popupSignal:n,popupAbortOnClose:s})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),Nw.notifyOpener(e,t)}},_2=class{constructor(e){this._settings=e,this._logger=new Ne("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var n;this._logger.create("prepare");let s=window.self;t==="top"&&(s=(n=window.top)!=null?n:window.self);const a=s.location[e].bind(s.location);let l;return{navigate:async c=>(this._logger.create("navigate"),await new Promise((f,p)=>{l=p,window.addEventListener("pageshow",()=>f(window.location.href)),a(c.url)})),close:()=>{this._logger.create("close"),l?.(new Error("Redirect aborted")),s.stop()}}}async callback(){}},E2=class extends WO{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new Ne("UserManagerEvents"),this._userLoaded=new Ns("User loaded"),this._userUnloaded=new Ns("User unloaded"),this._silentRenewError=ne
12w Ns("Silent renew error"),this._userSignedIn=new Ns("User signed in"),this._userSignedOut=new Ns("User signed out"),this._userSessionChanged=new Ns("User session changed")}async load(e,t=!0){await super.load(e),t&&await this._userLoaded.raise(e)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},T2=class{constructor(e){this._userManager=e,this._logger=new Ne("SilentRenewService"),this._isStarted=!1,this._retryTimer=new Xr("Retry Silent Renew"),this._timeoutRetryCount=0,this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),this._timeoutRetryCount=0,t.debug("silent token renewal successful")}catch(n){if(n instanceof ag){this._timeoutRetryCount++;const s=this._userManager.settings.maxSilentRenewTimeoutRetries;if(s!==void 0&&this._timeoutRetryCount>s){t.error(`Timeout retry limit reached (${this._timeoutRetryCount} > ${s}), raising silentRenewError:`,n),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(n);return}t.warn(`ErrorTimeout from signinSilent (attempt ${this._timeoutRetryCount}), retry in 5s:`,n),this._retryTimer.init(5);return}t.error("Error from signinSilent:",n),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(n)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},A2=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},n1=class{constructor(e,t,n,s){this._logger=new Ne("UserManager"),this.settings=new v2(e),this._client=new p2(e),this._redirectNavigator=t??new _2(this.settings),this._popupNavigator=n??new S2(this.settings),this._iframeNavigator=s??new b2(this.settings),this._events=new E2(this.settings),this._silentRenewService=new T2(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new m2(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(e=!1){const t=this._logger.create("getUser"),n=await this._loadUser();return n?(t.info("user loaded"),await this._events.load(n,e),n):(t.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){var t;this._logger.create("signinRedirect");const{redirectMethod:n,...s}=e;let a;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(a=await this.generateDPoPJkt(this.settings.dpop));const l=await this._redirectNavigator.prepare({redirectMethod:n});await this._signinStart({request_type:"si:r",dpopJkt:a,...s},l)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),n=await this._signinEnd(e);return n.profile&&n.profile.sub?t.info("success, signed in subject",n.profile.sub):t.info("no subject"),n}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:n=!1}){const s=this._logger.create("signinResourceOwnerCredential"),a=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:n,extraTokenParams:this.settings.extraTokenParams});s.debug("got signin response");const l=await this._buildUser(a);return l.profile&&l.profile.sub?s.info("success, signed in subject",l.profile.sub):s.info("no subject"),l}async signinPopup(e={}){var t;const n=this._logger.create("signinPopup");let s;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(s=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:a,popupWindowTarget:l,popupSignal:c,popupAbortOnClose:d,...f}=e,p=this.settings.popup_redirect_uri;p||n.throw(new Error("No popup_redirect_uri configured"));const y=await this._popupNavigator.prepare({popupWindowFeatures:a,popupWindowTarget:l,popupSignal:c,popupAbortOnClose:d}),m=await this._signin({request_type:"si:p",redirect_uri:p,display:"popup",dpopJkt:s,...f},y);return m&&(m.profile&&m.profile.sub?n.info("success, signed in subject",m.profile.sub):n.info("no subject")),m}async signinPopupCallback(e=window.location.href,t=!1){const n=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),n.info("success")}async signinSilent(e={}){var t,n;const s=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:a,...l}=e;let c=await this._loadUser();if(!e.forceIframeAuth&&c?.refresh_token){s.debug("using refresh token");const m=new A2(c);return await this._useRefreshToken({state:m,redirect_uri:l.redirect_uri,resource:l.resource,extraTokenParams:l.extraTokenParams,timeoutInSeconds:a})}let d;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(d=await this.generateDPoPJkt(this.settings.dpop));const f=this.settings.silent_redirect_uri;f||s.throw(new Error("No silent_redirect_uri configured"));let p;
12c&&this.settings.validateSubOnSilentRenew&&(s.debug("subject prior to silent renew:",c.profile.sub),p=c.profile.sub);const y=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:a});return c=await this._signin({request_type:"si:s",redirect_uri:f,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?c?.id_token:void 0,dpopJkt:d,...l},y,p),c&&((n=c.profile)!=null&&n.sub?s.info("success, signed in subject",c.profile.sub):s.info("no subject")),c}async _useRefreshToken(e){const t=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...e}),n=new dp({...e.state,...t});return await this.storeUser(n),await this._events.load(n),n}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":await this.signinPopupCallback(e);break;case"si:s":await this.signinSilentCallback(e);break;default:throw new Error("invalid request_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:n}=await this._client.readSignoutResponseState(e);if(n)switch(n.request_type){case"so:r":return await this.signoutRedirectCallback(e);case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid request_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:n,...s}=e,a=this.settings.silent_redirect_uri;a||t.throw(new Error("No silent_redirect_uri configured"));const l=await this._loadUser(),c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n}),d=await this._signinStart({request_type:"si:s",redirect_uri:a,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?l?.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...s},c);try{const f={},p=await this._client.processSigninResponse(d.url,f);return t.debug("got signin response"),p.session_state&&p.profile.sub?(t.info("success for subject",p.profile.sub),{session_state:p.session_state,sub:p.profile.sub}):(t.info("success, user not authenticated"),null)}catch(f){if(this.settings.monitorAnonymousSession&&f instanceof _i)switch(f.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:f.session_state}}throw f}}async _signin(e,t,n){const s=await this._signinStart(e,t);return await this._signinEnd(s.url,n)}async _signinStart(e,t){const n=this._logger.create("_signinStart");try{const s=await this._client.createSigninRequest(e);return n.debug("got signin request"),await t.navigate({url:s.url,state:s.state.id,response_mode:s.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(s){throw n.debug("error after preparing navigator, closing navigator window"),t.close(),s}}async _signinEnd(e,t){const n=this._logger.create("_signinEnd"),s={},a=await this._client.processSigninResponse(e,s);return n.debug("got signin response"),await this._buildUser(a,t)}async _buildUser(e,t){const n=this._logger.create("_buildUser"),s=new dp(e);if(t){if(t!==s.profile.sub)throw n.debug("current user does not match user returned from signin. sub from signin:",s.profile.sub),new _i({...e,error:"login_required"});n.debug("current user matches user returned from signin")}return await this.storeUser(s),n.debug("user stored"),await this._events.load(s),s}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:n,...s}=e,a=await this._redirectNavigator.prepare({redirectMethod:n});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...s},a),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),n=await this._signoutEnd(e);return t.info("success"),n}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:n,popupWindowTarget:s,popupSignal:a,...l}=e,c=this.settings.popup_post_logout_redirect_uri,d=await this._popupNavigator.prepare({popupWindowFeatures:n,popupWindowTarget:s,popupSignal:a});await this._signout({request_type:"so:p",post_logout_redirect_uri:c,state:c==null?void 0:{},...l},d),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const n=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),n.info("success")}async _signout(e,t){const n=await this._signoutStart(e,t);return await this._signoutEnd(n.url)}async _signoutStart(e={},t){var n;const s=this._logger.create("_signoutStart");try{const a=await this._loadUser();s.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(a);const l=e.id_token_hint||a&&a.id_token;l&&(s.debug("setting id_token_hint in signout request"),e.id_token_hint=l),await this.removeUser(),s.debug("user removed, creating signout request");
12const c=await this._client.createSignoutRequest(e);return s.debug("got signout request"),await t.navigate({url:c.url,state:(n=c.state)==null?void 0:n.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(a){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),a}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),n=await this._client.processSignoutResponse(e);return t.debug("got signout response"),n}async signoutSilent(e={}){var t;const n=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:s,...a}=e,l=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,c=this.settings.popup_post_logout_redirect_uri,d=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s});await this._signout({request_type:"so:s",post_logout_redirect_uri:c,id_token_hint:l,...a},d),n.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const n=this._logger.create("_revokeInternal");if(!e)return;const s=t.filter(a=>typeof e[a]=="string");if(!s.length){n.debug("no need to revoke due to no token(s)");return}for(const a of s)await this._client.revokeToken(e[a],a),n.info(`${a} revoked successfully`),a!=="access_token"&&(e[a]=null);await this.storeUser(e),n.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),dp.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const n=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,n)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(e,t,n,s){var a,l;const c=await((l=(a=this.settings.dpop)==null?void 0:a.store)==null?void 0:l.get(this.settings.client_id));if(c)return await pt.generateDPoPProof({url:e,accessToken:t?.access_token,httpMethod:n,keyPair:c.keys,nonce:s})}async generateDPoPJkt(e){let t=await e.store.get(this.settings.client_id);if(!t){const n=await pt.generateDPoPKeys();t=new K_(n),await e.store.set(this.settings.client_id,t)}return await pt.generateDPoPJkt(t.keys)}},cg=te.createContext(void 0);cg.displayName="AuthContext";var C2={isLoading:!0,isAuthenticated:!1},R2=(e,t)=>{switch(t.type){case"INITIALISED":case"USER_LOADED":return{...e,user:t.user,isLoading:!1,isAuthenticated:t.user?!t.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...e,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...e,isLoading:!0,activeNavigator:t.method};case"NAVIGATOR_CLOSE":return{...e,isLoading:!1,activeNavigator:void 0};case"ERROR":{const n=t.error;return n.toString=()=>`${n.name}: ${n.message}`,{...e,isLoading:!1,error:n}}default:{const n=new TypeError(`unknown type ${t.type}`),s={name:n.name,message:n.message,innerError:n,stack:n.stack,source:"unknown"};return s.toString=()=>`${s.name}: ${s.message}`,{...e,isLoading:!1,error:s}}}},r1=(e=window.location)=>{let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||(t=new URLSearchParams(e.hash.replace("#","?")),(t.get("code")||t.get("error"))&&t.get("state")))},k2=ug("signinCallback","Sign-in failed"),M2=ug("signoutCallback","Sign-out failed"),O2=ug("renewSilent","Renew silent failed");function s1(e,t){return{name:fp(e,"name",()=>"Error"),message:fp(e,"message",()=>t),stack:fp(e,"stack",()=>new Error().stack),innerError:e}}function ug(e,t){return n=>({...s1(n,t),source:e})}function fp(e,t,n){if(e&&typeof e=="object"){const s=e[t];if(typeof s=="string")return s}return n()}
12var D2=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],N2=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],Pw=e=>()=>{throw new Error(`UserManager#${e} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},jw=typeof window>"u"?null:n1,P2=e=>{const{children:t,onSigninCallback:n,skipSigninCallback:s,matchSignoutCallback:a,onSignoutCallback:l,onRemoveUser:c,userManager:d=null,...f}=e,[p]=te.useState(()=>d??(jw?new jw(f):{settings:f})),[y,m]=te.useReducer(R2,C2),v=te.useMemo(()=>Object.assign({settings:p.settings,events:p.events},Object.fromEntries(D2.map(T=>{var C,k;return[T,(k=(C=p[T])==null?void 0:C.bind(p))!=null?k:Pw(T)]})),Object.fromEntries(N2.map(T=>[T,p[T]?async C=>{m({type:"NAVIGATOR_INIT",method:T});try{return await p[T](C)}catch(k){return m({type:"ERROR",error:{...s1(k,`Unknown error while executing ${T}(...).`),source:T,args:C}}),null}finally{m({type:"NAVIGATOR_CLOSE"})}}:Pw(T)]))),[p]),x=te.useRef(!1);te.useEffect(()=>{!p||x.current||(x.current=!0,(async()=>{try{let T=null;r1()&&!s&&(T=await p.signinCallback(),n&&await n(T)),T=T||await p.getUser(),m({type:"INITIALISED",user:T})}catch(T){m({type:"ERROR",error:k2(T)})}try{if(a&&a(p.settings)){const T=await p.signoutCallback();l&&await l(T)}}catch(T){m({type:"ERROR",error:M2(T)})}})())},[p,s,n,l,a]),te.useEffect(()=>{if(!p)return;const T=M=>{m({type:"USER_LOADED",user:M})};p.events.addUserLoaded(T);const C=()=>{m({type:"USER_UNLOADED"})};p.events.addUserUnloaded(C);const k=()=>{m({type:"USER_SIGNED_OUT"})};p.events.addUserSignedOut(k);const R=M=>{m({type:"ERROR",error:O2(M)})};return p.events.addSilentRenewError(R),()=>{p.events.removeUserLoaded(T),p.events.removeUserUnloaded(C),p.events.removeUserSignedOut(k),p.events.removeSilentRenewError(R)}},[p]);const _=te.useCallback(async()=>{await p.removeUser(),c&&await c()},[p,c]),E=te.useMemo(()=>({...y,...v,removeUser:_}),[y,v,_]);return te.createElement(cg.Provider,{value:E},t)},vd=()=>{const e=te.useContext(cg);return e||console.warn("AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component."),e},gr=[],zn=[],j2=Uint8Array,hp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var wa=0,z2=hp.length;wa<z2;++wa)gr[wa]=hp[wa],zn[hp.charCodeAt(wa)]=wa;zn[45]=62;zn[95]=63;function L2(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var s=n===t?0:4-n%4;return[n,s]}function U2(e,t,n){return(t+n)*3/4-n}function hl(e){var t,n=L2(e),s=n[0],a=n[1],l=new j2(U2(e,s,a)),c=0,d=a>0?s-4:s,f;for(f=0;f<d;f+=4)t=zn[e.charCodeAt(f)]<<18|zn[e.charCodeAt(f+1)]<<12|zn[e.charCodeAt(f+2)]<<6|zn[e.charCodeAt(f+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=t&255;return a===2&&(t=zn[e.charCodeAt(f)]<<2|zn[e.charCodeAt(f+1)]>>4,l[c++]=t&255),a===1&&(t=zn[e.charCodeAt(f)]<<10|zn[e.charCodeAt(f+1)]<<4|zn[e.charCodeAt(f+2)]>>2,l[c++]=t>>8&255,l[c++]=t&255),l}function I2(e){return gr[e>>18&63]+gr[e>>12&63]+gr[e>>6&63]+gr[e&63]}function B2(e,t,n){for(var s,a=[],l=t;l<n;l+=3)s=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),a.push(I2(s));return a.join("")}function pl(e){for(var t,n=e.length,s=n%3,a=[],l=16383,c=0,d=n-s;c<d;c+=l)a.push(B2(e,c,c+l>d?d:c+l));return s===1?(t=e[n-1],a.push(gr[t>>2]+gr[t<<4&63]+"==")):s===2&&(t=(e[n-2]<<8)+e[n-1],a.push(gr[t>>10]+gr[t>>4&63]+gr[t<<2&63]+"=")),a.join("")}function Gr(e){if(e===void 0)return{};if(!i1(e))throw new Error(`The arguments to a Convex function must be an object. Received: ${e}`);return e}function V2(e){if(typeof e>"u")throw new Error("Client created with undefined deployment address. If you used an environment variable, check that it's set.");if(typeof e!="string")throw new Error(`Invalid deployment address: found ${e}".`);if(!(e.startsWith("http:")||e.startsWith("https:")))throw new Error(`Invalid deployment address: Must start with "https://" or "http://". Found "${e}".`);try{new URL(e)}catch{throw new Error(`Invalid deployment address: "${e}" is not a valid URL. If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}if(e.endsWith(".convex.site"))throw new Error(`Invalid deployment address: "${e}" ends with .convex.site, which is used for HTTP Actions. Convex deployment URLs typically end with .convex.cloud? If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`)}function i1(e){const t=typeof e=="object",n=Object.getPrototypeOf(e),s=n===null||n===Object.prototype||n?.constructor?.name==="Object";return t&&s}const a1=!0,ja=BigInt("-9223372036854775808"),dg=BigInt("9223372036854775807"),im=BigInt("0"),$2=BigInt("8"),q2=BigInt("256");function o1(e){return Number.isNaN(e)||!Number.isFinite(e)||Object.is(e,-0)}function H2(e){e<im&&(e-=ja+ja);let t=e.toString(16);t.length%2===1&&(t="0"+t);const n=new Uint8Array(new ArrayBuffer(8));let s=0;for(const a of t.match(/.{2}/g).reverse())n.set([parseInt(a,16)],s++),e>>=$2;return pl(n)}function F2(e){const t=hl(e);if(t.byteLength!==8)throw new Error(`Received ${t.byteLength} bytes, expected 8 for $integer`);let n=im,s=im;for(const a of t)n+=BigInt(a)*q2**s,s++;return n>dg&&(n+=ja+ja),n}function Q2(e){if(e<ja||dg<e)throw new Error(`BigInt ${e} does not fit into a 64-bit signed integer.`);const t=new ArrayBuffer(8);return new DataView(t).setBigInt64(0,e,!0),pl(new Uint8Array(t))}function Z2(e){const t=hl(e);if(t.byteLength!==8)throw new Error(`Received ${t.byteLength} bytes, expected 8 for $integer`);return new DataView(t.buffer).getBigInt64(0,!0)}const G2=DataView.prototype.setBigInt64?Q2:H2,K2=DataView.prototype.getBigInt64?Z2:F2,zw=1024;function l1(e){if(e.length>zw)throw new Error(`Field name ${e} exceeds maximum field name length ${zw}.`);if(e.startsWith("$"))throw new Error(`Field name ${e} starts with a '$', which is reserved.`);for(let t=0;t<e.length;t+=1){const n=e.charCodeAt(t);if(n<32||n>=127)throw new Error(`Field name ${e}
12 has invalid character '${e[t]}': Field names can only contain non-control ASCII characters`)}}function za(e){if(e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string")return e;if(Array.isArray(e))return e.map(s=>za(s));if(typeof e!="object")throw new Error(`Unexpected type of ${e}`);const t=Object.entries(e);if(t.length===1){const s=t[0][0];if(s==="$bytes"){if(typeof e.$bytes!="string")throw new Error(`Malformed $bytes field on ${e}`);return hl(e.$bytes).buffer}if(s==="$integer"){if(typeof e.$integer!="string")throw new Error(`Malformed $integer field on ${e}`);return K2(e.$integer)}if(s==="$float"){if(typeof e.$float!="string")throw new Error(`Malformed $float field on ${e}`);const a=hl(e.$float);if(a.byteLength!==8)throw new Error(`Received ${a.byteLength} bytes, expected 8 for $float`);const c=new DataView(a.buffer).getFloat64(0,a1);if(!o1(c))throw new Error(`Float ${c} should be encoded as a number`);return c}if(s==="$set")throw new Error("Received a Set which is no longer supported as a Convex type.");if(s==="$map")throw new Error("Received a Map which is no longer supported as a Convex type.")}const n={};for(const[s,a]of Object.entries(e))l1(s),n[s]=za(a);return n}const Lw=16384;function il(e){const t=JSON.stringify(e,(n,s)=>s===void 0?"undefined":typeof s=="bigint"?`${s.toString()}n`:s);if(t.length>Lw){const n="[...truncated]";let s=Lw-n.length;const a=t.codePointAt(s-1);return a!==void 0&&a>65535&&(s-=1),t.substring(0,s)+n}return t}function am(e,t,n,s){if(e===void 0){const c=n&&` (present at path ${n} in original object ${il(t)})`;throw new Error(`undefined is not a valid Convex value${c}. To learn about Convex's supported types, see https://docs.convex.dev/using/types.`)}if(e===null)return e;if(typeof e=="bigint"){if(e<ja||dg<e)throw new Error(`BigInt ${e} does not fit into a 64-bit signed integer.`);return{$integer:G2(e)}}if(typeof e=="number")if(o1(e)){const c=new ArrayBuffer(8);return new DataView(c).setFloat64(0,e,a1),{$float:pl(new Uint8Array(c))}}else return e;if(typeof e=="boolean"||typeof e=="string")return e;if(e instanceof ArrayBuffer)return{$bytes:pl(new Uint8Array(e))};if(Array.isArray(e))return e.map((c,d)=>am(c,t,n+`[${d}]`));if(e instanceof Set)throw new Error(pp(n,"Set",[...e],t));if(e instanceof Map)throw new Error(pp(n,"Map",[...e],t));if(!i1(e)){const c=e?.constructor?.name,d=c?`${c} `:"";throw new Error(pp(n,d,e,t))}const a={},l=Object.entries(e);l.sort(([c,d],[f,p])=>c===f?0:c<f?-1:1);for(const[c,d]of l)d!==void 0&&(l1(c),a[c]=am(d,t,n+`.${c}`));return a}function pp(e,t,n,s){return e?`${t}${il(n)} is not a supported Convex type (present at path ${e} in original object ${il(s)}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.`:`${t}${il(n)} is not a supported Convex type.`}function _r(e){return am(e,e,"")}var Y2=Object.defineProperty,X2=(e,t,n)=>t in e?Y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mp=(e,t,n)=>X2(e,typeof t!="symbol"?t+"":t,n),Uw,Iw;const W2=Symbol.for("ConvexError");class qu extends(Iw=Error,Uw=W2,Iw){constructor(t){super(typeof t=="string"?t:il(t)),mp(this,"name","ConvexError"),mp(this,"data"),mp(this,Uw,!0),this.data=t}}function ne(e,t,n){function s(d,f){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:f,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,f);const p=c.prototype,y=Object.keys(p);for(let m=0;m<y.length;m++){const v=y[m];v in d||(d[v]=p[v].bind(d))}}const a=n?.Parent??Object;class l extends a{}Object.defineProperty(l,"name",{value:e});function c(d){var f;const p=n?.Parent?new l:this;s(p,d),(f=p._zod).deferred??(f.deferred=[]);for(const y of p._zod.deferred)y();return p}return Object.defineProperty(c,"init",{value:s}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>n?.Parent&&d instanceof n.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class Oa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class c1 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const u1={};function Ei(e){return u1}function d1(e){const t=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,a])=>t.indexOf(+s)===-1).map(([s,a])=>a)}function om(e,t){return typeof t=="bigint"?t.toString():t}function fg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function hg(e){return e==null}function pg(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const Bw=Symbol("evaluating");function Ie(e,t,n){let s;
vendor: 9,113 bytes, line 12
12Object.defineProperty(e,t,{get(){if(s!==Bw)return s===void 0&&(s=Bw,s=n()),s},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function Ri(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Vs(...e){const t={};for(const n of e){const s=Object.getOwnPropertyDescriptors(n);Object.assign(t,s)}return Object.defineProperties({},t)}function Vw(e){return JSON.stringify(e)}function J2(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const f1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const eD=fg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ml(e){if(Hu(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Hu(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function h1(e){return ml(e)?{...e}:Array.isArray(e)?[...e]:e}const tD=new Set(["string","number","symbol"]);function bd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $s(e,t,n){const s=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(s._zod.parent=e),s}function Se(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function nD(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function rD(e,t){const n=e._zod.def,s=n.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=Vs(e._zod.def,{get shape(){const c={};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(c[d]=n.shape[d])}return Ri(this,"shape",c),c},checks:[]});return $s(e,l)}function sD(e,t){const n=e._zod.def,s=n.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=Vs(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete c[d]}return Ri(this,"shape",c),c},checks:[]});return $s(e,l)}function iD(e,t){if(!ml(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(l,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=Vs(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return Ri(this,"shape",l),l}});return $s(e,a)}function aD(e,t){if(!ml(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Vs(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Ri(this,"shape",s),s}});return $s(e,n)}function oD(e,t){const n=Vs(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t._zod.def.shape};return Ri(this,"shape",s),s},get catchall(){return t._zod.def.catchall},checks:[]});return $s(e,n)}function lD(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Vs(t._zod.def,{get shape(){const d=t._zod.def.shape,f={...d};if(n)for(const p in n){if(!(p in d))throw new Error(`Unrecognized key: "${p}"`);n[p]&&(f[p]=e?new e({type:"optional",innerType:d[p]}):d[p])}else for(const p in d)f[p]=e?new e({type:"optional",innerType:d[p]}):d[p];return Ri(this,"shape",f),f},checks:[]});return $s(t,c)}function cD(e,t,n){const s=Vs(t._zod.def,{get shape(){const a=t._zod.def.shape,l={...a};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=new e({type:"nonoptional",innerType:a[c]}))}else for(const c in a)l[c]=new e({type:"nonoptional",innerType:a[c]});return Ri(this,"shape",l),l}});return $s(t,s)}function Aa(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function p1(e,t){return t.map(n=>{var s;return(s=n).path??(s.path=[]),n.path.unshift(e),n})}function nu(e){return typeof e=="string"?e:e?.message}function Ti(e,t,n){const s={...e,path:e.path??[]};if(!e.message){const a=nu(e.inst?._zod.def?.error?.(e))??nu(t?.error?.(e))??nu(n.customError?.(e))??nu(n.localeError?.(e))??"Invalid input";s.message=a}return delete s.inst,delete s.continue,t?.reportInput||delete s.input,s}function mg(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gl(...e){const[t,n,s]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:s}:{...t}}const m1=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,om,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},g1=ne("$ZodError",m1),y1=ne("$ZodError",m1,{Parent:Error});function uD(e,t=n=>n.message){const n={},s=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):s.push(t(a));return{formErrors:s,fieldErrors:n}}function dD(e,t=n=>n.message){const n={_errors:[]},s=a=>{for(const l of a.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>s({issues:c}));else if(l.code==="invalid_key")s({issues:l.issues});else if(l.code==="invalid_element")s({issues:l.issues});else if(l.path.length===0)n._errors.push(t(l));else{let c=n,d=0;for(;d<l.path.length;){const f=l.path[d];d===l.path.length-1?(c[f]=c[f]||{_errors:[]},c[f]._errors.push(t(l))):c[f]=c[f]||{_errors:[]},c=c[f],d++}}};return s(e),n}const gg=e=>(t,n,s,a)=>{const l=s?Object.assign(s,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},l);if(c instanceof Promise)throw new Oa;if(c.issues.length){const d=new(a?.Err??e)(c.issues.map(f=>Ti(f,l,Ei())));throw f1(d,a?.callee),d}return c.value},yg=e=>async(t,n,s,a)=>{const l=s?Object.assign(s,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},l);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new(a?.Err??e)(c.issues.map(f=>Ti(f,l,Ei())));throw f1(d,a?.callee),d}return c.value},wd=e=>(t,n,s)=>{const a=s?{...s,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},a);if(l instanceof Promise)throw new Oa;return l.issues.length?{success:!1,error:new(e??g1)(l.issues.map(c=>Ti(c,a,Ei())))}:{success:!0,data:l.value}},fD=wd(y1),xd=e=>async(t,n,s)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},a);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(c=>Ti(c,a,Ei())))}:{success:!0,data:l.value}},hD=xd(y1),pD=e=>(t,n,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return gg(e)(t,n,a)},mD=e=>(t,n,s)=>gg(e)(t,n,s),gD=e=>async(t,n,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return yg(e)(t,n,a)},yD=e=>async(t,n,s)=>yg(e)(t,n,s),vD=e=>(t,n,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return wd(e)(t,n,a)},bD=e=>(t,n,s)=>wd(e)(t,n,s),wD=e=>async(t,n,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return xd(e)(t,n,a)},xD=e=>async(t,n,s)=>xd(e)(t,n,s),SD=/^[cC][^\s-]{8,}$/,_D=/^[0-9a-z]+$/,ED=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,TD=/^[0-9a-vA-V]{20}$/,AD=/^[A-Za-z0-9]{27}$/,CD=/^[a-zA-Z0-9_-]{21}$/,RD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$w=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,MD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,OD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function DD(){return new RegExp(OD,"u")}const ND=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,PD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jD=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,zD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,LD=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 4,124 bytes, line 12
12)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,v1=/^[A-Za-z0-9_-]*$/,UD=/^\+[1-9]\d{6,14}$/,b1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ID=new RegExp(`^${b1}$`);function w1(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function BD(e){return new RegExp(`^${w1(e)}$`)}function VD(e){const t=w1({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${t}(?:${n.join("|")})`;return new RegExp(`^${b1}T(?:${s})$`)}const $D=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},qD=/^[^A-Z]*$/,HD=/^[^a-z]*$/,Tr=ne("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),FD=ne("$ZodCheckMaxLength",(e,t)=>{var n;Tr.init(e,t),(n=e._zod.def).when??(n.when=s=>{const a=s.value;return!hg(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(s._zod.bag.maximum=t.maximum)}),e._zod.check=s=>{const a=s.value;if(a.length<=t.maximum)return;const c=mg(a);s.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),QD=ne("$ZodCheckMinLength",(e,t)=>{var n;Tr.init(e,t),(n=e._zod.def).when??(n.when=s=>{const a=s.value;return!hg(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(s._zod.bag.minimum=t.minimum)}),e._zod.check=s=>{const a=s.value;if(a.length>=t.minimum)return;const c=mg(a);s.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),ZD=ne("$ZodCheckLengthEquals",(e,t)=>{var n;Tr.init(e,t),(n=e._zod.def).when??(n.when=s=>{const a=s.value;return!hg(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=s=>{const a=s.value,l=a.length;if(l===t.length)return;const c=mg(a),d=l>t.length;s.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!t.abort})}}),Sd=ne("$ZodCheckStringFormat",(e,t)=>{var n,s;Tr.init(e,t),e._zod.onattach.push(a=>{const l=a._zod.bag;l.format=t.format,t.pattern&&(l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(s=e._zod).check??(s.check=()=>{})}),GD=ne("$ZodCheckRegex",(e,t)=>{Sd.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),KD=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=qD),Sd.init(e,t)}),YD=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=HD),Sd.init(e,t)}),XD=ne("$ZodCheckIncludes",(e,t)=>{Tr.init(e,t);const n=bd(t.includes),s=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=s,e._zod.onattach.push(a=>{const l=a._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(s)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),WD=ne("$ZodCheckStartsWith",(e,t)=>{Tr.init(e,t);const n=new RegExp(`^${bd(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(s=>{const a=s._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=s=>{s.value.startsWith(t.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input
vendor: 11,738 bytes, lines 12-48
12:s.value,inst:e,continue:!t.abort})}}),JD=ne("$ZodCheckEndsWith",(e,t)=>{Tr.init(e,t);const n=new RegExp(`.*${bd(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(s=>{const a=s._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=s=>{s.value.endsWith(t.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:s.value,inst:e,continue:!t.abort})}}),eN=ne("$ZodCheckOverwrite",(e,t)=>{Tr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class tN{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const s=t.split(`
13`).filter(c=>c),a=Math.min(...s.map(c=>c.length-c.trimStart().length)),l=s.map(c=>c.slice(a)).map(c=>" ".repeat(this.indent*2)+c);for(const c of l)this.content.push(c)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(l=>`  ${l}`)];return new t(...n,a.join(`
14`))}}const nN={major:4,minor:3,patch:6},vt=ne("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nN;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const a of s)for(const l of a._zod.onattach)l(e);if(s.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(c,d,f)=>{let p=Aa(c),y;for(const m of d){if(m._zod.def.when){if(!m._zod.def.when(c))continue}else if(p)continue;const v=c.issues.length,x=m._zod.check(c);if(x instanceof Promise&&f?.async===!1)throw new Oa;if(y||x instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await x,c.issues.length!==v&&(p||(p=Aa(c,v)))});else{if(c.issues.length===v)continue;p||(p=Aa(c,v))}}return y?y.then(()=>c):c},l=(c,d,f)=>{if(Aa(c))return c.aborted=!0,c;const p=a(d,s,f);if(p instanceof Promise){if(f.async===!1)throw new Oa;return p.then(y=>e._zod.parse(y,f))}return e._zod.parse(p,f)};e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){const p=e._zod.parse({value:c.value,issues:[]},{...d,skipChecks:!0});return p instanceof Promise?p.then(y=>l(y,c,d)):l(p,c,d)}const f=e._zod.parse(c,d);if(f instanceof Promise){if(d.async===!1)throw new Oa;return f.then(p=>a(p,s,d))}return a(f,s,d)}}Ie(e,"~standard",()=>({validate:a=>{try{const l=fD(e,a);return l.success?{value:l.data}:{issues:l.error?.issues}}catch{return hD(e,a).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),vg=ne("$ZodString",(e,t)=>{vt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??$D(e._zod.bag),e._zod.parse=(n,s)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Xe=ne("$ZodStringFormat",(e,t)=>{Sd.init(e,t),vg.init(e,t)}),rN=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=kD),Xe.init(e,t)}),sN=ne("$ZodUUID",(e,t)=>{if(t.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(s===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$w(s))}else t.pattern??(t.pattern=$w());Xe.init(e,t)}),iN=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=MD),Xe.init(e,t)}),aN=ne("$ZodURL",(e,t)=>{Xe.init(e,t),e._zod.check=n=>{try{const s=n.value.trim(),a=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=s;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),oN=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=DD()),Xe.init(e,t)}),lN=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=CD),Xe.init(e,t)}),cN=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=SD),Xe.init(e,t)}),uN=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_D),Xe.init(e,t)}),dN=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ED),Xe.init(e,t)}),fN=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=TD),Xe.init(e,t)}),hN=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=AD),Xe.init(e,t)}),pN=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=VD(t)),Xe.init(e,t)}),mN=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ID),Xe.init(e,t)}),gN=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=BD(t)),Xe.init(e,t)}),yN=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=RD),Xe.init(e,t)}),vN=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ND),Xe.init(e,t),e._zod.bag.format="ipv4"}),bN=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=PD),Xe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),wN=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=jD),Xe.init(e,t)}),xN=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=zD),Xe.init(e,t),e._zod.check=n=>{const s=n.value.split("/");try{if(s.length!==2)throw new Error;const[a,l]=s;if(!l)throw new Error;const c=Number(l);if(`${c}`!==l)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function x1(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const SN=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=LD),Xe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{x1(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function _N(e){if(!v1.test(e))return!1;const t=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return x1(n)}const EN=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=v1),Xe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{_N(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),TN=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=UD),Xe.init(e,t)});function AN(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[s]=n;if(!s)return!1;const a=JSON.parse(atob(s));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const CN=ne("$ZodJWT",(e,t)=>{Xe.init(e,t),e._zod.check=n=>{AN(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),RN=ne("$ZodUnknown",(e,t)=>{vt.init(e,t),e._zod.parse=n=>n}),kN=ne("$ZodNever",(e,t)=>{vt.init(e,t),e._zod.parse=(n,s)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function qw(e,t,n){e.issues.length&&t.issues.push(...p1(n,e.issues)),t.value[n]=e.value}const MN=ne("$ZodArray",(e,t)=>{vt.init(e,t),e._zod.parse=(n,s)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const l=[];for(let c=0;c<a.length;c++){const d=a[c],f=t.element._zod.run({value:d,issues:[]},s);f instanceof Promise?l.push(f.then(p=>qw(p,n,c))):qw(f,n,c)}return l.length?Promise.all(l).then(()=>n):n}});function Fu(e,t,n,s,a){if(e.issues.length){if(a&&!(n in s))return;t.issues.push(...p1(n,e.issues))}e.value===void 0?n in s&&(t.value[n]=void 0):t.value[n]=e.value}function S1(e){const t=Object.keys(e.shape);for(const s of t)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const n=nD(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function _1(e,t,n,s,a,l){const c=[],d=a.keySet,f=a.catchall._zod,p=f.def.type,y=f.optout==="optional";for(const m in t){if(d.has(m))continue;if(p==="never"){c.push(m);continue}const v=f.run({value:t[m],issues:[]},s);v instanceof Promise?e.push(v.then(x=>Fu(x,n,m,t,y))):Fu(v,n,m,t,y)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const ON=ne("$ZodObject",(e,t)=>{if(vt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...d};return Object.defineProperty(t,"shape",{value:f}),f}})}const s=fg(()=>S1(t));Ie(e._zod,"propValues",()=>{const d=t.shape,f={};for(const p in d){const y=d[p]._zod;if(y.values){f[p]??(f[p]=new Set);for(const m of y.values)f[p].add(m)}}return f});const a=Hu,l=t.catchall;let c;e._zod.parse=(d,f)=>{c??(c=s.value);const p=d.value;if(!a(p))return d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d;d.value={};const y=[],m=c.shape;for(const v of c.keys){const x=m[v],_=x._zod.optout==="optional",E=x._zod.run({value:p[v],issues:[]},f);E instanceof Promise?y.push(E.then(T=>Fu(T,d,v,p,_))):Fu(E,d,v,p,_)}return l?_1(y,p,d,f,s.value,e):y.length?Promise.all(y).then(()=>d):d}}),DN=ne("$ZodObjectJIT",(e,t)=>{ON.init(e,t);const n=e._zod.parse,s=fg(()=>S1(t)),a=v=>{const x=new tN(["shape","payload","ctx"]),_=s.value,E=R=>{const M=Vw(R);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};x.write("const input = payload.value;");const T=Object.create(null);let C=0;for(const R of _.keys)T[R]=`key_${C++}`;x.write("const newResult = {};");for(const R of _.keys){const M=T[R],j=Vw(R),I=v[R]?._zod?.optout==="optional";x.write(`const ${M} = ${E(R)};`),I?x.write(`
15        if (${M}.issues.length) {
16          if (${j} in input) {
17            payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
18              ...iss,
19              path: iss.path ? [${j}, ...iss.path] : [${j}]
20            })));
21          }
22        }
23        
24        if (${M}.value === undefined) {
25          if (${j} in input) {
26            newResult[${j}] = undefined;
27          }
28        } else {
29          newResult[${j}] = ${M}.value;
30        }
31        
32      `):x.write(`
33        if (${M}.issues.length) {
34          payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
35            ...iss,
36            path: iss.path ? [${j}, ...iss.path] : [${j}]
37          })));
38        }
39        
40        if (${M}.value === undefined) {
41          if (${j} in input) {
42            newResult[${j}] = undefined;
43          }
44        } else {
45          newResult[${j}] = ${M}.value;
46        }
47        
48      `)}x.write("payload.value = newResult;"),x.write("return payload;");const k=x.compile();return(R,M)=>k(v,R,M)};let l;const c=Hu,d=!u1.jitless,p=d&&eD.value,y=t.catchall;let m;e._zod.parse=(v,x)=>{m??(m=s.value);const _=v.value;return c(_)?d&&p&&x?.async===!1&&x.jitless!==!0?(l||(l=a(t.shape)),v=l(v,x),y?_1([],_,v,x,m,e):v):n(v,x):(v.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),v)}});function Hw(e,t,n,s){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const a=e.filter(l=>!Aa(l));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(c=>Ti(c,s,Ei())))}),t)}const NN=ne("$ZodUnion",(e,t)=>{vt.init(e,t),Ie(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Ie(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Ie(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Ie(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${a.map(l=>pg(l.source)).join("|")})$`)}});
vendor: 5,352 bytes, line 48
48const n=t.options.length===1,s=t.options[0]._zod.run;e._zod.parse=(a,l)=>{if(n)return s(a,l);let c=!1;const d=[];for(const f of t.options){const p=f._zod.run({value:a.value,issues:[]},l);if(p instanceof Promise)d.push(p),c=!0;else{if(p.issues.length===0)return p;d.push(p)}}return c?Promise.all(d).then(f=>Hw(f,a,e,l)):Hw(d,a,e,l)}}),PN=ne("$ZodIntersection",(e,t)=>{vt.init(e,t),e._zod.parse=(n,s)=>{const a=n.value,l=t.left._zod.run({value:a,issues:[]},s),c=t.right._zod.run({value:a,issues:[]},s);return l instanceof Promise||c instanceof Promise?Promise.all([l,c]).then(([f,p])=>Fw(n,f,p)):Fw(n,l,c)}});function lm(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ml(e)&&ml(t)){const n=Object.keys(t),s=Object.keys(e).filter(l=>n.indexOf(l)!==-1),a={...e,...t};for(const l of s){const c=lm(e[l],t[l]);if(!c.valid)return{valid:!1,mergeErrorPath:[l,...c.mergeErrorPath]};a[l]=c.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let s=0;s<e.length;s++){const a=e[s],l=t[s],c=lm(a,l);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Fw(e,t,n){const s=new Map;let a;for(const d of t.issues)if(d.code==="unrecognized_keys"){a??(a=d);for(const f of d.keys)s.has(f)||s.set(f,{}),s.get(f).l=!0}else e.issues.push(d);for(const d of n.issues)if(d.code==="unrecognized_keys")for(const f of d.keys)s.has(f)||s.set(f,{}),s.get(f).r=!0;else e.issues.push(d);const l=[...s].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(l.length&&a&&e.issues.push({...a,keys:l}),Aa(e))return e;const c=lm(t.value,n.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const jN=ne("$ZodEnum",(e,t)=>{vt.init(e,t);const n=d1(t.entries),s=new Set(n);e._zod.values=s,e._zod.pattern=new RegExp(`^(${n.filter(a=>tD.has(typeof a)).map(a=>typeof a=="string"?bd(a):a.toString()).join("|")})$`),e._zod.parse=(a,l)=>{const c=a.value;return s.has(c)||a.issues.push({code:"invalid_value",values:n,input:c,inst:e}),a}}),zN=ne("$ZodTransform",(e,t)=>{vt.init(e,t),e._zod.parse=(n,s)=>{if(s.direction==="backward")throw new c1(e.constructor.name);const a=t.transform(n.value,n);if(s.async)return(a instanceof Promise?a:Promise.resolve(a)).then(c=>(n.value=c,n));if(a instanceof Promise)throw new Oa;return n.value=a,n}});function Qw(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const E1=ne("$ZodOptional",(e,t)=>{vt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ie(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${pg(n.source)})?$`):void 0}),e._zod.parse=(n,s)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(n,s);return a instanceof Promise?a.then(l=>Qw(l,n.value)):Qw(a,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,s)}}),LN=ne("$ZodExactOptional",(e,t)=>{E1.init(e,t),Ie(e._zod,"values",()=>t.innerType._zod.values),Ie(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,s)=>t.innerType._zod.run(n,s)}),UN=ne("$ZodNullable",(e,t)=>{vt.init(e,t),Ie(e._zod,"optin",()=>t.innerType._zod.optin),Ie(e._zod,"optout",()=>t.innerType._zod.optout),Ie(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${pg(n.source)}|null)$`):void 0}),Ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,s)=>n.value===null?n:t.innerType._zod.run(n,s)}),IN=ne("$ZodDefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{if(s.direction==="backward")return t.innerType._zod.run(n,s);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,s);return a instanceof Promise?a.then(l=>Zw(l,t)):Zw(a,t)}});function Zw(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const BN=ne("$ZodPrefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>(s.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,s))}),VN=ne("$ZodNonOptional",(e,t)=>{vt.init(e,t),Ie(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(s=>s!==void 0)):void 0}),e._zod.parse=(n,s)=>{const a=t.innerType._zod.run(n,s);return a instanceof Promise?a.then(l=>Gw(l,e)):Gw(a,e)}});function Gw(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const $N=ne("$ZodCatch",(e,t)=>{vt.init(e,t),Ie(e._zod,"optin",()=>t.innerType._zod.optin),Ie(e._zod,"optout",()=>t.innerType._zod.optout),Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{if(s.direction==="backward")return t.innerType._zod.run(n,s);const a=t.innerType._zod.run(n,s);return a instanceof Promise?a.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(c=>Ti(c,s,Ei()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(l
vendor: 19,724 bytes, lines 48-50
48=>Ti(l,s,Ei()))},input:n.value}),n.issues=[]),n)}}),qN=ne("$ZodPipe",(e,t)=>{vt.init(e,t),Ie(e._zod,"values",()=>t.in._zod.values),Ie(e._zod,"optin",()=>t.in._zod.optin),Ie(e._zod,"optout",()=>t.out._zod.optout),Ie(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,s)=>{if(s.direction==="backward"){const l=t.out._zod.run(n,s);return l instanceof Promise?l.then(c=>ru(c,t.in,s)):ru(l,t.in,s)}const a=t.in._zod.run(n,s);return a instanceof Promise?a.then(l=>ru(l,t.out,s)):ru(a,t.out,s)}});function ru(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const HN=ne("$ZodReadonly",(e,t)=>{vt.init(e,t),Ie(e._zod,"propValues",()=>t.innerType._zod.propValues),Ie(e._zod,"values",()=>t.innerType._zod.values),Ie(e._zod,"optin",()=>t.innerType?._zod?.optin),Ie(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,s)=>{if(s.direction==="backward")return t.innerType._zod.run(n,s);const a=t.innerType._zod.run(n,s);return a instanceof Promise?a.then(Kw):Kw(a)}});function Kw(e){return e.value=Object.freeze(e.value),e}const FN=ne("$ZodCustom",(e,t)=>{Tr.init(e,t),vt.init(e,t),e._zod.parse=(n,s)=>n,e._zod.check=n=>{const s=n.value,a=t.fn(s);if(a instanceof Promise)return a.then(l=>Yw(l,n,s,e));Yw(a,n,s,e)}});function Yw(e,t,n,s){if(!e){const a={code:"custom",input:n,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(a.params=s._zod.def.params),t.issues.push(gl(a))}}var Xw;class QN{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const s=n[0];return this._map.set(t,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const s={...this.get(n)??{}};delete s.id;const a={...s,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ZN(){return new QN}(Xw=globalThis).__zod_globalRegistry??(Xw.__zod_globalRegistry=ZN());const tl=globalThis.__zod_globalRegistry;function GN(e,t){return new e({type:"string",...Se(t)})}function KN(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Se(t)})}function Ww(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Se(t)})}function YN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(t)})}function XN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(t)})}function WN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(t)})}function JN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(t)})}function eP(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Se(t)})}function tP(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(t)})}function nP(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(t)})}function rP(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(t)})}function sP(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(t)})}function iP(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(t)})}function aP(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(t)})}function oP(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(t)})}function lP(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(t)})}function cP(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(t)})}function uP(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(t)})}function dP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(t)})}function fP(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(t)})}function hP(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(t)})}function pP(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(t)})}function mP(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(t)})}function gP(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(t)})}function yP(e,t){return new e({type:"string",format:"date",check:"string_format",...Se(t)})}function vP(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(t)})}function bP(e,t){return new e({type:"string",format:"duration",check:"string_format",...Se(t)})}function wP(e){return new e({type:"unknown"})}function xP(e,t){return new e({type:"never",...Se(t)})}function T1(e,t){return new FD({check:"max_length",...Se(t),maximum:e})}function Qu(e,t){return new QD({check:"min_length",...Se(t),minimum:e})}function A1(e,t){return new ZD({check:"length_equals",...Se(t),length:e})}function SP(e,t){return new GD({check:"string_format",format:"regex",...Se(t),pattern:e})}function _P(e){return new KD({check:"string_format",format:"lowercase",...Se(e)})}function EP(e){return new YD({check:"string_format",format:"uppercase",...Se(e)})}function TP(e,t){return new XD({check:"string_format",format:"includes",...Se(t),includes:e})}function AP(e,t){return new WD({check:"string_format",format:"starts_with",...Se(t),prefix:e})}function CP(e,t){return new JD({check:"string_format",format:"ends_with",...Se(t),suffix:e})}function Fa(e){return new eN({check:"overwrite",tx:e})}function RP(e){return Fa(t=>t.normalize(e))}function kP(){return Fa(e=>e.trim())}function MP(){return Fa(e=>e.toLowerCase())}function OP(){return Fa(e=>e.toUpperCase())}function DP(){return Fa(e=>J2(e))}function NP(e,t,n){return new e({type:"array",element:t,...Se(n)})}function PP(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Se(n)})}function jP(e){const t=zP(n=>(n.addIssue=s=>{if(typeof s=="string")n.issues.push(gl(s,n.value,t._zod.def));else{const a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),n.issues.push(gl(a))}},e(n.value,n)));return t}function zP(e,t){const n=new Tr({check:"custom",...Se(t)});return n._zod.check=e,n}function C1(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tl,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Dt(e,t,n={path:[],schemaPath:[]}){var s;const a=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const c={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,c);const d=e._zod.toJSONSchema?.();if(d)c.schema=d;else{const y={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,y);else{const v=c.schema,x=t.processors[a.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);x(e,t,v,y)}const m=e._zod.parent;m&&(c.ref||(c.ref=m),Dt(m,t,y),t.seen.get(m).isParent=!0)}const f=t.metadataRegistry.get(e);return f&&Object.assign(c.schema,f),t.io==="input"&&Qt(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((s=c.schema).default??(s.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function R1(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=new Map;for(const c of e.seen.entries()){const d=e.metadataRegistry.get(c[0])?.id;if(d){const f=s.get(d);if(f&&f!==c[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(d,c[0])}}const a=c=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(c[0])?.id,v=e.external.uri??(_=>_);if(m)return{ref:v(m)};const x=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=x,{defId:x,ref:`${v("__shared")}#/${d}/${x}`}}if(c[1]===n)return{ref:"#"};const p=`#/${d}/`,y=c[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:p+y}},l=c=>{if(c[1].schema.$ref)return;const d=c[1],{ref:f,defId:p}=a(c);d.def={...d.schema},p&&(d.defId=p);const y=d.schema;for(const m in y)delete y[m];y.$ref=f};if(e.cycles==="throw")for(const c of e.seen.entries()){const d=c[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
49
50Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const d=c[1];if(t===c[0]){l(c);continue}if(e.external){const p=e.external.registry.get(c[0])?.id;if(t!==c[0]&&p){l(c);continue}}if(e.metadataRegistry.get(c[0])?.id){l(c);continue}if(d.cycle){l(c);continue}if(d.count>1&&e.reused==="ref"){l(c);continue}}}function k1(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=c=>{const d=e.seen.get(c);if(d.ref===null)return;const f=d.def??d.schema,p={...f},y=d.ref;if(d.ref=null,y){s(y);const v=e.seen.get(y),x=v.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(x)):Object.assign(f,x),Object.assign(f,p),c._zod.parent===y)for(const E in f)E==="$ref"||E==="allOf"||E in p||delete f[E];if(x.$ref&&v.def)for(const E in f)E==="$ref"||E==="allOf"||E in v.def&&JSON.stringify(f[E])===JSON.stringify(v.def[E])&&delete f[E]}const m=c._zod.parent;if(m&&m!==y){s(m);const v=e.seen.get(m);if(v?.schema.$ref&&(f.$ref=v.schema.$ref,v.def))for(const x in f)x==="$ref"||x==="allOf"||x in v.def&&JSON.stringify(f[x])===JSON.stringify(v.def[x])&&delete f[x]}e.override({zodSchema:c,jsonSchema:f,path:d.path??[]})};for(const c of[...e.seen.entries()].reverse())s(c[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(c)}Object.assign(a,n.def??n.schema);const l=e.external?.defs??{};for(const c of e.seen.entries()){const d=c[1];d.def&&d.defId&&(l[d.defId]=d.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?a.$defs=l:a.definitions=l);try{const c=JSON.parse(JSON.stringify(a));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:Zu(t,"input",e.processors),output:Zu(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function Qt(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return Qt(s.element,n);if(s.type==="set")return Qt(s.valueType,n);if(s.type==="lazy")return Qt(s.getter(),n);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return Qt(s.innerType,n);if(s.type==="intersection")return Qt(s.left,n)||Qt(s.right,n);if(s.type==="record"||s.type==="map")return Qt(s.keyType,n)||Qt(s.valueType,n);if(s.type==="pipe")return Qt(s.in,n)||Qt(s.out,n);if(s.type==="object"){for(const a in s.shape)if(Qt(s.shape[a],n))return!0;return!1}if(s.type==="union"){for(const a of s.options)if(Qt(a,n))return!0;return!1}if(s.type==="tuple"){for(const a of s.items)if(Qt(a,n))return!0;return!!(s.rest&&Qt(s.rest,n))}return!1}const LP=(e,t={})=>n=>{const s=C1({...n,processors:t});return Dt(e,s),R1(s,e),k1(s,e)},Zu=(e,t,n={})=>s=>{const{libraryOptions:a,target:l}=s??{},c=C1({...a??{},target:l,io:t,processors:n});return Dt(e,c),R1(c,e),k1(c,e)},UP={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},IP=(e,t,n,s)=>{const a=n;a.type="string";const{minimum:l,maximum:c,format:d,patterns:f,contentEncoding:p}=e._zod.bag;if(typeof l=="number"&&(a.minLength=l),typeof c=="number"&&(a.maxLength=c),d&&(a.format=UP[d]??d,a.format===""&&delete a.format,d==="time"&&delete a.format),p&&(a.contentEncoding=p),f&&f.size>0){const y=[...f];y.length===1?a.pattern=y[0].source:y.length>1&&(a.allOf=[...y.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},BP=(e,t,n,s)=>{n.not={}},VP=(e,t,n,s)=>{},$P=(e,t,n,s)=>{const a=e._zod.def,l=d1(a.entries);l.every(c=>typeof c=="number")&&(n.type="number"),l.every(c=>typeof c=="string")&&(n.type="string"),n.enum=l},qP=(e,t,n,s)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},HP=(e,t,n,s)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},FP=(e,t,n,s)=>{const a=n,l=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(a.minItems=c),typeof d=="number"&&(a.maxItems=d),a.type="array",a.items=Dt(l.element,t,{...s,path:[...s.path,"items"]})},QP=(e,t,n,s)=>{const a=n,l=e._zod.def;a.type="object",a.properties={};const c=l.shape;for(const p in c)a.properties[p]=Dt(c[p],t,{...s,path:[...s.path,"properties",p]});const d=new Set(Object.keys(c)),f=new Set([...d].filter(p=>{const y=l.shape[p]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));f.size>0&&(a.required=Array.from(f)),l.catchall?._zod.def.type==="never"?a.additionalProperties=!1:l.catchall?l.catchall&&(a.additionalProperties=Dt(l.catchall,t,{...s,path:[...s.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},ZP=(e,t,n,s)=>{const a=e._zod.def,l=a.inclusive===!1,c=a.options.map((d,f)=>Dt(d,t,{...s,path:[...s.path,l?"oneOf":"anyOf",f]}));l?n.oneOf=c:n.anyOf=c},GP=(e,t,n,s)=>{const a=e._zod.def,l=Dt(a.left,t,{...s,path:[...s.path,"allOf",0]}),c=Dt(a.right,t,{...s,path:[...s.path,"allOf",1]}),d=p=>"allOf"in p&&Object.keys(p).length===1,f=[...d(l)?l.allOf:[l],...d(c)?c.allOf:[c]];n.allOf=f},KP=(e,t,n,s)=>{const a=e._zod.def,l=Dt(a.innerType,t,s),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=a.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},YP=(e,t,n,s)=>{const a=e._zod.def;Dt(a.innerType,t,s);const l=t.seen.get(e);l.ref=a.innerType},XP=(e,t,n,s)=>{const a=e._zod.def;Dt(a.innerType,t,s);const l=t.seen.get(e);l.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},WP=(e,t,n,s)=>{const a=e._zod.def;Dt(a.innerType,t,s);const l=t.seen.get(e);l.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},JP=(e,t,n,s)=>{const a=e._zod.def;Dt(a.innerType,t,s);const l=t.seen.get(e);l.ref=a.innerType;let c;try{c=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=c},ej=(e,t,n,s)=>{const a=e._zod.def,l=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;Dt(l,t,s);const c=t.seen.get(e);c.ref=l},tj=(e,t,n,s)=>{const a=e._zod.def;Dt(a.innerType,t,s);const l=t.seen.get(e);l.ref=a.innerType,n.readOnly=!0},M1=(e,t,n,s)=>{const a=e._zod.def;Dt(a.innerType,t,s);const l=t.seen.get(e);l.ref=a.innerType},nj=ne("ZodISODateTime",(e,t)=>{pN.init(e,t),Je.init(e,t)});function rj(e){return gP(nj,e)}const sj=ne("ZodISODate",(e,t)=>{mN.init(e,t),Je.init(e,t)});function ij(e){return yP(sj,e)}const aj=ne("ZodISOTime",(e,t)=>{gN.init(e,t),Je.init(e,t)});function oj(e){return vP(aj,e)}const lj=ne("ZodISODuration",(e,t)=>{yN.init(e,t),Je.init(e,t)});function cj(e){return bP(lj,e)}const uj=(e,t)=>{g1.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>dD(e,n)},flatten:{value:n=>uD(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,om,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,om,2)}},isEmpty:{get(){return e.issues.length===0}}})},Hn=ne("ZodError",uj,{Parent:Error}),dj=gg(Hn),fj=yg(Hn),hj=wd(Hn),pj=xd(Hn),mj=pD(Hn),gj=mD(Hn),yj=gD(Hn),vj=yD(Hn),bj=vD(Hn),wj=bD(Hn),xj=wD(Hn),Sj=xD(Hn),bt=ne("ZodType",(e,t)=>(vt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Zu(e,"input"),output:Zu(e,"output")}}),e.toJSONSchema=LP(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Vs(t,{checks:[...t.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0}),e.with=e.check,e.clone=(n,s)=>$s(e,n,s),e.brand=()=>e,e.register=((n,s)=>(n.add(e,s),e)),e.parse=(n,s)=>dj(e,n,s,{callee:e.parse}),e.safeParse=(n,s)=>hj(e,n,s),e.parseAsync=async(n,s)=>fj(e,n,s,{callee:e.parseAsync}),e.safeParseAsync=async(n,s)=>pj(e,n,s),e.spa=e.safeParseAsync,e.encode=(n,s)=>mj(e,n,s),e.decode=(n,s)=>gj(e,n,s),e.encodeAsync=async(n,s)=>yj(e,n,s),e.decodeAsync=async(n,s)=>vj(e,n,s),e.safeEncode=(n,s)=>bj(e,n,s),e.safeDecode=(n,s)=>wj(e,n,s),e.safeEncodeAsync=async(n,s)=>xj(e,n,s),e.safeDecodeAsync=async(n,s)=>Sj(e,n,s),e.refine=(n,s)=>e.check(gz(n,s)),e.superRefine=n=>e.check(yz(n)),e.overwrite=n=>e.check(Fa(n)),e.optional=()=>tx(e),e.exactOptional=()=>rz(e),e.nullable=()=>nx(e),e.nullish=()=>tx(nx(e)),e.nonoptional=n=>cz(e,n),e.array=()=>Qj(e),e.or=n=>Yj([e,n]),e.and=n=>Wj(e,n),e.transform=n=>rx(e,tz(n)),e.default=n=>az(e,n),e.prefault=n=>lz(e,n),e.catch=n=>dz(e,n),e.pipe=n=>rx(e,n),e.readonly=()=>pz(e),e.describe=n=>{const s=e.clone();return tl.add(s,{description:n}),s},Object.defineProperty(e,"description",{get(){return tl.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return tl.get(e);const s=e.clone();return tl.add(s,n[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),O1=ne("_ZodString",(e,t)=>{vg.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(s,a,l)=>IP(e,s,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...s)=>e.check(SP(...s)),e.includes=(...s)=>e.check(TP(...s)),e.startsWith=(...s)=>e.check(AP(...s)),e.endsWith=(...s)=>e.check(CP(...s)),e.min=(...s)=>e.check(Qu(...s)),e.max=(...s)=>e.check(T1(...s)),e.length=(...s)=>e.check(A1(...s)),e.nonempty=(...s)=>e.check(Qu(1,...s)),e.lowercase=s=>e.check(_P(s)),e.uppercase=s=>e.check(EP(s)),e.trim=()=>e.check(kP()),e.normalize=(...s)=>e.check(RP(...s)),e.toLowerCase=()=>e.check(MP()),e.toUpperCase=()=>e.check(OP()),e.slugify=()=>e.check(DP())}),_j=ne("ZodString",(e,t)=>{vg.init(e,t),O1.init(e,t),e.email=n=>e.check(KN(Tj,n)),e.url=n=>e.check(eP(Aj,n)),e.jwt=n=>e.check(mP(Vj,n)),e.emoji=n=>e.check(tP(Cj,n)),e.guid=n=>e.check(Ww(Jw,n)),e.uuid=n=>e.check(YN(su,n)),e.uuidv4=n=>e.check(XN(su,n)),e.uuidv6=n=>e.check(WN(su,n)),e.uuidv7=n=>e.check(JN(su,n)),e.nanoid=n=>e.check(nP(Rj,n)),e.guid=n=>e.check(Ww(Jw,n)),e.cuid=n=>e.check(rP(kj,n)),e.cuid2=n=>e.check(sP(Mj,n)),e.ulid=n=>e.check(iP(Oj,n)),e.base64=n=>e.check(fP(Uj,n)),e.base64url=n=>e.check(hP(Ij,n)),e.xid=n=>e.check(aP(Dj,n)),e.ksuid=n=>e.check(oP(Nj,n)),e.ipv4=n=>e.check(lP(Pj,n)),e.ipv6=n=>e.check(cP(jj,n)),e.cidrv4=n=>e.check(uP(zj,n)),e.cidrv6=n=>e.check(dP(Lj,n)),e.e164=n=>e.check(pP(Bj,n)),e.datetime=n=>e.check(rj(n)),e.date=n=>e.check(ij(n)),e.time=n=>e.check(oj(n)),e.duration=n=>
50e.check(cj(n))});function Ej(e){return GN(_j,e)}const Je=ne("ZodStringFormat",(e,t)=>{Xe.init(e,t),O1.init(e,t)}),Tj=ne("ZodEmail",(e,t)=>{iN.init(e,t),Je.init(e,t)}),Jw=ne("ZodGUID",(e,t)=>{rN.init(e,t),Je.init(e,t)}),su=ne("ZodUUID",(e,t)=>{sN.init(e,t),Je.init(e,t)}),Aj=ne("ZodURL",(e,t)=>{aN.init(e,t),Je.init(e,t)}),Cj=ne("ZodEmoji",(e,t)=>{oN.init(e,t),Je.init(e,t)}),Rj=ne("ZodNanoID",(e,t)=>{lN.init(e,t),Je.init(e,t)}),kj=ne("ZodCUID",(e,t)=>{cN.init(e,t),Je.init(e,t)}),Mj=ne("ZodCUID2",(e,t)=>{uN.init(e,t),Je.init(e,t)}),Oj=ne("ZodULID",(e,t)=>{dN.init(e,t),Je.init(e,t)}),Dj=ne("ZodXID",(e,t)=>{fN.init(e,t),Je.init(e,t)}),Nj=ne("ZodKSUID",(e,t)=>{hN.init(e,t),Je.init(e,t)}),Pj=ne("ZodIPv4",(e,t)=>{vN.init(e,t),Je.init(e,t)}),jj=ne("ZodIPv6",(e,t)=>{bN.init(e,t),Je.init(e,t)}),zj=ne("ZodCIDRv4",(e,t)=>{wN.init(e,t),Je.init(e,t)}),Lj=ne("ZodCIDRv6",(e,t)=>{xN.init(e,t),Je.init(e,t)}),Uj=ne("ZodBase64",(e,t)=>{SN.init(e,t),Je.init(e,t)}),Ij=ne("ZodBase64URL",(e,t)=>{EN.init(e,t),Je.init(e,t)}),Bj=ne("ZodE164",(e,t)=>{TN.init(e,t),Je.init(e,t)}),Vj=ne("ZodJWT",(e,t)=>{CN.init(e,t),Je.init(e,t)}),$j=ne("ZodUnknown",(e,t)=>{RN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>VP()});function ex(){return wP($j)}const qj=ne("ZodNever",(e,t)=>{kN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>BP(e,n,s)});function Hj(e){return xP(qj,e)}const Fj=ne("ZodArray",(e,t)=>{MN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>FP(e,n,s,a),e.element=t.element,e.min=(n,s)=>e.check(Qu(n,s)),e.nonempty=n=>e.check(Qu(1,n)),e.max=(n,s)=>e.check(T1(n,s)),e.length=(n,s)=>e.check(A1(n,s)),e.unwrap=()=>e.element});function Qj(e,t){return NP(Fj,e,t)}const Zj=ne("ZodObject",(e,t)=>{DN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>QP(e,n,s,a),Ie(e,"shape",()=>t.shape),e.keyof=()=>Jj(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ex()}),e.loose=()=>e.clone({...e._zod.def,catchall:ex()}),e.strict=()=>e.clone({...e._zod.def,catchall:Hj()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>iD(e,n),e.safeExtend=n=>aD(e,n),e.merge=n=>oD(e,n),e.pick=n=>rD(e,n),e.omit=n=>sD(e,n),e.partial=(...n)=>lD(D1,e,n[0]),e.required=(...n)=>cD(N1,e,n[0])});function Gj(e,t){const n={type:"object",shape:e??{},...Se(t)};return new Zj(n)}const Kj=ne("ZodUnion",(e,t)=>{NN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>ZP(e,n,s,a),e.options=t.options});function Yj(e,t){return new Kj({type:"union",options:e,...Se(t)})}const Xj=ne("ZodIntersection",(e,t)=>{PN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>GP(e,n,s,a)});function Wj(e,t){return new Xj({type:"intersection",left:e,right:t})}const cm=ne("ZodEnum",(e,t)=>{jN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(s,a,l)=>$P(e,s,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(s,a)=>{const l={};for(const c of s)if(n.has(c))l[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new cm({...t,checks:[],...Se(a),entries:l})},e.exclude=(s,a)=>{const l={...t.entries};for(const c of s)if(n.has(c))delete l[c];else throw new Error(`Key ${c} not found in enum`);return new cm({...t,checks:[],...Se(a),entries:l})}});function Jj(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new cm({type:"enum",entries:n,...Se(t)})}const ez=ne("ZodTransform",(e,t)=>{zN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>HP(e,n),e._zod.parse=(n,s)=>{if(s.direction==="backward")throw new c1(e.constructor.name);n.addIssue=l=>{if(typeof l=="string")n.issues.push(gl(l,n.value,t));else{const c=l;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=n.value),c.inst??(c.inst=e),n.issues.push(gl(c))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(l=>(n.value=l,n)):(n.value=a,n)}});function tz(e){return new ez({type:"transform",transform:e})}const D1=ne("ZodOptional",(e,t)=>{E1.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>M1(e,n,s,a),e.unwrap=()=>e._zod.def.innerType});function tx(e){return new D1({type:"optional",innerType:e})}const nz=ne("ZodExactOptional",(e,t)=>{LN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>M1(e,n,s,a),e.unwrap=()=>e._zod.def.innerType});function rz(e){return new nz({type:"optional",innerType:e})}const sz=ne("ZodNullable",(e,t)=>{UN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>KP(e,n,s,a),e.unwrap=()=>e._zod.def.innerType});function nx(e){return new sz({type:"nullable",innerType:e})}const iz=ne("ZodDefault",(e,t)=>{IN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>XP(e,n,s,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function az(e,t){return new iz({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():h1(t)}})}const oz=ne("ZodPrefault",(e,t)=>{BN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>WP(e,n,s,a),e.unwrap=()=>e._zod.def.innerType});function lz(e,t){return new oz({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():h1(t)}})}const N1=ne("ZodNonOptional",(e,t)=>{VN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>YP(e,n,s,a),e.unwrap=()=>e._zod.def.innerType});function cz(e,t){return new N1({type:"nonoptional",innerType:e,...Se(t)})}const uz=ne("ZodCatch",(e,t)=>{$N.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>JP(e,n,s,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function dz(e,t){return new uz({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const fz=ne("ZodPipe",(e,t)=>{qN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>ej(e,n,s,a),e.in=t.in,e.out=t.out});function rx(e,t){return new fz({type:"pipe",in:e,out:t})}const hz=ne("ZodReadonly",(e,t)=>{HN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>tj(e,n,s,a),e.unwrap=()=>e._zod.def.innerType});function pz(e){return new hz({type:"readonly",innerType:e})}const mz=ne("ZodCustom",(e,t)=>{FN.init(e,t),bt.init(e,t),e._zod.processJSONSchema=(n,s,a)=>qP(e,n)});function gz(e,t={}){return PP(mz,e,t)}function yz(e){return jP(e)}const vz=2e4,bz=Gj({message:Ej()});function wz(e={}){const{timeoutMs:t=vz,isBackendAuthenticated:n=!0,onSync:s,onSuccess:a,onNoAuthParams:l}=e,{isLoading:c,isAuthenticated:d,error:f,signinRedirect:p}=vd(),[y,m]=b.useState("processing-oauth"),[v,x]=b.useState(null),_=b.useRef(!0),E=b.useRef(r1()),T=b.useRef(!1);b.useEffect(()=>()=>{_.current=!1},[]),b.useEffect(()=>{if(y==="success"||y==="error")return;const k=setTimeout(()=>{_.current&&(m("error"),x("Authentication timed out. Please try again."))},t);return()=>clearTimeout(k)},[y,t]),b.useEffect(()=>{if(!(y!=="processing-oauth"&&y!=="waiting-backend")){if(f){m("error"),x(f.message||"Authentication failed");return}if(!E.current&&!c&&!d){l?.();return}if(!c&&d&&y==="processing-oauth"){m("waiting-backend");return}if(E.current&&!c&&!d&&!f&&y==="processing-oauth"){const k=setTimeout(()=>
50{_.current&&!d&&(m("error"),x("Authentication was cancelled or failed. Please try again."))},500);return()=>clearTimeout(k)}}},[c,d,f,y,l]),b.useEffect(()=>{if(y!=="waiting-backend"||!n||T.current)return;T.current=!0;async function k(){if(_.current){m("syncing");try{s&&await s(),_.current&&m("success")}catch(R){if(console.error("Auth callback sync failed:",R),!_.current)return;if(R instanceof qu){const j=bz.safeParse(R.data);if(j.success){m("error"),x(j.data.message);return}}const M=R instanceof Error?R.message:"Failed to complete authentication. Please try again.";m("error"),x(M)}}}k()},[y,n,s]),b.useEffect(()=>{y==="success"&&a?.()},[y,a]);const C=b.useCallback(async()=>{try{await p()}catch(k){console.error("Failed to restart auth:",k)}},[p]);return{status:y,error:v,isLoading:y!=="success"&&y!=="error",isSuccess:y==="success",isError:y==="error",retry:C}}function xz(){window.history.replaceState({},document.title,window.location.pathname)}function Sz(){window.location.pathname=""}const _z={onSignoutCallback:Sz,onSigninCallback:xz};function Ez({children:e,userManagerSettings:t,authority:n,client_id:s,...a}){const[l]=b.useState(()=>new n1({...t,authority:t?.authority??n,client_id:t?.client_id??s,prompt:t?.prompt??"select_account",response_type:t?.response_type??"code",scope:t?.scope??"openid profile email offline_access",redirect_uri:t?.redirect_uri??`${window.location.origin}/auth/callback`,post_logout_redirect_uri:t?.post_logout_redirect_uri??window.location.origin,userStore:t?.userStore??new lg({store:window.localStorage})}));return S.jsx(P2,{userManager:l,..._z,...a,children:e})}function Tz({children:e}){return S.jsx(Ez,{"data-hercules-id":"src/components/providers/auth.tsx:5:4","data-hercules-name":"HerculesAuthProvider",authority:"https://01kmwr2kbwr8v6bqc39ge94aff.hercules-auth.com",client_id:"OUumyChISAsHbDLCuYrBsrRSBQgRElzd",userManagerSettings:{prompt:"select_account",response_type:"code",scope:"openid profile email offline_access",redirect_uri:`${window.location.origin}/auth/callback`},children:e})}const sx="1.33.0";var Az=Object.defineProperty,Cz=(e,t,n)=>t in e?Az(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ix=(e,t,n)=>Cz(e,typeof t!="symbol"?t+"":t,n);const Rz="color:rgb(0, 145, 255)";function P1(e){switch(e){case"query":return"Q";case"mutation":return"M";case"action":return"A";case"any":return"?"}}class j1{constructor(t){ix(this,"_onLogLineFuncs"),ix(this,"_verbose"),this._onLogLineFuncs={},this._verbose=t.verbose}addLogLineListener(t){let n=Math.random().toString(36).substring(2,15);for(let s=0;s<10&&this._onLogLineFuncs[n]!==void 0;s++)n=Math.random().toString(36).substring(2,15);return this._onLogLineFuncs[n]=t,()=>{delete this._onLogLineFuncs[n]}}logVerbose(...t){if(this._verbose)for(const n of Object.values(this._onLogLineFuncs))n("debug",`${new Date().toISOString()}`,...t)}log(...t){for(const n of Object.values(this._onLogLineFuncs))n("info",...t)}warn(...t){for(const n of Object.values(this._onLogLineFuncs))n("warn",...t)}error(...t){for(const n of Object.values(this._onLogLineFuncs))n("error",...t)}}function z1(e){const t=new j1(e);return t.addLogLineListener((n,...s)=>{switch(n){case"debug":console.debug(...s);break;case"info":console.log(...s);break;case"warn":console.warn(...s);break;case"error":console.error(...s);break;default:console.log(...s)}}),t}function L1(e){return new j1(e)}function Gu(e,t,n,s,a){const l=P1(n);if(typeof a=="object"&&(a=`ConvexError ${JSON.stringify(a.errorData,null,2)}`),t==="info"){const c=a.match(/^\[.*?\] /);if(c===null){e.error(`[CONVEX ${l}(${s})] Could not parse console.log`);return}const d=a.slice(1,c[0].length-2),f=a.slice(c[0].length);e.log(`%c[CONVEX ${l}(${s})] [${d}]`,Rz,f)}else e.error(`[CONVEX ${l}(${s})] ${a}`)}function kz(e,t){const n=`[CONVEX FATAL ERROR] ${t}`;return e.error(n),new Error(n)}function Ca(e,t,n){return`[CONVEX ${P1(e)}(${t})] ${n.errorMessage}
51  Called by client`}function um(e,t){return t.data=e.errorData,t}function Ai(e){const t=e.split(":");let n,s;return t.length===1?(n=t[0],s="default"):(n=t.slice(0,t.length-1).join(":"),s=t[t.length-1]),n.endsWith(".js")&&(n=n.slice(0,-3)),`${n}:${s}`}function wi(e,t){return JSON.stringify({udfPath:Ai(e),args:_r(t)})}
51function ax(e,t,n){const{initialNumItems:s,id:a}=n;return JSON.stringify({type:"paginated",udfPath:Ai(e),args:_r(t),options:_r({initialNumItems:s,id:a})})}var Mz=Object.defineProperty,Oz=(e,t,n)=>t in e?Mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cr=(e,t,n)=>Oz(e,typeof t!="symbol"?t+"":t,n);class Dz{constructor(){cr(this,"nextQueryId"),cr(this,"querySetVersion"),cr(this,"querySet"),cr(this,"queryIdToToken"),cr(this,"identityVersion"),cr(this,"auth"),cr(this,"outstandingQueriesOlderThanRestart"),cr(this,"outstandingAuthOlderThanRestart"),cr(this,"paused"),cr(this,"pendingQuerySetModifications"),this.nextQueryId=0,this.querySetVersion=0,this.identityVersion=0,this.querySet=new Map,this.queryIdToToken=new Map,this.outstandingQueriesOlderThanRestart=new Set,this.outstandingAuthOlderThanRestart=!1,this.paused=!1,this.pendingQuerySetModifications=new Map}hasSyncedPastLastReconnect(){return this.outstandingQueriesOlderThanRestart.size===0&&!this.outstandingAuthOlderThanRestart}markAuthCompletion(){this.outstandingAuthOlderThanRestart=!1}subscribe(t,n,s,a){const l=Ai(t),c=wi(l,n),d=this.querySet.get(c);if(d!==void 0)return d.numSubscribers+=1,{queryToken:c,modification:null,unsubscribe:()=>this.removeSubscriber(c)};{const f=this.nextQueryId++,p={id:f,canonicalizedUdfPath:l,args:n,numSubscribers:1,journal:s,componentPath:a};this.querySet.set(c,p),this.queryIdToToken.set(f,c);const y=this.querySetVersion,m=this.querySetVersion+1,v={type:"Add",queryId:f,udfPath:l,args:[_r(n)],journal:s,componentPath:a};return this.paused?this.pendingQuerySetModifications.set(f,v):this.querySetVersion=m,{queryToken:c,modification:{type:"ModifyQuerySet",baseVersion:y,newVersion:m,modifications:[v]},unsubscribe:()=>this.removeSubscriber(c)}}}transition(t){for(const n of t.modifications)switch(n.type){case"QueryUpdated":case"QueryFailed":{this.outstandingQueriesOlderThanRestart.delete(n.queryId);const s=n.journal;if(s!==void 0){const a=this.queryIdToToken.get(n.queryId);a!==void 0&&(this.querySet.get(a).journal=s)}break}case"QueryRemoved":{this.outstandingQueriesOlderThanRestart.delete(n.queryId);break}default:throw new Error(`Invalid modification ${n.type}`)}}queryId(t,n){const s=Ai(t),a=wi(s,n),l=this.querySet.get(a);return l!==void 0?l.id:null}isCurrentOrNewerAuthVersion(t){return t>=this.identityVersion}getAuth(){return this.auth}setAuth(t){this.auth={tokenType:"User",value:t};const n=this.identityVersion;return this.paused||(this.identityVersion=n+1),{type:"Authenticate",baseVersion:n,...this.auth}}setAdminAuth(t,n){const s={tokenType:"Admin",value:t,impersonating:n};this.auth=s;const a=this.identityVersion;return this.paused||(this.identityVersion=a+1),{type:"Authenticate",baseVersion:a,...s}}clearAuth(){this.auth=void 0,this.markAuthCompletion();const t=this.identityVersion;return this.paused||(this.identityVersion=t+1),{type:"Authenticate",tokenType:"None",baseVersion:t}}hasAuth(){return!!this.auth}isNewAuth(t){return this.auth?.value!==t}queryPath(t){const n=this.queryIdToToken.get(t);return n?this.querySet.get(n).canonicalizedUdfPath:null}queryArgs(t){const n=this.queryIdToToken.get(t);return n?this.querySet.get(n).args:null}queryToken(t){return this.queryIdToToken.get(t)??null}queryJournal(t){return this.querySet.get(t)?.journal}restart(t){this.unpause(),this.outstandingQueriesOlderThanRestart.clear();const n=[];for(const l of this.querySet.values()){const c={type:"Add",queryId:l.id,udfPath:l.canonicalizedUdfPath,args:[_r(l.args)],journal:l.journal,componentPath:l.componentPath};n.push(c),t.has(l.id)||this.outstandingQueriesOlderThanRestart.add(l.id)}this.querySetVersion=1;const s={type:"ModifyQuerySet",baseVersion:0,newVersion:1,modifications:n};if(!this.auth)return this.identityVersion=0,[s,void 0];this.outstandingAuthOlderThanRestart=!0;const a={type:"Authenticate",baseVersion:0,...this.auth};return this.identityVersion=1,[s,a]}pause(){this.paused=!0}resume(){const t=this.pendingQuerySetModifications.size>0?{type:"ModifyQuerySet",baseVersion:this.querySetVersion,newVersion:++this.querySetVersion,modifications:Array.from(this.pendingQuerySetModifications.values())}:void 0,n=this.auth!==void 0?{type:"Authenticate",baseVersion:this.identityVersion++,...this.auth}:void 0;return this.unpause(),[t,n]}unpause(){this.paused=!1,this.pendingQuerySetModifications.clear()}removeSubscriber(t){const n=this.querySet.get(t);if(n.numSubscribers>1)return n.numSubscribers-=1,null;{this.querySet.delete(t),this.queryIdToToken.delete(n.id),this.outstandingQueriesOlderThanRestart.delete(n.id);const s=this.querySetVersion,a=this.querySetVersion+1,l={type:"Remove",queryId:n.id};return this.paused?this.pendingQuerySetModifications.has(n.id)?this.pendingQuerySetModifications.delete(n.id):this.pendingQuerySetModifications.set(n.id,l):this.querySetVersion=a,{type:"ModifyQuerySet",baseVersion:s,newVersion:a,modifications:[l]}}}}var Nz=Object.defineProperty,Pz=(e,t,n)=>t in e?Nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iu=(e,t,n)=>Pz(e,typeof t!="symbol"?t+"":t,n);
51class jz{constructor(t,n){this.logger=t,this.markConnectionStateDirty=n,iu(this,"inflightRequests"),iu(this,"requestsOlderThanRestart"),iu(this,"inflightMutationsCount",0),iu(this,"inflightActionsCount",0),this.inflightRequests=new Map,this.requestsOlderThanRestart=new Set}request(t,n){const s=new Promise(a=>{const l=n?"Requested":"NotSent";this.inflightRequests.set(t.requestId,{message:t,status:{status:l,requestedAt:new Date,onResult:a}}),t.type==="Mutation"?this.inflightMutationsCount++:t.type==="Action"&&this.inflightActionsCount++});return this.markConnectionStateDirty(),s}onResponse(t){const n=this.inflightRequests.get(t.requestId);if(n===void 0||n.status.status==="Completed")return null;const s=n.message.type==="Mutation"?"mutation":"action",a=n.message.udfPath;for(const f of t.logLines)Gu(this.logger,"info",s,a,f);const l=n.status;let c,d;if(t.success)c={success:!0,logLines:t.logLines,value:za(t.result)},d=()=>l.onResult(c);else{const f=t.result,{errorData:p}=t;Gu(this.logger,"error",s,a,f),c={success:!1,errorMessage:f,errorData:p!==void 0?za(p):void 0,logLines:t.logLines},d=()=>l.onResult(c)}return t.type==="ActionResponse"||!t.success?(d(),this.inflightRequests.delete(t.requestId),this.requestsOlderThanRestart.delete(t.requestId),n.message.type==="Action"?this.inflightActionsCount--:n.message.type==="Mutation"&&this.inflightMutationsCount--,this.markConnectionStateDirty(),{requestId:t.requestId,result:c}):(n.status={status:"Completed",result:c,ts:t.ts,onResolve:d},null)}removeCompleted(t){const n=new Map;for(const[s,a]of this.inflightRequests.entries()){const l=a.status;l.status==="Completed"&&l.ts.lessThanOrEqual(t)&&(l.onResolve(),n.set(s,l.result),a.message.type==="Mutation"?this.inflightMutationsCount--:a.message.type==="Action"&&this.inflightActionsCount--,this.inflightRequests.delete(s),this.requestsOlderThanRestart.delete(s))}return n.size>0&&this.markConnectionStateDirty(),n}restart(){this.requestsOlderThanRestart=new Set(this.inflightRequests.keys());const t=[];for(const[n,s]of this.inflightRequests){if(s.status.status==="NotSent"){s.status.status="Requested",t.push(s.message);continue}if(s.message.type==="Mutation")t.push(s.message);else if(s.message.type==="Action"){if(this.inflightRequests.delete(n),this.requestsOlderThanRestart.delete(n),this.inflightActionsCount--,s.status.status==="Completed")throw new Error("Action should never be in 'Completed' state");s.status.onResult({success:!1,errorMessage:"Connection lost while action was in flight",logLines:[]})}}return this.markConnectionStateDirty(),t}resume(){const t=[];for(const[,n]of this.inflightRequests)if(n.status.status==="NotSent"){n.status.status="Requested",t.push(n.message);continue}return t}hasIncompleteRequests(){for(const t of this.inflightRequests.values())if(t.status.status==="Requested")return!0;return!1}hasInflightRequests(){return this.inflightRequests.size>0}hasSyncedPastLastReconnect(){return this.requestsOlderThanRestart.size===0}timeOfOldestInflightRequest(){if(this.inflightRequests.size===0)return null;let t=Date.now();for(const n of this.inflightRequests.values())n.status.status!=="Completed"&&n.status.requestedAt.getTime()<t&&(t=n.status.requestedAt.getTime());return new Date(t)}inflightMutations(){return this.inflightMutationsCount}inflightActions(){return this.inflightActionsCount}}const yl=Symbol.for("functionName"),U1=Symbol.for("toReferencePath");function zz(e){return e[U1]??null}function Lz(e){return e.startsWith("function://")}function Uz(e){let t;if(typeof e=="string")Lz(e)?t={functionHandle:e}:t={name:e};else if(e[yl])t={name:e[yl]};else{const n=zz(e);if(!n)throw new Error(`${e} is not a functionReference`);t={reference:n}}return t}function Gt(e){const t=Uz(e);if(t.name===void 0)throw t.functionHandle!==void 0?new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received function handle ${t.functionHandle}`):t.reference!==void 0?new Error(`Expected function reference in the current component like "api.file.func" or "internal.file.func", but received reference ${t.reference}`):new Error(`Expected function reference like "api.file.func" or "internal.file.func", but received ${JSON.stringify(t)}`);if(typeof e=="string")return e;const n=e[yl];if(!n)throw new Error(`${e} is not a functionReference`);return n}function bg(e){return{[yl]:e}}
51function I1(e=[]){const t={get(n,s){if(typeof s=="string"){const a=[...e,s];return I1(a)}else if(s===yl){if(e.length<2){const c=["api",...e].join(".");throw new Error(`API path is expected to be of the form \`api.moduleName.functionName\`. Found: \`${c}\``)}const a=e.slice(0,-1).join("/"),l=e[e.length-1];return l==="default"?a:a+":"+l}else return s===Symbol.toStringTag?"FunctionReference":void 0}};return new Proxy({},t)}const Iz=I1();var Bz=Object.defineProperty,Vz=(e,t,n)=>t in e?Bz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ku=(e,t,n)=>Vz(e,typeof t!="symbol"?t+"":t,n);class vl{constructor(t){Ku(this,"queryResults"),Ku(this,"modifiedQueries"),this.queryResults=t,this.modifiedQueries=[]}getQuery(t,...n){const s=Gr(n[0]),a=Gt(t),l=this.queryResults.get(wi(a,s));if(l!==void 0)return vl.queryValue(l.result)}getAllQueries(t){const n=[],s=Gt(t);for(const a of this.queryResults.values())a.udfPath===Ai(s)&&n.push({args:a.args,value:vl.queryValue(a.result)});return n}setQuery(t,n,s){const a=Gr(n),l=Gt(t),c=wi(l,a);let d;s===void 0?d=void 0:d={success:!0,value:s,logLines:[]};const f={udfPath:l,args:a,result:d};this.queryResults.set(c,f),this.modifiedQueries.push(c)}static queryValue(t){if(t!==void 0)return t.success?t.value:void 0}}class $z{constructor(){Ku(this,"queryResults"),Ku(this,"optimisticUpdates"),this.queryResults=new Map,this.optimisticUpdates=[]}ingestQueryResultsFromServer(t,n){this.optimisticUpdates=this.optimisticUpdates.filter(c=>!n.has(c.mutationId));const s=this.queryResults;this.queryResults=new Map(t);const a=new vl(this.queryResults);for(const c of this.optimisticUpdates)c.update(a);const l=[];for(const[c,d]of this.queryResults){const f=s.get(c);(f===void 0||f.result!==d.result)&&l.push(c)}return l}applyOptimisticUpdate(t,n){this.optimisticUpdates.push({update:t,mutationId:n});const s=new vl(this.queryResults);return t(s),s.modifiedQueries}rawQueryResult(t){const n=this.queryResults.get(t);if(n!==void 0)return n.result}queryResult(t){const n=this.queryResults.get(t);if(n===void 0)return;const s=n.result;if(s!==void 0){if(s.success)return s.value;throw s.errorData!==void 0?um(s,new qu(Ca("query",n.udfPath,s))):new Error(Ca("query",n.udfPath,s))}}hasQueryResult(t){return this.queryResults.get(t)!==void 0}queryLogs(t){return this.queryResults.get(t)?.result?.logLines}}var qz=Object.defineProperty,Hz=(e,t,n)=>t in e?qz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gp=(e,t,n)=>Hz(e,typeof t!="symbol"?t+"":t,n);class un{constructor(t,n){gp(this,"low"),gp(this,"high"),gp(this,"__isUnsignedLong__"),this.low=t|0,this.high=n|0,this.__isUnsignedLong__=!0}static isLong(t){return(t&&t.__isUnsignedLong__)===!0}static fromBytesLE(t){return new un(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24)}toBytesLE(){const t=this.high,n=this.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}static fromNumber(t){return isNaN(t)||t<0?ox:t>=Fz?Qz:new un(t%al|0,t/al|0)}
51toString(){return(BigInt(this.high)*BigInt(al)+BigInt(this.low)).toString()}equals(t){return un.isLong(t)||(t=un.fromValue(t)),this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low}notEquals(t){return!this.equals(t)}comp(t){return un.isLong(t)||(t=un.fromValue(t)),this.equals(t)?0:t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1}lessThanOrEqual(t){return this.comp(t)<=0}static fromValue(t){return typeof t=="number"?un.fromNumber(t):new un(t.low,t.high)}}const ox=new un(0,0),lx=65536,al=lx*lx,Fz=al*al,Qz=new un(-1,-1);var Zz=Object.defineProperty,Gz=(e,t,n)=>t in e?Zz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,au=(e,t,n)=>Gz(e,typeof t!="symbol"?t+"":t,n);class cx{constructor(t,n){au(this,"version"),au(this,"remoteQuerySet"),au(this,"queryPath"),au(this,"logger"),this.version={querySet:0,ts:un.fromNumber(0),identity:0},this.remoteQuerySet=new Map,this.queryPath=t,this.logger=n}transition(t){const n=t.startVersion;if(this.version.querySet!==n.querySet||this.version.ts.notEquals(n.ts)||this.version.identity!==n.identity)throw new Error(`Invalid start version: ${n.ts.toString()}:${n.querySet}:${n.identity}, transitioning from ${this.version.ts.toString()}:${this.version.querySet}:${this.version.identity}`);for(const s of t.modifications)switch(s.type){case"QueryUpdated":{const a=this.queryPath(s.queryId);if(a)for(const c of s.logLines)Gu(this.logger,"info","query",a,c);const l=za(s.value??null);this.remoteQuerySet.set(s.queryId,{success:!0,value:l,logLines:s.logLines});break}case"QueryFailed":{const a=this.queryPath(s.queryId);if(a)for(const c of s.logLines)Gu(this.logger,"info","query",a,c);const{errorData:l}=s;this.remoteQuerySet.set(s.queryId,{success:!1,errorMessage:s.errorMessage,errorData:l!==void 0?za(l):void 0,logLines:s.logLines});break}case"QueryRemoved":{this.remoteQuerySet.delete(s.queryId);break}default:throw new Error(`Invalid modification ${s.type}`)}this.version=t.endVersion}remoteQueryResults(){return this.remoteQuerySet}timestamp(){return this.version.ts}}function yp(e){const t=hl(e);return un.fromBytesLE(Array.from(t))}function Kz(e){const t=new Uint8Array(e.toBytesLE());return pl(t)}function ux(e){switch(e.type){case"FatalError":case"AuthError":case"ActionResponse":case"TransitionChunk":case"Ping":return{...e};case"MutationResponse":return e.success?{...e,ts:yp(e.ts)}:{...e};case"Transition":return{...e,startVersion:{...e.startVersion,ts:yp(e.startVersion.ts)},endVersion:{...e.endVersion,ts:yp(e.endVersion.ts)}}}}function Yz(e){switch(e.type){case"Authenticate":case"ModifyQuerySet":case"Mutation":case"Action":case"Event":return{...e};case"Connect":return e.maxObservedTimestamp!==void 0?{...e,maxObservedTimestamp:Kz(e.maxObservedTimestamp)}:{...e,maxObservedTimestamp:void 0}}}var Xz=Object.defineProperty,Wz=(e,t,n)=>t in e?Xz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ut=(e,t,n)=>Wz(e,typeof t!="symbol"?t+"":t,n);const Jz=1e3,e4=1001,t4=1005,n4=4040;let Au;function Ea(){return Au===void 0&&(Au=Date.now()),typeof performance>"u"||!performance.now?Date.now():Math.round(Au+performance.now())}function dx(){return`t=${Math.round((Ea()-Au)/100)/10}s`}const B1={InternalServerError:{timeout:1e3},SubscriptionsWorkerFullError:{timeout:3e3},TooManyConcurrentRequests:{timeout:3e3},CommitterFullError:{timeout:3e3},AwsTooManyRequestsException:{timeout:3e3},ExecuteFullError:{timeout:3e3},SystemTimeoutError:{timeout:3e3},ExpiredInQueue:{timeout:3e3},VectorIndexesUnavailable:{timeout:1e3},SearchIndexesUnavailable:{timeout:1e3},TableSummariesUnavailable:{timeout:1e3},VectorIndexTooLarge:{timeout:3e3},SearchIndexTooLarge:{timeout:3e3},TooManyWritesInTimePeriod:{timeout:3e3}};function r4(e){if(e===void 0)return"Unknown";for(const t of Object.keys(B1))if(e.startsWith(t))return t;return"Unknown"}class s4{constructor(t,n,s,a,l,c){this.markConnectionStateDirty=l,this.debug=c,ut(this,"socket"),ut(this,"connectionCount"),ut(this,"_hasEverConnected",!1),ut(this,"lastCloseReason"),ut(this,"transitionChunkBuffer",null),ut(this,"defaultInitialBackoff"),ut(this,"maxBackoff"),ut(this,"retries"),ut(this,"serverInactivityThreshold"),ut(this,"reconnectDueToServerInactivityTimeout"),ut(this,"scheduledReconnect",null),ut(this,"networkOnlineHandler",null),ut(this,"pendingNetworkRecoveryInfo",null),ut(this,"uri"),ut(this,"onOpen"),ut(this,"onResume"),ut(this,"onMessage"),ut(this,"webSocketConstructor"),ut(this,"logger"),ut(this,"onServerDisconnectError"),this.webSocketConstructor=s,this.socket={state:"disconnected"},this.connectionCount=0,this.lastCloseReason="InitialConnect",this.defaultInitialBackoff=1e3,this.maxBackoff=16e3,this.retries=0,this.serverInactivityThreshold=6e4,this.reconnectDueToServerInactivityTimeout=null,this.uri=t,this.onOpen=n.onOpen,this.onResume=n.onResume,this.onMessage=n.onMessage,this.onServerDisconnectError=n.onServerDisconnectError,this.logger=a,this.setupNetworkListener(),this.connect()}setSocketState(t){this.socket=t,this._logVerbose(`socket state changed: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}`),this.markConnectionStateDirty()}setupNetworkListener(){typeof window>"u"||typeof window.addEventListener!="function"||this.networkOnlineHandler===null&&(this.networkOnlineHandler=()=>{this._logVerbose("network online event detected"),this.tryReconnectImmediately()},window.addEventListener("online",this.networkOnlineHandler),this._logVerbose("network online event listener registered"))}cleanupNetworkListener(){this.networkOnlineHandler&&typeof window<"u"&&typeof window.removeEventListener=="function"&&(window.removeEventListener("online",this.networkOnlineHandler),this.networkOnlineHandler=null,this._logVerbose("network online event listener removed"))}assembleTransition(t){if(t.partNumber<0||t.partNumber>=t.totalParts||t.totalParts===0||this.transitionChunkBuffer&&(this.transitionChunkBuffer.totalParts!==t.totalParts||this.transitionChunkBuffer.transitionId!==t.transitionId))throw this.transitionChunkBuffer=null,new Error("Invalid TransitionChunk");if(this.transitionChunkBuffer===null&&(this.transitionChunkBuffer={chunks:[],totalParts:t.totalParts,transitionId:t.transitionId}),t.partNumber!==this.transitionChunkBuffer.chunks.length){const n=this.transitionChunkBuffer.chunks.length;throw this.transitionChunkBuffer=null,new Error(`TransitionChunk re
51ceived out of order: expected part ${n}, got ${t.partNumber}`)}if(this.transitionChunkBuffer.chunks.push(t.chunk),this.transitionChunkBuffer.chunks.length===t.totalParts){const n=this.transitionChunkBuffer.chunks.join("");this.transitionChunkBuffer=null;const s=ux(JSON.parse(n));if(s.type!=="Transition")throw new Error(`Expected Transition, got ${s.type} after assembling chunks`);return s}return null}connect(){if(this.socket.state==="terminated")return;if(this.socket.state!=="disconnected"&&this.socket.state!=="stopped")throw new Error("Didn't start connection from disconnected state: "+this.socket.state);const t=new this.webSocketConstructor(this.uri);this._logVerbose("constructed WebSocket"),this.setSocketState({state:"connecting",ws:t,paused:"no"}),this.resetServerInactivityTimeout(),t.onopen=()=>{if(this.logger.logVerbose("begin ws.onopen"),this.socket.state!=="connecting")throw new Error("onopen called with socket not in connecting state");if(this.setSocketState({state:"ready",ws:t,paused:this.socket.paused==="yes"?"uninitialized":"no"}),this.resetServerInactivityTimeout(),this.socket.paused==="no"&&(this._hasEverConnected=!0,this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason,clientTs:Ea()})),this.lastCloseReason!=="InitialConnect"&&(this.lastCloseReason?this.logger.log("WebSocket reconnected at",dx(),"after disconnect due to",this.lastCloseReason):this.logger.log("WebSocket reconnected at",dx())),this.connectionCount+=1,this.lastCloseReason=null,this.pendingNetworkRecoveryInfo!==null){const{timeSavedMs:n}=this.pendingNetworkRecoveryInfo;this.pendingNetworkRecoveryInfo=null,this.sendMessage({type:"Event",eventType:"NetworkRecoveryReconnect",event:{timeSavedMs:n}}),this.logger.log(`Network recovery reconnect saved ~${Math.round(n/1e3)}s of waiting`)}},t.onerror=n=>{this.transitionChunkBuffer=null;const s=n.message;s&&this.logger.log(`WebSocket error message: ${s}`)},t.onmessage=n=>{this.resetServerInactivityTimeout();const s=n.data.length;let a=ux(JSON.parse(n.data));if(this._logVerbose(`received ws message with type ${a.type}`),a.type==="Ping")return;if(a.type==="TransitionChunk"){const c=this.assembleTransition(a);if(!c)return;a=c,this._logVerbose(`assembled full ws message of type ${a.type}`)}this.transitionChunkBuffer!==null&&(this.transitionChunkBuffer=null,this.logger.log(`Received unexpected ${a.type} while buffering TransitionChunks`)),a.type==="Transition"&&this.reportLargeTransition({messageLength:s,transition:a}),this.onMessage(a).hasSyncedPastLastReconnect&&(this.retries=0,this.markConnectionStateDirty())},t.onclose=n=>{if(this._logVerbose("begin ws.onclose"),this.transitionChunkBuffer=null,this.lastCloseReason===null&&(this.lastCloseReason=n.reason||`closed with code ${n.code}`),n.code!==Jz&&n.code!==e4&&n.code!==t4&&n.code!==n4){let a=`WebSocket closed with code ${n.code}`;n.reason&&(a+=`: ${n.reason}`),this.logger.log(a),this.onServerDisconnectError&&n.reason&&this.onServerDisconnectError(a)}const s=r4(n.reason);this.scheduleReconnect(s)}}socketState(){return this.socket.state}sendMessage(t){const n={type:t.type,...t.type==="Authenticate"&&t.tokenType==="User"?{value:`...${t.value.slice(-7)}`}:{}};if(this.socket.state==="ready"&&this.socket.paused==="no"){const s=Yz(t),a=JSON.stringify(s);let l=!1;try{this.socket.ws.send(a),l=!0}catch(c){this.logger.log(`Failed to send message on WebSocket, reconnecting: ${c}`),this.closeAndReconnect("FailedToSendMessage")}return this._logVerbose(`${l?"sent":"failed to send"} message with type ${t.type}: ${JSON.stringify(n)}`),!0}return this._logVerbose(`message not sent (socket state: ${this.socket.state}, paused: ${"paused"in this.socket?this.socket.paused:void 0}): ${JSON.stringify(n)}`),!1}resetServerInactivityTimeout(){this.socket.state!=="terminated"&&(this.reconnectDueToServerInactivityTimeout!==null&&(clearTimeout(this.reconnectDueToServerInactivityTimeout),this.reconnectDueToServerInactivityTimeout=null),this.reconnectDueToServerInactivityTimeout=setTimeout(()=>{this.closeAndReconnect("InactiveServer")},this.serverInactivityThreshold))}scheduleReconnect(t){this.scheduledReconnect&&(clearTimeout(this.scheduledReconnect.timeout),this.scheduledReconnect=null),this.socket={state:"disconnected"};const n=this.nextBackoff(t);this.markConnectionStateDirty(),this.logger.log(`Attempting reconnect in ${Math.round(n)}ms`);const s=Ea(),a=setTimeout(()=>{this.scheduledReconnect?.timeout===a&&(this.scheduledReconnect=null,this.connect())},n);this.scheduledReconnect={timeout:a,scheduledAt:s,backoffMs:n}}closeAndReconnect(t){switch(this._logVerbose(`begin closeAndReconnect with reason ${t}`),this.socket.state){case"disconnected":case"terminated":case"stopped":return;case"connecting":case"ready":{this.lastCloseReason=t,this.close(),this.scheduleReconnect("client");return}default:this.socket}}close(){switch(this.transitionChunkBuffer=null,this.socket.state){case"disconnected":case"terminated":case"stopped":return Promise.resolve();case"connecting":{const t=this.socket.ws;return t.onmessage=n=>{this._logVerbose("Ignoring message received after close")},new Promise(n=>{t.onclose=()=>{this._logVerbose("Closed after connecting"),n()},t.onopen=()=>{this._logVerbose("Opened after connecting"),t.close()}})}case"ready":{this._logVerbose("ws.close called");const t=this.socket.ws;t.onmessage=s=>{this._logVerbose("Ignoring message received after close")};const n=new Promise(s=>{t.onclose=()=>{s()}});return t.close(),n}default:return this.socket,Promise.resolve()}}terminate(){switch(this.reconnectDueToServerInactivityTimeout&&clearTimeout(this.reconnectDueToServerInactivityTimeout),this.scheduledReconnect&&(clearTimeout(this.scheduledReconnect.timeout),this.scheduledReconnect=null),this.cleanupNetworkListener(),this.socket.state){case"terminated":case"stopped":case"disconnected":case"connecting":case"ready":{const t=this.close();return this.setSocketState({state:"terminated"}),t}default:throw this.socket,new Error(`Invalid websocket state: ${this.socket.state}`)}}stop(){switch(this.socket.state){case"terminated":return Promise.resolve();case"connecting":case"stopped":case"disconnected":case"ready":{this.cleanupNetworkListener();const t=this.close();return this.socket={state:"stopped"},t}default:return this.socket,Promise.resolve()}}tryRestart(){switch(this.socket.state){case"stopped":break;case"terminated":case"connecting":case"ready":case"disconnected":this.logger.logVerbose("Restart called without stopping first");return;default:this.socket}this.setupNetworkListener(),this.connect()}pause(){switch(this.socket.state){case"disconnected":case"stopped":case"terminated":return;case"connecting":case"ready":{this.socket={...this.socket,paused:"yes"};return}default:{this.socket;return}}}tryReconnectImmediately(){if(this._logVerbose("tryReconnectImmediately called"),this.socket.state!=="disconnected"){this._logVerbose(`tryReconnectImmediately called but socket state is ${this.socket.state}, no action taken`);return}let t=null;if(this.scheduledReconnect){const n=Ea()-this.scheduledReconnect.scheduledAt;t=Math.max(0,this.scheduledReconnect.backoffMs-n),this._logVerbose(`would have waited ${Math.round(t)}ms more (backoff was ${Math.round(this.scheduledReconnect.backoffMs)}ms, elapsed ${Math.round(n)}ms)`),clearTimeout(this.scheduledReconnect.timeout),this.scheduledReconnect=null,this._logVerbose("canceled scheduled reconnect")}this.logger.log("Network recovery detected, reconnecting immediately"),this.pendingNetworkRecoveryInfo=t!==null?{timeSavedMs:t}:null,this.connect()}resume(){switch(this.socket.state){case"connecting":this.socket={...this.socket,paused:"no"};return;case"ready":this.socket.paused==="uninitialized"?(this.socket={...this.socket,paused:"no"},this.onOpen({connectionCount:this.connectionCount,lastCloseReason:this.lastCloseReason,clientTs:Ea()})):this.socket.paused==="yes"&&(this.socket={...this.socket,paused:"no"},this.onResume());return;case"terminated":case"stopped":case"disconnected":return;default:this.socket}this.connect()}connectionState(){return{isConnected:this.socket.state==="ready",hasEverConnected:this._hasEverConnected,connectionCount:this.connectionCount,connectionRetries:this.retries}}_logVerbose(t){this.logger.logVerbose(t)}nextBackoff(t){const s=(t==="client"?100:t==="Unknown"?this.defaultInitialBackoff:B1[t].timeout)*Math.pow(2,this.retries);this.retries+=1;const a=Math.min(s,this.maxBackoff),l=a*(Math.random()-.5);return a+l}reportLargeTransition({transition:t,messageLength:n}){if(t.clientClockSkew===void 0||t.serverTs===void 0)return;const s=Ea()-t.clientClockSkew-t.serverTs/1e6,a=`${Math.round(s)}ms`,l=`${Math.round(n/1e4)/100}MB`,c=n/(s/1e3),d=`${Math.round(c/1e4)/100}MB per second`;this._logVerbose(`received ${l} transition in ${a} at ${d}`),n>2e7?this.logger.log(`received query results totaling more that 20MB (${l}
51) which will take a long time to download on slower connections`):s>2e4&&this.logger.log(`received query results totaling ${l} which took more than 20s to arrive (${a})`),this.debug&&this.sendMessage({type:"Event",eventType:"ClientReceivedTransition",event:{transitionTransitTime:s,messageLength:n}})}}function i4(){return a4()}function a4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}class nl extends Error{}nl.prototype.name="InvalidTokenError";function o4(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function l4(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return o4(t)}catch{return atob(t)}}function V1(e,t){if(typeof e!="string")throw new nl("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,s=e.split(".")[n];if(typeof s!="string")throw new nl(`Invalid token specified: missing part #${n+1}`);let a;try{a=l4(s)}catch(l){throw new nl(`Invalid token specified: invalid base64 for part #${n+1} (${l.message})`)}try{return JSON.parse(a)}catch(l){throw new nl(`Invalid token specified: invalid json for part #${n+1} (${l.message})`)}}var c4=Object.defineProperty,u4=(e,t,n)=>t in e?c4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t,n)=>u4(e,typeof t!="symbol"?t+"":t,n);const d4=480*60*60*1e3,fx=2;class f4{constructor(t,n,s){jn(this,"authState",{state:"noAuth"}),jn(this,"configVersion",0),jn(this,"syncState"),jn(this,"authenticate"),jn(this,"stopSocket"),jn(this,"tryRestartSocket"),jn(this,"pauseSocket"),jn(this,"resumeSocket"),jn(this,"clearAuth"),jn(this,"logger"),jn(this,"refreshTokenLeewaySeconds"),jn(this,"tokenConfirmationAttempts",0),this.syncState=t,this.authenticate=n.authenticate,this.stopSocket=n.stopSocket,this.tryRestartSocket=n.tryRestartSocket,this.pauseSocket=n.pauseSocket,this.resumeSocket=n.resumeSocket,this.clearAuth=n.clearAuth,this.logger=s.logger,this.refreshTokenLeewaySeconds=s.refreshTokenLeewaySeconds}async setConfig(t,n){this.resetAuthState(),this._logVerbose("pausing WS for auth token fetch"),this.pauseSocket();const s=await this.fetchTokenAndGuardAgainstRace(t,{forceRefreshToken:!1});s.isFromOutdatedConfig||(s.value?(this.setAuthState({state:"waitingForServerConfirmationOfCachedToken",config:{fetchToken:t,onAuthChange:n},hasRetried:!1}),this.authenticate(s.value)):(this.setAuthState({state:"initialRefetch",config:{fetchToken:t,onAuthChange:n}}),await this.refetchToken()),this._logVerbose("resuming WS after auth token fetch"),this.resumeSocket())}onTransition(t){if(this.syncState.isCurrentOrNewerAuthVersion(t.endVersion.identity)&&!(t.endVersion.identity<=t.startVersion.identity)){if(this.authState.state==="waitingForServerConfirmationOfCachedToken"){this._logVerbose("server confirmed auth token is valid"),this.refetchToken(),this.authState.config.onAuthChange(!0);return}this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this._logVerbose("server confirmed new auth token is valid"),this.scheduleTokenRefetch(this.authState.token),this.tokenConfirmationAttempts=0,this.authState.hadAuth||this.authState.config.onAuthChange(!0))}}onAuthError(t){if(t.authUpdateAttempted===!1&&(this.authState.state==="waitingForServerConfirmationOfFreshToken"||this.authState.state==="waitingForServerConfirmationOfCachedToken")){this._logVerbose("ignoring non-auth token expired error");return}const{baseVersion:n}=t;if(!this.syncState.isCurrentOrNewerAuthVersion(n+1)){this._logVerbose("ignoring auth error for previous auth attempt");return}this.tryToReauthenticate(t)}async tryToReauthenticate(t){if(this._logVerbose(`attempting to reauthenticate: ${t.error}`),this.authState.state==="noAuth"||this.authState.state==="waitingForServerConfirmationOfFreshToken"&&this.tokenConfirmationAttempts>=fx){this.logger.error(`Failed to authenticate: "${t.error}", check your server auth config`),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.authState.state!=="noAuth"&&this.setAndReportAuthFailed(this.authState.config.onAuthChange);return}this.authState.state==="waitingForServerConfirmationOfFreshToken"&&(this.tokenConfirmationAttempts++,this._logVerbose(`retrying reauthentication, ${fx-this.tokenConfirmationAttempts} attempts remaining`)),await this.stopSocket();const n=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});n.isFromOutdatedConfig||(n.value&&this.syncState.isNewAuth(n.value)?(this.authenticate(n.value),this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",config:this.authState.config,token:n.value,hadAuth:this.authState.state==="notRefetching"||this.authState.state==="waitingForScheduledRefetch"})):(this._logVerbose("reauthentication failed, could not fetch a new token"),this.syncState.hasAuth()&&this.syncState.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this.tryRestartSocket())}async refetchToken(){if(this.authState.state==="noAuth")return;this._logVerbose("refetching auth token");const t=await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken,{forceRefreshToken:!0});t.isFromOutdatedConfig||(t.value?this.syncState.isNewAuth(t.value)?(this.setAuthState({state:"waitingForServerConfirmationOfFreshToken",hadAuth:this.syncState.hasAuth(),token:t.value,config:this.authState.config}),this.authenticate(t.value)):this.setAuthState({state:"notRefetching",config:this.authState.config}):(this._logVerbose("refetching token failed"),this.syncState.hasAuth()&&this.clearAuth(),this.setAndReportAuthFailed(this.authState.config.onAuthChange)),this._logVerbose("restarting WS after auth token fetch (if currently stopped)"),this.tryRestartSocket())}scheduleTokenRefetch(t){if(this.authState.state==="noAuth")return;const n=this.decodeToken(t);if(!n){this.logger.error("Auth token is not a valid JWT, cannot refetch the token");return}const{iat:s,exp:a}=n;if(!s||!a){this.logger.error("Auth token does not have required fields, cannot refetch the token");return}const l=a-s;if(l<=2){this.logger.error("Auth token does not live long enough, cannot refetch the token");return}let c=Math.min(d4,(l-this.refreshTokenLeewaySeconds)*1e3);c<=0&&(this.logger.warn(`Refetching auth token immediately, configured leeway ${this.refreshTokenLeewaySeconds}s is larger than the token's lifetime ${l}s`),c=0);const d=setTimeout(()=>{this._logVerbose("running scheduled token refetch"),this.refetchToken()}
51,c);this.setAuthState({state:"waitingForScheduledRefetch",refetchTokenTimeoutId:d,config:this.authState.config}),this._logVerbose(`scheduled preemptive auth token refetching in ${c}ms`)}async fetchTokenAndGuardAgainstRace(t,n){const s=++this.configVersion;this._logVerbose(`fetching token with config version ${s}`);const a=await t(n);return this.configVersion!==s?(this._logVerbose(`stale config version, expected ${s}, got ${this.configVersion}`),{isFromOutdatedConfig:!0}):{isFromOutdatedConfig:!1,value:a}}stop(){this.resetAuthState(),this.configVersion++,this._logVerbose(`config version bumped to ${this.configVersion}`)}setAndReportAuthFailed(t){t(!1),this.resetAuthState()}resetAuthState(){this.setAuthState({state:"noAuth"})}setAuthState(t){const n=t.state==="waitingForServerConfirmationOfFreshToken"?{hadAuth:t.hadAuth,state:t.state,token:`...${t.token.slice(-7)}`}:{state:t.state};switch(this._logVerbose(`setting auth state to ${JSON.stringify(n)}`),t.state){case"waitingForScheduledRefetch":case"notRefetching":case"noAuth":this.tokenConfirmationAttempts=0;break}this.authState.state==="waitingForScheduledRefetch"&&(clearTimeout(this.authState.refetchTokenTimeoutId),this.syncState.markAuthCompletion()),this.authState=t}decodeToken(t){try{return V1(t)}catch(n){return this._logVerbose(`Error decoding token: ${n instanceof Error?n.message:"Unknown error"}`),null}}_logVerbose(t){this.logger.logVerbose(`${t} [v${this.configVersion}]`)}}const h4=["convexClientConstructed","convexWebSocketOpen","convexFirstMessageReceived"];function p4(e,t){const n={sessionId:t};typeof performance>"u"||!performance.mark||performance.mark(e,{detail:n})}function m4(e){let t=e.name.slice(6);return t=t.charAt(0).toLowerCase()+t.slice(1),{name:t,startTime:e.startTime}}function g4(e){if(typeof performance>"u"||!performance.getEntriesByName)return[];const t=[];for(const n of h4){const s=performance.getEntriesByName(n).filter(a=>a.entryType==="mark").filter(a=>a.detail.sessionId===e);t.push(...s)}return t.map(m4)}var y4=Object.defineProperty,v4=(e,t,n)=>t in e?y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dt=(e,t,n)=>v4(e,typeof t!="symbol"?t+"":t,n);class b4{constructor(t,n,s){if(dt(this,"address"),dt(this,"state"),dt(this,"requestManager"),dt(this,"webSocketManager"),dt(this,"authenticationManager"),dt(this,"remoteQuerySet"),dt(this,"optimisticQueryResults"),dt(this,"_transitionHandlerCounter",0),dt(this,"_nextRequestId"),dt(this,"_onTransitionFns",new Map),dt(this,"_sessionId"),dt(this,"firstMessageReceived",!1),dt(this,"debug"),dt(this,"logger"),dt(this,"maxObservedTimestamp"),dt(this,"connectionStateSubscribers",new Map),dt(this,"nextConnectionStateSubscriberId",0),dt(this,"_lastPublishedConnectionState"),dt(this,"markConnectionStateDirty",()=>{Promise.resolve().then(()=>{const x=this.connectionState();if(JSON.stringify(x)!==JSON.stringify(this._lastPublishedConnectionState)){this._lastPublishedConnectionState=x;for(const _ of this.connectionStateSubscribers.values())_(x)}})}),dt(this,"mark",x=>{this.debug&&p4(x,this.sessionId)}),typeof t=="object")throw new Error("Passing a ClientConfig object is no longer supported. Pass the URL of the Convex deployment as a string directly.");s?.skipConvexDeploymentUrlCheck!==!0&&V2(t),s={...s};const a=s.authRefreshTokenLeewaySeconds??10;let l=s.webSocketConstructor;if(!l&&typeof WebSocket>"u")throw new Error("No WebSocket global variable defined! To use Convex in an environment without WebSocket try the HTTP client: https://docs.convex.dev/api/classes/browser.ConvexHttpClient");l=l||WebSocket,this.debug=s.reportDebugInfoToConvex??!1,this.address=t,this.logger=s.logger===!1?L1({verbose:s.verbose??!1}):s.logger!==!0&&s.logger?s.logger:z1({verbose:s.verbose??!1});const c=t.search("://");if(c===-1)throw new Error("Provided address was not an absolute URL.");const d=t.substring(c+3),f=t.substring(0,c);let p;if(f==="http")p="ws";else if(f==="https")p="wss";else throw new Error(`Unknown parent protocol ${f}`);const y=`${p}://${d}/api/${sx}/sync`;this.state=new Dz,this.remoteQuerySet=new cx(x=>this.state.queryPath(x),this.logger),this.requestManager=new jz(this.logger,this.markConnectionStateDirty);const m=()=>{this.webSocketManager.pause(),this.state.pause()};this.authenticationManager=new f4(this.state,{authenticate:x=>{const _=this.state.setAuth(x);return this.webSocketManager.sendMessage(_),_.baseVersion},stopSocket:()=>this.webSocketManager.stop(),tryRestartSocket:()=>this.webSocketManager.tryRestart(),pauseSocket:m,resumeSocket:()=>this.webSocketManager.resume(),clearAuth:()=>{this.clearAuth()}},{logger:this.logger,refreshTokenLeewaySeconds:a}),this.optimisticQueryResults=new $z,this.addOnTransitionHandler(x=>{n(x.queries.map(_=>_.token))}),this._nextRequestId=0,this._sessionId=i4();const{unsavedChangesWarning:v}=s;if(typeof window>"u"||typeof window.addEventListener>"u"){if(v===!0)throw new Error("unsavedChangesWarning requested, but window.addEventListener not found! Remove {unsavedChangesWarning: true} from Convex client options.")}else v!==!1&&window.addEventListener("beforeunload",x=>{if(this.requestManager.hasIncompleteRequests()){x.preventDefault();const _="Are you sure you want to leave? Your changes may not be saved.";return(x||window.event).returnValue=_,_}});this.webSocketManager=new s4(y,{onOpen:x=>{this.mark("convexWebSocketOpen"),this.webSocketManager.sendMessage({...x,type:"C
51onnect",sessionId:this._sessionId,maxObservedTimestamp:this.maxObservedTimestamp});const _=new Set(this.remoteQuerySet.remoteQueryResults().keys());this.remoteQuerySet=new cx(C=>this.state.queryPath(C),this.logger);const[E,T]=this.state.restart(_);T&&this.webSocketManager.sendMessage(T),this.webSocketManager.sendMessage(E);for(const C of this.requestManager.restart())this.webSocketManager.sendMessage(C)},onResume:()=>{const[x,_]=this.state.resume();_&&this.webSocketManager.sendMessage(_),x&&this.webSocketManager.sendMessage(x);for(const E of this.requestManager.resume())this.webSocketManager.sendMessage(E)},onMessage:x=>{switch(this.firstMessageReceived||(this.firstMessageReceived=!0,this.mark("convexFirstMessageReceived"),this.reportMarks()),x.type){case"Transition":{this.observedTimestamp(x.endVersion.ts),this.authenticationManager.onTransition(x),this.remoteQuerySet.transition(x),this.state.transition(x);const _=this.requestManager.removeCompleted(this.remoteQuerySet.timestamp());this.notifyOnQueryResultChanges(_);break}case"MutationResponse":{x.success&&this.observedTimestamp(x.ts);const _=this.requestManager.onResponse(x);_!==null&&this.notifyOnQueryResultChanges(new Map([[_.requestId,_.result]]));break}case"ActionResponse":{this.requestManager.onResponse(x);break}case"AuthError":{this.authenticationManager.onAuthError(x);break}case"FatalError":{const _=kz(this.logger,x.error);throw this.webSocketManager.terminate(),_}}return{hasSyncedPastLastReconnect:this.hasSyncedPastLastReconnect()}},onServerDisconnectError:s.onServerDisconnectError},l,this.logger,this.markConnectionStateDirty,this.debug),this.mark("convexClientConstructed"),s.expectAuth&&m()}hasSyncedPastLastReconnect(){return this.requestManager.hasSyncedPastLastReconnect()||this.state.hasSyncedPastLastReconnect()}observedTimestamp(t){(this.maxObservedTimestamp===void 0||this.maxObservedTimestamp.lessThanOrEqual(t))&&(this.maxObservedTimestamp=t)}getMaxObservedTimestamp(){return this.maxObservedTimestamp}notifyOnQueryResultChanges(t){const n=this.remoteQuerySet.remoteQueryResults(),s=new Map;for(const[l,c]of n){const d=this.state.queryToken(l);if(d!==null){const f={result:c,udfPath:this.state.queryPath(l),args:this.state.queryArgs(l)};s.set(d,f)}}const a=this.optimisticQueryResults.ingestQueryResultsFromServer(s,new Set(t.keys()));this.handleTransition({queries:a.map(l=>{const c=this.optimisticQueryResults.rawQueryResult(l);return{token:l,modification:{kind:"Updated",result:c}}}),reflectedMutations:Array.from(t).map(([l,c])=>({requestId:l,result:c})),timestamp:this.remoteQuerySet.timestamp()})}handleTransition(t){for(const n of this._onTransitionFns.values())n(t)}addOnTransitionHandler(t){const n=this._transitionHandlerCounter++;return this._onTransitionFns.set(n,t),()=>this._onTransitionFns.delete(n)}getCurrentAuthClaims(){const t=this.state.getAuth();let n={};if(t&&t.tokenType==="User")try{n=t?V1(t.value):{}}catch{n={}}else return;return{token:t.value,decoded:n}}setAuth(t,n){this.authenticationManager.setConfig(t,n)}hasAuth(){return this.state.hasAuth()}setAdminAuth(t,n){const s=this.state.setAdminAuth(t,n);this.webSocketManager.sendMessage(s)}clearAuth(){const t=this.state.clearAuth();this.webSocketManager.sendMessage(t)}subscribe(t,n,s){const a=Gr(n),{modification:l,queryToken:c,unsubscribe:d}=this.state.subscribe(t,a,s?.journal,s?.componentPath);return l!==null&&this.webSocketManager.sendMessage(l),{queryToken:c,unsubscribe:()=>{const f=d();f&&this.webSocketManager.sendMessage(f)}}}localQueryResult(t,n){const s=Gr(n),a=wi(t,s);return this.optimisticQueryResults.queryResult(a)}localQueryResultByToken(t){return this.optimisticQueryResults.queryResult(t)}hasLocalQueryResultByToken(t){return this.optimisticQueryResults.hasQueryResult(t)}localQueryLogs(t,n){const s=Gr(n),a=wi(t,s);return this.optimisticQueryResults.queryLogs(a)}queryJournal(t,n){const s=Gr(n),a=wi(t,s);return this.state.queryJournal(a)}connectionState(){const t=this.webSocketManager.connectionState();return{hasInflightRequests:this.requestManager.hasInflightRequests(),isWebSocketConnected:t.isConnected,hasEverConnected:t.hasEverConnected,connectionCount:t.connectionCount,connectionRetries:t.connectionRetries,timeOfOldestInflightRequest:this.requestManager.timeOfOldestInflightRequest(),inflightMutations:this.requestManager.inflightMutations(),inflightActions:this.requestManager.inflightActions()}}subscribeToConnectionState(t){const n=this.nextConnectionStateSubscriberId++;
51return this.connectionStateSubscribers.set(n,t),()=>{this.connectionStateSubscribers.delete(n)}}async mutation(t,n,s){const a=await this.mutationInternal(t,n,s);if(!a.success)throw a.errorData!==void 0?um(a,new qu(Ca("mutation",t,a))):new Error(Ca("mutation",t,a));return a.value}async mutationInternal(t,n,s,a){const{mutationPromise:l}=this.enqueueMutation(t,n,s,a);return l}enqueueMutation(t,n,s,a){const l=Gr(n);this.tryReportLongDisconnect();const c=this.nextRequestId;if(this._nextRequestId++,s!==void 0){const y=s.optimisticUpdate;if(y!==void 0){const m=_=>{y(_,l)instanceof Promise&&this.logger.warn("Optimistic update handler returned a Promise. Optimistic updates should be synchronous.")},x=this.optimisticQueryResults.applyOptimisticUpdate(m,c).map(_=>{const E=this.localQueryResultByToken(_);return{token:_,modification:{kind:"Updated",result:E===void 0?void 0:{success:!0,value:E,logLines:[]}}}});this.handleTransition({queries:x,reflectedMutations:[],timestamp:this.remoteQuerySet.timestamp()})}}const d={type:"Mutation",requestId:c,udfPath:t,componentPath:a,args:[_r(l)]},f=this.webSocketManager.sendMessage(d),p=this.requestManager.request(d,f);return{requestId:c,mutationPromise:p}}async action(t,n){const s=await this.actionInternal(t,n);if(!s.success)throw s.errorData!==void 0?um(s,new qu(Ca("action",t,s))):new Error(Ca("action",t,s));return s.value}async actionInternal(t,n,s){const a=Gr(n),l=this.nextRequestId;this._nextRequestId++,this.tryReportLongDisconnect();const c={type:"Action",requestId:l,udfPath:t,componentPath:s,args:[_r(a)]},d=this.webSocketManager.sendMessage(c);return this.requestManager.request(c,d)}async close(){return this.authenticationManager.stop(),this.webSocketManager.terminate()}get url(){return this.address}get nextRequestId(){return this._nextRequestId}get sessionId(){return this._sessionId}reportMarks(){if(this.debug){const t=g4(this.sessionId);this.webSocketManager.sendMessage({type:"Event",eventType:"ClientConnect",event:t})}}tryReportLongDisconnect(){if(!this.debug)return;const t=this.connectionState().timeOfOldestInflightRequest;if(t===null||Date.now()-t.getTime()<=60*1e3)return;const n=`${this.address}/api/debug_event`;fetch(n,{method:"POST",headers:{"Content-Type":"application/json","Convex-Client":`npm-${sx}`},body:JSON.stringify({event:"LongWebsocketDisconnect"})}).then(s=>{s.ok||this.logger.warn("Analytics request failed with response:",s.body)}).catch(s=>{this.logger.warn("Analytics response failed with error:",s)})}}function vp(e){if(typeof e!="object"||e===null||!Array.isArray(e.page)||typeof e.isDone!="boolean"||typeof e.continueCursor!="string")throw new Error(`Not a valid paginated query result: ${e?.toString()}`);return e}
51var w4=Object.defineProperty,x4=(e,t,n)=>t in e?w4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hx=(e,t,n)=>x4(e,typeof t!="symbol"?t+"":t,n);class S4{constructor(t,n){this.client=t,this.onTransition=n,hx(this,"paginatedQuerySet",new Map),hx(this,"lastTransitionTs"),this.lastTransitionTs=un.fromNumber(0),this.client.addOnTransitionHandler(s=>this.onBaseTransition(s))}subscribe(t,n,s){const a=Ai(t),l=ax(a,n,s),c=()=>this.removePaginatedQuerySubscriber(l),d=this.paginatedQuerySet.get(l);return d?(d.numSubscribers+=1,{paginatedQueryToken:l,unsubscribe:c}):(this.paginatedQuerySet.set(l,{token:l,canonicalizedUdfPath:a,args:n,numSubscribers:1,options:{initialNumItems:s.initialNumItems},nextPageKey:0,pageKeys:[],pageKeyToQuery:new Map,ongoingSplits:new Map,skip:!1,id:s.id}),this.addPageToPaginatedQuery(l,null,s.initialNumItems),{paginatedQueryToken:l,unsubscribe:c})}localQueryResult(t,n,s){const a=Ai(t),l=ax(a,n,s);return this.localQueryResultByToken(l)}localQueryResultByToken(t){const n=this.paginatedQuerySet.get(t);if(!n)return;const s=this.activePageQueryTokens(n);if(s.length===0)return{results:[],status:"LoadingFirstPage",loadMore:f=>this.loadMoreOfPaginatedQuery(t,f)};let a=[],l=!1,c=!1;for(const f of s){const p=this.client.localQueryResultByToken(f);if(p===void 0){l=!0,c=!1;continue}const y=vp(p);a=a.concat(y.page),c=!!y.isDone}let d;return l?d=a.length===0?"LoadingFirstPage":"LoadingMore":c?d="Exhausted":d="CanLoadMore",{results:a,status:d,loadMore:f=>this.loadMoreOfPaginatedQuery(t,f)}}onBaseTransition(t){const n=t.queries.map(c=>c.token),s=this.queriesContainingTokens(n);let a=[];s.length>0&&(this.processPaginatedQuerySplits(s,c=>this.client.localQueryResultByToken(c)),a=s.map(c=>({token:c,modification:{kind:"Updated",result:this.localQueryResultByToken(c)}})));const l={...t,paginatedQueries:a};this.onTransition(l)}loadMoreOfPaginatedQuery(t,n){this.mustGetPaginatedQuery(t);const s=this.queryTokenForLastPageOfPaginatedQuery(t),a=this.client.localQueryResultByToken(s);if(!a)return!1;const l=vp(a);if(l.isDone)return!1;this.addPageToPaginatedQuery(t,l.continueCursor,n);const c={timestamp:this.lastTransitionTs,reflectedMutations:[],queries:[],paginatedQueries:[{token:t,modification:{kind:"Updated",result:this.localQueryResultByToken(t)}}]};return this.onTransition(c),!0}queriesContainingTokens(t){if(t.length===0)return[];const n=[],s=new Set(t);for(const[a,l]of this.paginatedQuerySet)for(const c of this.allQueryTokens(l))if(s.has(c)){n.push(a);break}return n}processPaginatedQuerySplits(t,n){for(const s of t){const a=this.mustGetPaginatedQuery(s),{ongoingSplits:l,pageKeyToQuery:c,pageKeys:d}=a;for(const[f,[p,y]]of l)n(c.get(p).queryToken)!==void 0&&n(c.get(y).queryToken)!==void 0&&this.completePaginatedQuerySplit(a,f,p,y);for(const f of d){if(l.has(f))continue;const p=c.get(f).queryToken,y=n(p);if(!y)continue;const m=vp(y);m.splitCursor&&(m.pageStatus==="SplitRecommended"||m.pageStatus==="SplitRequired"||m.page.length>a.options.initialNumItems*2)&&this.splitPaginatedQueryPage(a,f,m.splitCursor,m.continueCursor)}}}splitPaginatedQueryPage(t,n,s,a){const l=t.nextPageKey++,c=t.nextPageKey++,d={cursor:a,numItems:t.options.initialNumItems,id:t.id},f=this.client.subscribe(t.canonicalizedUdfPath,{...t.args,paginationOpts:{...d,cursor:null,endCursor:s}});t.pageKeyToQuery.set(l,f);const p=this.client.subscribe(t.canonicalizedUdfPath,{...t.args,paginationOpts:{...d,cursor:s,endCursor:a}});t.pageKeyToQuery.set(c,p),t.ongoingSplits.set(n,[l,c])}addPageToPaginatedQuery(t,n,s){const a=this.mustGetPaginatedQuery(t),l=a.nextPageKey++,c={cursor:n,numItems:s,id:a.id},d={...a.args,paginationOpts:c},f=this.client.subscribe(a.canonicalizedUdfPath,d);return a.pageKeys.push(l),a.pageKeyToQuery.set(l,f),f}removePaginatedQuerySubscriber(t){const n=this.paginatedQuerySet.get(t);if(n&&(n.numSubscribers-=1,!(n.numSubscribers>0))){for(const s of n.pageKeyToQuery.values())s.unsubscribe();this.paginatedQuerySet.delete(t)}}completePaginatedQuerySplit(t,n,s,a){const l=t.pageKeyToQuery.get(n);t.pageKeyToQuery.delete(n);const c=t.pageKeys.indexOf(n);t.pageKeys.splice(c,1,s,a),t.ongoingSplits.delete(n),l.unsubscribe()}activePageQueryTokens(t){return t.pageKeys.map(n=>t.pageKeyToQuery.get(n).queryToken)}allQueryTokens(t){return Array.from(t.pageKeyToQuery.values()).map(n=>n.queryToken)}queryTokenForLastPageOfPaginatedQuery(t){const n=this.mustGetPaginatedQuery(t),s=n.pageKeys[n.pageKeys.length-1];if(s===void 0)throw new Error(`No pages for paginated query ${t}`);return n.pageKeyToQuery.get(s).queryToken}mustGetPaginatedQuery(t){const n=this.paginatedQuerySet.get(t);if(!n)throw new Error("paginated query no longer exists for token "+t);return n}}function _4({getCurrentValue:e,subscribe:t}){const[n,s]=b.useState(()=>({getCurrentValue:e,subscribe:t,value:e()}));let a=n.value;return(n.getCurrentValue!==e||n.subscribe!==t)&&(a=e(),s({getCurrentValue:e,subscribe:t,value:a})),b.useEffect(()=>{let l=!1;const c=()=>{l||s(f=>{if(f.getCurrentValue!==e||f.subscribe!==t)return f;const p=e();return f.value===p?f:{...f,value:p}})},d=t(c);return c(),()=>{l=!0,d()}},[e,t]),a}var E4=Object.defineProperty,T4=(e,t,n)=>t in e?E4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}
51):e[t]=n,Qr=(e,t,n)=>T4(e,typeof t!="symbol"?t+"":t,n);const A4=5e3;if(typeof te>"u")throw new Error("Required dependency 'react' not found");function $1(e,t,n){function s(a){return N4(a),t.mutation(e,a,{optimisticUpdate:n})}return s.withOptimisticUpdate=function(l){if(n!==void 0)throw new Error(`Already specified optimistic update for mutation ${Gt(e)}`);return $1(e,t,l)},s}function C4(e,t){return function(n){return t.action(e,n)}}class R4{constructor(t,n){if(Qr(this,"address"),Qr(this,"cachedSync"),Qr(this,"cachedPaginatedQueryClient"),Qr(this,"listeners"),Qr(this,"options"),Qr(this,"closed",!1),Qr(this,"_logger"),Qr(this,"adminAuth"),Qr(this,"fakeUserIdentity"),t===void 0)throw new Error("No address provided to ConvexReactClient.\nIf trying to deploy to production, make sure to follow all the instructions found at https://docs.convex.dev/production/hosting/\nIf running locally, make sure to run `convex dev` and ensure the .env.local file is populated.");if(typeof t!="string")throw new Error(`ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud', received something of type ${typeof t} instead.`);if(!t.includes("://"))throw new Error("Provided address was not an absolute URL.");this.address=t,this.listeners=new Map,this._logger=n?.logger===!1?L1({verbose:n?.verbose??!1}):n?.logger!==!0&&n?.logger?n.logger:z1({verbose:n?.verbose??!1}),this.options={...n,logger:this._logger}}get url(){return this.address}get sync(){if(this.closed)throw new Error("ConvexReactClient has already been closed.");return this.cachedSync?this.cachedSync:(this.cachedSync=new b4(this.address,()=>{},this.options),this.adminAuth&&this.cachedSync.setAdminAuth(this.adminAuth,this.fakeUserIdentity),this.cachedPaginatedQueryClient=new S4(this.cachedSync,t=>this.handleTransition(t)),this.cachedSync)}get paginatedQueryClient(){if(this.sync,this.cachedPaginatedQueryClient)return this.cachedPaginatedQueryClient;throw new Error("Should already be instantiated")}setAuth(t,n){if(typeof t=="string")throw new Error("Passing a string to ConvexReactClient.setAuth is no longer supported, please upgrade to passing in an async function to handle reauthentication.");this.sync.setAuth(t,n??(()=>{}))}clearAuth(){this.sync.clearAuth()}setAdminAuth(t,n){if(this.adminAuth=t,this.fakeUserIdentity=n,this.closed)throw new Error("ConvexReactClient has already been closed.");this.cachedSync&&this.sync.setAdminAuth(t,n)}watchQuery(t,...n){const[s,a]=n,l=Gt(t);return{onUpdate:c=>{const{queryToken:d,unsubscribe:f}=this.sync.subscribe(l,s,a),p=this.listeners.get(d);return p!==void 0?p.add(c):this.listeners.set(d,new Set([c])),()=>{if(this.closed)return;const y=this.listeners.get(d);y.delete(c),y.size===0&&this.listeners.delete(d),f()}},localQueryResult:()=>{if(this.cachedSync)return this.cachedSync.localQueryResult(l,s)},localQueryLogs:()=>{if(this.cachedSync)return this.cachedSync.localQueryLogs(l,s)},journal:()=>{if(this.cachedSync)return this.cachedSync.queryJournal(l,s)}}}prewarmQuery(t){const n=t.extendSubscriptionFor??A4,a=this.watchQuery(t.query,t.args||{}).onUpdate(()=>{});setTimeout(a,n)}watchPaginatedQuery(t,n,s){const a=Gt(t);return{onUpdate:l=>{const{paginatedQueryToken:c,unsubscribe:d}=this.paginatedQueryClient.subscribe(a,n||{},s),f=this.listeners.get(c);return f!==void 0?f.add(l):this.listeners.set(c,new Set([l])),()=>{if(this.closed)return;const p=this.listeners.get(c);p.delete(l),p.size===0&&this.listeners.delete(c),d()}},localQueryResult:()=>this.paginatedQueryClient.localQueryResult(a,n,s)}}mutation(t,...n){const[s,a]=n,l=Gt(t);return this.sync.mutation(l,s,a)}action(t,...n){const s=Gt(t);return this.sync.action(s,...n)}query(t,...n){const s=this.watchQuery(t,...n),a=s.localQueryResult();return a!==void 0?Promise.resolve(a):new Promise((l,c)=>{const d=s.onUpdate(()=>{d();try{l(s.localQueryResult())}catch(f){c(f)}})})}connectionState(){return this.sync.connectionState()}subscribeToConnectionState(t){return this.sync.subscribeToConnectionState(t)}get logger(){return this._logger}async close(){if(this.closed=!0,this.listeners=new Map,this.cachedPaginatedQueryClient&&(this.cachedPaginatedQueryClient=void 0),this.cachedSync){const t=this.cachedSync;this.cachedSync=void 0,await t.close()}}handleTransition(t){const n=t.queries.map(a=>a.token),s=t.paginatedQueries.map(a=>a.token);this.transition([...n,...s])}transition(t){for(const n of t){const s=this.listeners.get(n);if(s)for(const a of s)a()}}}const _d=te.createContext(void 0);function k4(){return b.useContext(_d)}const M4=({client:e,children:t})=>te.createElement(_d.Provider,{value:e},t);function O4(e,...t){const n=t[0]==="skip",s=t[0]==="skip"?{}:Gr(t[0]),a=typeof e=="string"?bg(e):e,l=Gt(a),c=b.useMemo(()=>n?{}:{query:{query:a,args:s}},[JSON.stringify(_r(s)),l,n]),f=L4(c).query;if(f instanceof Error)throw f;return f}function D4(e){const t=typeof e=="string"?bg(e):e,n=b.useContext(_d);if(n===void 0)throw new Error("Could not find Convex client! `useMutation` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app");return b.useMemo(()=>$1(t,n),[n,Gt(t)])}function hF(e){const t=b.useContext(_d),n=typeof e=="string"?bg(e):e;if(t===void 0)throw new Error("Could not find Convex client! `useAction` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app");return b.useMemo(()=>C4(n,t),[t,Gt(n)])}function N4(e){if(typeof e=="object"&&e!==null&&"bubbles"in e&&"persist"in e&&"isDefaultPrevented"in e)throw new Error("Convex function called with SyntheticEvent object. Did you use a Convex function as an event handler directly? Event handlers like onClick receive an event object as their first argument. These SyntheticEvent objects are not valid Convex values. Try wrapping the function like `const handler = () => myMutation();` and using `handler` in the event handler.")}
51var P4=Object.defineProperty,j4=(e,t,n)=>t in e?P4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bp=(e,t,n)=>j4(e,typeof t!="symbol"?t+"":t,n);class z4{constructor(t){bp(this,"createWatch"),bp(this,"queries"),bp(this,"listeners"),this.createWatch=t,this.queries={},this.listeners=new Set}setQueries(t){for(const n of Object.keys(t)){const{query:s,args:a,paginationOptions:l}=t[n];if(Gt(s),this.queries[n]===void 0)this.addQuery(n,s,a,l?{paginationOptions:l}:{});else{const c=this.queries[n];(Gt(s)!==Gt(c.query)||JSON.stringify(_r(a))!==JSON.stringify(_r(c.args))||JSON.stringify(l)!==JSON.stringify(c.paginationOptions))&&(this.removeQuery(n),this.addQuery(n,s,a,l?{paginationOptions:l}:{}))}}for(const n of Object.keys(this.queries))t[n]===void 0&&this.removeQuery(n)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}getLocalResults(t){const n={};for(const s of Object.keys(t)){const{query:a,args:l}=t[s],c=t[s].paginationOptions;Gt(a);const d=this.createWatch(a,l,c?{paginationOptions:c}:{});let f;try{f=d.localQueryResult()}catch(p){if(p instanceof Error)f=p;else throw p}n[s]=f}return n}setCreateWatch(t){this.createWatch=t;for(const n of Object.keys(this.queries)){const{query:s,args:a,watch:l,paginationOptions:c}=this.queries[n],d="journal"in l?l.journal():void 0;this.removeQuery(n),this.addQuery(n,s,a,{...d?{journal:d}:[],...c?{paginationOptions:c}:{}})}}destroy(){for(const t of Object.keys(this.queries))this.removeQuery(t);this.listeners=new Set}addQuery(t,n,s,{paginationOptions:a,journal:l}){if(this.queries[t]!==void 0)throw new Error(`Tried to add a new query with identifier ${t} when it already exists.`);const c=this.createWatch(n,s,{...l?{journal:l}:[],...a?{paginationOptions:a}:{}}),d=c.onUpdate(()=>this.notifyListeners());this.queries[t]={query:n,args:s,watch:c,unsubscribe:d,...a?{paginationOptions:a}:{}}}removeQuery(t){const n=this.queries[t];if(n===void 0)throw new Error(`No query found with identifier ${t}.`);n.unsubscribe(),delete this.queries[t]}notifyListeners(){for(const t of this.listeners)t()}}function L4(e){const t=k4();if(t===void 0)throw new Error("Could not find Convex client! `useQuery` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app");const n=b.useMemo(()=>(s,a,{journal:l,paginationOptions:c})=>c?t.watchPaginatedQuery(s,a,c):t.watchQuery(s,a,l?{journal:l}:{}),[t]);return U4(e,n)}function U4(e,t){const[n]=b.useState(()=>new z4(t));n.createWatch!==t&&n.setCreateWatch(t),b.useEffect(()=>()=>n.destroy(),[n]);const s=b.useMemo(()=>({getCurrentValue:()=>n.getLocalResults(e),subscribe:a=>(n.setQueries(e),n.subscribe(a))}),[n,e]);return _4(s)}const q1=b.createContext(void 0);function Ed(){const e=b.useContext(q1);if(e===void 0)throw new Error("Could not find `ConvexProviderWithAuth` (or `ConvexProviderWithClerk` or `ConvexProviderWithAuth0`) as an ancestor component. This component may be missing, or you might have two instances of the `convex/react` module loaded in your project.");return e}function I4({children:e,client:t,useAuth:n}){const{isLoading:s,isAuthenticated:a,fetchAccessToken:l}=n(),[c,d]=b.useState(null);return s&&c!==null&&d(null),!s&&!a&&c!==!1&&d(!1),te.createElement(q1.Provider,{value:{isLoading:c===null,isAuthenticated:a&&(c??!1)}},te.createElement(B4,{authProviderAuthenticated:a,fetchAccessToken:l,authProviderLoading:s,client:t,setIsConvexAuthenticated:d}),te.createElement(M4,{client:t},e),te.createElement(V4,{authProviderAuthenticated:a,fetchAccessToken:l,authProviderLoading:s,client:t,setIsConvexAuthenticated:d}))}function B4({authProviderAuthenticated:e,fetchAccessToken:t,authProviderLoading:n,client:s,setIsConvexAuthenticated:a}){return b.useEffect(()=>{let l=!0;if(e)return s.setAuth(t,c=>{l&&a(()=>c)}),()=>{l=!1,a(c=>c?!1:null)}},[e,t,n,s,a]),null}function V4({authProviderAuthenticated:e,fetchAccessToken:t,authProviderLoading:n,client:s,setIsConvexAuthenticated:a}){return b.useEffect(()=>{if(e)return()=>{s.clearAuth(),a(()=>null)}},[e,t,n,s,a]),null}function bl({children:e}){const{isLoading:t,isAuthenticated:n}=Ed();return t||!n?null:te.createElement(te.Fragment,null,e)}function wl({children:e}){const{isLoading:t,isAuthenticated:n}=Ed();return t||n?null:te.createElement(te.Fragment,null,e)}function $4({children:e}){const{isLoading:t}=Ed();return t?te.createElement(te.Fragment,null,e):null}function q4({children:e,client:t}){return S.jsx(I4,{client:t,useAuth:H4,children:e})}function H4(){const{isAuthenticated:e,user:t,isLoading:n,signinSilent:s}=vd(),a=t?.id_token,l=b.useCallback(async({forceRefreshToken:c})=>{try{return a??null}catch{return null}},[a,s]);return b.useMemo(()=>({isLoading:n,isAuthenticated:e,fetchAccessToken:l}),[n,e,l])}const F4="https://first-mosquito-673.convex.cloud",Q4=new R4(F4);function Z4({children:e}){return S.jsx(q4,{"data-hercules-id":"src/components/providers/convex.tsx:9:4","data-hercules-name":"ConvexProviderWithHerculesAuth",client:Q4,children:e})}var Td=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},G4=class extends Td{#e;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 23,816 bytes, line 51
51this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},H1=new G4,K4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Y4=class{#e=K4;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},dm=new Y4;function X4(e){setTimeout(e,0)}var W4=typeof window>"u"||"Deno"in globalThis;function Jn(){}function J4(e,t){return typeof e=="function"?e(t):e}function eL(e){return typeof e=="number"&&e>=0&&e!==1/0}function tL(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fm(e,t){return typeof e=="function"?e(t):e}function nL(e,t){return typeof e=="function"?e(t):e}function px(e,t){const{type:n="all",exact:s,fetchStatus:a,predicate:l,queryKey:c,stale:d}=e;if(c){if(s){if(t.queryHash!==wg(c,t.options))return!1}else if(!Sl(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||l&&!l(t))}function mx(e,t){const{exact:n,status:s,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(xl(t.options.mutationKey)!==xl(l))return!1}else if(!Sl(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function wg(e,t){return(t?.queryKeyHashFn||xl)(e)}function xl(e){return JSON.stringify(e,(t,n)=>hm(n)?Object.keys(n).sort().reduce((s,a)=>(s[a]=n[a],s),{}):n)}function Sl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Sl(e[n],t[n])):!1}var rL=Object.prototype.hasOwnProperty;function F1(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=gx(e)&&gx(t);if(!s&&!(hm(e)&&hm(t)))return t;const l=(s?e:Object.keys(e)).length,c=s?t:Object.keys(t),d=c.length,f=s?new Array(d):{};let p=0;for(let y=0;y<d;y++){const m=s?y:c[y],v=e[m],x=t[m];if(v===x){f[m]=v,(s?y<l:rL.call(e,m))&&p++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){f[m]=x;continue}const _=F1(v,x,n+1);f[m]=_,_===v&&p++}return l===d&&p===l?e:f}function gx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hm(e){if(!yx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!yx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function yx(e){return Object.prototype.toString.call(e)==="[object Object]"}function sL(e){return new Promise(t=>{dm.setTimeout(t,e)})}function iL(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?F1(e,t):t}function aL(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function oL(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var xg=Symbol();function Q1(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function lL(e,t,n){let s=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),s||(s=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Z1=(()=>{let e=()=>W4;return{isServer(){return e()},setIsServer(t){e=t}}})();function cL(){let e,t;const n=new Promise((a,l)=>{e=a,t=l});n.status="pending",n.catch(()=>{});function s(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},n.reject=a=>{s({status:"rejected",reason:a}),t(a)},n}var uL=X4;function dL(){let e=[],t=0,n=d=>{d()},s=d=>{d()},a=uL;const l=d=>{t?e.push(d):a(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&a(()=>{s(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||c()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{a=d}}}var Zt=dL(),fL=class extends Td{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Yu=new fL;function hL(e){return Math.min(1e3*2**e,3e4)}function G1(e){return(e??"online")==="online"?Yu.isOnline():!0}var pm=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function K1(e){let t=!1,n=0,s;const a=cL(),l=()=>a.status!=="pending",c=E=>{if(!l()){const T=new pm(E);v(T),e.onCancel?.(T)}},d=()=>{t=!0},f=()=>{t=!1},p=()=>H1.isFocused()&&(e.networkMode==="always"||Yu.isOnline())&&e.canRun(),y=()=>G1(e.networkMode)&&e.canRun(),m=E=>{l()||(s?.(),a.resolve(E))},v=E=>{l()||(s?.(),a.reject(E))},x=()=>new Promise(E=>{s=T=>{(l()||p())&&E(T)},e.onPause?.()}).then(()=>{s=void 0,l()||e.onContinue?.()}),_=()=>{if(l())return;let E;const T=n===0?e.initialPromise:void 0;try{E=T??e.fn()}catch(C){E=Promise.reject(C)}Promise.resolve(E).then(m).catch(C=>{if(l())return;const k=e.retry??(Z1.isServer()?0:3),R=e.retryDelay??hL,M=typeof R=="function"?R(n,C):R,j=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,C);if(t||!j){v(C);return}n++,e.onFail?.(n,C),sL(M).then(()=>p()?void 0:x()).then(()=>{t?v(C):_()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(s?.(),a),cancelRetry:d,continueRetry:f,canStart:y,start:()=>(y()?_():x().then(_),a)}}var Y1=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eL(this.gcTime)&&(this.#e=dm.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Z1.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&(dm.clearTimeout(this.#e),this.#e=void 0)}},pL=class extends Y1{#e;#n;#t;#s;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#t=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=bx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=bx(this.options);t.data!==void 0&&(this.setState(vx(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=iL(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Jn).catch(Jn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>nL(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>fm(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!tL(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const d=Q1(this.options,t),p=(()=>{const y={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#o=!1,this.options.persister?this.options.persister(d,p,this):d(p)},c=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a};return s(d),d})();this.options.behavior?.onFetch(c,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#i({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=K1({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof pm&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#t.config.onSuccess?.(d,this),this.#t.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof pm){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#t.config.onError?.(d,this),this.#t.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...mL(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...vx(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Zt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function mL(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function bx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function wx(e){return{onFetch:(t,n)=>{const s=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const p=async()=>{let y=!1;const m=_=>{lL(_,()=>t.signal,()=>y=!0)},v=Q1(t.options,t.fetchOptions),x=async(_,E,T)=>{if(y)return Promise.reject();if(E==null&&_.pages.length)return Promise.resolve(_);const k=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return m(U),U})(),R=await v(k),{maxPages:M}=t.options,j=T?oL:aL;return{pages:j(_.pages,R,M),pageParams:j(_.pageParams,E,M)}};if(a&&l.length){const _=a==="backward",E=_?gL:xx,T={pages:l,pageParams:c},C=E(s,T);d=await x(T,C,_)}else{const _=e??l.length;do{const E=f===0?c[0]??s.initialPageParam:xx(s,d);if(f>0&&E==null)break;d=await x(d,E),f++}while(f<_)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function xx(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function gL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var yL=class extends Y1{#e;#n;#t;#s;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||vL(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=K1({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",a=!this.#s.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:a}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:a})}const l=await this.#s.start();return await this.#t.config.onSuccess?.(l,e,this.state.context,this,n),await this.options.onSuccess?.(l,e,this.state.context,n),await this.#t.config.onSettled?.(l,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(l,null,e,this.state.context,n),this.#r({type:"success",data:l}),l}catch(l){try{await this.#t.config.onError?.(l,e,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onError?.(l,e,this.state.context,n)}catch(c){Promise.reject(c)}try{await this.#t.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,n)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:l}),l}finally{this.#t.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Zt.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function vL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bL=class extends Td{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const s=new yL({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(s),s}add(e){this.#e.add(e);const t=ou(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=ou(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ou(e);if(typeof t=="string"){const s=this.#n.get(t)?.find(a=>a.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=ou(e);return typeof t=="string"?this.#n.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>mx(t,n))}findAll(e={}){return this.getAll().filter(t=>mx(e,t))}notify(e){Zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Zt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Jn))))}};function ou(e){return e.options.scope?.id}var wL=class extends Td{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const s=t.queryKey,a=t.queryHash??wg(s,t);let l=this.get(a);return l||(l=new pL({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Zt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>px(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>px(e,n)):t}notify(e){Zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xL=class{#e;#n;#t;#s;#r;#a;#o;#i;constructor(e={}){this.#e=e.queryCache||new wL,this.#n=e.mutationCache||new bL,this.#t=e.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=H1.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Yu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(fm(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(s.queryHash)?.state.data,c=J4(t,l);if(c!==void 0)return this.#e.build(this,s).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Zt.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Zt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Zt.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=Zt.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(Jn).catch(Jn)}invalidateQueries(e,t={}){return Zt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=Zt.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(Jn)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(Jn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(fm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jn).catch(Jn)}fetchInfiniteQuery(e){return e.behavior=wx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jn).catch(Jn)}ensureInfiniteQueryData(e){return e.behavior=wx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yu.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#s.set(xl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(s=>{Sl(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(xl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(s=>{Sl(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xg&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},SL=b.createContext(void 0),_L=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(SL.Provider,{value:e,children:t}));const EL=new xL;function TL({children:e}){return S.jsx(_L,{"data-hercules-id":"src/components/providers/query-client.tsx:14:4","data-hercules-name":"ReactQueryClientProvider",client:EL,children:e})}var AL=(e,t,n,s,a,l,c,d)=>{let f=document.documentElement,p=["light","dark"];
51function y(x){(Array.isArray(e)?e:[e]).forEach(_=>{let E=_==="class",T=E&&l?a.map(C=>l[C]||C):a;E?(f.classList.remove(...T),f.classList.add(l&&l[x]?l[x]:x)):f.setAttribute(_,x)}),m(x)}function m(x){d&&p.includes(x)&&(f.style.colorScheme=x)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)y(s);else try{let x=localStorage.getItem(t)||n,_=c&&x==="system"?v():x;y(_)}catch{}},Sx=["light","dark"],X1="(prefers-color-scheme: dark)",CL=typeof window>"u",Sg=b.createContext(void 0),RL={setTheme:e=>{},themes:[]},kL=()=>{var e;return(e=b.useContext(Sg))!=null?e:RL},ML=e=>b.useContext(Sg)?b.createElement(b.Fragment,null,e.children):b.createElement(DL,{...e}),OL=["light","dark"],DL=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:s=!0,storageKey:a="theme",themes:l=OL,defaultTheme:c=n?"system":"light",attribute:d="data-theme",value:f,children:p,nonce:y,scriptProps:m})=>{let[v,x]=b.useState(()=>PL(a,c)),[_,E]=b.useState(()=>v==="system"?wp():v),T=f?Object.values(f):l,C=b.useCallback(j=>{let U=j;if(!U)return;j==="system"&&n&&(U=wp());let I=f?f[U]:U,z=t?jL(y):null,K=document.documentElement,ee=ie=>{ie==="class"?(K.classList.remove(...T),I&&K.classList.add(I)):ie.startsWith("data-")&&(I?K.setAttribute(ie,I):K.removeAttribute(ie))};if(Array.isArray(d)?d.forEach(ee):ee(d),s){let ie=Sx.includes(c)?c:null,ae=Sx.includes(U)?U:ie;K.style.colorScheme=ae}z?.()},[y]),k=b.useCallback(j=>{let U=typeof j=="function"?j(v):j;x(U);try{localStorage.setItem(a,U)}catch{}},[v]),R=b.useCallback(j=>{let U=wp(j);E(U),v==="system"&&n&&!e&&C("system")},[v,e]);b.useEffect(()=>{let j=window.matchMedia(X1);return j.addListener(R),R(j),()=>j.removeListener(R)},[R]),b.useEffect(()=>{let j=U=>{U.key===a&&(U.newValue?x(U.newValue):k(c))};return window.addEventListener("storage",j),()=>window.removeEventListener("storage",j)},[k]),b.useEffect(()=>{C(e??v)},[e,v]);let M=b.useMemo(()=>({theme:v,setTheme:k,forcedTheme:e,resolvedTheme:v==="system"?_:v,themes:n?[...l,"system"]:l,systemTheme:n?_:void 0}),[v,k,e,_,n,l]);return b.createElement(Sg.Provider,{value:M},b.createElement(NL,{forcedTheme:e,storageKey:a,attribute:d,enableSystem:n,enableColorScheme:s,defaultTheme:c,value:f,themes:l,nonce:y,scriptProps:m}),p)},NL=b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:a,defaultTheme:l,value:c,themes:d,nonce:f,scriptProps:p})=>{let y=JSON.stringify([n,t,l,e,d,c,s,a]).slice(1,-1);return b.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${AL.toString()})(${y})`}})}),PL=(e,t)=>{if(CL)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},jL=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},wp=e=>(e||(e=window.matchMedia(X1)),e.matches?"dark":"light");function zL({children:e,...t}){return S.jsx(ML,{"data-hercules-id":"src/components/providers/theme.tsx:8:4","data-hercules-name":"NextThemeProvider",attribute:"class",defaultTheme:"system",enableSystem:!0,...t,children:e})}function LL(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const UL=e=>{switch(e){case"success":return VL;case"info":return qL;case"warning":return $L;case"error":return HL;default:return null}},IL=Array(12).fill(0),BL=({visible:e,className:t})=>te.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},te.createElement("div",{className:"sonner-spinner"},IL.map((n,s)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),VL=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),$L=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
51currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),qL=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),HL=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),FL=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),QL=()=>{const[e,t]=te.useState(document.hidden);return te.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let mm=1;class ZL{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:s,...a}=t,l=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:mm++,c=this.toasts.find(f=>f.id===l),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),c?this.toasts=this.toasts.map(f=>f.id===l?(this.publish({...f,...t,id:l,title:s}),{...f,...t,id:l,dismissible:d,title:s}):f):this.addToast({title:s,...a,dismissible:d,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(s=>s({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let s;n.loading!==void 0&&(s=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let l=s!==void 0,c;const d=a.then(async p=>{if(c=["resolve",p],te.isValidElement(p))l=!1,this.create({id:s,type:"default",message:p});else if(KL(p)&&!p.ok){l=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${p.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${p.status}`):n.description,_=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:v,..._})}else if(p instanceof Error){l=!1;const m=typeof n.error=="function"?await n.error(p):n.error,v=typeof n.description=="function"?await n.description(p):n.description,_=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:s,type:"error",description:v,..._})}else if(n.success!==void 0){l=!1;const m=typeof n.success=="function"?await n.success(p):n.success,v=typeof n.description=="function"?await n.description(p):n.description,_=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:s,type:"success",description:v,..._})}}).catch(async p=>{if(c=["reject",p],n.error!==void 0){l=!1;const y=typeof n.error=="function"?await n.error(p):n.error,m=typeof n.description=="function"?await n.description(p):n.description,x=typeof y=="object"&&!te.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:m,...x})}}).finally(()=>{l&&(this.dismiss(s),s=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((p,y)=>d.then(()=>c[0]==="reject"?y(c[1]):p(c[1])).catch(y));
vendor: 772 bytes, line 51
51return typeof s!="string"&&typeof s!="number"?{unwrap:f}:Object.assign(s,{unwrap:f})},this.custom=(t,n)=>{const s=n?.id||mm++;return this.create({jsx:t(s),id:s,...n}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const cn=new ZL,GL=(e,t)=>{const n=t?.id||mm++;return cn.addToast({title:e,...t,id:n}),n},KL=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",YL=GL,XL=()=>cn.toasts,WL=()=>cn.getActiveToasts(),W1=Object.assign(YL,{success:cn.success,info:cn.info,warning:cn.warning,error:cn.error,custom:cn.custom,message:cn.message,promise:cn.promise,dismiss:cn.dismiss,loading:cn.loading},{getHistory:XL,getToasts:WL});LL
vendor: 14,874 bytes, line 51
51("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;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%)}");function l
vendor: 2,457 bytes, line 51
51u(e){return e.label!==void 0}const JL=3,e3="24px",t3="16px",_x=4e3,n3=356,r3=14,s3=45,i3=200;function ur(...e){return e.filter(Boolean).join(" ")}function a3(e){const[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}const o3=e=>{var t,n,s,a,l,c,d,f,p;const{invert:y,toast:m,unstyled:v,interacting:x,setHeights:_,visibleToasts:E,heights:T,index:C,toasts:k,expanded:R,removeToast:M,defaultRichColors:j,closeButton:U,style:I,cancelButtonStyle:z,actionButtonStyle:K,className:ee="",descriptionClassName:ie="",duration:ae,position:pe,gap:me,expandByDefault:de,classNames:N,icons:Q,closeButtonAriaLabel:Z="Close toast"}=e,[J,Y]=te.useState(null),[D,H]=te.useState(null),[X,re]=te.useState(!1),[se,oe]=te.useState(!1),[he,be]=te.useState(!1),[we,Vt]=te.useState(!1),[Pt,Et]=te.useState(!1),[fn,jt]=te.useState(0),[Ja,Di]=te.useState(0),Fs=te.useRef(m.duration||ae||_x),eo=te.useRef(null),hn=te.useRef(null),to=C===0,no=C+1<=E,$t=m.type,ns=m.dismissible!==!1,qt=m.className||"",$d=m.descriptionClassName||"",Qs=te.useMemo(()=>T.findIndex(xe=>xe.toastId===m.id)||0,[T,m.id]),Vl=te.useMemo(()=>{var xe;return(xe=m.closeButton)!=null?xe:U},[m.closeButton,U]),Zs=te.useMemo(()=>m.duration||ae||_x,[m.duration,ae]),ro=te.useRef(0),Cr=te.useRef(0),$l=te.useRef(0),rs=te.useRef(null),[Gs,Ht]=pe.split("-"),Fn=te.useMemo(()=>T.reduce((xe,Ge,wt)=>wt>=Qs?xe:xe+Ge.height,0),[T,Qs]),zt=QL(),qd=m.invert||y,so=$t==="loading";Cr.current=te.useMemo(()=>Qs*me+Fn,[Qs,Fn]),te.useEffect(()=>{Fs.current=Zs},[Zs]),te.useEffect(()=>{re(!0)},[]),te.useEffect(()=>{const xe=hn.current;if(xe){const Ge=xe.getBoundingClientRect().height;return Di(Ge),_(wt=>[{toastId:m.id,height:Ge,position:m.position},...wt]),()=>_(wt=>wt.filter(Lt=>Lt.toastId!==m.id))}},[_,m.id]),te.useLayoutEffect(()=>{if(!X)return;const xe=hn.current,Ge=xe.style.height;xe.style.height="auto";const wt=xe.getBoundingClientRect().height;xe.style.height=Ge,Di(wt),_(Lt=>Lt.find(We=>We.toastId===m.id)?Lt.map(We=>We.toastId===m.id?{...We,height:wt}:We):[{toastId:m.id,height:wt,position:m.position},...Lt])},[X,m.title,m.description,_,m.id,m.jsx,m.action,m.cancel]);const rr=te.useCallback(()=>{oe(!0),jt(Cr.current),_(xe=>xe.filter(Ge=>Ge.toastId!==m.id)),setTimeout(()=>{M(m)},i3)},[m,M,_,Cr]);te.useEffect(()=>{if(m.promise&&$t==="loading"||m.duration===1/0||m.type==="loading")return;let xe;return R||x||zt?(()=>{if($l.current<ro.current){const Lt=new Date().getTime()-ro.current;Fs.current=Fs.current-Lt}
vendor: 6,526 bytes, line 51
51$l.current=new Date().getTime()})():Fs.current!==1/0&&(ro.current=new Date().getTime(),xe=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),rr()},Fs.current)),()=>clearTimeout(xe)},[R,x,m,$t,zt,rr]),te.useEffect(()=>{m.delete&&(rr(),m.onDismiss==null||m.onDismiss.call(m,m))},[rr,m.delete]);function Ni(){var xe;if(Q?.loading){var Ge;return te.createElement("div",{className:ur(N?.loader,m==null||(Ge=m.classNames)==null?void 0:Ge.loader,"sonner-loader"),"data-visible":$t==="loading"},Q.loading)}return te.createElement(BL,{className:ur(N?.loader,m==null||(xe=m.classNames)==null?void 0:xe.loader),visible:$t==="loading"})}const Pi=m.icon||Q?.[$t]||UL($t);var Ks,sr;return te.createElement("li",{tabIndex:0,ref:hn,className:ur(ee,qt,N?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,N?.default,N?.[$t],m==null||(n=m.classNames)==null?void 0:n[$t]),"data-sonner-toast":"","data-rich-colors":(Ks=m.richColors)!=null?Ks:j,"data-styled":!(m.jsx||m.unstyled||v),"data-mounted":X,"data-promise":!!m.promise,"data-swiped":Pt,"data-removed":se,"data-visible":no,"data-y-position":Gs,"data-x-position":Ht,"data-index":C,"data-front":to,"data-swiping":he,"data-dismissible":ns,"data-type":$t,"data-invert":qd,"data-swipe-out":we,"data-swipe-direction":D,"data-expanded":!!(R||de&&X),"data-testid":m.testId,style:{"--index":C,"--toasts-before":C,"--z-index":k.length-C,"--offset":`${se?fn:Cr.current}px`,"--initial-height":de?"auto":`${Ja}px`,...I,...m.style},onDragEnd:()=>{be(!1),Y(null),rs.current=null},onPointerDown:xe=>{xe.button!==2&&(so||!ns||(eo.current=new Date,jt(Cr.current),xe.target.setPointerCapture(xe.pointerId),xe.target.tagName!=="BUTTON"&&(be(!0),rs.current={x:xe.clientX,y:xe.clientY})))},onPointerUp:()=>{var xe,Ge,wt;if(we||!ns)return;rs.current=null;const Lt=Number(((xe=hn.current)==null?void 0:xe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ss=Number(((Ge=hn.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),We=new Date().getTime()-((wt=eo.current)==null?void 0:wt.getTime()),Wt=J==="x"?Lt:ss,Ys=Math.abs(Wt)/We;if(Math.abs(Wt)>=s3||Ys>.11){jt(Cr.current),m.onDismiss==null||m.onDismiss.call(m,m),H(J==="x"?Lt>0?"right":"left":ss>0?"down":"up"),rr(),Vt(!0);return}else{var Jt,en;(Jt=hn.current)==null||Jt.style.setProperty("--swipe-amount-x","0px"),(en=hn.current)==null||en.style.setProperty("--swipe-amount-y","0px")}Et(!1),be(!1),Y(null)},onPointerMove:xe=>{var Ge,wt,Lt;if(!rs.current||!ns||((Ge=window.getSelection())==null?void 0:Ge.toString().length)>0)return;const We=xe.clientY-rs.current.y,Wt=xe.clientX-rs.current.x;var Ys;const Jt=(Ys=e.swipeDirections)!=null?Ys:a3(pe);!J&&(Math.abs(Wt)>1||Math.abs(We)>1)&&Y(Math.abs(Wt)>Math.abs(We)?"x":"y");let en={x:0,y:0};const ji=Qn=>1/(1.5+Math.abs(Qn)/20);if(J==="y"){if(Jt.includes("top")||Jt.includes("bottom"))if(Jt.includes("top")&&We<0||Jt.includes("bottom")&&We>0)en.y=We;else{const Qn=We*ji(We);en.y=Math.abs(Qn)<Math.abs(We)?Qn:We}}else if(J==="x"&&(Jt.includes("left")||Jt.includes("right")))if(Jt.includes("left")&&Wt<0||Jt.includes("right")&&Wt>0)en.x=Wt;else{const Qn=Wt*ji(Wt);en.x=Math.abs(Qn)<Math.abs(Wt)?Qn:Wt}(Math.abs(en.x)>0||Math.abs(en.y)>0)&&Et(!0),(wt=hn.current)==null||wt.style.setProperty("--swipe-amount-x",`${en.x}px`),(Lt=hn.current)==null||Lt.style.setProperty("--swipe-amount-y",`${en.y}px`)}},Vl&&!m.jsx&&$t!=="loading"?te.createElement("button",{"aria-label":Z,"data-disabled":so,"data-close-button":!0,onClick:so||!ns?()=>{}:()=>{rr(),m.onDismiss==null||m.onDismiss.call(m,m)},className:ur(N?.closeButton,m==null||(s=m.classNames)==null?void 0:s.closeButton)},(sr=Q?.close)!=null?sr:FL):null,($t||m.icon||m.promise)&&m.icon!==null&&(Q?.[$t]!==null||m.icon)?te.createElement("div",{"data-icon":"",className:ur(N?.icon,m==null||(a=m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Ni():null,m.type!=="loading"?Pi:null):null,te.createElement("div",{"data-content":"",className:ur(N?.content,m==null||(l=m.classNames)==null?void 0:l.content)},te.createElement("div",{"data-title":"",className:ur(N?.title,m==null||(c=m.classNames)==null?void 0:c.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?te.createElement("div",{"data-description":"",className:ur(ie,$d,N?.description,m==null||(d=m.classNames)==null?void 0:d.description)},typeof m.description=="function"?m.description():m.description):null),te.isValidElement(m.cancel)?m.cancel:m.cancel&&lu(m.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||z,onClick:xe=>{lu(m.cancel)&&ns&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,xe),rr())},className:ur(N?.cancelButton,m==null||(f=m.classNames)==null?void 0:f.cancelButton)},m.cancel.label):null,te.isValidElement(m.action)?m.action:m.action&&lu(m.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||K,onClick:xe=>{lu(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,xe),!xe.defaultPrevented&&rr())},className:ur(N?.actionButton,m==null||(p=m.classNames)==null?void 0:p.actionButton)},m.action.label):null)};function Ex(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function l3(e,t){const n={};return[e,t].forEach((s,a)=>{const l=a===1,c=l?"--mobile-offset":"--offset",d=l?t3:e3;function f(p){["top","right","bottom","left"].forEach(y=>{n[`${c}-${y}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?f(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?n[`${c}-${p}`]=d:n[`${c}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):f(d)}),n}const c3=te.forwardRef(function(t,n){const{id:s,invert:a,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:f,className:p,offset:y,mobileOffset:m,theme:v="light",richColors:x,duration:_,style:E,visibleToasts:T=JL,toastOptions:C,dir:k=Ex(),gap:R=r3,icons:M,containerAriaLabel:j="Notifications"}=t,[U,I]=te.useState([]),z=te.useMemo(()=>s?U.filter(X=>X.toasterId===s):U.filter(X=>!X.toasterId),[U,s]),K=te.useMemo(()=>Array.from(new Set([l].concat(z.filter(X=>X.position).map(X=>X.position)))),[z,l]),[ee,ie]=te.useState([]),[ae,pe]=te.useState(!1),[me,de]=te.useState(!1),[N,Q]=te.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
51k":"light"),Z=te.useRef(null),J=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),Y=te.useRef(null),D=te.useRef(!1),H=te.useCallback(X=>{I(re=>{var se;return(se=re.find(oe=>oe.id===X.id))!=null&&se.delete||cn.dismiss(X.id),re.filter(({id:oe})=>oe!==X.id)})},[]);return te.useEffect(()=>cn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{I(re=>re.map(se=>se.id===X.id?{...se,delete:!0}:se))});return}setTimeout(()=>{$_.flushSync(()=>{I(re=>{const se=re.findIndex(oe=>oe.id===X.id);return se!==-1?[...re.slice(0,se),{...re[se],...X},...re.slice(se+1)]:[X,...re]})})})}),[U]),te.useEffect(()=>{if(v!=="system"){Q(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:re})=>{Q(re?"dark":"light")})}catch{X.addListener(({matches:se})=>{try{Q(se?"dark":"light")}catch(oe){console.error(oe)}})}},[v]),te.useEffect(()=>{U.length<=1&&pe(!1)},[U]),te.useEffect(()=>{const X=re=>{var se;if(c.every(be=>re[be]||re.code===be)){var he;pe(!0),(he=Z.current)==null||he.focus()}re.code==="Escape"&&(document.activeElement===Z.current||(se=Z.current)!=null&&se.contains(document.activeElement))&&pe(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[c]),te.useEffect(()=>{if(Z.current)return()=>{Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null,D.current=!1)}},[Z.current]),te.createElement("section",{ref:n,"aria-label":`${j} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},K.map((X,re)=>{var se;const[oe,he]=X.split("-");return z.length?te.createElement("ol",{key:X,dir:k==="auto"?Ex():k,tabIndex:-1,ref:Z,className:p,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":oe,"data-x-position":he,style:{"--front-toast-height":`${((se=ee[0])==null?void 0:se.height)||0}px`,"--width":`${n3}px`,"--gap":`${R}px`,...E,...l3(y,m)},onBlur:be=>{D.current&&!be.currentTarget.contains(be.relatedTarget)&&(D.current=!1,Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null))},onFocus:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||D.current||(D.current=!0,Y.current=be.relatedTarget)},onMouseEnter:()=>pe(!0),onMouseMove:()=>pe(!0),onMouseLeave:()=>{me||pe(!1)},onDragEnd:()=>pe(!1),onPointerDown:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||de(!0)},onPointerUp:()=>de(!1)},z.filter(be=>!be.position&&re===0||be.position===X).map((be,we)=>{var Vt,Pt;return te.createElement(o3,{key:be.id,icons:M,index:we,toast:be,defaultRichColors:x,duration:(Vt=C?.duration)!=null?Vt:_,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:a,visibleToasts:T,closeButton:(Pt=C?.closeButton)!=null?Pt:f,interacting:me,position:X,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,closeButtonAriaLabel:C?.closeButtonAriaLabel,removeToast:H,toasts:z.filter(Et=>Et.position==be.position),heights:ee.filter(Et=>Et.position==be.position),setHeights:ie,expandByDefault:d,gap:R,expanded:ae,swipeDirections:t.swipeDirections})})):null}))}),u3=({...e})=>{const{theme:t="system"}=kL();return S.jsx(c3,{"data-hercules-id":"src/components/ui/sonner.tsx:8:4","data-hercules-name":"Sonner",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Ae(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function Tx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dl(...e){return t=>{let n=!1;const s=e.map(a=>{const l=Tx(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():Tx(e[a],null)}}}}function Bt(...e){return b.useCallback(Dl(...e),e)}function pF(e,t){const n=b.createContext(t),s=l=>{const{children:c,...d}=l,f=b.useMemo(()=>d,Object.values(d));return S.jsx(n.Provider,{value:f,children:c})};s.displayName=e+"Provider";function a(l){const c=b.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[s,a]}function Qa(e,t=[]){let n=[];function s(l,c){const d=b.createContext(c),f=n.length;n=[...n,c];const p=m=>{const{scope:v,children:x,..._}=m,E=v?.[e]?.[f]||d,T=b.useMemo(()=>_,Object.values(_));return S.jsx(E.Provider,{value:T,children:x})};p.displayName=l+"Provider";function y(m,v){const x=v?.[e]?.[f]||d,_=b.useContext(x);if(_)return _;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${l}\``)}return[p,y]}const a=()=>{const l=n.map(c=>b.createContext(c));return function(d){const f=d?.[e]||l;return b.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return a.scopeName=e,[s,d3(a,...t)]}function d3(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=s.reduce((d,{useScope:f,scopeName:p})=>{const m=f(l)[`__scope${p}`];return{...d,...m}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Xu(e){const t=f3(e),n=b.forwardRef((s,a)=>{const{children:l,...c}=s,d=b.Children.toArray(l),f=d.find(p3);
vendor: 16,776 bytes, line 51
51if(f){const p=f.props.children,y=d.map(m=>m===f?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);return S.jsx(t,{...c,ref:a,children:b.isValidElement(p)?b.cloneElement(p,void 0,y):null})}return S.jsx(t,{...c,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}function f3(e){const t=b.forwardRef((n,s)=>{const{children:a,...l}=n;if(b.isValidElement(a)){const c=g3(a),d=m3(l,a.props);return a.type!==b.Fragment&&(d.ref=s?Dl(s,c):c),b.cloneElement(a,d)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var J1=Symbol("radix.slottable");function h3(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=J1,t}function p3(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J1}function m3(e,t){const n={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?n[s]=(...d)=>{const f=l(...d);return a(...d),f}:a&&(n[s]=a):s==="style"?n[s]={...a,...l}:s==="className"&&(n[s]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function g3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var y3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nt=y3.reduce((e,t)=>{const n=Xu(`Primitive.${t}`),s=b.forwardRef((a,l)=>{const{asChild:c,...d}=a,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(f,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function eE(e,t){e&&ig.flushSync(()=>e.dispatchEvent(t))}function Wr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>t.current?.(...n),[])}function v3(e,t=globalThis?.document){const n=Wr(e);b.useEffect(()=>{const s=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var b3="DismissableLayer",gm="dismissableLayer.update",w3="dismissableLayer.pointerDownOutside",x3="dismissableLayer.focusOutside",Ax,tE=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_g=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...f}=e,p=b.useContext(tE),[y,m]=b.useState(null),v=y?.ownerDocument??globalThis?.document,[,x]=b.useState({}),_=Bt(t,I=>m(I)),E=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(T),k=y?E.indexOf(y):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,M=k>=C,j=E3(I=>{const z=I.target,K=[...p.branches].some(ee=>ee.contains(z));!M||K||(a?.(I),c?.(I),I.defaultPrevented||d?.())},v),U=T3(I=>{const z=I.target;[...p.branches].some(ee=>ee.contains(z))||(l?.(I),c?.(I),I.defaultPrevented||d?.())},v);return v3(I=>{k===p.layers.size-1&&(s?.(I),!I.defaultPrevented&&d&&(I.preventDefault(),d()))},v),b.useEffect(()=>{if(y)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ax=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(y)),p.layers.add(y),Cx(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ax)}},[y,v,n,p]),b.useEffect(()=>()=>{y&&(p.layers.delete(y),p.layersWithOutsidePointerEventsDisabled.delete(y),Cx())},[y,p]),b.useEffect(()=>{const I=()=>x({});return document.addEventListener(gm,I),()=>document.removeEventListener(gm,I)},[]),S.jsx(Nt.div,{...f,ref:_,style:{pointerEvents:R?M?"auto":"none":void 0,...e.style},onFocusCapture:Ae(e.onFocusCapture,U.onFocusCapture),onBlurCapture:Ae(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Ae(e.onPointerDownCapture,j.onPointerDownCapture)})});_g.displayName=b3;var S3="DismissableLayerBranch",_3=b.forwardRef((e,t)=>{const n=b.useContext(tE),s=b.useRef(null),a=Bt(t,s);return b.useEffect(()=>{const l=s.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),S.jsx(Nt.div,{...e,ref:a})});_3.displayName=S3;function E3(e,t=globalThis?.document){const n=Wr(e),s=b.useRef(!1),a=b.useRef(()=>{});return b.useEffect(()=>{const l=d=>{if(d.target&&!s.current){let f=function(){nE(w3,n,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);s.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function T3(e,t=globalThis?.document){const n=Wr(e),s=b.useRef(!1);return b.useEffect(()=>{const a=l=>{l.target&&!s.current&&nE(x3,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Cx(){const e=new CustomEvent(gm);document.dispatchEvent(e)}function nE(e,t,n,{discrete:s}){const a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?eE(a,l):a.dispatchEvent(l)}var js=globalThis?.document?b.useLayoutEffect:()=>{},A3=Wm[" useId ".trim().toString()]||(()=>{}),C3=0;function ym(e){const[t,n]=b.useState(A3());return js(()=>{n(s=>s??String(C3++))},[e]),e||(t?`radix-${t}`:"")}const R3=["top","right","bottom","left"],zs=Math.min,xn=Math.max,Wu=Math.round,cu=Math.floor,wr=e=>({x:e,y:e}),k3={left:"right",right:"left",bottom:"top",top:"bottom"};function vm(e,t,n){return xn(e,zs(t,n))}function Jr(e,t){return typeof e=="function"?e(t):e}function es(e){return e.split("-")[0]}function Za(e){return e.split("-")[1]}function Eg(e){return e==="x"?"y":"x"}function Tg(e){return e==="y"?"height":"width"}function vr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ag(e){return Eg(vr(e))}function M3(e,t,n){n===void 0&&(n=!1);const s=Za(e),a=Ag(e),l=Tg(a);let c=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=Ju(c)),[c,Ju(c)]}function O3(e){const t=Ju(e);return[bm(e),t,bm(t)]}function bm(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Rx=["left","right"],kx=["right","left"],D3=["top","bottom"],N3=["bottom","top"];function P3(e,t,n){switch(e){case"top":case"bottom":return n?t?kx:Rx:t?Rx:kx;case"left":case"right":return t?D3:N3;default:return[]}}function j3(e,t,n,s){const a=Za(e);let l=P3(es(e),n==="start",s);return a&&(l=l.map(c=>c+"-"+a),t&&(l=l.concat(l.map(bm)))),l}function Ju(e){const t=es(e);return k3[t]+e.slice(t.length)}function z3(e){return{top:0,right:0,bottom:0,left:0,...e}}function rE(e){return typeof e!="number"?z3(e):{top:e,right:e,bottom:e,left:e}}function ed(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function Mx(e,t,n){let{reference:s,floating:a}=e;const l=vr(t),c=Ag(t),d=Tg(c),f=es(t),p=l==="y",y=s.x+s.width/2-a.width/2,m=s.y+s.height/2-a.height/2,v=s[d]/2-a[d]/2;let x;switch(f){case"top":x={x:y,y:s.y-a.height};break;case"bottom":x={x:y,y:s.y+s.height};break;case"right":x={x:s.x+s.width,y:m};break;case"left":x={x:s.x-a.width,y:m};break;default:x={x:s.x,y:s.y}}switch(Za(t)){case"start":x[c]-=v*(n&&p?-1:1);break;case"end":x[c]+=v*(n&&p?-1:1);break}return x}async function L3(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:l,rects:c,elements:d,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:m="floating",altBoundary:v=!1,padding:x=0}=Jr(t,e),_=rE(x),T=d[v?m==="floating"?"reference":"floating":m],C=ed(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(T)))==null||n?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:p,rootBoundary:y,strategy:f})),k=m==="floating"?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,R=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),M=await(l.isElement==null?void 0:l.isElement(R))?await(l.getScale==null?void 0:l.getScale(R))||{x:1,y:1}:{x:1,y:1},j=ed(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:k,offsetParent:R,strategy:f}):k);return{top:(C.top-j.top+_.top)/M.y,bottom:(j.bottom-C.bottom+_.bottom)/M.y,left:(C.left-j.left+_.left)/M.x,right:(j.right-C.right+_.right)/M.x}}const U3=50,I3=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:l=[],platform:c}=n,d=c.detectOverflow?c:{...c,detectOverflow:L3},f=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:y,y:m}=Mx(p,s,f),v=s,x=0;const _={};for(let E=0;E<l.length;E++){const T=l[E];if(!T)continue;const{name:C,fn:k}=T,{x:R,y:M,data:j,reset:U}=await k({x:y,y:m,initialPlacement:s,placement:v,strategy:a,middlewareData:_,rects:p,platform:d,elements:{reference:e,floating:t}});y=R??y,m=M??m,_[C]={..._[C],...j},U&&x<U3&&(x++,typeof U=="object"&&(U.placement&&(v=U.placement),U.rects&&(p=U.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):U.rects),{x:y,y:m}=Mx(p,v,f)),E=-1)}return{x:y,y:m,placement:v,strategy:a,middlewareData:_}},B3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:l,platform:c,elements:d,middlewareData:f}=t,{element:p,padding:y=0}=Jr(e,t)||{};if(p==null)return{};const m=rE(y),v={x:n,y:s},x=Ag(a),_=Tg(x),E=await c.getDimensions(p),T=x==="y",C=T?"top":"left",k=T?"bottom":"right",R=T?"clientHeight":"clientWidth",M=l.reference[_]+l.reference[x]-v[x]-l.floating[_],j=v[x]-l.reference[x],U=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let I=U?U[R]:0;(!I||!await(c.isElement==null?void 0:c.isElement(U)))&&(I=d.floating[R]||l.floating[_]);const z=M/2-j/2,K=I/2-E[_]/2-1,ee=zs(m[C],K),ie=zs(m[k],K),ae=ee,pe=I-E[_]-ie,me=I/2-E[_]/2+z,de=vm(ae,me,pe),N=!f.arrow&&Za(a)!=null&&me!==de&&l.reference[_]/2-(me<ae?ee:ie)-E[_]/2<0,Q=N?me<ae?me-ae:me-pe:0;return{[x]:v[x]+Q,data:{[x]:de,centerOffset:me-de-Q,...N&&{alignmentOffset:Q}},reset:N}}}),V3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:l,rects:c,initialPlacement:d,platform:f,elements:p}=t,{mainAxis:y=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0,...T}=Jr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const C=es(a),k=vr(d),R=es(d)===d,M=await(f.isRTL==null?void 0:f.isRTL(p.floating)),j=v||(R||!E?[Ju(d)]:O3(d)),U=_!=="none";!v&&U&&j.push(...j3(d,E,_,M));const I=[d,...j],z=await f.detectOverflow(t,T),K=[];let ee=((s=l.flip)==null?void 0:s.overflows)||[];if(y&&K.push(z[C]),m){const me=M3(a,c,M);K.push(z[me[0]],z[me[1]])}if(ee=[...ee,{placement:a,overflows:K}],!K.every(me=>me<=0)){var ie,ae;const me=(((ie=l.flip)==null?void 0:ie.index)||0)+1,de=I[me];if(de&&(!(m==="alignment"?k!==vr(de):!1)||ee.every(Z=>vr(Z.placement)===k?Z.overflows[0]>0:!0)))return{data:{index:me,overflows:ee},reset:{placement:de}};let N=(ae=ee.filter(Q=>Q.overflows[0]<=0).sort((Q,Z)=>Q.overflows[1]-Z.overflows[1])[0])==null?void 0:ae.placement;if(!N)switch(x){case"bestFit":{var pe;const Q=(pe=ee.filter(Z=>{if(U){const J=vr(Z.placement);return J===k||J==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(J=>J>0).reduce((J,Y)=>J+Y,0)]).sort((Z,J)=>Z[1]-J[1])[0])==null?void 0:pe[0];Q&&(N=Q);break}case"initialPlacement":N=d;break}if(a!==N)return{reset:{placement:N}}}return{}}}};function Ox(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dx(e){return R3.some(t=>e[t]>=0)}const $3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:a="referenceHidden",...l}=Jr(e,t);switch(a){case"referenceHidden":{const c=await s.detectOverflow(t,{...l,elementContext:"reference"}),d=Ox(c,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Dx(d)}}}case"escaped":{const c=await s.detectOverflow(t,{...l,altBoundary:!0}),d=Ox(c,n.floating);return{data:{escapedOffsets:d,escaped:Dx(d)}}}default:return{}}}}},sE=new Set(["left","top"]);async function q3(e,t){const{placement:n,platform:s,elements:a}=e,l=await(s.isRTL==null?void 0:s.isRTL(a.floating)),c=es(n),d=Za(n),f=vr(n)==="y",p=sE.has(c)?-1:1,y=l&&f?-1:1,m=Jr(t,e);let{mainAxis:v,crossAxis:x,alignmentAxis:_}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return d&&typeof _=="number"&&(x=d==="end"?_*-1:_),f?{x:x*y,y:v*p}:{x:v*p,y:x*y}}const H3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:l,placement:c,middlewareData:d}=t,f=await q3(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:a+f.x,y:l+f.y,data:{...f,placement:c}}}}},F3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:f={fn:C=>{let{x:k,y:R}=C;return{x:k,y:R}}},...p}=Jr(e,t),y={x:n,y:s},m=await l.detectOverflow(t,p),v=vr(es(a)),x=Eg(v);let _=y[x],E=y[v];if(c){const C=x==="y"?"top":"left",k=x==="y"?"bottom":"right",R=_+m[C],M=_-m[k];_=vm(R,_,M)}if(d){const C=v==="y"?"top":"left",k=v==="y"?"bottom":"right",R=E+m[C],M=E-m[k];E=vm(R,E,M)}const T=f.fn({...t,[x]:_,[v]:E});return{...T,data:{x:T.x-n,y:T.y-s,enabled:{[x]:c,[v]:d}}}}}},Q3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=Jr(e,t),y={x:n,y:s},m=vr(a),v=Eg(m);let x=y[v],_=y[m];const E=Jr(d,t),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(f){const R=v==="y"?"height":"width",M=l.reference[v]-l.floating[R]+T.mainAxis,j=l.reference[v]+l.reference[R]-T.mainAxis;x<M?x=M:x>j&&(x=j)}if(p){var C,k;const R=v==="y"?"width":"height",M=sE.has(es(a)),j=l.reference[m]-l.floating[R]+(M&&((C=c.offset)==null?void 0:C[m])||0)+(M?0:T.crossAxis),U=l.reference[m]+l.reference[R]+(M?0:((k=c.offset)==null?void 0:k[m])||0)-(M?T.crossAxis:0);_<j?_=j:_>U&&(_=U)}return{[v]:x,[m]:_}}}},Z3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:l,platform:c,elements:d}=t,{apply:f=()=>{},...p}=Jr(e,t),y=await c.detectOverflow(t,p),m=es(a),v=Za(a),x=vr(a)==="y",{width:_,height:E}=l.floating;let T,C;m==="top"||m==="bottom"?(T=m,C=v===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(C=m,T=v==="end"?"top":"bottom");const k=E-y.top-y.bottom,R=_-y.left-y.right,M=zs(E-y[T],k),j=zs(_-y[C],R),U=!t.middlewareData.shift;let I=M,z=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(z=R),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(I=k),U&&!v){const ee=xn(y.left,0),ie=xn(y.right,0),ae=xn(y.top,0),pe=xn(y.bottom,0);x?z=_-2*(ee!==0||ie!==0?ee+ie:xn(y.left,y.right)):I=E-2*(ae!==0||pe!==0?ae+pe:xn(y.top,y.bottom))}await f({...t,availableWidth:z,availableHeight:I});const K=await c.getDimensions(d.floating);return _!==K.width||E!==K.height?{reset:{rects:!0}}:{}}}};function Ad(){return typeof window<"u"}function Ga(e){return iE(e)?(e.nodeName||"").toLowerCase():"#document"}function Sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ar(e){var t;return(t=(iE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iE(e){return Ad()?e instanceof Node||e instanceof Sn(e).Node:!1}function tr(e){return Ad()?e instanceof Element||e instanceof Sn(e).Element:!1}function ts(e){return Ad()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}function Nx(e){return!Ad()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}function Nl(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&a!=="inline"&&a!=="contents"}function G3(e){return/^(table|td|th)$/.test(Ga(e))}function Cd(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const K3=/transform|translate|scale|rotate|perspective|filter/,Y3=/paint|layout|strict|content/,pi=e=>!!e&&e!=="none";let xp;function Cg(e){const t=tr(e)?nr(e):e;return pi(t.transform)||pi(t.translate)||pi(t.scale)||pi(t.rotate)||pi(t.perspective)||!Rg
vendor: 3,854 bytes, line 51
51()&&(pi(t.backdropFilter)||pi(t.filter))||K3.test(t.willChange||"")||Y3.test(t.contain||"")}function X3(e){let t=Ls(e);for(;ts(t)&&!La(t);){if(Cg(t))return t;if(Cd(t))return null;t=Ls(t)}return null}function Rg(){return xp==null&&(xp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xp}function La(e){return/^(html|body|#document)$/.test(Ga(e))}function nr(e){return Sn(e).getComputedStyle(e)}function Rd(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ls(e){if(Ga(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nx(e)&&e.host||Ar(e);return Nx(t)?t.host:t}function aE(e){const t=Ls(e);return La(t)?e.ownerDocument?e.ownerDocument.body:e.body:ts(t)&&Nl(t)?t:aE(t)}function _l(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=aE(e),l=a===((s=e.ownerDocument)==null?void 0:s.body),c=Sn(a);if(l){const d=wm(c);return t.concat(c,c.visualViewport||[],Nl(a)?a:[],d&&n?_l(d):[])}else return t.concat(a,_l(a,[],n))}function wm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oE(e){const t=nr(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=ts(e),l=a?e.offsetWidth:n,c=a?e.offsetHeight:s,d=Wu(n)!==l||Wu(s)!==c;return d&&(n=l,s=c),{width:n,height:s,$:d}}function kg(e){return tr(e)?e:e.contextElement}function Da(e){const t=kg(e);if(!ts(t))return wr(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:l}=oE(t);let c=(l?Wu(n.width):n.width)/s,d=(l?Wu(n.height):n.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const W3=wr(0);function lE(e){const t=Sn(e);return!Rg()||!t.visualViewport?W3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function J3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sn(e)?!1:t}function Ci(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=kg(e);let c=wr(1);t&&(s?tr(s)&&(c=Da(s)):c=Da(e));const d=J3(l,n,s)?lE(l):wr(0);let f=(a.left+d.x)/c.x,p=(a.top+d.y)/c.y,y=a.width/c.x,m=a.height/c.y;if(l){const v=Sn(l),x=s&&tr(s)?Sn(s):s;let _=v,E=wm(_);for(;E&&s&&x!==_;){const T=Da(E),C=E.getBoundingClientRect(),k=nr(E),R=C.left+(E.clientLeft+parseFloat(k.paddingLeft))*T.x,M=C.top+(E.clientTop+parseFloat(k.paddingTop))*T.y;f*=T.x,p*=T.y,y*=T.x,m*=T.y,f+=R,p+=M,_=Sn(E),E=wm(_)}}return ed({width:y,height:m,x:f,y:p})}function kd(e,t){const n=Rd(e).scrollLeft;return t?t.left+n:Ci(Ar(e)).left+n}function cE(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-kd(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function e6(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const l=a==="fixed",c=Ar(s),d=t?Cd(t.floating):!1;if(s===c||d&&l)return n;let f={scrollLeft:0,scrollTop:0},p=wr(1);const y=wr(0),m=ts(s);if((m||!m&&!l)&&((Ga(s)!=="body"||Nl(c))&&(f=Rd(s)),m)){const x=Ci(s);p=Da(s),y.x=x.x+s.clientLeft,y.y=x.y+s.clientTop}const v=c&&!m&&!l?cE(c,f):wr(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-f.scrollLeft*p.x+y.x+v.x,y:n.y*p.y-f.scrollTop*p.y+y.y+v.y}}function t6(e){return Array.from(e.getClientRects())}function n6(e){const t=Ar(e),n=Rd(e),s=e.ownerDocument.body,a=xn(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=xn(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let c=-n.scrollLeft+kd(e);const d=-n.scrollTop;return nr(s).direction==="rtl"&&(c+=xn(t.clientWidth,s.clientWidth)-a),{width:a,height:l,x:c,y:d}}const Px=25;function r6(e,t){const n=Sn(e),s=Ar(e),a=n.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,f=0;if(a){l=a.width,c=a.height;const y=Rg();(!y||y&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}const p=kd(s);if(p<=0){const y=s.ownerDocument,m=y.body,v=getComputedStyle(m),x=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(s.clientWidth-m.clientWidth-x);
vendor: 4,228 bytes, line 51
51_<=Px&&(l-=_)}else p<=Px&&(l+=p);return{width:l,height:c,x:d,y:f}}function s6(e,t){const n=Ci(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,l=ts(e)?Da(e):wr(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,f=a*l.x,p=s*l.y;return{width:c,height:d,x:f,y:p}}function jx(e,t,n){let s;if(t==="viewport")s=r6(e,n);else if(t==="document")s=n6(Ar(e));else if(tr(t))s=s6(t,n);else{const a=lE(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ed(s)}function uE(e,t){const n=Ls(e);return n===t||!tr(n)||La(n)?!1:nr(n).position==="fixed"||uE(n,t)}function i6(e,t){const n=t.get(e);if(n)return n;let s=_l(e,[],!1).filter(d=>tr(d)&&Ga(d)!=="body"),a=null;const l=nr(e).position==="fixed";let c=l?Ls(e):e;for(;tr(c)&&!La(c);){const d=nr(c),f=Cg(c);!f&&d.position==="fixed"&&(a=null),(l?!f&&!a:!f&&d.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Nl(c)&&!f&&uE(e,c))?s=s.filter(y=>y!==c):a=d,c=Ls(c)}return t.set(e,s),s}function a6(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const c=[...n==="clippingAncestors"?Cd(t)?[]:i6(t,this._c):[].concat(n),s],d=jx(t,c[0],a);let f=d.top,p=d.right,y=d.bottom,m=d.left;for(let v=1;v<c.length;v++){const x=jx(t,c[v],a);f=xn(x.top,f),p=zs(x.right,p),y=zs(x.bottom,y),m=xn(x.left,m)}return{width:p-m,height:y-f,x:m,y:f}}function o6(e){const{width:t,height:n}=oE(e);return{width:t,height:n}}function l6(e,t,n){const s=ts(t),a=Ar(t),l=n==="fixed",c=Ci(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=wr(0);function p(){f.x=kd(a)}if(s||!s&&!l)if((Ga(t)!=="body"||Nl(a))&&(d=Rd(t)),s){const x=Ci(t,!0,l,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else a&&p();l&&!s&&a&&p();const y=a&&!s&&!l?cE(a,d):wr(0),m=c.left+d.scrollLeft-f.x-y.x,v=c.top+d.scrollTop-f.y-y.y;return{x:m,y:v,width:c.width,height:c.height}}function Sp(e){return nr(e).position==="static"}function zx(e,t){if(!ts(e)||nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ar(e)===n&&(n=n.ownerDocument.body),n}function dE(e,t){const n=Sn(e);if(Cd(e))return n;if(!ts(e)){let a=Ls(e);for(;a&&!La(a);){if(tr(a)&&!Sp(a))return a;a=Ls(a)}return n}let s=zx(e,t);for(;s&&G3(s)&&Sp(s);)s=zx(s,t);return s&&La(s)&&Sp(s)&&!Cg(s)?n:s||X3(e)||n}const c6=async function(e){const t=this.getOffsetParent||dE,n=this.getDimensions,s=await n(e.floating);return{reference:l6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function u6(e){return nr(e).direction==="rtl"}const d6={convertOffsetParentRelativeRectToViewportRelativeRect:e6,getDocumentElement:Ar,getClippingRect:a6,getOffsetParent:dE,getElementRects:c6,getClientRects:t6,getDimensions:o6,getScale:Da,isElement:tr,isRTL:u6};function fE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function f6(e,t){let n=null,s;const a=Ar(e);function l(){var d;clearTimeout(s),(d=n)==null||d.disconnect(),n=null}function c(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),l();const p=e.getBoundingClientRect(),{left:y,top:m,width:v,height:x}=p;if(d||t(),!v||!x)return;const _=cu(m),E=cu(a.clientWidth-(y+v)),T=cu(a.clientHeight-(m+x)),C=cu(y),R={rootMargin:-_+"px "+-E+"px "+-T+"px "+-C+"px",threshold:xn(0,zs(1,f))||1};let M=!0;function j(U){const I=U[0].intersectionRatio;if(I!==f){if(!M)return c();I?c(!1,I):s=setTimeout(()=>{c(!1,1e-7)},1e3)}I===1&&!fE(p,e.getBoundingClientRect())&&c(),M=!1}try{n=new IntersectionObserver(j,{...R,root:a.ownerDocument})}catch{n=new IntersectionObserver(j,R)}n.observe(e)}return c(!0),l}function h6(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=s,p=kg(e),y=a||l?[...p?_l(p):[],...t?_l(t):[]]:[];y.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),l&&C.addEventListener("resize",n)});const m=p&&d?f6(p,n):null;let v=-1,x=null;c&&(x=new ResizeObserver(C=>{let[k]=C;k&&k.target===p&&x&&t&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=x)==null||R.observe(t)})),n()}),p&&!f&&x.observe(p),t&&x.observe(t));let _,E=f?Ci(e):null;f&&T();function T(){const C=Ci(e);E&&!fE(E,C)&&n(),E=C,_=requestAnimationFrame(T)}return n(),()=>{var C;
vendor: 4,496 bytes, line 51
51y.forEach(k=>{a&&k.removeEventListener("scroll",n),l&&k.removeEventListener("resize",n)}),m?.(),(C=x)==null||C.disconnect(),x=null,f&&cancelAnimationFrame(_)}}const p6=H3,m6=F3,g6=V3,y6=Z3,v6=$3,Lx=B3,b6=Q3,w6=(e,t,n)=>{const s=new Map,a={platform:d6,...n},l={...a.platform,_c:s};return I3(e,t,{...a,platform:l})};var x6=typeof document<"u",S6=function(){},Cu=x6?b.useLayoutEffect:S6;function td(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!td(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;s--!==0;){const l=a[s];if(!(l==="_owner"&&e.$$typeof)&&!td(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function hE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ux(e,t){const n=hE(e);return Math.round(t*n)/n}function _p(e){const t=b.useRef(e);return Cu(()=>{t.current=e}),t}function _6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:f,open:p}=e,[y,m]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,x]=b.useState(s);td(v,s)||x(s);const[_,E]=b.useState(null),[T,C]=b.useState(null),k=b.useCallback(Z=>{Z!==U.current&&(U.current=Z,E(Z))},[]),R=b.useCallback(Z=>{Z!==I.current&&(I.current=Z,C(Z))},[]),M=l||_,j=c||T,U=b.useRef(null),I=b.useRef(null),z=b.useRef(y),K=f!=null,ee=_p(f),ie=_p(a),ae=_p(p),pe=b.useCallback(()=>{if(!U.current||!I.current)return;const Z={placement:t,strategy:n,middleware:v};ie.current&&(Z.platform=ie.current),w6(U.current,I.current,Z).then(J=>{const Y={...J,isPositioned:ae.current!==!1};me.current&&!td(z.current,Y)&&(z.current=Y,ig.flushSync(()=>{m(Y)}))})},[v,t,n,ie,ae]);Cu(()=>{p===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,m(Z=>({...Z,isPositioned:!1})))},[p]);const me=b.useRef(!1);Cu(()=>(me.current=!0,()=>{me.current=!1}),[]),Cu(()=>{if(M&&(U.current=M),j&&(I.current=j),M&&j){if(ee.current)return ee.current(M,j,pe);pe()}},[M,j,pe,ee,K]);const de=b.useMemo(()=>({reference:U,floating:I,setReference:k,setFloating:R}),[k,R]),N=b.useMemo(()=>({reference:M,floating:j}),[M,j]),Q=b.useMemo(()=>{const Z={position:n,left:0,top:0};if(!N.floating)return Z;const J=Ux(N.floating,y.x),Y=Ux(N.floating,y.y);return d?{...Z,transform:"translate("+J+"px, "+Y+"px)",...hE(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:Y}},[n,d,N.floating,y.x,y.y]);return b.useMemo(()=>({...y,update:pe,refs:de,elements:N,floatingStyles:Q}),[y,pe,de,N,Q])}const E6=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:a}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?Lx({element:s.current,padding:a}).fn(n):{}:s?Lx({element:s,padding:a}).fn(n):{}}}},T6=(e,t)=>{const n=p6(e);return{name:n.name,fn:n.fn,options:[e,t]}},A6=(e,t)=>{const n=m6(e);return{name:n.name,fn:n.fn,options:[e,t]}},C6=(e,t)=>({fn:b6(e).fn,options:[e,t]}),R6=(e,t)=>{const n=g6(e);return{name:n.name,fn:n.fn,options:[e,t]}},k6=(e,t)=>{const n=y6(e);return{name:n.name,fn:n.fn,options:[e,t]}},M6=(e,t)=>{const n=v6(e);return{name:n.name,fn:n.fn,options:[e,t]}},O6=(e,t)=>{const n=E6(e);return{name:n.name,fn:n.fn,options:[e,t]}};var D6="Arrow",pE=b.forwardRef((e,t)=>{const{children:n,width:s=10,height:a=5,...l}=e;return S.jsx(Nt.svg,{...l,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});pE.displayName=D6;var N6=pE;function P6(e){const[t,n]=b.useState(void 0);return js(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let c,d;if("borderBoxSize"in l){const f=l.borderBoxSize,p=Array.isArray(f)?f[0]:f;c=p.inlineSize,d=p.blockSize}else c=e.offsetWidth,d=e.offsetHeight;n({width:c,height:d})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Mg="Popper",[mE,Md]=Qa(Mg),[j6,gE]=mE(Mg),yE=e=>{const{__scopePopper:t,children:n}=e,[s,a]=b.useState(null);return S.jsx(j6,{scope:t,anchor:s,onAnchorChange:a,children:n})};yE.displayName=Mg;var vE="PopperAnchor",bE=b.forwardRef((e,t)=>
vendor: 4,831 bytes, line 51
51{const{__scopePopper:n,virtualRef:s,...a}=e,l=gE(vE,n),c=b.useRef(null),d=Bt(t,c),f=b.useRef(null);return b.useEffect(()=>{const p=f.current;f.current=s?.current||c.current,p!==f.current&&l.onAnchorChange(f.current)}),s?null:S.jsx(Nt.div,{...a,ref:d})});bE.displayName=vE;var Og="PopperContent",[z6,L6]=mE(Og),wE=b.forwardRef((e,t)=>{const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:y=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:x="optimized",onPlaced:_,...E}=e,T=gE(Og,n),[C,k]=b.useState(null),R=Bt(t,he=>k(he)),[M,j]=b.useState(null),U=P6(M),I=U?.width??0,z=U?.height??0,K=s+(l!=="center"?"-"+l:""),ee=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ie=Array.isArray(p)?p:[p],ae=ie.length>0,pe={padding:ee,boundary:ie.filter(I6),altBoundary:ae},{refs:me,floatingStyles:de,placement:N,isPositioned:Q,middlewareData:Z}=_6({strategy:"fixed",placement:K,whileElementsMounted:(...he)=>h6(...he,{animationFrame:x==="always"}),elements:{reference:T.anchor},middleware:[T6({mainAxis:a+z,alignmentAxis:c}),f&&A6({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?C6():void 0,...pe}),f&&R6({...pe}),k6({...pe,apply:({elements:he,rects:be,availableWidth:we,availableHeight:Vt})=>{const{width:Pt,height:Et}=be.reference,fn=he.floating.style;fn.setProperty("--radix-popper-available-width",`${we}px`),fn.setProperty("--radix-popper-available-height",`${Vt}px`),fn.setProperty("--radix-popper-anchor-width",`${Pt}px`),fn.setProperty("--radix-popper-anchor-height",`${Et}px`)}}),M&&O6({element:M,padding:d}),B6({arrowWidth:I,arrowHeight:z}),v&&M6({strategy:"referenceHidden",...pe})]}),[J,Y]=_E(N),D=Wr(_);js(()=>{Q&&D?.()},[Q,D]);const H=Z.arrow?.x,X=Z.arrow?.y,re=Z.arrow?.centerOffset!==0,[se,oe]=b.useState();return js(()=>{C&&oe(window.getComputedStyle(C).zIndex)},[C]),S.jsx("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:Q?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(z6,{scope:n,placedSide:J,onArrowChange:j,arrowX:H,arrowY:X,shouldHideArrow:re,children:S.jsx(Nt.div,{"data-side":J,"data-align":Y,...E,ref:R,style:{...E.style,animation:Q?void 0:"none"}})})})});wE.displayName=Og;var xE="PopperArrow",U6={top:"bottom",right:"left",bottom:"top",left:"right"},SE=b.forwardRef(function(t,n){const{__scopePopper:s,...a}=t,l=L6(xE,s),c=U6[l.placedSide];return S.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:S.jsx(N6,{...a,ref:n,style:{...a.style,display:"block"}})})});SE.displayName=xE;function I6(e){return e!==null}var B6=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:s,middlewareData:a}=t,c=a.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,y]=_E(n),m={start:"0%",center:"50%",end:"100%"}[y],v=(a.arrow?.x??0)+d/2,x=(a.arrow?.y??0)+f/2;let _="",E="";return p==="bottom"?(_=c?m:`${v}px`,E=`${-f}px`):p==="top"?(_=c?m:`${v}px`,E=`${s.floating.height+f}px`):p==="right"?(_=`${-f}px`,E=c?m:`${x}px`):p==="left"&&(_=`${s.floating.width+f}px`,E=c?m:`${x}px`),{data:{x:_,y:E}}}});function _E(e){const[t,n="center"]=e.split("-");return[t,n]}var V6=yE,EE=bE,TE=wE,AE=SE,$6="Portal",CE=b.forwardRef((e,t)=>{const{container:n,...s}=e,[a,l]=b.useState(!1);js(()=>l(!0),[]);const c=n||a&&globalThis?.document?.body;return c?$_.createPortal(S.jsx(Nt.div,{...s,ref:t}),c):null});CE.displayName=$6;function q6(e,t){return b.useReducer((n,s)=>t[n][s]??n,e)}var Ka=e=>{const{present:t,children:n}=e,s=H6(t),a=typeof n=="function"?n({present:s.isPresent}):b.Children.only(n),l=Bt(s.ref,F6(a));return typeof n=="function"||s.isPresent?b.cloneElement(a,{ref:l}):null};Ka.displayName="Presence";function H6(e){const[t,n]=b.useState(),s=b.useRef(null),a=b.useRef(e),l=b.useRef("none"),c=e?"mounted":"unmounted",[d,f]=q6(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=uu(s.current);l.current=d==="mounted"?p:"none"},[d]),js(()=>{const p=s.current,y=a.current;if(y!==e){const v=l.current,x=uu(p);e?f("MOUNT"):x==="none"||p?.display==="none"?f("UNMOUNT"):f(y&&v!==x?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),js(()=>
vendor: 4,346 bytes, line 51
51{if(t){let p;const y=t.ownerDocument.defaultView??window,m=x=>{const E=uu(s.current).includes(CSS.escape(x.animationName));if(x.target===t&&E&&(f("ANIMATION_END"),!a.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",p=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},v=x=>{x.target===t&&(l.current=uu(s.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{y.clearTimeout(p),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:b.useCallback(p=>{s.current=p?getComputedStyle(p):null,n(p)},[])}}function uu(e){return e?.animationName||"none"}function F6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Q6=Wm[" useInsertionEffect ".trim().toString()]||js;function RE({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[a,l,c]=Z6({defaultProp:t,onChange:n}),d=e!==void 0,f=d?e:a;{const y=b.useRef(e!==void 0);b.useEffect(()=>{const m=y.current;m!==d&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=d},[d,s])}const p=b.useCallback(y=>{if(d){const m=G6(y)?y(e):y;m!==e&&c.current?.(m)}else l(y)},[d,e,l,c]);return[f,p]}function Z6({defaultProp:e,onChange:t}){const[n,s]=b.useState(e),a=b.useRef(n),l=b.useRef(t);return Q6(()=>{l.current=t},[t]),b.useEffect(()=>{a.current!==n&&(l.current?.(n),a.current=n)},[n,a]),[n,s,l]}function G6(e){return typeof e=="function"}var K6=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Y6="VisuallyHidden",kE=b.forwardRef((e,t)=>S.jsx(Nt.span,{...e,ref:t,style:{...K6,...e.style}}));kE.displayName=Y6;var X6=kE,[Od]=Qa("Tooltip",[Md]),Dg=Md(),ME="TooltipProvider",W6=700,Ix="tooltip.open",[J6,OE]=Od(ME),DE=e=>{const{__scopeTooltip:t,delayDuration:n=W6,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:l}=e,c=b.useRef(!0),d=b.useRef(!1),f=b.useRef(0);return b.useEffect(()=>{const p=f.current;return()=>window.clearTimeout(p)},[]),S.jsx(J6,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(f.current),c.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.current=!0,s)},[s]),isPointerInTransitRef:d,onPointerInTransitChange:b.useCallback(p=>{d.current=p},[]),disableHoverableContent:a,children:l})};DE.displayName=ME;var NE="Tooltip",[mF,Dd]=Od(NE),xm="TooltipTrigger",e5=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=Dd(xm,n),l=OE(xm,n),c=Dg(n),d=b.useRef(null),f=Bt(t,d,a.onTriggerChange),p=b.useRef(!1),y=b.useRef(!1),m=b.useCallback(()=>p.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),S.jsx(EE,{asChild:!0,...c,children:S.jsx(Nt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:f,onPointerMove:Ae(e.onPointerMove,v=>{v.pointerType!=="touch"&&!y.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),y.current=!0)}),onPointerLeave:Ae(e.onPointerLeave,()=>{a.onTriggerLeave(),y.current=!1}),onPointerDown:Ae(e.onPointerDown,()=>{a.open&&a.onClose(),p.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Ae(e.onFocus,()=>{p.current||a.onOpen()}),onBlur:Ae(e.onBlur,a.onClose),onClick:Ae(e.onClick,a.onClose)})})});e5.displayName=xm;var t5="TooltipPortal",[gF,n5]=Od(t5,{forceMount:void 0}),Ua="TooltipContent",r5=b.forwardRef((e,t)=>{const n=n5(Ua,e.__scopeTooltip),{forceMount:s=n.forceMount,side:a="top",...l}=e,c=Dd(Ua,e.__scopeTooltip);return S.jsx(Ka,{present:s||c.open,children:c.disableHoverableContent?S.jsx(PE,{side:a,...l,ref:t}):S.jsx(s5,{side:a,...l,ref:t})})}),s5=b.forwardRef((e,t)=>
vendor: 2,699 bytes, line 51
51{const n=Dd(Ua,e.__scopeTooltip),s=OE(Ua,e.__scopeTooltip),a=b.useRef(null),l=Bt(t,a),[c,d]=b.useState(null),{trigger:f,onClose:p}=n,y=a.current,{onPointerInTransitChange:m}=s,v=b.useCallback(()=>{d(null),m(!1)},[m]),x=b.useCallback((_,E)=>{const T=_.currentTarget,C={x:_.clientX,y:_.clientY},k=c5(C,T.getBoundingClientRect()),R=u5(C,k),M=d5(E.getBoundingClientRect()),j=h5([...R,...M]);d(j),m(!0)},[m]);return b.useEffect(()=>()=>v(),[v]),b.useEffect(()=>{if(f&&y){const _=T=>x(T,y),E=T=>x(T,f);return f.addEventListener("pointerleave",_),y.addEventListener("pointerleave",E),()=>{f.removeEventListener("pointerleave",_),y.removeEventListener("pointerleave",E)}}},[f,y,x,v]),b.useEffect(()=>{if(c){const _=E=>{const T=E.target,C={x:E.clientX,y:E.clientY},k=f?.contains(T)||y?.contains(T),R=!f5(C,c);k?v():R&&(v(),p())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[f,y,c,p,v]),S.jsx(PE,{...e,ref:l})}),[i5,a5]=Od(NE,{isInside:!1}),o5=h3("TooltipContent"),PE=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,f=Dd(Ua,n),p=Dg(n),{onClose:y}=f;return b.useEffect(()=>(document.addEventListener(Ix,y),()=>document.removeEventListener(Ix,y)),[y]),b.useEffect(()=>{if(f.trigger){const m=v=>{v.target?.contains(f.trigger)&&y()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[f.trigger,y]),S.jsx(_g,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:m=>m.preventDefault(),onDismiss:y,children:S.jsxs(TE,{"data-state":f.stateAttribute,...p,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[S.jsx(o5,{children:s}),S.jsx(i5,{scope:n,isInside:!0,children:S.jsx(X6,{id:f.contentId,role:"tooltip",children:a||s})})]})})});r5.displayName=Ua;var jE="TooltipArrow",l5=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=Dg(n);return a5(jE,n).isInside?null:S.jsx(AE,{...a,...s,ref:t})});l5.displayName=jE;function c5(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,s,a,l)){case l:return"left";case a:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function u5(e,t,n=5){const s=[];
vendor: 9,889 bytes, line 51
51switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function d5(e){const{top:t,right:n,bottom:s,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:s},{x:a,y:s}]}function f5(e,t){const{x:n,y:s}=e;let a=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l],f=t[c],p=d.x,y=d.y,m=f.x,v=f.y;y>s!=v>s&&n<(m-p)*(s-y)/(v-y)+p&&(a=!a)}return a}function h5(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),p5(t)}function p5(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const l=t[t.length-1],c=t[t.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;n.length>=2;){const l=n[n.length-1],c=n[n.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var m5=DE;function zE(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=zE(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function LE(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=zE(e))&&(s&&(s+=" "),s+=t);return s}const g5=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},y5=(e,t)=>({classGroupId:e,validator:t}),UE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),nd="-",Bx=[],v5="arbitrary..",b5=e=>{const t=x5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return w5(c);const d=c.split(nd),f=d[0]===""&&d.length>1?1:0;return IE(d,f,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const f=s[c],p=n[c];return f?p?g5(p,f):f:p||Bx}return n[c]||Bx}}},IE=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],l=n.nextPart.get(a);if(l){const p=IE(e,t+1,l);if(p)return p}const c=n.validators;if(c===null)return;const d=t===0?e.join(nd):e.slice(t).join(nd),f=c.length;for(let p=0;p<f;p++){const y=c[p];if(y.validator(d))return y.classGroupId}},w5=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?v5+s:void 0})(),x5=e=>{const{theme:t,classGroups:n}=e;return S5(n,t)},S5=(e,t)=>{const n=UE();for(const s in e){const a=e[s];Ng(a,n,s,t)}return n},Ng=(e,t,n,s)=>{const a=e.length;for(let l=0;l<a;l++){const c=e[l];_5(c,t,n,s)}},_5=(e,t,n,s)=>{if(typeof e=="string"){E5(e,t,n);return}if(typeof e=="function"){T5(e,t,n,s);return}A5(e,t,n,s)},E5=(e,t,n)=>{const s=e===""?t:BE(t,e);s.classGroupId=n},T5=(e,t,n,s)=>{if(C5(e)){Ng(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(y5(n,e))},A5=(e,t,n,s)=>{const a=Object.entries(e),l=a.length;for(let c=0;c<l;c++){const[d,f]=a[c];Ng(f,BE(t,d),n,s)}},BE=(e,t)=>{let n=e;const s=t.split(nd),a=s.length;for(let l=0;l<a;l++){const c=s[l];let d=n.nextPart.get(c);d||(d=UE(),n.nextPart.set(c,d)),n=d}return n},C5=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,R5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const a=(l,c)=>{n[l]=c,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=s[l])!==void 0)return a(l,c),c},set(l,c){l in n?n[l]=c:a(l,c)}}},Sm="!",Vx=":",k5=[],$x=(e,t,n,s,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:a}),M5=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=a=>{const l=[];let c=0,d=0,f=0,p;const y=a.length;for(let E=0;E<y;E++){const T=a[E];if(c===0&&d===0){if(T===Vx){l.push(a.slice(f,E)),f=E+1;continue}if(T==="/"){p=E;continue}}T==="["?c++:T==="]"?c--:T==="("?d++:T===")"&&d--}const m=l.length===0?a:a.slice(f);let v=m,x=!1;m.endsWith(Sm)?(v=m.slice(0,-1),x=!0):m.startsWith(Sm)&&(v=m.slice(1),x=!0);const _=p&&p>f?p-f:void 0;return $x(l,x,v,_)};if(t){const a=t+Vx,l=s;s=c=>c.startsWith(a)?l(c.slice(a.length)):$x(k5,!1,c,void 0,!0)}if(n){const a=s;s=l=>n({className:l,parseClassName:a})}return s},O5=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let a=[];for(let l=0;l<n.length;l++){const c=n[l],d=c[0]==="[",f=t.has(c);d||f?(a.length>0&&(a.sort(),s.push(...a),a=[]),s.push(c)):a.push(c)}return a.length>0&&(a.sort(),s.push(...a)),s}},D5=e=>({cache:R5(e.cacheSize),parseClassName:M5(e),sortModifiers:O5(e),...b5(e)}),N5=/\s+/,P5=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:a,sortModifiers:l}=t,c=[],d=e.trim().split(N5);let f="";for(let p=d.length-1;p>=0;p-=1){const y=d[p],{isExternal:m,modifiers:v,hasImportantModifier:x,baseClassName:_,maybePostfixModifierPosition:E}=n(y);if(m){f=y+(f.length>0?" "+f:f);continue}let T=!!E,C=s(T?_.substring(0,E):_);if(!C){if(!T){f=y+(f.length>0?" "+f:f);continue}if(C=s(_),!C){f=y+(f.length>0?" "+f:f);continue}T=!1}const k=v.length===0?"":v.length===1?v[0]:l(v).join(":"),R=x?k+Sm:k,M=R+C;if(c.indexOf(M)>-1)continue;c.push(M);const j=a(C,T);for(let U=0;U<j.length;++U){const I=j[U];c.push(R+I)}f=y+(f.length>0?" "+f:f)}return f},j5=(...e)=>{let t=0,n,s,a="";for(;t<e.length;)(n=e[t++])&&(s=VE(n))&&(a&&(a+=" "),a+=s);return a},VE=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=VE(e[s]))&&(n&&(n+=" "),n+=t);return n},z5=(e,...t)=>{let n,s,a,l;const c=f=>{const p=t.reduce((y,m)=>m(y),e());return n=D5(p),s=n.cache.get,a=n.cache.set,l=d,d(f)},d=f=>{const p=s(f);if(p)return p;const y=P5(f,n);return a(f,y),y};return l=c,(...f)=>l(j5(...f))},L5=[],gt=e=>{const t=n=>n[e]||L5;return t.isThemeGetter=!0,t},$E=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,U5=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,I5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B5=/\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$/,V5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ks=e=>U5.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),Ms=e=>!!e&&Number.isInteger(Number(e)),Ep=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),Zr=e=>I5.test(e),HE=()=>!0,H5=e=>B5.test(e)&&!V5.test(e),Pg=()=>!1,F5=e=>$5.test(e),Q5=e=>q5.test(e),Z5=e=>!ce(e)&&!fe(e),G5=e=>qs(e,ZE,Pg),ce=e=>$E.test(e),mi=e=>qs(e,GE,H5),qx=e=>qs(e,nU,Ce),K5=e=>qs(e,YE,HE),Y5=e=>qs(e,KE,Pg),Hx=e=>qs(e,FE,Pg),X5=e=>qs(e,QE,Q5),du=e=>qs(e,XE,F5),fe=e=>qE.test(e),Wo=e=>ki(e,GE),W5=e=>ki(e,KE),Fx=e=>ki(e,FE),J5=e=>ki(e,ZE),eU=e=>ki(e,QE),fu=e=>ki(e,XE,!0),tU=e=>ki(e,YE,!0),qs=(e,t,n)=>{const s=$E.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},ki=(e,t,n=!1)=>{const s=qE.exec(e);return s?s[1]?t(s[1]):n:!1},FE=e=>e==="position"||e==="percentage",QE=e=>e==="image"||e==="url",ZE=e=>e==="length"||e==="size"||e==="bg-size",GE=e=>e==="length",nU=e=>e==="number",KE=e=>e==="family-name",YE=e=>e==="number"||e==="weight",XE=e=>e==="shadow",rU=()=>{const e=gt("color"),t=gt("font"),n=gt("text"),s=gt("font-weight"),a=gt("tracking"),l=gt("leading"),c=gt("breakpoint"),d=gt("container"),f=gt("spacing"),p=gt("radius"),y=gt("shadow"),m=gt("inset-shadow"),v=gt("text-shadow"),x=gt("drop-shadow"),_=gt("blur"),E=gt("perspective"),T=gt("aspect"),C=gt("ease"),k=gt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...M(),fe,ce],U=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],z=()=>[fe,ce,f],K=()=>[ks,"full","auto",...z()],ee=()=>[Ms,"none","subgrid",fe,ce],ie=()=>["auto",{span:["full",Ms,fe,ce]},Ms,fe,ce],ae=()=>[Ms,"auto",fe,ce],pe=()=>["auto","min","max","fr",fe,ce],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...z()],Q=()=>[ks,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],Z=()=>[ks,"screen","full","dvw","lvw","svw","min","max","fit",...z()],J=()=>[ks,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],Y=()=>[e,fe,ce],D=()=>[...M(),Fx,Hx,{position:[fe,ce]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",J5,G5,{size:[fe,ce]}],re=()=>[Ep,Wo,mi],se=()=>["","none","full",p,fe,ce],oe=()=>["",Ce,Wo,mi],he=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Ce,Ep,Fx,Hx],Vt=()=>["","none",_,fe,ce],Pt=()=>["none",Ce,fe,ce],Et=()=>["none",Ce,fe,ce],fn=()=>[Ce,fe,ce],jt=()=>[ks,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zr],breakpoint:[Zr],color:[HE],container:[Zr],"drop-shadow":[Zr],ease:["in","out","in-out"],font:[Z5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zr],shadow:[Zr],spacing:["px",Ce],text:[Zr],"text-shadow":[Zr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ks,ce,fe,T]}
vendor: 6,111 bytes, line 51
51],container:["container"],columns:[{columns:[Ce,ce,fe,d]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Ms,"auto",fe,ce]}],basis:[{basis:[ks,"full","auto",d,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,ks,"auto","initial","none",ce]}],grow:[{grow:["",Ce,fe,ce]}],shrink:[{shrink:["",Ce,fe,ce]}],order:[{order:[Ms,"first","last","none",fe,ce]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[d,"screen",...Q()]}],"min-w":[{"min-w":[d,"screen","none",...Q()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,Wo,mi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,tU,K5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ep,ce]}],"font-family":[{font:[W5,Y5,t]}],"font-features":[{"font-features":[ce]}],"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:[a,fe,ce]}],"line-clamp":[{"line-clamp":[Ce,"none",fe,qx]}],leading:[{leading:[l,...z()]}],"list-image":[{"list-image":["none",fe,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",fe,mi]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ce,"auto",fe,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ms,fe,ce],radial:["",fe,ce],conic:[Ms,fe,ce]},eU,X5]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:re()}
vendor: 7,402 bytes, line 51
51],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,fe,ce]}],"outline-w":[{outline:["",Ce,Wo,mi]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",y,fu,du]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",m,fu,du]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ce,mi]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",v,fu,du]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ce,fe,ce]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[fe,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,ce]}],filter:[{filter:["","none",fe,ce]}],blur:[{blur:Vt()}],brightness:[{brightness:[Ce,fe,ce]}],contrast:[{contrast:[Ce,fe,ce]}],"drop-shadow":[{"drop-shadow":["","none",x,fu,du]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ce,fe,ce]}],"hue-rotate":[{"hue-rotate":[Ce,fe,ce]}],invert:[{invert:["",Ce,fe,ce]}],saturate:[{saturate:[Ce,fe,ce]}],sepia:[{sepia:["",Ce,fe,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,ce]}],"backdrop-blur":[{"backdrop-blur":Vt()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,fe,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,fe,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,fe,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,fe,ce]}],"backdrop-invert":[{"backdrop-invert":["",Ce,fe,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,fe,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,fe,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,fe,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",fe,ce]}],ease:[{ease:["linear","initial",C,fe,ce]}],delay:[{delay:[Ce,fe,ce]}],animate:[{animate:["none",k,fe,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,fe,ce]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:Pt()}],"rotate-x":[{"rotate-x":Pt()}],"rotate-y":[{"rotate-y":Pt()}],"rotate-z":[{"rotate-z":Pt()}],scale:[{scale:Et()}],"scale-x":[{"scale-x":Et()}],"scale-y":[{"scale-y":Et()}],"scale-z":[{"scale-z":Et()}],"scale-3d":["scale-3d"],skew:[{skew:fn()}],"skew-x":[{"skew-x":fn()}],"skew-y":[{"skew-y":fn()}],transform:[{transform:[fe,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:jt()}],"translate-x":[{"translate-x":jt()}],"translate-y":[{"translate-y":jt()}],"translate-z":[{"translate-z":jt()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}
vendor: 5,742 bytes, line 51
51],"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",fe,ce]}],"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":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",fe,ce]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ce,Wo,mi,qx]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sU=z5(rU);function Ln(...e){return sU(LE(e))}function iU({delayDuration:e=0,...t}){return S.jsx(m5,{"data-hercules-id":"src/components/ui/tooltip.tsx:11:4","data-hercules-name":"TooltipPrimitive.Provider","data-slot":"tooltip-provider",delayDuration:e,...t})}function aU({children:e}){return S.jsx(Tz,{"data-hercules-id":"src/components/providers/default.tsx:10:4","data-hercules-name":"AuthProvider",children:S.jsx(Z4,{"data-hercules-id":"src/components/providers/default.tsx:11:6","data-hercules-name":"ConvexProvider",children:S.jsx(TL,{"data-hercules-id":"src/components/providers/default.tsx:12:8","data-hercules-name":"QueryClientProvider",children:S.jsx(iU,{"data-hercules-id":"src/components/providers/default.tsx:13:10","data-hercules-name":"TooltipProvider",children:S.jsxs(zL,{"data-hercules-id":"src/components/providers/default.tsx:14:12","data-hercules-name":"ThemeProvider",children:[S.jsx(u3,{"data-hercules-id":"src/components/providers/default.tsx:15:14","data-hercules-name":"Toaster"}),e]})})})})})}
51function WE(e,t){const n={get(s,a){if(typeof a=="string"){const l=[...t,a];return WE(e,l)}else if(a===U1){if(t.length<1){const l=[e,...t].join(".");throw new Error(`API path is expected to be of the form \`${e}.childComponent.functionName\`. Found: \`${l}\``)}return"_reference/childComponent/"+t.join("/")}else return}};return new Proxy({},n)}const oU=()=>WE("components",[]),JE=Iz;oU();const eT=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();const lU=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const cU=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());const Qx=e=>{const t=cU(e);return t.charAt(0).toUpperCase()+t.slice(1)};var uU={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const dU=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const fU=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:l,iconNode:c,...d},f)=>b.createElement("svg",{ref:f,...uU,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:eT("lucide",a),...!l&&!dU(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,y])=>b.createElement(p,y)),...Array.isArray(l)?l:[l]]));const _t=(e,t)=>{const n=b.forwardRef(({className:s,...a},l)=>b.createElement(fU,{ref:l,iconNode:t,className:eT(`lucide-${lU(Qx(e))}`,`lucide-${e}`,s),...a}
vendor: 4,751 bytes, line 51
51));return n.displayName=Qx(e),n};const hU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],tT=_t("chevron-down",hU);const pU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],mU=_t("clock",pU);const gU=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],yU=_t("credit-card",gU);const vU=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],bU=_t("library",vU);const wU=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nT=_t("loader-circle",wU);const xU=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],SU=_t("log-in",xU);const _U=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],_m=_t("log-out",_U);const EU=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],rT=_t("menu",EU);const TU=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],AU=_t("monitor",TU);const CU=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jg=_t("play",CU);const RU=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],kU=_t("search",RU);const MU=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sT=_t("settings",MU);const OU=[["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"}]],Ru=_t("shield",OU);const DU=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],NU=_t("smartphone",DU);const PU=[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]],jU=_t("tv",PU);const zU=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Tp=_t("user-plus",zU);const LU=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],iT=_t("x",LU);const UU=[["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"}]],IU=_t("zap",UU);function BU({className:e,...t}){return S.jsx(nT,{"data-hercules-id":"src/components/ui/spinner.tsx:6:4","data-hercules-name":"Loader2Icon",role:"status","aria-label":"Loading",className:Ln("size-4 animate-spin",e),...t})}var VU=Symbol.for("react.lazy"),rd=Wm[" use ".trim().toString()];function $U(e){return typeof e=="object"&&e!==null&&"then"in e}function aT(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===VU&&"_payload"in e&&$U(e._payload)}function qU(e){const t=FU(e),n=b.forwardRef((s,a)=>{let{children:l,...c}=s;aT(l)&&typeof rd=="function"&&(l=rd(l._payload));const d=b.Children.toArray(l),f=d.find(ZU);if(f){const p=f.props.children,y=d.map(m=>m===f?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);return S.jsx(t,{...c,ref:a,children:b.isValidElement(p)?b.cloneElement(p,void 0,y):null})}return S.jsx(t,{...c,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}var HU=qU("Slot");function FU(e){const t=b.forwardRef((n,s)=>{let{children:a,...l}=n;if(aT(a)&&typeof rd=="function"&&(a=rd(a._payload)),b.isValidElement(a)){const c=KU(a),d=GU(l,a.props);return a.type!==b.Fragment&&(d.ref=s?Dl(s,c):c),b.cloneElement(a,d)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QU=Symbol("radix.slottable");function ZU(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QU}function GU(e,t){const n={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?n[s]=(...d)=>{const f=l(...d);return a(...d),f}:a&&(n[s]=a):s==="style"?n[s]={...a,...l}
51:s==="className"&&(n[s]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function KU(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Zx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gx=LE,YU=(e,t)=>n=>{var s;if(t?.variants==null)return Gx(e,n?.class,n?.className);const{variants:a,defaultVariants:l}=t,c=Object.keys(a).map(p=>{const y=n?.[p],m=l?.[p];if(y===null)return null;const v=Zx(y)||Zx(m);return a[p][v]}),d=n&&Object.entries(n).reduce((p,y)=>{let[m,v]=y;return v===void 0||(p[m]=v),p},{}),f=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((p,y)=>{let{class:m,className:v,...x}=y;return Object.entries(x).every(_=>{let[E,T]=_;return Array.isArray(T)?T.includes({...l,...d}[E]):{...l,...d}[E]===T})?[...p,m,v]:p},[]);return Gx(e,c,f,n?.class,n?.className)},XU=YU("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function xr({className:e,variant:t,size:n,asChild:s=!1,...a}){const l=s?HU:"button";return S.jsx(l,{"data-hercules-id":"src/components/ui/button.tsx:51:4","data-hercules-name":"Comp","data-slot":"button",className:Ln(XU({variant:t,size:n,className:e})),...a})}const WU="j977y5239ddz36fx3phdgzjqg9854wsn",Us=`/movie/${WU}`;function JU(){const e=Ha(),{isAuthenticated:t}=Ed(),n=D4(JE.users.updateCurrentUser),s=b.useCallback(async()=>{await n()},[n]),a=b.useCallback(()=>e("/",{replace:!0}),[e]),l=b.useCallback(()=>e(Us,{replace:!0}),[e]),{status:c,error:d,retry:f}=wz({isBackendAuthenticated:t,onSync:s,onSuccess:l,onNoAuthParams:l});return c==="error"&&d?S.jsxs("div",{"data-hercules-id":"src/pages/auth/Callback.tsx:38:6","data-hercules-name":"div",className:"flex flex-col items-center justify-center h-svh gap-6 px-4",children:[S.jsxs("div",{"data-hercules-id":"src/pages/auth/Callback.tsx:39:8","data-hercules-name":"div",className:"flex flex-col items-center gap-2 text-center",children:[S.jsx("p",{"data-hercules-id":"src/pages/auth/Callback.tsx:40:10","data-hercules-name":"p",className:"text-destructive font-medium",children:"Something went wrong"}),S.jsx("p",{"data-hercules-id":"src/pages/auth/Callback.tsx:41:10","data-hercules-name":"p",className:"text-sm text-muted-foreground max-w-md",children:d})]}),S.jsxs("div",{"data-hercules-id":"src/pages/auth/Callback.tsx:43:8","data-hercules-name":"div",className:"flex gap-3",children:[S.jsx(xr,{"data-hercules-id":"src/pages/auth/Callback.tsx:44:10","data-hercules-name":"Button",variant:"secondary",onClick:a,children:"Return home"}),S.jsx(xr,{"data-hercules-id":"src/pages/auth/Callback.tsx:47:10","data-hercules-name":"Button",onClick:f,children:"Try again"})]})]}):S.jsxs("div",{"data-hercules-id":"src/pages/auth/Callback.tsx:54:4","data-hercules-name":"div",className:"flex flex-col items-center justify-center h-svh gap-4",children:[S.jsx(BU,{"data-hercules-id":"src/pages/auth/Callback.tsx:55:6","data-hercules-name":"Spinner",className:"size-8"}),S.jsx("p",{"data-hercules-id":"src/pages/auth/Callback.tsx:56:6","data-hercules-name":"p",className:"text-sm text-muted-foreground",children:"Loading..."})]})}const Kr=b.forwardRef(({onClick:e,disabled:t,showIcon:n=!0,signInText:s="Sign In",signOutText:a="Sign Out",loadingText:l,className:c,variant:d,size:f,asChild:p=!1,...y},m)=>{const{isAuthenticated:v,signinRedirect:x,removeUser:_,isLoading:E,error:T}=vd();b.useEffect(()=>{T&&(W1.error("Login error",{description:T.message}),console.error("Login error",T))},[T]);const C=b.useCallback(async I=>{e?.(I);try{v?await _():await x()}catch(z){console.error("Authentication error:",z)}},[v,_,x,e]),k=t||E,j=E?l||(v?"Signing Out...":"Signing In..."):v?a:s,U=E?S.jsx(nT,{"data-hercules-id":"src/components/ui/signin.tsx:108:6","data-hercules-name":"Loader2",className:"size-4 animate-spin"}):v?S.jsx(_m,{"data-hercules-id":"src/components/ui/signin.tsx:110:6","data-hercules-name":"LogOut",className:"size-4"}):S.jsx(SU,{"data-hercules-id":"src/components/ui/signin.tsx:112:6","data-hercules-name":"LogIn",className:"size-4"});return S.jsxs(xr,{"data-hercules-id":"src/components/ui/signin.tsx:116:6","data-hercules-name":"Button",ref:m,onClick:C,disabled:k,variant:d,size:f,className:c,asChild:p,"aria-label":v?"Sign out of your account":"Sign in to your account","aria-describedby":T?"auth-error":void 0,...y,children:[n&&U,j]})});
vendor: 41,628 bytes, line 51
51Kr.displayName="SignInButton";const zg=b.createContext({});function Lg(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const eI=typeof window<"u",oT=eI?b.useLayoutEffect:b.useEffect,Nd=b.createContext(null);function Ug(e,t){e.indexOf(t)===-1&&e.push(t)}function sd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Er=(e,t,n)=>n>t?t:n<e?e:n;let Ig=()=>{};const Is={},lT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function cT(e){return typeof e=="object"&&e!==null}const uT=e=>/^0[^.\s]+$/u.test(e);function dT(e){let t;return()=>(t===void 0&&(t=e()),t)}const In=e=>e,tI=(e,t)=>n=>t(e(n)),Pl=(...e)=>e.reduce(tI),El=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class Bg{constructor(){this.subscriptions=[]}add(t){return Ug(this.subscriptions,t),()=>sd(this.subscriptions,t)}notify(t,n,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,s);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _n=e=>e*1e3,Un=e=>e/1e3;function fT(e,t){return t?e*(1e3/t):0}const hT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nI=1e-7,rI=12;function sI(e,t,n,s,a){let l,c,d=0;do c=t+(n-t)/2,l=hT(c,s,a)-e,l>0?n=c:t=c;while(Math.abs(l)>nI&&++d<rI);return c}function jl(e,t,n,s){if(e===t&&n===s)return In;const a=l=>sI(l,0,1,e,n);return l=>l===0||l===1?l:hT(a(l),t,s)}const pT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mT=e=>t=>1-e(1-t),gT=jl(.33,1.53,.69,.99),Vg=mT(gT),yT=pT(Vg),vT=e=>e>=1?1:(e*=2)<1?.5*Vg(e):.5*(2-Math.pow(2,-10*(e-1))),$g=e=>1-Math.sin(Math.acos(e)),bT=mT($g),wT=pT($g),iI=jl(.42,0,1,1),aI=jl(0,0,.58,1),xT=jl(.42,0,.58,1),oI=e=>Array.isArray(e)&&typeof e[0]!="number",ST=e=>Array.isArray(e)&&typeof e[0]=="number",lI={linear:In,easeIn:iI,easeInOut:xT,easeOut:aI,circIn:$g,circInOut:wT,circOut:bT,backIn:Vg,backInOut:yT,backOut:gT,anticipate:vT},cI=e=>typeof e=="string",Kx=e=>{if(ST(e)){Ig(e.length===4);const[t,n,s,a]=e;return jl(t,n,s,a)}else if(cI(e))return lI[e];return e},hu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uI(e,t){let n=new Set,s=new Set,a=!1,l=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function f(y){c.has(y)&&(p.schedule(y),e()),y(d)}const p={schedule:(y,m=!1,v=!1)=>{const _=v&&a?n:s;return m&&c.add(y),_.add(y),y},cancel:y=>{s.delete(y),c.delete(y)},process:y=>{if(d=y,a){l=!0;return}a=!0;const m=n;n=s,s=m,n.forEach(f),n.clear(),a=!1,l&&(l=!1,p.process(y))}};return p}const dI=40;function _T(e,t){let n=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=hu.reduce((R,M)=>(R[M]=uI(l),R),{}),{setup:d,read:f,resolveKeyframes:p,preUpdate:y,update:m,preRender:v,render:x,postRender:_}=c,E=()=>{const R=Is.useManualTiming,M=R?a.timestamp:performance.now();n=!1,R||(a.delta=s?1e3/60:Math.max(Math.min(M-a.timestamp,dI),1)),a.timestamp=M,a.isProcessing=!0,d.process(a),f.process(a),p.process(a),y.process(a),m.process(a),v.process(a),x.process(a),_.process(a),a.isProcessing=!1,n&&t&&(s=!1,e(E))},T=()=>{n=!0,s=!0,a.isProcessing||e(E)};return{schedule:hu.reduce((R,M)=>{const j=c[M];return R[M]=(U,I=!1,z=!1)=>(n||T(),j.schedule(U,I,z)),R},{}),cancel:R=>{for(let M=0;M<hu.length;M++)c[hu[M]].cancel(R)},state:a,steps:c}}const{schedule:He,cancel:Bs,state:Mt,steps:Ap}=_T(typeof requestAnimationFrame<"u"?requestAnimationFrame:In,!0);let ku;function fI(){ku=void 0}const Kt={now:()=>(ku===void 0&&Kt.set(Mt.isProcessing||Is.useManualTiming?Mt.timestamp:performance.now()),ku),set:e=>{ku=e,queueMicrotask(fI)}},ET=e=>t=>typeof t=="string"&&t.startsWith(e),TT=ET("--"),hI=ET("var(--"),qg=e=>hI(e)?pI.test(e.split("/*")[0].trim()):!1,pI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Yx(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ya={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tl={...Ya,transform:e=>Er(0,1,e)},pu={...Ya,default:1},ol=e=>Math.round(e*1e5)/1e5,Hg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mI(e){return e==null}const gI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fg=(e,t)=>n=>!!(typeof n=="string"&&gI.test(n)&&n.startsWith(e)||t&&!mI(n)&&Object.prototype.hasOwnProperty.call(n,t)),AT=(e,t,n)=>s=>{if(typeof s!="string")return s;const[a,l,c,d]=s.match(Hg);return{[e]:parseFloat(a),[t]:parseFloat(l),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},yI=e=>Er(0,255,e),Cp={...Ya,transform:e=>Math.round(yI(e))},vi={test:Fg("rgb","red"),parse:AT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Cp.transform(e)+", "+Cp.transform(t)+", "+Cp.transform(n)+", "+ol(Tl.transform(s))+")"};function vI(e){let t="",n="",s="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,s+=s,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const Em={test:Fg("#"),parse:vI,transform:vi.transform},zl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Os=zl("deg"),Sr=zl("%"),ue=zl("px"),bI=zl("vh"),wI=zl("vw"),Xx={...Sr,parse:e=>Sr.parse(e)/100,transform:e=>Sr.transform(e*100)},Ra={test:Fg("hsl","hue"),parse:AT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Sr.transform(ol(t))+", "+Sr.transform(ol(n))+", "+ol(Tl.transform(s))+")"},ht={test:e=>vi.test(e)||Em.test(e)||Ra.test(e),parse:e=>vi.test(e)?vi.parse(e):Ra.test(e)?Ra.parse(e):Em.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vi.transform(e):Ra.transform(e),getAnimatableNone:e=>{const t=ht.parse(e);return t.alpha=0,ht.transform(t)}},xI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function SI(e){return isNaN(e)&&typeof e=="string"&&(e.match(Hg)?.length||0)+(e.match(xI)?.length||0)>0}const CT="number",RT="color",_I="var",EI="var(",Wx="${}",TI=/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 Ia(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},a=[];let l=0;const d=t.replace(TI,f=>(ht.test(f)?(s.color.push(l),a.push(RT),n.push(ht.parse(f))):f.startsWith(EI)?(s.var.push(l),a.push(_I),n.push(f)):(s.number.push(l),a.push(CT),n.push(parseFloat(f))),++l,Wx)).split(Wx);return{values:n,split:d,indexes:s,types:a}}function AI(e){return Ia(e).values}function kT({split:e,types:t}){const n=e.length;return s=>{let a="";for(let l=0;l<n;l++)if(a+=e[l],s[l]!==void 0){const c=t[l];c===CT?a+=ol(s[l]):c===RT?a+=ht.transform(s[l]):a+=s[l]}return a}}function CI(e){return kT(Ia(e))}const RI=e=>typeof e=="number"?0:ht.test(e)?ht.getAnimatableNone(e):e,kI=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:RI(e);function MI(e){const t=Ia(e);return kT(t)(t.values.map((s,a)=>kI(s,t.split[a])))}const er={test:SI,parse:AI,createTransformer:CI,getAnimatableNone:MI};function Rp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OI({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let a=0,l=0,c=0;if(!t)a=l=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;a=Rp(f,d,e+1/3),l=Rp(f,d,e),c=Rp(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function id(e,t){return n=>n>0?t:e}const Ze=(e,t,n)=>e+(t-e)*n,kp=(e,t,n)=>{const s=e*e,a=n*(t*t-s)+s;return a<0?0:Math.sqrt(a)},DI=[Em,vi,Ra],NI=e=>DI.find(t=>t.test(e));function Jx(e){const t=NI(e);if(!t)return!1;let n=t.parse(e);return t===Ra&&(n=OI(n)),n}const eS=(e,t)=>{const n=Jx(e),s=Jx(t);if(!n||!s)return id(e,t);const a={...n};return l=>(a.red=kp(n.red,s.red,l),a.green=kp(n.green,s.green,l),a.blue=kp(n.blue,s.blue,l),a.alpha=Ze(n.alpha,s.alpha,l),vi.transform(a))},Tm=new Set(["none","hidden"]);function PI(e,t){return Tm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jI(e,t){return n=>Ze(e,t,n)}function Qg(e){return typeof e=="number"?jI:typeof e=="string"?qg(e)?id:ht.test(e)?eS:UI:Array.isArray(e)?MT:typeof e=="object"?ht.test(e)?eS:zI:id}function MT(e,t){const n=[...e],s=n.length,a=e.map((l,c)=>Qg(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)n[c]=a[c](l);return n}}function zI(e,t){const n={...e,...t},s={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(s[a]=Qg(e[a])(e[a],t[a]));return a=>{for(const l in s)n[l]=s[l](a);return n}}function LI(e,t){const n=[],s={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],c=e.indexes[l][s[l]],d=e.values[c]??0;n[a]=d,s[l]++}return n}const UI=(e,t)=>{const n=er.createTransformer(t),s=Ia(e),a=Ia(t);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?Tm.has(e)&&!a.values.length||Tm.has(t)&&!s.values.length?PI(e,t):Pl(MT(LI(s,a),a.values),n):id(e,t)};function OT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ze(e,t,n):Qg(e)(e,t)}const II=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>He.update(t,n),stop:()=>Bs(t),now:()=>Mt.isProcessing?Mt.timestamp:Kt.now()}},DT=(e,t,n=10)=>{let s="";const a=Math.max(Math.round(t/n),2);for(let l=0;l<a;l++)s+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ad=2e4;function Zg(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<ad;)t+=n,s=e.next(t);return t>=ad?1/0:t}function BI(e,t=100,n){const s=n({...e,keyframes:[0,t]}),a=Math.min(Zg(s),ad);return{type:"keyframes",ease:l=>s.next(a*l).value/t,duration:Un(a)}}const nt={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};function Am(e,t){return e*Math.sqrt(1-t*t)}const VI=12;function $I(e,t,n){let s=n;for(let a=1;a<VI;a++)s=s-e(s)/t(s);return s}const Mp=.001;function qI({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:s=nt.mass}){let a,l,c=1-t;c=Er(nt.minDamping,nt.maxDamping,c),e=Er(nt.minDuration,nt.maxDuration,Un(e)),c<1?(a=p=>{const y=p*c,m=y*e,v=y-n,x=Am(p,c),_=Math.exp(-m);return Mp-v/x*_},l=p=>{const m=p*c*e,v=m*n+n,x=Math.pow(c,2)*Math.pow(p,2)*e,_=Math.exp(-m),E=Am(Math.pow(p,2),c);return(-a(p)+Mp>0?-1:1)*((v-x)*_)/E}):(a=p=>{const y=Math.exp(-p*e),m=(p-n)*e+1;return-Mp+y*m},l=p=>{const y=Math.exp(-p*e),m=(n-p)*(e*e);return y*m});const d=5/e,f=$I(a,l,d);if(e=_n(e),isNaN(f))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const p=Math.pow(f,2)*s;return{stiffness:p,damping:c*2*Math.sqrt(s*p),duration:e}}}const HI=["duration","bounce"],FI=["stiffness","damping","mass"];function tS(e,t){return t.some(n=>e[n]!==void 0)}function QI(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!tS(e,FI)&&tS(e,HI))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),a=s*s,l=2*Er(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:nt.mass,stiffness:a,damping:l}}else{const n=qI({...e,velocity:0});t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function od(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:a}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:p,mass:y,duration:m,velocity:v,isResolvedFromDuration:x}=QI({...n,velocity:-Un(n.velocity||0)}),_=v||0,E=p/(2*Math.sqrt(f*y)),T=c-l,C=Un(Math.sqrt(f/y)),k=Math.abs(T)<5;s||(s=k?nt.restSpeed.granular:nt.restSpeed.default),a||(a=k?nt.restDelta.granular:nt.restDelta.default);let R,M,j,U,I,z;if(E<1)j=Am(C,E),U=(_+E*C*T)/j,R=ee=>{const ie=Math.exp(-E*C*ee);return c-ie*(U*Math.sin(j*ee)+T*Math.cos(j*ee))},I=E*C*U+T*j,z=E*C*T-U*j,M=ee=>Math.exp(-E*C*ee)*(I*Math.sin(j*ee)+z*Math.cos(j*ee));else if(E===1){R=ie=>c-Math.exp(-C*ie)*(T+(_+C*T)*ie);const ee=_+C*T;M=ie=>Math.exp(-C*ie)*(C*ee*ie-_)}else{const ee=C*Math.sqrt(E*E-1);R=me=>{const de=Math.exp(-E*C*me),N=Math.min(ee*me,300);return c-de*((_+E*C*T)*Math.sinh(N)+ee*T*Math.cosh(N))/ee};const ie=(_+E*C*T)/ee,ae=E*C*ie-T*ee,pe=E*C*T-ie*ee;M=me=>{const de=Math.exp(-E*C*me),N=Math.min(ee*me,300);return de*(ae*Math.sinh(N)+pe*Math.cosh(N))}}const K={calculatedDuration:x&&m||null,velocity:ee=>_n(M(ee)),next:ee=>{if(!x&&E<1){const ae=Math.exp(-E*C*ee),pe=Math.sin(j*ee),me=Math.cos(j*ee),de=c-ae*(U*pe+T*me),N=_n(ae*(I*pe+z*me));return d.done=Math.abs(N)<=s&&Math.abs(c-de)<=a,d.value=d.done?c:de,d}const ie=R(ee);if(x)d.done=ee>=m;else{const ae=_n(M(ee));d.done=Math.abs(ae)<=s&&Math.abs(c-ie)<=a}return d.value=d.done?c:ie,d},toString:()=>{const ee=Math.min(Zg(K),ad),ie=DT(ae=>K.next(ee*ae).value,ee,30);return ee+"ms "+ie},toTransition:()=>{}};return K}od.applyToOptions=e=>{const t=BI(e,100,od);return e.ease=t.ease,e.duration=_n(t.duration),e.type="keyframes",e};const ZI=5;function NT(e,t,n){const s=Math.max(t-ZI,0);return fT(n-e(s),t-s)}function Cm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:f,restDelta:p=.5,restSpeed:y}){const m=e[0],v={done:!1,value:m},x=z=>d!==void 0&&z<d||f!==void 0&&z>f,_=z=>d===void 0?f:f===void 0||Math.abs(d-z)<Math.abs(f-z)?d:f;let E=n*t;const T=m+E,C=c===void 0?T:c(T);C!==T&&(E=C-m);const k=z=>-E*Math.exp(-z/s),R=z=>C+k(z),M=z=>{const K=k(z),ee=R(z);v.done=Math.abs(K)<=p,v.value=v.done?C:ee};let j,U;const I=z=>{x(v.value)&&(j=z,U=od({keyframes:[v.value,_(v.value)],velocity:NT(R,z,v.value),damping:a,stiffness:l,restDelta:p,restSpeed:y}))};return I(0),{calculatedDuration:null,next:z=>{let K=!1;return!U&&j===void 0&&(K=!0,M(z),I(z)),j!==void 0&&z>=j?U.next(z-j):(!K&&M(z),v)}}}function GI(e,t,n){const s=[],a=n||Is.mix||OT,l=e.length-1;for(let c=0;c<l;c++){let d=a(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||In:t;d=Pl(f,d)}s.push(d)}return s}function KI(e,t,{clamp:n=!0,ease:s,mixer:a}={}){const l=e.length;if(Ig(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=GI(t,s,a),f=d.length,p=y=>{if(c&&y<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(y<e[m+1]);m++);const v=El(e[m],e[m+1],y);return d[m](v)};return n?y=>p(Er(e[0],e[l-1],y)):p}function YI(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const a=El(0,t,s);e.push(Ze(n,1,a))}}function XI(e){const t=[0];return YI(t,e.length-1),t}function WI(e,t){return e.map(n=>n*t)}function JI(e,t){return e.map(()=>t||xT).splice(0,e.length-1)}function ll({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const a=oI(s)?s.map(Kx):Kx(s),l={done:!1,value:t[0]},c=WI(n&&n.length===t.length?n:XI(t),e),d=KI(c,t,{ease:Array.isArray(a)?a:JI(t,a)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const eB=e=>e!==null;function Pd(e,{repeat:t,repeatType:n="loop"},s,a=1){const l=e.filter(eB),d=a<0||t&&n!=="loop"&&t%2===1?0:l.length-1;return!d||s===void 0?l[d]:s}const tB={decay:Cm,inertia:Cm,tween:ll,keyframes:ll,spring:od};function PT(e){typeof e.type=="string"&&(e.type=tB[e.type])}class Gg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const nB=e=>e/100;class ld extends Gg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Kt.now()&&this.tick(Kt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;PT(t);const{type:n=ll,repeat:s=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=t;let{keyframes:d}=t;const f=n||ll;f!==ll&&typeof d[0]!="number"&&(this.mixKeyframes=Pl(nB,OT(d[0],d[1])),d=[0,100]);const p=f({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...d].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=Zg(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=p}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:a,mixKeyframes:l,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:y,repeat:m,repeatType:v,repeatDelay:x,type:_,onUpdate:E,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-p*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?C<0:C>a;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let R=this.currentTime,M=s;if(m){const z=Math.min(this.currentTime,a)/d;let K=Math.floor(z),ee=z%1;!ee&&z>=1&&(ee=1),ee===1&&K--,K=Math.min(K,m+1),K%2&&(v==="reverse"?(ee=1-ee,x&&(ee-=x/d)):v==="mirror"&&(M=c)),R=Er(0,1,ee)*d}let j;k?(this.delayState.value=y[0],j=this.delayState):j=M.next(R),l&&!k&&(j.value=l(j.value));let{done:U}=j;!k&&f!==null&&(U=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return I&&_!==Cm&&(j.value=Pd(y,this.options,T,this.speed)),E&&E(j.value),I&&this.finish(),j}then(t,n){return this.finished.then(t,n)}get duration(){return Un(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Un(t)}get time(){return Un(this.currentTime)}set time(t){t=_n(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return NT(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Kt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Un(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=II,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Kt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function rB(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const bi=e=>e*180/Math.PI,Rm=e=>{const t=bi(Math.atan2(e[1],e[0]));return km(t)},sB={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rm,rotateZ:Rm,skewX:e=>bi(Math.atan(e[1])),skewY:e=>bi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},km=e=>(e=e%360,e<0&&(e+=360),e),nS=Rm,rS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),iB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:rS,scaleY:sS,scale:e=>(rS(e)+sS(e))/2,rotateX:e=>km(bi(Math.atan2(e[6],e[5]))),rotateY:e=>km(bi(Math.atan2(-e[2],e[0]))),rotateZ:nS,rotate:nS,skewX:e=>bi(Math.atan(e[4])),skewY:e=>bi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Mm(e){return e.includes("scale")?1:0}function Om(e,t){if(!e||e==="none")return Mm(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(n)s=iB,a=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=sB,a=d}if(!a)return Mm(t);const l=s[t],c=a[1].split(",").map(oB);return typeof l=="function"?l(c):c[l]}const aB=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Om(n,t)};function oB(e){return parseFloat(e.trim())}const Xa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wa=new Set(Xa),iS=e=>e===Ya||e===ue,lB=new Set(["x","y","z"]),cB=Xa.filter(e=>!lB.has(e));function uB(e){const t=[];return cB.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Ps={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Om(t,"x"),y:(e,{transform:t})=>Om(t,"y")};Ps.translateX=Ps.x;Ps.translateY=Ps.y;const xi=new Set;let Dm=!1,Nm=!1,Pm=!1;function jT(){if(Nm){const e=Array.from(xi).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const a=uB(s);a.length&&(n.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const a=n.get(s);a&&a.forEach(([l,c])=>{s.getValue(l)?.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Nm=!1,Dm=!1,xi.forEach(e=>e.complete(Pm)),xi.clear()}function zT(){xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nm=!0)})}function dB(){Pm=!0,zT(),jT(),Pm=!1}class Kg{constructor(t,n,s,a,l,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(xi.add(this),Dm||(Dm=!0,He.read(zT),He.resolveKeyframes(jT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:a}=this;if(t[0]===null){const l=a?.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&n){const d=s.readValue(n,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),a&&l===void 0&&a.set(t[0])}rB(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xi.delete(this)}cancel(){this.state==="scheduled"&&(xi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fB=e=>e.startsWith("--");function LT(e,t,n){fB(t)?e.style.setProperty(t,n):e.style[t]=n}const hB={};function UT(e,t){const n=dT(e);return()=>hB[t]??n()}const pB=UT(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),IT=UT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rl=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,aS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rl([0,.65,.55,1]),circOut:rl([.55,0,1,.45]),backIn:rl([.31,.01,.66,-.59]),backOut:rl([.33,1.53,.69,.99])};function BT(e,t){if(e)return typeof e=="function"?IT()?DT(e,t):"ease-out":ST(e)?rl(e):Array.isArray(e)?e.map(n=>BT(n,t)||aS.easeOut):aS[e]}function mB(e,t,n,{delay:s=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeOut",times:f}={},p=void 0){const y={[t]:n};f&&(y.offset=f);const m=BT(d,a);Array.isArray(m)&&(y.easing=m);const v={delay:s,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),e.animate(y,v)}function VT(e){return typeof e=="function"&&"applyToOptions"in e}function gB({type:e,...t}){return VT(e)&&IT()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class $T extends Gg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:a,pseudoElement:l,allowFlatten:c=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!l,this.allowFlatten=c,this.options=t,Ig(typeof t.type!="string");const p=gB(t);this.animation=mB(n,s,a,p,l),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const y=Pd(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(y),LT(n,s,y),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Un(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Un(t)}get time(){return Un(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_n(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:s,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&pB()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),In):a(this)}}const qT={anticipate:vT,backInOut:yT,circInOut:wT};function yB(e){return e in qT}function vB(e){typeof e.ease=="string"&&yB(e.ease)&&(e.ease=qT[e.ease])}const Op=10;class bB extends $T{constructor(t){vB(t),PT(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:a,element:l,...c}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new ld({...c,autoplay:!1}),f=Math.max(Op,Kt.now()-this.startTime),p=Er(0,Op,f-Op),y=d.sample(f).value,{name:m}=this.options;l&&m&&LT(l,m,y),n.setWithVelocity(d.sample(Math.max(0,f-p)).value,y,p),d.stop()}}const oS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(er.test(e)||e==="0")&&!e.startsWith("url("));function wB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xB(e,t,n,s){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=oS(a,t),d=oS(l,t);return!c||!d?!1:wB(e)||(n==="spring"||VT(n))&&s}function jm(e){e.duration=0,e.type="keyframes"}const HT=new Set(["opacity","clipPath","filter","transform"]),SB=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function _B(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&SB.test(e[t]))return!0;return!1}const EB=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),TB=dT(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function AB(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:a,damping:l,type:c,keyframes:d}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:y}=t.owner.getProps();return TB()&&n&&(HT.has(n)||EB.has(n)&&_B(d))&&(n!=="transform"||!y)&&!p&&!s&&a!=="mirror"&&l!==0&&c!=="inertia"}const CB=40;class RB extends Gg{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",keyframes:d,name:f,motionValue:p,element:y,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Kt.now();const v={autoplay:t,delay:n,type:s,repeat:a,repeatDelay:l,repeatType:c,name:f,motionValue:p,element:y,...m},x=y?.KeyframeResolver||Kg;this.keyframeResolver=new x(d,(_,E,T)=>this.onKeyframesResolved(_,E,v,!T),f,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,a){this.keyframeResolver=void 0;const{name:l,type:c,velocity:d,delay:f,isHandoff:p,onUpdate:y}=s;this.resolvedAt=Kt.now();let m=!0;xB(t,l,c,d)||(m=!1,(Is.instantAnimations||!f)&&y?.(Pd(t,s,n)),t[0]=t[t.length-1],jm(s),s.repeat=0);const x={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>CB?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},_=m&&!p&&AB(x),E=x.motionValue?.owner?.current;let T;if(_)try{T=new bB({...x,element:E})}catch{T=new ld(x)}else T=new ld(x);T.finished.then(()=>{this.notifyFinished()}).catch(In),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dB()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function FT(e,t,n,s=0,a=1){const l=Array.from(e).sort((p,y)=>p.sortNodePosition(y)).indexOf(t),c=e.size,d=(c-1)*s;return typeof n=="function"?n(l,c):a===1?l*s:d-l*s}const kB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function MB(e){const t=kB.exec(e);if(!t)return[,];const[,n,s,a]=t;return[`--${n??s}`,a]}function QT(e,t,n=1){const[s,a]=MB(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return lT(c)?parseFloat(c):c}return qg(a)?QT(a,t,n+1):a}const OB={type:"spring",stiffness:500,damping:25,restSpeed:10},DB=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NB={type:"keyframes",duration:.8},PB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jB=(e,{keyframes:t})=>t.length>2?NB:Wa.has(e)?e.startsWith("scale")?DB(t[1]):OB:PB;function ZT(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Yg(e,t){const n=e?.[t]??e?.default??e;return n!==e?ZT(n,e):n}const zB=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function LB(e){for(const t in e)if(!zB.has(t))return!0;return!1}const Xg=(e,t,n,s={},a,l)=>c=>{const d=Yg(s,e)||{},f=d.delay||s.delay||0;let{elapsed:p=0}=s;p=p-_n(f);const y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-p,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:a};LB(d)||Object.assign(y,jB(e,y)),y.duration&&(y.duration=_n(y.duration)),y.repeatDelay&&(y.repeatDelay=_n(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let m=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(jm(y),y.delay===0&&(m=!0)),(Is.instantAnimations||Is.skipAnimations||a?.shouldSkipAnimations)&&(m=!0,jm(y),y.delay=0),y.allowFlatten=!d.type&&!d.ease,m&&!l&&t.get()!==void 0){const v=Pd(y.keyframes,d);if(v!==void 0){He.update(()=>{y.onUpdate(v),y.onComplete()});return}}return d.isSync?new ld(y):new RB(y)};function lS(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Wg(e,t,n,s){if(typeof t=="function"){const[a,l]=lS(s);t=t(n!==void 0?n:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=lS(s);t=t(n!==void 0?n:e.custom,a,l)}return t}function Si(e,t,n){const s=e.getProps();return Wg(s,t,n!==void 0?n:s.custom,e)}const GT=new Set(["width","height","top","left","right","bottom",...Xa]),cS=30,UB=e=>!isNaN(parseFloat(e));class IB{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const a=Kt.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Kt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=UB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bg);const s=this.events[t].add(n);return t==="change"?()=>{s(),He.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Kt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cS);return fT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ba(e,t){return new IB(e,t)}const zm=e=>Array.isArray(e);function BB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ba(n))}function VB(e){return zm(e)?e[e.length-1]||0:e}function $B(e,t){const n=Si(e,t);let{transitionEnd:s={},transition:a={},...l}=n||{};l={...l,...s};for(const c in l){const d=VB(l[c]);BB(e,c,d)}}const Ot=e=>!!(e&&e.getVelocity);function qB(e){return!!(Ot(e)&&e.add)}function Lm(e,t){const n=e.getValue("willChange");if(qB(n))return n.add(t);if(!n&&Is.WillChange){const s=new Is.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Jg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const HB="framerAppearId",KT="data-"+Jg(HB);function YT(e){return e.props[KT]}function FB({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function XT(e,t,{delay:n=0,transitionOverride:s,type:a}={}){let{transition:l,transitionEnd:c,...d}=t;const f=e.getDefaultTransition();l=l?ZT(l,f):f;const p=l?.reduceMotion;s&&(l=s);const y=[],m=a&&e.animationState&&e.animationState.getState()[a];for(const v in d){const x=e.getValue(v,e.latestValues[v]??null),_=d[v];if(_===void 0||m&&FB(m,v))continue;const E={delay:n,...Yg(l||{},v)},T=x.get();if(T!==void 0&&!x.isAnimating()&&!Array.isArray(_)&&_===T&&!E.velocity){He.update(()=>x.set(_));continue}let C=!1;if(window.MotionHandoffAnimation){const M=YT(e);if(M){const j=window.MotionHandoffAnimation(M,v,He);j!==null&&(E.startTime=j,C=!0)}}Lm(e,v);const k=p??e.shouldReduceMotion;x.start(Xg(v,x,_,k&&GT.has(v)?{type:!1}:E,e,C));const R=x.animation;R&&y.push(R)}if(c){const v=()=>He.update(()=>{c&&$B(e,c)});y.length?Promise.all(y).then(v):v()}return y}function Um(e,t,n={}){const s=Si(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(a=n.transitionOverride);const l=s?()=>Promise.all(XT(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:m}=a;return QB(e,t,f,p,y,m,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[f,p]=d==="beforeChildren"?[l,c]:[c,l];return f().then(()=>p())}else return Promise.all([l(),c(n.delay)])}function QB(e,t,n=0,s=0,a=0,l=1,c){const d=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),d.push(Um(f,t,{...c,delay:n+(typeof s=="function"?0:s)+FT(e.variantChildren,f,s,a,l)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(d)}function ZB(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const a=t.map(l=>Um(e,l,n));s=Promise.all(a)}else if(typeof t=="string")s=Um(e,t,n);else{const a=typeof t=="function"?Si(e,t,n.custom):t;s=Promise.all(XT(e,a,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const GB={test:e=>e==="auto",parse:e=>e},WT=e=>t=>t.test(e),JT=[Ya,ue,Sr,Os,wI,bI,GB],uS=e=>JT.find(WT(e));function KB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||uT(e):!0}const YB=new Set(["brightness","contrast","saturate","opacity"]);function XB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Hg)||[];if(!s)return e;const a=n.replace(s,"");let l=YB.has(t)?1:0;return s!==n&&(l*=100),t+"("+l+a+")"}const WB=/\b([a-z-]*)\(.*?\)/gu,Im={...er,getAnimatableNone:e=>{const t=e.match(WB);return t?t.map(XB).join(" "):e}},Bm={...er,getAnimatableNone:e=>{const t=er.parse(e);return er.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},dS={...Ya,transform:Math.round},JB={rotate:Os,rotateX:Os,rotateY:Os,rotateZ:Os,scale:pu,scaleX:pu,scaleY:pu,scaleZ:pu,skew:Os,skewX:Os,skewY:Os,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:Tl,originX:Xx,originY:Xx,originZ:ue},ey={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,top:ue,right:ue,bottom:ue,left:ue,inset:ue,insetBlock:ue,insetBlockStart:ue,insetBlockEnd:ue,insetInline:ue,insetInlineStart:ue,insetInlineEnd:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,paddingBlock:ue,paddingBlockStart:ue,paddingBlockEnd:ue,paddingInline:ue,paddingInlineStart:ue,paddingInlineEnd:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,marginBlock:ue,marginBlockStart:ue,marginBlockEnd:ue,marginInline:ue,marginInlineStart:ue,marginInlineEnd:ue,fontSize:ue,backgroundPositionX:ue,backgroundPositionY:ue,...JB,zIndex:dS,fillOpacity:Tl,strokeOpacity:Tl,numOctaves:dS},eV={...ey,color:ht,backgroundColor:ht,outlineColor:ht,fill:ht,stroke:ht,borderColor:ht,borderTopColor:ht,borderRightColor:ht,borderBottomColor:ht,borderLeftColor:ht,filter:Im,WebkitFilter:Im,mask:Bm,WebkitMask:Bm},eA=e=>eV[e],tV=new Set([Im,Bm]);function tA(e,t){let n=eA(e);return tV.has(n)||(n=er),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,699 bytes, line 51
51const nV=new Set(["auto","none","0"]);function rV(e,t,n){let s=0,a;for(;s<e.length&&!a;){const l=e[s];typeof l=="string"&&!nV.has(l)&&Ia(l).values.length&&(a=e[s]),s++}if(a&&n)for(const l of t)e[l]=tA(n,a)}class sV extends Kg{constructor(t,n,s,a,l){super(t,n,s,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let y=0;y<t.length;y++){let m=t[y];if(typeof m=="string"&&(m=m.trim(),qg(m))){const v=QT(m,n.current);v!==void 0&&(t[y]=v),y===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!GT.has(s)||t.length!==2)return;const[a,l]=t,c=uS(a),d=uS(l),f=Yx(a),p=Yx(l);if(f!==p&&Ps[s]){this.needsMeasurement=!0;return}if(c!==d)if(iS(c)&&iS(d))for(let y=0;y<t.length;y++){const m=t[y];typeof m=="string"&&(t[y]=parseFloat(m))}else Ps[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let a=0;a<t.length;a++)(t[a]===null||KB(t[a]))&&s.push(a);s.length&&rV(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ps[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(s,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=s.length-1,c=s[l];s[l]=Ps[n](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 14,694 bytes, line 51
51h(([d,f])=>{t.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function ty(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const a=document.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(s=>s!=null)}const nA=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Mu(e){return cT(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ny}=_T(queueMicrotask,!1),Wn={x:!1,y:!1};function rA(){return Wn.x||Wn.y}function iV(e){return e==="x"||e==="y"?Wn[e]?null:(Wn[e]=!0,()=>{Wn[e]=!1}):Wn.x||Wn.y?null:(Wn.x=Wn.y=!0,()=>{Wn.x=Wn.y=!1})}function sA(e,t){const n=ty(e),s=new AbortController,a={passive:!0,...t,signal:s.signal};return[n,a,()=>s.abort()]}function aV(e){return!(e.pointerType==="touch"||rA())}function oV(e,t,n={}){const[s,a,l]=sA(e,n);return s.forEach(c=>{let d=!1,f=!1,p;const y=()=>{c.removeEventListener("pointerleave",_)},m=T=>{p&&(p(T),p=void 0),y()},v=T=>{d=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),f&&(f=!1,m(T))},x=()=>{d=!0,window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",v,a)},_=T=>{if(T.pointerType!=="touch"){if(d){f=!0;return}m(T)}},E=T=>{if(!aV(T))return;f=!1;const C=t(c,T);typeof C=="function"&&(p=C,c.addEventListener("pointerleave",_,a))};c.addEventListener("pointerenter",E,a),c.addEventListener("pointerdown",x,a)}),l}const iA=(e,t)=>t?e===t?!0:iA(e,t.parentElement):!1,ry=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cV(e){return lV.has(e.tagName)||e.isContentEditable===!0}const uV=new Set(["INPUT","SELECT","TEXTAREA"]);function dV(e){return uV.has(e.tagName)||e.isContentEditable===!0}const Ou=new WeakSet;function fS(e){return t=>{t.key==="Enter"&&e(t)}}function Dp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fV=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=fS(()=>{if(Ou.has(n))return;Dp(n,"down");const a=fS(()=>{Dp(n,"up")}),l=()=>Dp(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function hS(e){return ry(e)&&!rA()}const pS=new WeakSet;function hV(e,t,n={}){const[s,a,l]=sA(e,n),c=d=>{const f=d.currentTarget;if(!hS(d)||pS.has(d))return;Ou.add(f),n.stopPropagation&&pS.add(d);const p=t(f,d),y=(x,_)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),Ou.has(f)&&Ou.delete(f),hS(x)&&typeof p=="function"&&p(x,{success:_})},m=x=>{y(x,f===window||f===document||n.useGlobalTarget||iA(f,x.target))},v=x=>{y(x,!1)};window.addEventListener("pointerup",m,a),window.addEventListener("pointercancel",v,a)};return s.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),Mu(d)&&(d.addEventListener("focus",p=>fV(p,a)),!cV(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function sy(e){return cT(e)&&"ownerSVGElement"in e}const Du=new WeakMap;let Nu;const aA=(e,t,n)=>(s,a)=>a&&a[0]?a[0][e+"Size"]:sy(s)&&"getBBox"in s?s.getBBox()[t]:s[n],pV=aA("inline","width","offsetWidth"),mV=aA("block","height","offsetHeight");function gV({target:e,borderBoxSize:t}){Du.get(e)?.forEach(n=>{n(e,{get width(){return pV(e,t)},get height(){return mV(e,t)}})})}function yV(e){e.forEach(gV)}function vV(){typeof ResizeObserver>"u"||(Nu=new ResizeObserver(yV))}function bV(e,t){Nu||vV();const n=ty(e);return n.forEach(s=>{let a=Du.get(s);a||(a=new Set,Du.set(s,a)),a.add(t),Nu?.observe(s)}),()=>{n.forEach(s=>{const a=Du.get(s);a?.delete(t),a?.size||Nu?.unobserve(s)})}}const Pu=new Set;let ka;function wV(){ka=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Pu.forEach(t=>t(e))},window.addEventListener("resize",ka)}function xV(e){return Pu.add(e),ka||wV(),()=>{Pu.delete(e),!Pu.size&&typeof ka=="function"&&(window.removeEventListener("resize",ka),ka=void 0)}}function mS(e,t){return typeof e=="function"?xV(e):bV(e,t)}function SV(e){return sy(e)&&e.tagName==="svg"}const _V=[...JT,ht,er],EV=e=>_V.find(WT(e)),gS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ma=()=>({x:gS(),y:gS()}),yS=()=>({min:0,max:0}),yt=()=>({x:yS(),y:yS()}),TV=new WeakMap;function jd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Al(e){return typeof e=="string"||Array.isArray(e)}const iy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ay=["initial",...iy];function zd(e){return jd(e.animate)||ay.some(t=>Al(e[t]))}function oA(e){return!!(zd(e)||e.variants)}function AV(e,t,n){for(const s in t){const a=t[s],l=n[s];if(Ot(a))e.addValue(s,a);else if(Ot(l))e.addValue(s,Ba(a,{owner:e}));else if(l!==a)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(s);e.addValue(s,Ba(c!==void 0?c:a,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Vm={current:null},lA={current:!1},CV=typeof window<"u";function RV(){if(lA.current=!0,!!CV)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vm.current=e.matches;e.addEventListener("change",t),t()}else Vm.current=!1}const vS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let cd={};function cA(e){cd=e}function kV(){return cd}class MV{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:a,skipAnimations:l,blockInitialAnimation:c,visualState:d},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Kg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 x=Kt.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,He.render(this.render,!1,!0))};const{latestValues:p,renderState:y}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=n.initial?{...p}:{},this.renderState=y,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=l,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=zd(n),this.isVariantNode=oA(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in v){const _=v[x];p[x]!==void 0&&Ot(_)&&_.set(p[x])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,TV.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(lA.current||RV(),this.shouldReduceMotion=Vm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Bs(this.notifyUpdate),Bs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&HT.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:f,ease:p,duration:y}=n.accelerate,m=new $T({element:this.current,name:t,keyframes:d,times:f,ease:p,duration:_n(y)}),v=c(m);this.valueSubscriptions.set(t,()=>{v(),m.cancel()});return}const s=Wa.has(t);s&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in cd){const n=cd[t];if(!n)continue;const{isEnabled:s,Feature:a}=n;if(!this.features[t]&&a&&s(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<vS.length;s++){const a=vS[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=t[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=AV(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Ba(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(lT(s)||uT(s))?s=parseFloat(s):!EV(s)&&er.test(n)&&(s=tA(t,n)),this.setBaseTarget(t,Ot(s)?s.get():s)),Ot(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const l=Wg(this.props,n,this.presenceContext?.custom);l&&(s=l[t])}if(n&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ot(a)?a:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ny.render(this.render)}}class uA extends MV{constructor(){super(...arguments),this.KeyframeResolver=sV}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Hs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function dA({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function OV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function DV(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Np(e){return e===void 0||e===1}function $m({scale:e,scaleX:t,scaleY:n}){return!Np(e)||!Np(t)||!Np(n)}function yi(e){return $m(e)||fA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fA(e){return bS(e.x)||bS(e.y)}function bS(e){return e&&e!=="0%"}function ud(e,t,n){const s=e-n,a=t*s;return n+a}function wS(e,t,n,s,a){return a!==void 0&&(e=ud(e,a,s)),ud(e,n,s)+t}function qm(e,t=0,n=1,s,a){e.min=wS(e.min,t,n,s,a),e.max=wS(e.max,t,n,s,a)}function hA(e,{x:t,y:n}){qm(e.x,t.translate,t.scale,t.originPoint),qm(e.y,n.translate,n.scale,n.originPoint)}const xS=.999999999999,SS=1.0000000000001;function NV(e,t,n,s=!1){const a=n.length;if(!a)return;t.x=t.y=1;let l,c;for(let d=0;d<a;d++){l=n[d],c=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&(mr(e.x,-l.scroll.offset.x),mr(e.y,-l.scroll.offset.y)),c&&(t.x*=c.x.scale,t.y*=c.y.scale,hA(e,c)),s&&yi(l.latestValues)&&ju(e,l.latestValues,l.layout?.layoutBox))}t.x<SS&&t.x>xS&&(t.x=1),t.y<SS&&t.y>xS&&(t.y=1)}function mr(e,t){e.min+=t,e.max+=t}function _S(e,t,n,s,a=.5){const l=Ze(e.min,e.max,a);qm(e,t,n,l,s)}function ES(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ju(e,t,n){const s=n??e;_S(e.x,ES(t.x,s.x),t.scaleX,t.scale,t.originX),_S(e.y,ES(t.y,s.y),t.scaleY,t.scale,t.originY)}function pA(e,t){return dA(DV(e.getBoundingClientRect(),t))}
vendor: 5,659 bytes, line 51
51function PV(e,t,n){const s=pA(e,n),{scroll:a}=t;return a&&(mr(s.x,a.offset.x),mr(s.y,a.offset.y)),s}const jV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zV=Xa.length;function LV(e,t,n){let s="",a=!0;for(let l=0;l<zV;l++){const c=Xa[l],d=e[c];if(d===void 0)continue;let f=!0;if(typeof d=="number")f=d===(c.startsWith("scale")?1:0);else{const p=parseFloat(d);f=c.startsWith("scale")?p===1:p===0}if(!f||n){const p=nA(d,ey[c]);if(!f){a=!1;const y=jV[c]||c;s+=`${y}(${p}) `}n&&(t[c]=p)}}return s=s.trim(),n?s=n(t,a?"":s):a&&(s="none"),s}function oy(e,t,n){const{style:s,vars:a,transformOrigin:l}=e;let c=!1,d=!1;for(const f in t){const p=t[f];if(Wa.has(f)){c=!0;continue}else if(TT(f)){a[f]=p;continue}else{const y=nA(p,ey[f]);f.startsWith("origin")?(d=!0,l[f]=y):s[f]=y}}if(t.transform||(c||n?s.transform=LV(t,e.transform,n):s.transform&&(s.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:y=0}=l;s.transformOrigin=`${f} ${p} ${y}`}}function mA(e,{style:t,vars:n},s,a){const l=e.style;let c;for(c in t)l[c]=t[c];a?.applyProjectionStyles(l,s);for(c in n)l.setProperty(c,n[c])}function TS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Jo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=TS(e,t.target.x),s=TS(e,t.target.y);return`${n}% ${s}%`}},UV={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,a=er.parse(e);if(a.length>5)return s;const l=er.createTransformer(e),c=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;a[0+c]/=d,a[1+c]/=f;const p=Ze(d,f,.5);return typeof a[2+c]=="number"&&(a[2+c]/=p),typeof a[3+c]=="number"&&(a[3+c]/=p),l(a)}},Hm={borderRadius:{...Jo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jo,borderTopRightRadius:Jo,borderBottomLeftRadius:Jo,borderBottomRightRadius:Jo,boxShadow:UV};function gA(e,{layout:t,layoutId:n}){return Wa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hm[e]||e==="opacity")}function ly(e,t,n){const s=e.style,a=t?.style,l={};if(!s)return l;for(const c in s)(Ot(s[c])||a&&Ot(a[c])||gA(c,e)||n?.getValue(c)?.liveStyle!==void 0)&&(l[c]=s[c]);return l}function IV(e){return window.getComputedStyle(e)}class BV extends uA{constructor(){super(...arguments),this.type="html",this.renderInstance=mA}readValueFromInstance(t,n){if(Wa.has(n))return this.projection?.isProjecting?Mm(n):aB(t,n);{const s=IV(t),a=(TT(n)?s.getPropertyValue(n):s[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pA(t,n)}build(t,n,s){oy(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return ly(t,n,s)}}const VV={offset:"stroke-dashoffset",array:"stroke-dasharray"},$V={offset:"strokeDashoffset",array:"strokeDasharray"};function qV(e,t,n=1,s=0,a=!0){e.pathLength=1;const l=a?VV:$V;e[l.offset]=`${-s}`,e[l.array]=`${t} ${n}`}const HV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yA(e,{attrX:t,attrY:n,attrScale:s,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...d},f,p,y){if(oy(e,d,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v}=e;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=y?.transformBox??"fill-box",delete m.transformBox);for(const x of HV)m[x]!==void 0&&(v[x]=m[x],delete m[x]);t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),s!==void 0&&(m.scale=s),a!==void 0&&qV(m,a,l,c,!1)}const vA=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"]),bA=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FV(e,t,n,s){mA(e,t,void 0,s);for(const a in t.attrs)e.setAttribute(vA.has(a)?a:Jg(a),t.attrs[a])}function wA(e,t,n){const s=ly(e,t,n);for(const a in e)if(Ot(e[a])||Ot(t[a])){const l=Xa.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[l]=e[a]}return s}class QV extends uA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wa.has(n)){const s=eA(n);return s&&s.default||0}return n=vA.has(n)?n:Jg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return wA(t,n,s)}build(t,n,s){yA(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,a){FV(t,n,s,a)}mount(t){this.isSVGTag=bA(t.tagName),super.mount(t)}}const ZV=ay.length;function xA(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?xA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ZV;n++){const s=ay[n],a=e.props[s];(Al(a)||a===!1)&&(t[s]=a)}return t}function SA(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const GV=[...iy].reverse(),KV=iy.length;function YV(e){return t=>Promise.all(t.map(({animation:n,options:s})=>ZB(e,n,s)))}function XV(e){let t=YV(e),n=AS(),s=!0,a=!1;const l=p=>(y,m)=>{const v=Si(e,m,p==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:x,transitionEnd:_,...E}=v;y={...y,...E,..._}}return y};function c(p){t=p(e)}function d(p){const{props:y}=e,m=xA(e.parent)||{},v=[],x=new Set;let _={},E=1/0;for(let C=0;C<KV;
vendor: 29,439 bytes, line 51
51C++){const k=GV[C],R=n[k],M=y[k]!==void 0?y[k]:m[k],j=Al(M),U=k===p?R.isActive:null;U===!1&&(E=C);let I=M===m[k]&&M!==y[k]&&j;if(I&&(s||a)&&e.manuallyAnimateOnMount&&(I=!1),R.protectedKeys={..._},!R.isActive&&U===null||!M&&!R.prevProp||jd(M)||typeof M=="boolean")continue;if(k==="exit"&&R.isActive&&U!==!0){R.prevResolvedValues&&(_={..._,...R.prevResolvedValues});continue}const z=WV(R.prevProp,M);let K=z||k===p&&R.isActive&&!I&&j||C>E&&j,ee=!1;const ie=Array.isArray(M)?M:[M];let ae=ie.reduce(l(k),{});U===!1&&(ae={});const{prevResolvedValues:pe={}}=R,me={...pe,...ae},de=Z=>{K=!0,x.has(Z)&&(ee=!0,x.delete(Z)),R.needsAnimating[Z]=!0;const J=e.getValue(Z);J&&(J.liveStyle=!1)};for(const Z in me){const J=ae[Z],Y=pe[Z];if(_.hasOwnProperty(Z))continue;let D=!1;zm(J)&&zm(Y)?D=!SA(J,Y):D=J!==Y,D?J!=null?de(Z):x.add(Z):J!==void 0&&x.has(Z)?de(Z):R.protectedKeys[Z]=!0}R.prevProp=M,R.prevResolvedValues=ae,R.isActive&&(_={..._,...ae}),(s||a)&&e.blockInitialAnimation&&(K=!1);const N=I&&z;K&&(!N||ee)&&v.push(...ie.map(Z=>{const J={type:k};if(typeof Z=="string"&&(s||a)&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,D=Si(Y,Z);if(Y.enteringChildren&&D){const{delayChildren:H}=D.transition||{};J.delay=FT(Y.enteringChildren,e,H)}}return{animation:Z,options:J}}))}if(x.size){const C={};if(typeof y.initial!="boolean"){const k=Si(e,Array.isArray(y.initial)?y.initial[0]:y.initial);k&&k.transition&&(C.transition=k.transition)}x.forEach(k=>{const R=e.getBaseTarget(k),M=e.getValue(k);M&&(M.liveStyle=!0),C[k]=R??null}),v.push({animation:C})}let T=!!v.length;return s&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(T=!1),s=!1,a=!1,T?t(v):Promise.resolve()}function f(p,y){if(n[p].isActive===y)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(p,y)),n[p].isActive=y;const m=d(p);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:d,setActive:f,setAnimateFunction:c,getState:()=>n,reset:()=>{n=AS(),a=!0}}}function WV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!SA(t,e):!1}function gi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function AS(){return{animate:gi(!0),whileInView:gi(),whileHover:gi(),whileTap:gi(),whileDrag:gi(),whileFocus:gi(),exit:gi()}}function Fm(e,t){e.min=t.min,e.max=t.max}function Yn(e,t){Fm(e.x,t.x),Fm(e.y,t.y)}function CS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const _A=1e-4,JV=1-_A,e8=1+_A,EA=.01,t8=0-EA,n8=0+EA;function Yt(e){return e.max-e.min}function r8(e,t,n){return Math.abs(e-t)<=n}function RS(e,t,n,s=.5){e.origin=s,e.originPoint=Ze(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),e.translate=Ze(n.min,n.max,e.origin)-e.originPoint,(e.scale>=JV&&e.scale<=e8||isNaN(e.scale))&&(e.scale=1),(e.translate>=t8&&e.translate<=n8||isNaN(e.translate))&&(e.translate=0)}function cl(e,t,n,s){RS(e.x,t.x,n.x,s?s.originX:void 0),RS(e.y,t.y,n.y,s?s.originY:void 0)}function kS(e,t,n,s=0){const a=s?Ze(n.min,n.max,s):n.min;e.min=a+t.min,e.max=e.min+Yt(t)}function s8(e,t,n,s){kS(e.x,t.x,n.x,s?.x),kS(e.y,t.y,n.y,s?.y)}function MS(e,t,n,s=0){const a=s?Ze(n.min,n.max,s):n.min;e.min=t.min-a,e.max=e.min+Yt(t)}function dd(e,t,n,s){MS(e.x,t.x,n.x,s?.x),MS(e.y,t.y,n.y,s?.y)}function OS(e,t,n,s,a){return e-=t,e=ud(e,1/n,s),a!==void 0&&(e=ud(e,1/a,s)),e}function i8(e,t=0,n=1,s=.5,a,l=e,c=e){if(Sr.test(t)&&(t=parseFloat(t),t=Ze(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=Ze(l.min,l.max,s);e===l&&(d-=t),e.min=OS(e.min,t,n,d,a),e.max=OS(e.max,t,n,d,a)}function DS(e,t,[n,s,a],l,c){i8(e,t[n],t[s],t[a],t.scale,l,c)}const a8=["x","scaleX","originX"],o8=["y","scaleY","originY"];function NS(e,t,n,s){DS(e.x,t,a8,n?n.x:void 0,s?s.x:void 0),DS(e.y,t,o8,n?n.y:void 0,s?s.y:void 0)}function PS(e){return e.translate===0&&e.scale===1}function TA(e){return PS(e.x)&&PS(e.y)}function jS(e,t){return e.min===t.min&&e.max===t.max}function l8(e,t){return jS(e.x,t.x)&&jS(e.y,t.y)}function zS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function AA(e,t){return zS(e.x,t.x)&&zS(e.y,t.y)}function LS(e){return Yt(e.x)/Yt(e.y)}function US(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function pr(e){return[e("x"),e("y")]}function c8(e,t,n){let s="";const a=e.x.translate/t.x,l=e.y.translate/t.y,c=n?.z||0;if((a||l||c)&&(s=`translate3d(${a}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:y,rotateX:m,rotateY:v,skewX:x,skewY:_}=n;p&&(s=`perspective(${p}px) ${s}`),y&&(s+=`rotate(${y}deg) `),m&&(s+=`rotateX(${m}deg) `),v&&(s+=`rotateY(${v}deg) `),x&&(s+=`skewX(${x}deg) `),_&&(s+=`skewY(${_}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(s+=`scale(${d}, ${f})`),s||"none"}const CA=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],u8=CA.length,IS=e=>typeof e=="string"?parseFloat(e):e,BS=e=>typeof e=="number"||ue.test(e);function d8(e,t,n,s,a,l){a?(e.opacity=Ze(0,n.opacity??1,f8(s)),e.opacityExit=Ze(t.opacity??1,0,h8(s))):l&&(e.opacity=Ze(t.opacity??1,n.opacity??1,s));for(let c=0;c<u8;c++){const d=CA[c];let f=VS(t,d),p=VS(n,d);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||BS(f)===BS(p)?(e[d]=Math.max(Ze(IS(f),IS(p),s),0),(Sr.test(p)||Sr.test(f))&&(e[d]+="%")):e[d]=p}(t.rotate||n.rotate)&&(e.rotate=Ze(t.rotate||0,n.rotate||0,s))}function VS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const f8=RA(0,.5,bT),h8=RA(.5,.95,In);function RA(e,t,n){return s=>s<e?0:s>t?1:n(El(e,t,s))}function p8(e,t,n){const s=Ot(e)?e:Ba(e);return s.start(Xg("",s,t,n)),s.animation}function Cl(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const m8=(e,t)=>e.depth-t.depth;class g8{constructor(){this.children=[],this.isDirty=!1}add(t){Ug(this.children,t),this.isDirty=!0}remove(t){sd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(m8),this.isDirty=!1,this.children.forEach(t)}}function y8(e,t){const n=Kt.now(),s=({timestamp:a})=>{const l=a-n;l>=t&&(Bs(s),e(l-t))};return He.setup(s,!0),()=>Bs(s)}function zu(e){return Ot(e)?e.get():e}class v8{constructor(){this.members=[]}add(t){Ug(this.members,t);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===t||s===this.lead||s===this.prevLead)continue;const a=s.instance;(!a||a.isConnected===!1)&&!s.snapshot&&(sd(this.members,s),s.unmount())}t.scheduleRender()}remove(t){if(sd(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.updateSnapshot(),t.scheduleRender();const{layoutDependency:a}=s.options,{layoutDependency:l}=t.options;(a===void 0||a!==l)&&(t.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Lu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pp=["","X","Y","Z"],b8=1e3;let w8=0;function jp(e,t,n,s){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),s&&(s[e]=0))}function kA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=YT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(a||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&kA(s)}function MA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(c={},d=t?.()){this.id=w8++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,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(_8),this.nodes.forEach(k8),this.nodes.forEach(M8),this.nodes.forEach(E8)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new g8)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Bg),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const f=this.eventHandlers.get(c);f&&f.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=sy(c)&&!SV(c),this.instance=c;const{layoutId:d,layout:f,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||d)&&(this.isLayoutDirty=!0),e){let y,m=0;const v=()=>this.root.updateBlockedByResize=!1;He.read(()=>{m=window.innerWidth}),e(c,()=>{const x=window.innerWidth;x!==m&&(m=x,this.root.updateBlockedByResize=!0,y&&y(),y=y8(v,250),Lu.hasAnimatedSinceResize&&(Lu.hasAnimatedSinceResize=!1,this.nodes.forEach(HS)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||f)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||p.getDefaultTransition()||j8,{onLayoutAnimationStart:E,onLayoutAnimationComplete:T}=p.getProps(),C=!this.targetLayout||!AA(this.targetLayout,x),k=!m&&v;if(this.options.layoutRoot||this.resumeFrom||k||m&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Yg(_,"layout"),onPlay:E,onComplete:T};(p.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(y,k)}else m||HS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Bs(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(O8),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const m=this.path[y];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(A8),this.nodes.forEach($S);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qS);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(C8),this.nodes.forEach(R8),this.nodes.forEach(x8),this.nodes.forEach(S8)):this.nodes.forEach(qS),this.clearAllSnapshots();const d=Kt.now();Mt.delta=Er(0,1e3/60,d-Mt.timestamp),Mt.timestamp=d,Mt.isProcessing=!0,Ap.update.process(Mt),Ap.preRender.process(Mt),Ap.render.process(Mt),Mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ny.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(T8),this.sharedNodes.forEach(D8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=yt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const f=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!TA(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;c&&this.instance&&(d||yi(this.latestValues)||y)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return c&&(f=this.removeTransform(f)),z8(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return yt();const d=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(L8))){const{scroll:p}=this.root;p&&(mr(d.x,p.offset.x),mr(d.y,p.offset.y))}return d}removeElementScroll(c){const d=yt();if(Yn(d,c),this.scroll?.wasRoot)return d;for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:m}=p;p!==this.root&&y&&m.layoutScroll&&(y.wasRoot&&Yn(d,c),mr(d.x,y.offset.x),mr(d.y,y.offset.y))}return d}applyTransform(c,d=!1,f){const p=f||yt();Yn(p,c);for(let y=0;y<this.path.length;y++){const m=this.path[y];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(mr(p.x,-m.scroll.offset.x),mr(p.y,-m.scroll.offset.y)),yi(m.latestValues)&&ju(p,m.latestValues,m.layout?.layoutBox)}return yi(this.latestValues)&&ju(p,this.latestValues,this.layout?.layoutBox),p}removeTransform(c){const d=yt();Yn(d,c);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!yi(p.latestValues))continue;let y;p.instance&&($m(p.latestValues)&&p.updateSnapshot(),y=yt(),Yn(y,p.measurePageBox())),NS(d,p.latestValues,p.snapshot?.layoutBox,y)}return yi(this.latestValues)&&NS(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==Mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==d;if(!(c||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:m}=this.options;if(!this.layout||!(y||m))return;this.resolvedRelativeTargetAt=Mt.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=yt(),this.targetWithTransforms=yt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s8(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Yn(this.target,this.layout.layoutBox),hA(this.target,this.targetDelta)):Yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$m(this.parent.latestValues)||fA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,f){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),dd(this.relativeTargetOrigin,d,f,this.options.layoutAnchor||void 0),Yn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),d=!!this.resumingFrom||this!==c;let f=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Mt.timestamp&&(f=!1),f)return;const{layout:p,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||y))return;Yn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;NV(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=yt());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(CS(this.prevProjectionDelta.x,this.projectionDelta.x),CS(this.prevProjectionDelta.y,this.projectionDelta.y)),cl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!US(this.projectionDelta.x,this.prevProjectionDelta.x)||!US(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ma(),this.projectionDelta=Ma(),this.projectionDeltaWithTransform=Ma()}setAnimationOrigin(c,d=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},m=Ma();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const v=yt(),x=f?f.source:void 0,_=this.layout?this.layout.source:void 0,E=x!==_,T=this.getStack(),C=!T||T.members.length<=1,k=!!(E&&!C&&this.options.crossfade===!0&&!this.path.some(P8));this.animationProgress=0;let R;this.mixTargetDelta=M=>{const j=M/1e3;FS(m.x,c.x,j),FS(m.y,c.y,j),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(dd(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),N8(this.relativeTarget,this.relativeTargetOrigin,v,j),R&&l8(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=yt()),Yn(R,this.relativeTarget)),E&&(this.animationValues=y,d8(y,p,this.latestValues,j,k,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Bs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Lu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ba(0)),this.motionValue.jump(0,!1),this.currentAnimation=p8(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(b8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:f,layout:p,latestValues:y}=c;if(!(!d||!f||!p)){if(this!==c&&this.layout&&p&&OA(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||yt();const m=Yt(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+m;const v=Yt(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+v}Yn(d,f),ju(d,y),cl(this.projectionDeltaWithTransform,this.layoutCorrected,d,y)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new v8),this.sharedNodes.get(c).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const p={};f.z&&jp("z",c,p,this.animationValues);for(let y=0;y<Pp.length;y++)jp(`rotate${Pp[y]}`,c,p,this.animationValues),jp(`skew${Pp[y]}`,c,p,this.animationValues);c.render();for(const y in p)c.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=zu(d?.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=zu(d?.pointerEvents)||""),this.hasProjected&&!yi(this.latestValues)&&(c.transform=f?f({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let m=c8(this.projectionDeltaWithTransform,this.treeScale,y);f&&(m=f(y,m)),c.transform=m;const{x:v,y:x}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,p.animationValues?c.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const _ in Hm){if(y[_]===void 0)continue;const{correct:E,applyTo:T,isCSSVariable:C}=Hm[_],k=m==="none"?y[_]:E(y[_],p);if(T){const R=T.length;for(let M=0;M<R;M++)c[T[M]]=k}else C?this.options.visualElement.renderState.vars[_]=k:c[_]=k}this.options.layoutId&&(c.pointerEvents=p===this?zu(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach($S),this.root.sharedNodes.clear()}}}function x8(e){e.updateLayout()}function S8(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;if(a==="size")pr(y=>{const m=l?t.measuredBox[y]:t.layoutBox[y],v=Yt(m);m.min=n[y].min,m.max=m.min+v});else if(a==="x"||a==="y"){const y=a==="x"?"y":"x";Fm(l?t.measuredBox[y]:t.layoutBox[y],n[y])}else OA(a,t.layoutBox,n)&&pr(y=>{const m=l?t.measuredBox[y]:t.layoutBox[y],v=Yt(n[y]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+v)});const c=Ma();cl(c,n,t.layoutBox);const d=Ma();l?cl(d,e.applyTransform(s,!0),t.measuredBox):cl(d,n,t.layoutBox);const f=!TA(c);let p=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:m,layout:v}=y;if(m&&v){const x=e.options.layoutAnchor||void 0,_=yt();dd(_,t.layoutBox,m.layoutBox,x);const E=yt();dd(E,n,v.layoutBox,x),AA(_,E)||(p=!0),y.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=_,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:d,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function _8(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 E8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function T8(e){e.clearSnapshot()}function $S(e){e.clearMeasurements()}function A8(e){e.isLayoutDirty=!0,e.updateLayout()}function qS(e){e.isLayoutDirty=!1}function C8(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function R8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function HS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function k8(e){e.resolveTargetDelta()}function M8(e){e.calcProjection()}
vendor: 12,995 bytes, lines 51-59
51function O8(e){e.resetSkewAndRotation()}function D8(e){e.removeLeadSnapshot()}function FS(e,t,n){e.translate=Ze(t.translate,0,n),e.scale=Ze(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function QS(e,t,n,s){e.min=Ze(t.min,n.min,s),e.max=Ze(t.max,n.max,s)}function N8(e,t,n,s){QS(e.x,t.x,n.x,s),QS(e.y,t.y,n.y,s)}function P8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const j8={duration:.45,ease:[.4,0,.1,1]},ZS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),GS=ZS("applewebkit/")&&!ZS("chrome/")?Math.round:In;function KS(e){e.min=GS(e.min),e.max=GS(e.max)}function z8(e){KS(e.x),KS(e.y)}function OA(e,t,n){return e==="position"||e==="preserve-aspect"&&!r8(LS(t),LS(n),.2)}function L8(e){return e!==e.root&&e.scroll?.wasRoot}const U8=MA({attachResizeListener:(e,t)=>Cl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),zp={current:void 0},DA=MA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zp.current){const e=new U8({});e.mount(window),e.setOptions({layoutScroll:!0}),zp.current=e}return zp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cy=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function YS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function I8(...e){return t=>{let n=!1;const s=e.map(a=>{const l=YS(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():YS(e[a],null)}}}}function B8(...e){return b.useCallback(I8(...e),e)}class V8 extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Mu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,a=Mu(s)&&s.offsetWidth||0,l=Mu(s)&&s.offsetHeight||0,c=getComputedStyle(n),d=this.props.sizeRef.current;d.height=parseFloat(c.height),d.width=parseFloat(c.width),d.top=n.offsetTop,d.left=n.offsetLeft,d.right=a-d.width-d.left,d.bottom=l-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function $8({children:e,isPresent:t,anchorX:n,anchorY:s,root:a,pop:l}){const c=b.useId(),d=b.useRef(null),f=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=b.useContext(cy),y=e.props?.ref??e?.ref,m=B8(d,y);return b.useInsertionEffect(()=>{const{width:v,height:x,top:_,left:E,right:T,bottom:C}=f.current;if(t||l===!1||!d.current||!v||!x)return;const k=n==="left"?`left: ${E}`:`right: ${T}`,R=s==="bottom"?`bottom: ${C}`:`top: ${_}`;d.current.dataset.motionPopId=c;const M=document.createElement("style");p&&(M.nonce=p);const j=a??document.head;return j.appendChild(M),M.sheet&&M.sheet.insertRule(`
52          [data-motion-pop-id="${c}"] {
53            position: absolute !important;
54            width: ${v}px !important;
55            height: ${x}px !important;
56            ${k}px !important;
57            ${R}px !important;
58          }
59        `),()=>{d.current?.removeAttribute("data-motion-pop-id"),j.contains(M)&&j.removeChild(M)}},[t]),S.jsx(V8,{isPresent:t,childRef:d,sizeRef:f,pop:l,children:l===!1?e:b.cloneElement(e,{ref:m})})}const q8=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:a,presenceAffectsLayout:l,mode:c,anchorX:d,anchorY:f,root:p})=>{const y=Lg(H8),m=b.useId();let v=!0,x=b.useMemo(()=>(v=!1,{id:m,initial:t,isPresent:n,custom:a,onExitComplete:_=>{y.set(_,!0);for(const E of y.values())if(!E)return;s&&s()},register:_=>(y.set(_,!1),()=>y.delete(_))}),[n,y,s]);return l&&v&&(x={...x}),b.useMemo(()=>{y.forEach((_,E)=>y.set(E,!1))},[n]),b.useEffect(()=>{!n&&!y.size&&s&&s()},[n]),e=S.jsx($8,{pop:c==="popLayout",isPresent:n,anchorX:d,anchorY:f,root:p,children:e}),S.jsx(Nd.Provider,{value:x,children:e})};function H8(){return new Map}function NA(e=!0){const t=b.useContext(Nd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:a}=t,l=b.useId();b.useEffect(()=>{if(e)return a(l)},[e]);const c=b.useCallback(()=>e&&s&&s(l),[l,s,e]);return!n&&s?[!1,c]:[!0]}const mu=e=>e.key||"";function XS(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const F8=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:l="sync",propagate:c=!1,anchorX:d="left",anchorY:f="top",root:p})=>{const[y,m]=NA(c),v=b.useMemo(()=>XS(e),[e]),x=c&&!y?[]:v.map(mu),_=b.useRef(!0),E=b.useRef(v),T=Lg(()=>new Map),C=b.useRef(new Set),[k,R]=b.useState(v),[M,j]=b.useState(v);oT(()=>{_.current=!1,E.current=v;for(let z=0;z<M.length;z++){const K=mu(M[z]);x.includes(K)?(T.delete(K),C.current.delete(K)):T.get(K)!==!0&&T.set(K,!1)}},[M,x.length,x.join("-")]);const U=[];if(v!==k){let z=[...v];for(let K=0;K<M.length;K++){const ee=M[K],ie=mu(ee);x.includes(ie)||(z.splice(K,0,ee),U.push(ee))}return l==="wait"&&U.length&&(z=U),j(XS(z)),R(v),null}const{forceRender:I}=b.useContext(zg);return S.jsx(S.Fragment,{children:M.map(z=>{const K=mu(z),ee=c&&!y?!1:v===M||x.includes(K),ie=()=>{if(C.current.has(K))return;if(T.has(K))C.current.add(K),T.set(K,!0);else return;let ae=!0;T.forEach(pe=>{pe||(ae=!1)}),ae&&(I?.(),j(E.current),c&&m?.(),s&&s())};return S.jsx(q8,{isPresent:ee,initial:!_.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:l,root:p,onExitComplete:ee?void 0:ie,anchorX:d,anchorY:f,children:z},K)})})},PA=b.createContext({strict:!1}),WS={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"]};let JS=!1;function Q8(){if(JS)return;const e={};for(const t in WS)e[t]={isEnabled:n=>WS[t].some(s=>!!n[s])};cA(e),JS=!0}function jA(){return Q8(),kV()}function Z8(e){const t=jA();for(const n in e)t[n]={...t[n],...e[n]};cA(t)}const G8=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","propagate","ignoreStrict","viewport"]);function fd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||G8.has(e)}let zA=e=>!fd(e);function K8(e){typeof e=="function"&&(zA=t=>t.startsWith("on")?!fd(t):e(t))}try{K8(require("@emotion/is-prop-valid").default)}catch{}function Y8(e,t,n){const s={};for(const a in e)a==="values"&&typeof e.values=="object"||Ot(e[a])||(zA(a)||n===!0&&fd(a)||!t&&!fd(a)||e.draggable&&a.startsWith("onDrag"))&&(s[a]=e[a]);return s}const Ld=b.createContext({});function X8(e,t){if(zd(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Al(n)?n:void 0,animate:Al(s)?s:void 0}}return e.inherit!==!1?t:{}}function W8(e){const{initial:t,animate:n}=X8(e,b.useContext(Ld));return b.useMemo(()=>({initial:t,animate:n}),[e_(t),e_(n)])}function e_(e){return Array.isArray(e)?e.join(" "):e}const uy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function LA(e,t,n){for(const s in t)!Ot(t[s])&&!gA(s,n)&&(e[s]=t[s])}function J8({transformTemplate:e},t){return b.useMemo(()=>{const n=uy();return oy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function e$(e,t){const n=e.style||{},s={};return LA(s,n,e),Object.assign(s,J8(e,t)),s}function t$(e,t){const n={},s=e$(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const UA=()=>({...uy(),attrs:{}});function n$(e,t,n,s){const a=b.useMemo(()=>{const l=UA();return yA(l,t,bA(s),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};LA(l,e.style,e),a.style={...l,...a.style}}return a}const r$=["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 dy(e){return typeof e!="string"||e.includes("-")?!1:!!(r$.indexOf(e)>-1||/[A-Z]/u.test(e))}function s$(e,t,n,{latestValues:s},a,l=!1,c){const f=(c??dy(e)?n$:t$)(t,s,a,e),p=Y8(t,typeof e=="string",l),y=e!==b.Fragment?{...p,...f,ref:n}:{},{children:m}=t,v=b.useMemo(()=>Ot(m)?m.get():m,[m]);return b.createElement(e,{...y,children:v})}function i$({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,a){return{latestValues:a$(n,s,a,e),renderState:t()}}function a$(e,t,n,s){const a={},l=s(e,{});for(const v in l)a[v]=zu(l[v]);let{initial:c,animate:d}=e;const f=zd(e),p=oA(e);t&&p&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let y=n?n.initial===!1:!1;y=y||c===!1;const m=y?d:c;if(m&&typeof m!="boolean"&&!jd(m)){const v=Array.isArray(m)?m:[m];for(let x=0;x<v.length;x++){const _=Wg(e,v[x]);if(_){const{transitionEnd:E,transition:T,...C}=_;for(const k in C){let R=C[k];if(Array.isArray(R)){const M=y?R.length-1:0;R=R[M]}R!==null&&(a[k]=R)}for(const k in E)a[k]=E[k]}}}return a}const IA=e=>(t,n)=>{const s=b.useContext(Ld),a=b.useContext(Nd),l=()=>i$(e,t,s,a);return n?l():Lg(l)},o$=IA({scrapeMotionValuesFromProps:ly,createRenderState:uy}),l$=IA({scrapeMotionValuesFromProps:wA,createRenderState:UA}),c$=Symbol.for("motionComponentSymbol");function u$(e,t,n){const s=b.useRef(n);b.useInsertionEffect(()=>{s.current=n});const a=b.useRef(null);return b.useCallback(l=>{l&&e.onMount?.(l);const c=s.current;if(typeof c=="function")if(l){const d=c(l);typeof d=="function"&&(a.current=d)}else a.current?(a.current(),a.current=null):c(l);else c&&(c.current=l);t&&(l?t.mount(l):t.unmount())},[t])}const BA=b.createContext({});function Ta(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function d$(e,t,n,s,a,l){const{visualElement:c}=b.useContext(Ld),d=b.useContext(PA),f=b.useContext(Nd),p=b.useContext(cy),y=p.reducedMotion,m=p.skipAnimations,v=b.useRef(null),x=b.useRef(!1);s=s||d.renderer,!v.current&&s&&(v.current=s(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:y,skipAnimations:m,isSVG:l}),x.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const _=v.current,E=b.useContext(BA);_&&!_.projection&&a&&(_.type==="html"||_.type==="svg")&&f$(v.current,n,a,E);const T=b.useRef(!1);b.useInsertionEffect(()=>{_&&T.current&&_.update(n,f)});const C=n[KT],k=b.useRef(!!C&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(C)&&window.MotionHasOptimisedAnimation?.(C));return oT(()=>{x.current=!0,_&&(T.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),k.current&&_.animationState&&_.animationState.animateChanges())}),b.useEffect(()=>{_&&(!k.current&&_.animationState&&_.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(C)}),k.current=!1),_.enteringChildren=void 0)}),_}function f$(e,t,n,s){const{layoutId:a,layout:l,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:p,layoutAnchor:y,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:VA(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||d&&Ta(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,crossfade:m,layoutScroll:f,layoutRoot:p,layoutAnchor:y})}function VA(e){if(e)return e.options.allowProjection!==!1?e.projection:VA(e.parent)}function Lp(e,{forwardMotionProps:t=!1,type:n}={},s,a){s&&Z8(s);const l=n?n==="svg":dy(e),c=l?l$:o$;function d(p,y){let m;const v={...b.useContext(cy),...p,layoutId:h$(p)},{isStatic:x}=v,_=W8(p),E=c(p,x);if(!x&&typeof window<"u"){p$();const T=m$(v);m=T.MeasureLayout,_.visualElement=d$(e,E,v,a,T.ProjectionNode,l)}return S.jsxs(Ld.Provider,{value:_,children:[m&&_.visualElement?S.jsx(m,{visualElement:_.visualElement,...v}):null,s$(e,p,u$(E,_.visualElement,y),E,x,t,l)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=b.forwardRef(d);return f[c$]=e,f}function h$({layoutId:e}){const t=b.useContext(zg).id;return t&&e!==void 0?t+"-"+e:e}function p$(e,t){b.useContext(PA).strict}function m$(e){const t=jA(),{drag:n,layout:s}=t;if(!n&&!s)return{};const a={...n,...s};return{MeasureLayout:n?.isEnabled(e)||s?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}
vendor: 16,384 bytes, line 59
59function g$(e,t){if(typeof Proxy>"u")return Lp;const n=new Map,s=(l,c)=>Lp(l,c,e,t),a=(l,c)=>s(l,c);return new Proxy(a,{get:(l,c)=>c==="create"?s:(n.has(c)||n.set(c,Lp(c,void 0,e,t)),n.get(c))})}const y$=(e,t)=>t.isSVG??dy(e)?new QV(t):new BV(t,{allowProjection:e!==b.Fragment});class v$ extends Hs{constructor(t){super(t),t.animationState||(t.animationState=XV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let b$=0;class w$ extends Hs{constructor(){super(...arguments),this.id=b$++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:l,custom:c}=this.node.getProps();if(typeof l=="string"){const d=Si(this.node,l,c);if(d){const{transition:f,transitionEnd:p,...y}=d;for(const m in y)this.node.getValue(m)?.jump(y[m])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const x$={animation:{Feature:v$},exit:{Feature:w$}};function Ll(e){return{point:{x:e.pageX,y:e.pageY}}}const S$=e=>t=>ry(t)&&e(t,Ll(t));function ul(e,t,n,s){return Cl(e,t,S$(n),s)}const $A=({current:e})=>e?e.ownerDocument.defaultView:null,t_=(e,t)=>Math.abs(e-t);function _$(e,t){const n=t_(e.x,t.x),s=t_(e.y,t.y);return Math.sqrt(n**2+s**2)}const n_=new Set(["auto","scroll"]);class qA{constructor(t,n,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=gu(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Up(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,E=_$(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!_&&!E)return;const{point:T}=x,{timestamp:C}=Mt;this.history.push({...T,timestamp:C});const{onStart:k,onMove:R}=this.handlers;_||(k&&k(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,x)},this.handlePointerMove=(x,_)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=_,this.lastMoveEventInfo=gu(_,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(x,_)=>{this.end();const{onEnd:E,onSessionEnd:T,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Up(x.type==="pointercancel"?this.lastMoveEventInfo:gu(_,this.transformPagePoint),this.history);this.startEvent&&E&&E(x,k),T&&T(x,k)},!ry(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=a||window;const f=Ll(t),p=gu(f,this.transformPagePoint),{point:y}=p,{timestamp:m}=Mt;this.history=[{...y,timestamp:m}];const{onSessionStart:v}=n;v&&v(t,Up(p,this.history)),this.removeListeners=Pl(ul(this.contextWindow,"pointermove",this.handlePointerMove),ul(this.contextWindow,"pointerup",this.handlePointerUp),ul(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let n=t.parentElement;for(;n;){const s=getComputedStyle(n);(n_.has(s.overflowX)||n_.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const s=t===window,a=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:a.x-n.x,y:a.y-n.y};l.x===0&&l.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(t,a),He.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Bs(this.updatePoint)}}function gu(e,t){return t?{point:t(e.point)}:e}function r_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Up({point:e},t){return{point:e,delta:r_(e,HA(t)),offset:r_(e,E$(t)),velocity:T$(t,.1)}}function E$(e){return e[0]}function HA(e){return e[e.length-1]}function T$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const a=HA(e);for(;n>=0&&(s=e[n],!(a.timestamp-s.timestamp>_n(t)));)n--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&a.timestamp-s.timestamp>_n(t)*2&&(s=e[1]);const l=Un(a.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-s.x)/l,y:(a.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function A$(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?Ze(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?Ze(n,e,s.max):Math.min(e,n)),e}function s_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function C$(e,{top:t,left:n,bottom:s,right:a}){return{x:s_(e.x,n,a),y:s_(e.y,t,s)}}function i_(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function R$(e,t){return{x:i_(e.x,t.x),y:i_(e.y,t.y)}}function k$(e,t){let n=.5;const s=Yt(e),a=Yt(t);return a>s?n=El(t.min,t.max-s,e.min):s>a&&(n=El(e.min,e.max-a,t.min)),Er(0,1,n)}function M$(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qm=.35;function O$(e=Qm){return e===!1?e=0:e===!0&&(e=Qm),{x:a_(e,"left","right"),y:a_(e,"top","bottom")}}function a_(e,t,n){return{min:o_(e,t),max:o_(e,n)}}function o_(e,t){return typeof e=="number"?e:e[t]||0}const D$=new WeakMap;class N${constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=m=>{n&&this.snapToCursor(Ll(m).point),this.stopAnimation()},c=(m,v)=>{const{drag:x,dragPropagation:_,onDragStart:E}=this.getProps();if(x&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iV(x),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pr(C=>{let k=this.getAxisMotionValue(C).get()||0;if(Sr.test(k)){const{projection:R}=this.visualElement;if(R&&R.layout){const M=R.layout.layoutBox[C];M&&(k=Yt(M)*(parseFloat(k)/100))}}this.originPoint[C]=k}),E&&He.update(()=>E(m,v),!1,!0),Lm(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},d=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:_,onDirectionLock:E,onDrag:T}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:C}=v;if(_&&this.currentDirection===null){this.currentDirection=j$(C),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",v.point,C),this.updateAxis("y",v.point,C),this.visualElement.render(),T&&He.update(()=>T(m,v),!1,!0)},f=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v,this.stop(m,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new qA(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:$A(this.visualElement),element:this.visualElement.current})}stop(t,n){const s=t||this.latestPointerEvent,a=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!s)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&He.postRender(()=>d(s,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,s){const{drag:a}=this.getProps();if(!s||!yu(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(c=A$(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&Ta(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=C$(s.layoutBox,t):this.constraints=!1,this.elastic=O$(n),a!==this.constraints&&!Ta(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&pr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=M$(s.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ta(t))return!1;const s=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=PV(s,a.root,this.visualElement.getTransformPagePoint());let c=R$(a.layout.layoutBox,l);if(n){const d=n(OV(c));this.hasMutatedConstraints=!!d,d&&(c=dA(d))}return c}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},p=pr(y=>{if(!yu(y,n,this.currentDirection))return;let m=f&&f[y]||{};(c===!0||c===y)&&(m={min:0,max:0});const v=a?200:1e6,x=a?40:1e7,_={type:"inertia",velocity:s?t[y]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...l,...m};return this.startAxisValueAnimation(y,_)});return Promise.all(p).then(d)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Lm(this.visualElement,t),s.start(Xg(t,s,0,n,this.visualElement,!1))}stopAnimation(){pr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),a=s[n];return a||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){pr(n=>{const{drag:s}=this.getProps();if(!yu(n,s,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[n],f=l.get()||0;l.set(t[n]-Ze(c,d,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ta(n)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};pr(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const f=d.get();a[c]=k$({min:f,max:f},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),pr(c=>{if(!yu(c,t,null))return;const d=this.getAxisMotionValue(c),{min:f,max:p}=this.constraints[c];d.set(Ze(f,p,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;D$.set(this.visualElement,this);const t=this.visualElement.current,n=ul(t,"pointerdown",p=>{const{drag:y,dragListener:m=!0}=this.getProps(),v=p.target,x=v!==t&&dV(v);y&&m&&!x&&this.start(p)});let s;const a=()=>{const{dragConstraints:p}=this.getProps();Ta(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),s||(s=P$(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,c=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),He.read(a);const d=Cl(window,"resize",()=>this.scalePositionWithinConstraints()),f=l.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:y})=>{this.isDragging&&y&&(pr(m=>{const v=this.getAxisMotionValue(m);v&&(this.originPoint[m]+=p[m].translate,v.set(v.get()+p[m].translate))}),this.visualElement.render())}));return()=>{d(),n(),c(),f&&f(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=Qm,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function l_(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function P$(e,t,n){const s=mS(e,l_(n)),a=mS(t,l_(n));return()=>{s(),a()}}function yu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j$(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class z$ extends Hs{constructor(t){super(t),this.removeGroupControls=In,this.removeListeners=In,this.controls=new N$(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||In}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ip=e=>(t,n)=>{e&&He.update(()=>e(t,n),!1,!0)};class L$ extends Hs{constructor(){super(...arguments),this.removePointerDownListener=In}onPointerDown(t){this.session=new qA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$A(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:Ip(t),onStart:Ip(n),onMove:Ip(s),onEnd:(l,c)=>{delete this.session,a&&He.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=ul(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Bp=!1;class U$ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:a}=this.props,{projection:l}=t;l&&(n.group&&n.group.add(l),s&&s.register&&a&&s.register(l),Bp&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Lu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:a,isPresent:l}=this.props,{projection:c}=s;return c&&(c.isPresent=l,t.layoutDependency!==n&&c.setOptions({...c.options,layoutDependency:n}),Bp=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==l?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||He.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),nu
vendor: 4,084 bytes, line 59
59ll}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:s}=t;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),ny.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:a}=t;Bp=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function FA(e){const[t,n]=NA(),s=b.useContext(zg);return S.jsx(U$,{...e,layoutGroup:s,switchLayoutGroup:b.useContext(BA),isPresent:t,safeToRemove:n})}const I$={pan:{Feature:L$},drag:{Feature:z$,ProjectionNode:DA,MeasureLayout:FA}};function c_(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=s[a];l&&He.postRender(()=>l(t,Ll(t)))}class B$ extends Hs{mount(){const{current:t}=this.node;t&&(this.unmount=oV(t,(n,s)=>(c_(this.node,s,"Start"),a=>c_(this.node,a,"End"))))}unmount(){}}class V$ extends Hs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Pl(Cl(this.node.current,"focus",()=>this.onFocus()),Cl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function u_(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=s[a];l&&He.postRender(()=>l(t,Ll(t)))}class $$ extends Hs{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=hV(t,(a,l)=>(u_(this.node,l,"Start"),(c,{success:d})=>u_(this.node,c,d?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const Zm=new WeakMap,Vp=new WeakMap,q$=e=>{const t=Zm.get(e.target);t&&t(e)},H$=e=>{e.forEach(q$)};function F$({root:e,...t}){const n=e||document;Vp.has(n)||Vp.set(n,{});const s=Vp.get(n),a=JSON.stringify(t);return s[a]||(s[a]=new IntersectionObserver(H$,{root:e,...t})),s[a]}function Q$(e,t,n){const s=F$(t);return Zm.set(e,n),s.observe(e),()=>{Zm.delete(e),s.unobserve(e)}}const Z$={some:0,all:1};class G$ extends Hs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:a="some",once:l}=t,c={root:n?n.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:Z$[a]},d=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:m}=this.node.getProps(),v=p?y:m;v&&v(f)};this.stopObserver=Q$(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(K$(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function K$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Y$={inView:{Feature:G$},tap:{Feature:$$},focus:{Feature:V$},hover:{Feature:B$}},X$={layout:{ProjectionNode:DA,MeasureLayout:FA}},W$={...x$,...Y$,...I$,...X$},It=g$(W$,y$),J$={some:0,all:1};function eq(e,t,{root:n,margin:s,amount:a="some"}={}){const l=ty(e),c=new WeakMap,d=p=>{p.forEach(y=>{const m=c.get(y.target);if(y.isIntersecting!==!!m)if(y.isIntersecting){const v=t(y.target,y);typeof v=="function"?c.set(y.target,v):f.unobserve(y.target)}else typeof m=="function"&&(m(y),c.delete(y.target))})},f=new IntersectionObserver(d,{root:n,rootMargin:s,threshold:typeof a=="number"?a:J$[a]});return l.forEach(p=>
59f.observe(p)),()=>f.disconnect()}function fy(e,{root:t,margin:n,amount:s,once:a=!1,initial:l=!1}={}){const[c,d]=b.useState(l);return b.useEffect(()=>{if(!e.current||a&&c)return;const f=()=>(d(!0),a?void 0:()=>d(!1)),p={root:t&&t.current||void 0,margin:n,amount:s};return eq(e.current,f,p)},[t,e,n,a,s]),c}function tq(){return S.jsxs("svg",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:12:4","data-hercules-name":"svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("rect",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:19:6","data-hercules-name":"rect",x:"8",y:"8",width:"16",height:"16",transform:"rotate(45 16 16)",fill:"oklch(0.52 0.22 25)"}),S.jsx("rect",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:27:6","data-hercules-name":"rect",x:"10",y:"10",width:"12",height:"12",transform:"rotate(45 16 16)",fill:"oklch(0.07 0 0)"}),S.jsx("rect",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:35:6","data-hercules-name":"rect",x:"12",y:"12",width:"8",height:"8",transform:"rotate(45 16 16)",fill:"oklch(0.52 0.22 25)"})]})}function nq(){const[e,t]=b.useState(!1);return S.jsxs("header",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:51:4","data-hercules-name":"header",className:"fixed top-0 left-0 right-0 z-50 border-b border-border/50 bg-background/80 backdrop-blur-md",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:52:6","data-hercules-name":"div",className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:53:8","data-hercules-name":"div",className:"flex h-16 items-center justify-between",children:[S.jsxs(ft,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:55:10","data-hercules-name":"Link",to:"/",className:"flex items-center gap-2.5 group",children:[S.jsx(tq,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:56:12","data-hercules-name":"DiamondLogo"}),S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:57:12","data-hercules-name":"span",className:"text-xl tracking-[0.15em] text-foreground group-hover:text-primary transition-colors",style:{fontFamily:"var(--font-display)"},children:"STUDIORSAFILMS"})]}),S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:66:10","data-hercules-name":"div",className:"hidden md:flex items-center gap-3",children:[S.jsx(wl,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:67:12","data-hercules-name":"Unauthenticated",children:S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:68:14","data-hercules-name":"div",className:"flex items-center gap-3",children:[S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:70:16","data-hercules-name":"SignInButton",variant:"ghost",size:"sm",signInText:"Sign In",showIcon:!1,className:"text-muted-foreground hover:text-foreground"}),S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:78:16","data-hercules-name":"SignInButton",size:"sm",signInText:"Sign Up Free",showIcon:!1,className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-5"})]})}),S.jsxs(bl,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:86:12","data-hercules-name":"Authenticated",children:[S.jsx(ft,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:87:14","data-hercules-name":"Link",to:Us,children:S.jsx(xr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:88:16","data-hercules-name":"Button",size:"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-5",children:"Click Here To Rent"})}),S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:95:14","data-hercules-name":"SignInButton",variant:"ghost",size:"sm",signOutText:"Sign Out",showIcon:!1,className:"text-muted-foreground hover:text-foreground"})]})]}),S.jsx("button",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:106:10","data-hercules-name":"button",className:"md:hidden p-2 text-muted-foreground hover:text-foreground transition-colors",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?S.jsx(iT,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:111:26","data-hercules-name":"X",size:22}):S.jsx(rT,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:111:44","data-hercules-name":"Menu",size:22})})]})}),S.jsx(F8,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:117:6","data-hercules-name":"AnimatePresence",children:e&&S.jsx(It.div,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:119:10","data-hercules-name":"motion.div",initial:{opacity:0,height:0}
59,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden border-t border-border/50 bg-background/95 backdrop-blur-md",children:S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:125:12","data-hercules-name":"div",className:"px-4 py-4 flex flex-col gap-3",children:[S.jsxs(wl,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:126:14","data-hercules-name":"Unauthenticated",children:[S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:127:16","data-hercules-name":"SignInButton",variant:"ghost",signInText:"Sign In",showIcon:!1,className:"w-full justify-start text-muted-foreground"}),S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:133:16","data-hercules-name":"SignInButton",signInText:"Sign Up Free",showIcon:!1,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold"})]}),S.jsxs(bl,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:139:14","data-hercules-name":"Authenticated",children:[S.jsx(ft,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:140:16","data-hercules-name":"Link",to:Us,onClick:()=>t(!1),children:S.jsx(xr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:141:18","data-hercules-name":"Button",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:"Click Here To Rent"})}),S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/Navbar.tsx:145:16","data-hercules-name":"SignInButton",variant:"ghost",signOutText:"Sign Out",showIcon:!1,className:"w-full justify-start text-muted-foreground"})]})]})})})]})}function rq(){return S.jsxs("section",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:11:4","data-hercules-name":"section",className:"relative min-h-screen flex items-center justify-center overflow-hidden",children:[S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:13:6","data-hercules-name":"div",className:"absolute inset-0",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:15:8","data-hercules-name":"div",className:"absolute inset-0 bg-background"}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:18:8","data-hercules-name":"div",className:"absolute top-0 right-0 h-full w-3/4 opacity-15",style:{background:"linear-gradient(135deg, oklch(0.52 0.22 25) 0%, oklch(0.3 0.15 25) 50%, transparent 100%)",clipPath:"polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%)"}}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:28:8","data-hercules-name":"div",className:"absolute top-0 h-full w-[3px] opacity-70",style:{left:"38%",background:"linear-gradient(to bottom, transparent 0%, oklch(0.62 0.25 25) 30%, oklch(0.52 0.22 25) 70%, transparent 100%)",transform:"skewX(-8deg)"}}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:39:8","data-hercules-name":"div",className:"absolute top-0 h-full w-[6px] opacity-50",style:{left:"36%",background:"linear-gradient(to bottom, transparent 0%, oklch(0.52 0.22 25) 20%, oklch(0.42 0.18 25) 80%, transparent 100%)",transform:"skewX(-8deg)"}}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:50:8","data-hercules-name":"div",className:"absolute top-0 h-full opacity-[0.08]",style:{left:"35%",right:0,background:"linear-gradient(to right, oklch(0.52 0.22 25 / 0.6), transparent 60%)",transform:"skewX(-8deg)"}}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:62:8","data-hercules-name":"div",className:"absolute bottom-0 left-0 right-0 h-48 bg-gradient-to-t from-background to-transparent"}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:65:8","data-hercules-name":"div",className:"absolute top-0 left-0 right-0 h-24 bg-gradient-to-b from-background to-transparent"}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:68:8","data-hercules-name":"div",className:"absolute inset-0 opacity-[0.04]",style:{backgroundImage:"radial-gradient(circle, oklch(0.95 0 0) 1px, transparent 1px)",backgroundSize:"32px 32px"}})]}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:79:6","data-hercules-name":"div",className:"relative z-10 mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 pt-16 pb-24",children:S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:80:8","data-hercules-name":"div",className:"max-w-3xl",children:[S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:82:10","data-hercules-name":"motion.div",initial:{opacity:0,y:20}
59,animate:{opacity:1,y:0},transition:{duration:.6,delay:0,ease:"easeOut"},className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-primary/40 bg-primary/10 mb-6",children:[S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:88:12","data-hercules-name":"span",className:"w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:89:12","data-hercules-name":"span",className:"text-xs font-semibold tracking-widest text-primary uppercase",children:"Premium Film Rentals"})]}),S.jsxs(It.h1,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:95:10","data-hercules-name":"motion.h1",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.15,ease:"easeOut"},className:"text-balance leading-[0.9] mb-6",style:{fontFamily:"var(--font-display)",fontSize:"clamp(3.5rem, 8vw, 7rem)",letterSpacing:"0.03em"},children:["THE CINEMA",S.jsx("br",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:107:12","data-hercules-name":"br"}),S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:108:12","data-hercules-name":"span",className:"text-primary",children:"EXPERIENCE"}),S.jsx("br",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:109:12","data-hercules-name":"br"}),"YOUR WAY"]}),S.jsxs(It.p,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:114:10","data-hercules-name":"motion.p",initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3,ease:"easeOut"},className:"text-lg sm:text-xl text-muted-foreground max-w-xl mb-10 leading-relaxed",children:["Stream premium films in stunning"," ",S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:121:12","data-hercules-name":"span",className:"text-foreground font-medium",children:"SD, HD & 4K"}),". Rent for 48 hours, watch on any device — TV, mobile, desktop."]}),S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:126:10","data-hercules-name":"motion.div",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.45,ease:"easeOut"},className:"flex flex-col gap-4",children:[S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:132:12","data-hercules-name":"div",className:"flex flex-wrap items-center gap-4",children:[S.jsx(wl,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:133:14","data-hercules-name":"Unauthenticated",children:S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:134:16","data-hercules-name":"SignInButton",size:"lg",signInText:"Sign in/Sign Up to Rent",showIcon:!0,className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-8 py-6 text-base shadow-lg shadow-primary/30"})}),S.jsx(bl,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:141:14","data-hercules-name":"Authenticated",children:S.jsx(ft,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:142:16","data-hercules-name":"Link",to:Us,children:S.jsxs(xr,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:143:18","data-hercules-name":"Button",size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-8 py-6 text-base gap-2 shadow-lg shadow-primary/30",children:[S.jsx(jg,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:147:20","data-hercules-name":"Play",size:18,fill:"currentColor"}),"Click Here To Rent"]})})})]}),S.jsx("a",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:153:12","data-hercules-name":"a",href:"https://studiorsafilms.com/viewer-comments-%26-reviews",target:"_blank",rel:"noopener noreferrer",children:S.jsx(xr,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:158:14","data-hercules-name":"Button",size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-8 py-6 text-base gap-2 shadow-lg shadow-primary/30 cursor-pointer",children:"VIEWERS COMMENTS"})}),S.jsx("a",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:165:12","data-hercules-name":"a",href:"https://studiorsafilms.com/awards-nominees-stills",target:"_blank",rel:"noopener noreferrer",children:S.jsx(xr,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:170:14","data-hercules-name":"Button",size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-8 py-6 text-base gap-2 shadow-lg shadow-primary/30 cursor-pointer",children:"AWARDS-NOMINEES-STILLS"})})]}),S.jsx(It.div,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:180:10","data-hercules-name":"motion.div",initial:{opacity:0,y:16}
59,animate:{opacity:1,y:0},transition:{duration:.6,delay:.6,ease:"easeOut"},className:"flex flex-wrap gap-8 mt-14 pt-8 border-t border-border/50",children:[{value:"SD · HD · 4K",label:"Streaming Quality"},{value:"48 HRS",label:"Rental Window"},{value:"ALL DEVICES",label:"TV, Mobile, Desktop"}].map(e=>S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:191:14","data-hercules-name":"div",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:192:16","data-hercules-name":"div",className:"text-2xl text-primary font-bold tracking-wide",style:{fontFamily:"var(--font-display)"},children:e.value}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:198:16","data-hercules-name":"div",className:"text-xs text-muted-foreground tracking-widest uppercase mt-0.5",children:e.label})]},e.label))})]})}),S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:208:6","data-hercules-name":"motion.div",initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2},className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-1 text-muted-foreground/50",children:[S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Hero.tsx:214:8","data-hercules-name":"span",className:"text-[10px] tracking-[0.2em] uppercase text-primary",children:"Scroll"}),S.jsx(It.div,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:215:8","data-hercules-name":"motion.div",animate:{y:[0,5,0]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},children:S.jsx(tT,{"data-hercules-id":"src/pages/index/_components/Hero.tsx:219:10","data-hercules-name":"ChevronDown",size:16})})]})]})}const sq=[{number:"01",icon:kU,title:"BROWSE",subtitle:"Discover Films",description:"Explore our curated catalog of premium films. Find your next cinematic experience."},{number:"02",icon:yU,title:"RENT",subtitle:"Choose Your Quality",description:"Select SD at $3.99, HD at $5.99, or 4K at $8.99. Apply a promo code for a discount. Pay securely via Stripe."},{number:"03",icon:jg,title:"WATCH",subtitle:"48-Hour Access",description:"Your 48-hour rental window starts when you press play. Stream on TV, mobile, or desktop whenever you like."}];function iq(){const e=b.useRef(null),t=fy(e,{once:!0,margin:"-100px"});return S.jsxs("section",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:38:4","data-hercules-name":"section",id:"how-it-works",className:"py-24 relative overflow-hidden",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:40:6","data-hercules-name":"div",className:"absolute top-0 left-1/2 -translate-x-1/2 w-[600px] h-[400px] rounded-full opacity-5 blur-[120px] bg-primary pointer-events-none"}),S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:42:6","data-hercules-name":"div",className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:44:8","data-hercules-name":"motion.div",ref:e,initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center mb-16",children:[S.jsx("p",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:51:10","data-hercules-name":"p",className:"text-xs font-semibold tracking-[0.3em] text-primary uppercase mb-4",children:"Simple Process"}),S.jsx("h2",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:54:10","data-hercules-name":"h2",className:"text-5xl sm:text-6xl text-foreground",style:{fontFamily:"var(--font-display)",letterSpacing:"0.05em"},children:"HOW IT WORKS"})]}),S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:63:8","data-hercules-name":"div",className:"grid grid-cols-1 md:grid-cols-3 gap-8 relative",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:65:10","data-hercules-name":"div",className:"hidden md:block absolute top-12 left-1/6 right-1/6 h-px bg-gradient-to-r from-transparent via-border to-transparent"}),sq.map((n,s)=>{const a=n.icon;return S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:70:14","data-hercules-name":"motion.div",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:s*.15},className:"relative flex flex-col items-center text-center p-8 rounded-xl border border-border/60 bg-card hover:border-primary/40 transition-colors group",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:78:16","data-hercules-name":"div",className:"text-7xl font-bold text-primary/10 absolute top-4 right-6 select-none",style:{fontFamily:"var(--font-display)"},children:n.number}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:86:16","data-hercules-name":"div",className:"relative z-10 w-16 h-16 rounded-xl bg-primary/10 border border-primary/20 flex items-center justify-center mb-5 group-hover:bg-primary/20 transition-colors",children:S.jsx(a,{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:87:18","data-hercules-name":"Icon",size:28,className:"text-primary"})}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:90:16","data-hercules-name":"div",className:"text-2xl text-foreground mb-1 relative z-10",style:{fontFamily:"var(--font-display)",letterSpacing:"0.1em"},children:n.title}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:96:16","data-hercules-name":"div",className:"text-xs text-primary tracking-widest uppercase mb-4 relative z-10",children:n.subtitle}),S.jsx("p",{"data-hercules-id":"src/pages/index/_components/HowItWorks.tsx:99:16","data-hercules-name":"p",className:"text-sm text-muted-foreground leading-relaxed relative z-10",children:n.description})]},n.number)})]})]})]})}const aq=[{icon:IU,title:"SD, HD & 4K Quality",description:"Experience films the way they were meant to be seen. Choose SD at $3.99, HD at $5.99, or full 4K at $8.99.",highlight:!0},{icon:mU,title:"48-Hour Rentals",description:"Your rental window only starts when you press play. Rent now, watch when you're ready.",highlight:!1},{icon:AU,title:"Every Screen",description:"Stream seamlessly on your TV, laptop, tablet, or phone. One rental, any device.",highlight:!1},{icon:Ru,title:"Secure Payments",description:"Pay with Stripe. Your payment data is encrypted and never stored.",highlight:!1},{icon:jU,title:"Smart TV Ready",description:"Open the browser on your smart TV and enjoy the full cinema experience on your biggest screen.",highlight:!1},{icon:NU,title:"Install as App",description:"Add STUDIORSAFILMS to your home screen for an app-like experience without app store downloads.",highlight:!1}];function oq(){const e=b.useRef(null),t=fy(e,{once:!0,margin:"-80px"});return S.jsx("section",{"data-hercules-id":"src/pages/index/_components/Features.tsx:56:4","data-hercules-name":"section",className:"py-24 bg-card/30",children:S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Features.tsx:57:6","data-hercules-name":"div",className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/Features.tsx:59:8","data-hercules-name":"motion.div",ref:e,initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center mb-16",children:[S.jsx("p",{"data-hercules-id":"src/pages/index/_components/Features.tsx:66:10","data-hercules-name":"p",className:"text-xs font-semibold tracking-[0.3em] text-primary uppercase mb-4",children:"Why Choose Us"}),S.jsx("h2",{"data-hercules-id":"src/pages/index/_components/Features.tsx:69:10","data-hercules-name":"h2",className:"text-5xl sm:text-6xl text-foreground",style:{fontFamily:"var(--font-display)",letterSpacing:"0.05em"},children:"PREMIUM BY DESIGN"}),S.jsx("p",{"data-hercules-id":"src/pages/index/_components/Features.tsx:75:10","data-hercules-name":"p",className:"mt-4 text-muted-foreground max-w-xl mx-auto",children:"Everything you need for a world-class film rental experience."})]}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Features.tsx:81:8","data-hercules-name":"div",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:aq.map((n,s)=>{const a=n.icon;return S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/Features.tsx:85:14","data-hercules-name":"motion.div",initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.5,delay:s*.08},className:`relative p-6 rounded-xl border transition-all group hover:-translate-y-1 ${n.highlight?"border-primary/50 bg-primary/5":"border-border/60 bg-card hover:border-primary/30"}`,children:[n.highlight&&S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Features.tsx:97:18","data-hercules-name":"div",className:"absolute top-4 right-4",children:S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Features.tsx:98:20","data-hercules-name":"span",className:"text-[10px] font-bold tracking-widest uppercase text-primary border border-primary/40 px-2 py-0.5 rounded-full",children:"Popular"})}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Features.tsx:103:16","data-hercules-name":"div",className:`w-12 h-12 rounded-lg flex items-center justify-center mb-4 ${n.highlight?"bg-primary text-primary-foreground":"bg-muted text-primary group-hover:bg-primary/10"} transition-colors`,children:S.jsx(a,{"data-hercules-id":"src/pages/index/_components/Features.tsx:110:18","data-hercules-name":"Icon",size:22})}),S.jsx("h3",{"data-hercules-id":"src/pages/index/_components/Features.tsx:112:16","data-hercules-name":"h3",className:"font-bold text-foreground mb-2",children:n.title}),S.jsx("p",{"data-hercules-id":"src/pages/index/_components/Features.tsx:113:16","data-hercules-name":"p",className:"text-sm text-muted-foreground leading-relaxed",children:n.description})]},n.title)})})]})})}const lq=[{quality:"SD FOR MOBILE",resolution:"360p",price:"$3.99",per:"per rental",features:["Standard 360p streaming","48-hour rental access","Works on all devices","Stripe secure payment"]},{quality:"HD FOR PC & TV",resolution:"1080p",price:"$5.99",per:"per rental",features:["Full HD 1080p streaming","48-hour rental access","Works on all devices","Stripe secure payment"]},{quality:"4K FOR PC & TV",resolution:"2160p Ultra HD",price:"$8.99",per:"per rental",features:["Ultra HD 4K / 2160p","48-hour rental access","Dolby-quality audio","Stripe secure payment"],featured:!0}];function cq(){const e=b.useRef(null),t=fy(e,{once:!0,margin:"-80px"});return S.jsxs("section",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:56:4","data-hercules-name":"section",className:"py-24 relative overflow-hidden",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:58:6","data-hercules-name":"div",className:"absolute inset-0 pointer-events-none",children:S.jsx("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:59:8","data-hercules-name":"div",className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-[800px] h-[300px] bg-primary/5 rounded-full blur-[100px]"})}),S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:62:6","data-hercules-name":"div",className:"mx-auto max-w-5xl px-4 sm:px-6 lg:px-8",children:[S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:63:8","data-hercules-name":"motion.div",ref:e,initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center mb-14",children:[S.jsx("p",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:70:10","data-hercules-name":"p",className:"text-xs font-semibold tracking-[0.3em] text-primary uppercase mb-4",children:"Simple Pricing"}),S.jsx("h2",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:73:10","data-hercules-name":"h2",className:"text-5xl sm:text-6xl text-foreground",style:{fontFamily:"var(--font-display)",letterSpacing:"0.05em"},children:"RENT PER FILM"}),S.jsx("p",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:79:10","data-hercules-name":"p",className:"mt-4 text-muted-foreground max-w-md mx-auto",children:"No subscription. No monthly fees. Pay only for what you want to watch."})]}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:84:8","data-hercules-name":"div",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 max-w-4xl mx-auto",children:lq.map((n,s)=>S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:86:12","data-hercules-name":"motion.div",initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.5,delay:s*.15},className:`relative rounded-2xl border p-8 ${n.featured?"border-primary bg-primary/5":"border-border/60 bg-card"}`,children:[n.featured&&S.jsx("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:98:16","data-hercules-name":"div",className:"absolute -top-3.5 left-1/2 -translate-x-1/2",children:S.jsx("span",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:99:18","data-hercules-name":"span",className:"text-[10px] font-bold tracking-widest uppercase text-primary-foreground bg-primary px-4 py-1 rounded-full",children:"Best Quality"})}),S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:105:14","data-hercules-name":"div",className:"mb-6",children:[S.jsx("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:106:16","data-hercules-name":"div",className:"text-4xl text-foreground",style:{fontFamily:"var(--font-display)",letterSpacing:"0.1em"},children:n.quality}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:112:16","data-hercules-name":"div",className:"text-xs text-muted-foreground tracking-widest uppercase mt-0.5",children:n.resolution})]}),S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:117:14","data-hercules-name":"div",className:"mb-8",children:[S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:118:16","data-hercules-name":"div",children:[S.jsx("span",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:119:18","data-hercules-name":"span",className:"text-5xl font-bold text-foreground",style:{fontFamily:"var(--font-display)"},children:n.price}),S.jsx("span",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:125:18","data-hercules-name":"span",className:"text-sm text-muted-foreground ml-2",children:n.per})]}),S.jsx("p",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:127:16","data-hercules-name":"p",className:"text-[11px] font-semibold text-white mt-1.5",children:"See local currency at checkout"})]}),S.jsx("ul",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:132:14","data-hercules-name":"ul",className:"space-y-3 mb-8",children:n.features.map(a=>S.jsxs("li",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:134:18","data-hercules-name":"li",className:"flex items-center gap-2.5 text-sm text-muted-foreground",children:[S.jsx("span",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:135:20","data-hercules-name":"span",className:"w-4 h-4 rounded-full bg-primary/20 flex items-center justify-center flex-shrink-0",children:S.jsx("span",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:136:22","data-hercules-name":"span",className:"w-1.5 h-1.5 rounded-full bg-primary"})}),a]},a))}),S.jsx(wl,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:143:14","data-hercules-name":"Unauthenticated",children:S.jsx(Kr,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:144:16","data-hercules-name":"SignInButton",signInText:"Get Started",showIcon:!0,className:`w-full font-semibold ${n.featured?"bg-primary hover:bg-primary/90 text-primary-foreground":"bg-secondary hover:bg-secondary/80 text-secondary-foreground"}`})}),S.jsx(bl,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:154:14","data-hercules-name":"Authenticated",children:S.jsx(ft,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:155:16","data-hercules-name":"Link",to:Us,children:S.jsxs(xr,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:156:18","data-hercules-name":"Button",className:`w-full gap-2 font-semibold ${n.f
59eatured?"bg-primary hover:bg-primary/90 text-primary-foreground":"bg-secondary hover:bg-secondary/80 text-secondary-foreground"}`,children:[S.jsx(jg,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:163:20","data-hercules-name":"Play",size:14,fill:"currentColor"}),"Click Here To Rent"]})})})]},n.quality))}),S.jsxs(It.p,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:173:8","data-hercules-name":"motion.p",initial:{opacity:0},animate:t?{opacity:1}:{},transition:{duration:.5,delay:.4},className:"text-center text-sm text-muted-foreground mt-8",children:["Have a promo or referral code?"," ",S.jsx("span",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:180:10","data-hercules-name":"span",className:"text-primary font-medium",children:"Enter it at checkout for a discount."})]}),S.jsxs(It.div,{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:186:8","data-hercules-name":"motion.div",initial:{opacity:0},animate:t?{opacity:1}:{},transition:{duration:.5,delay:.5},className:"flex items-center justify-center gap-4 mt-4 text-xs text-muted-foreground/60",children:[S.jsx("a",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:192:10","data-hercules-name":"a",href:"https://studiorsafilms.com/faq-1",target:"_blank",rel:"noopener noreferrer",className:"hover:text-muted-foreground underline underline-offset-2 transition-colors",children:"FAQ"}),S.jsx("span",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:200:10","data-hercules-name":"span",children:"·"}),S.jsx("a",{"data-hercules-id":"src/pages/index/_components/PricingBanner.tsx:201:10","data-hercules-name":"a",href:"https://studiorsafilms.com/terms-of-use-1",target:"_blank",rel:"noopener noreferrer",className:"hover:text-muted-foreground underline underline-offset-2 transition-colors",children:"Terms of Use"})]})]})]})}function uq(){return S.jsxs("svg",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:6:4","data-hercules-name":"svg",width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("rect",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:13:6","data-hercules-name":"rect",x:"8",y:"8",width:"16",height:"16",transform:"rotate(45 16 16)",fill:"oklch(0.52 0.22 25)"}),S.jsx("rect",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:21:6","data-hercules-name":"rect",x:"10",y:"10",width:"12",height:"12",transform:"rotate(45 16 16)",fill:"oklch(0.07 0 0)"}),S.jsx("rect",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:29:6","data-hercules-name":"rect",x:"12",y:"12",width:"8",height:"8",transform:"rotate(45 16 16)",fill:"oklch(0.52 0.22 25)"})]})}function dq(){const e=new Date().getFullYear();return S.jsx("footer",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:45:4","data-hercules-name":"footer",className:"border-t border-border/50 bg-background py-12",children:S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:46:6","data-hercules-name":"div",className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[S.jsxs("div",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:47:8","data-hercules-name":"div",className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[S.jsxs(ft,{"data-hercules-id":"src/pages/index/_components/Footer.tsx:49:10","data-hercules-name":"Link",to:"/",className:"flex items-center gap-2 group",children:[S.jsx(uq,{"data-hercules-id":"src/pages/index/_components/Footer.tsx:50:12","data-hercules-name":"DiamondLogo"}),S.jsx("span",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:51:12","data-hercules-name":"span",className:"text-lg tracking-[0.15em] text-muted-foreground group-hover:text-foreground transition-colors",style:{fontFamily:"var(--font-display)"},children:"STUDIORSAFILMS"})]}),S.jsx("nav",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:60:10","data-hercules-name":"nav",className:"flex flex-wrap justify-center gap-6 text-sm text-muted-foreground",children:[{label:"Home",href:"/"},{label:"Click Here To Rent",href:Us},{label:"Library",href:"/library"},{label:"Settings",href:"/settings"}].map(t=>S.jsx(ft,{"data-hercules-id":"src/pages/index/_components/Footer.tsx:67:14","data-hercules-name":"Link",to:t.href,className:"hover:text-primary transition-colors",children:t.label},t.label))}),S.jsxs("p",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:78:10","data-hercules-name":"p",className:"text-xs text-muted-foreground
59/60",children:["© ",e," STUDIORSAFILMS. All rights reserved."]})]}),S.jsx("div",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:84:8","data-hercules-name":"div",className:"mt-8 pt-8 border-t border-border/30 text-center",children:S.jsx("p",{"data-hercules-id":"src/pages/index/_components/Footer.tsx:85:10","data-hercules-name":"p",className:"text-xs text-muted-foreground/40 tracking-widest uppercase",children:"Premium Film Rentals — Stream in SD, HD & 4K — Any Device"})})]})})}function fq(){return S.jsxs("div",{"data-hercules-id":"src/pages/Index.tsx:10:4","data-hercules-name":"div",className:"min-h-screen bg-background text-foreground",children:[S.jsx(nq,{"data-hercules-id":"src/pages/Index.tsx:11:6","data-hercules-name":"Navbar"}),S.jsxs("main",{"data-hercules-id":"src/pages/Index.tsx:12:6","data-hercules-name":"main",children:[S.jsx(rq,{"data-hercules-id":"src/pages/Index.tsx:13:8","data-hercules-name":"Hero"}),S.jsx(iq,{"data-hercules-id":"src/pages/Index.tsx:14:8","data-hercules-name":"HowItWorks"}),S.jsx(oq,{"data-hercules-id":"src/pages/Index.tsx:15:8","data-hercules-name":"Features"}),S.jsx(cq,{"data-hercules-id":"src/pages/Index.tsx:16:8","data-hercules-name":"PricingBanner"})]}),S.jsx(dq,{"data-hercules-id":"src/pages/Index.tsx:18:6","data-hercules-name":"Footer"})]})}function hq(){const e=qn();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),S.jsx("div",{"data-hercules-id":"src/pages/NotFound.tsx:16:4","data-hercules-name":"div",className:"min-h-screen flex items-center justify-center bg-background",children:S.jsxs("div",{"data-hercules-id":"src/pages/NotFound.tsx:17:6","data-hercules-name":"div",className:"text-center space-y-6",children:[S.jsxs("div",{"data-hercules-id":"src/pages/NotFound.tsx:18:8","data-hercules-name":"div",className:"space-y-2",children:[S.jsx("h1",{"data-hercules-id":"src/pages/NotFound.tsx:19:10","data-hercules-name":"h1",className:"text-6xl font-bold text-muted-foreground",children:"404"}),S.jsx("h2",{"data-hercules-id":"src/pages/NotFound.tsx:20:10","data-hercules-name":"h2",className:"text-2xl font-semibold",children:"Page Not Found"})]}),S.jsx("p",{"data-hercules-id":"src/pages/NotFound.tsx:22:8","data-hercules-name":"p",className:"text-lg text-muted-foreground max-w-md mx-auto",children:"This page does not exist."}),S.jsx("div",{"data-hercules-id":"src/pages/NotFound.tsx:25:8","data-hercules-name":"div",className:"pt-4",children:S.jsx(xr,{"data-hercules-id":"src/pages/NotFound.tsx:26:10","data-hercules-name":"Button",asChild:!0,children:S.jsx(ft,{"data-hercules-id":"src/pages/NotFound.tsx:27:12","data-hercules-name":"Link",to:"/",children:"Return to Home"})})})]})})}function QA({className:e,...t}){return S.jsx("div",{"data-hercules-id":"src/components/ui/skeleton.tsx:5:4","data-hercules-name":"div","data-slot":"skeleton",className:Ln("bg-muted-foreground/10 rounded-md opacity-0 animate-[fade-in_1s_ease-in-out_1s_forwards,pulse_2s_ease-in-out_1s_infinite]",e),...t})}function ZA(e){const t=e+"CollectionProvider",[n,s]=Qa(t),[a,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=E=>{const{scope:T,children:C}=E,k=te.useRef(null),R=te.useRef(new Map).current;return S.jsx(a,{scope:T,itemMap:R,collectionRef:k,children:C})};c.displayName=t;const d=e+"CollectionSlot",f=Xu(d),p=te.forwardRef((E,T)=>{const{scope:C,children:k}=E,R=l(d,C),M=Bt(T,R.collectionRef);return S.jsx(f,{ref:M,children:k})});p.displayName=d;const y=e+"CollectionItemSlot",m="data-radix-collection-item",v=Xu(y),x=te.forwardRef((E,T)=>{const{scope:C,children:k,...R}=E,M=te.useRef(null),j=Bt(T,M),U=l(y,C);return te.useEffect(()=>(U.itemMap.set(M,{ref:M,...R}),()=>{U.itemMap.delete(M)})),S.jsx(v,{[m]:"",ref:j,children:k})});x.displayName=y;function _(E){const T=l(e+"CollectionConsumer",E);return te.useCallback(()=>{const k=T.collectionRef.current;if(!k)return[];const R=Array.from(k.querySelectorAll(`[${m}]`));return Array.from(T.itemMap.values()).sort((U,I)=>R.indexOf(U.ref.current)-R.indexOf(I.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:c,Slot:p,ItemSlot:x},_,s]}var pq=b.createContext(void 0);function GA(e){const t=b.useContext(pq);return e||t||"ltr"}var $p=0;function mq(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??d_()),document.body.insertAdjacentElement("beforeend",e[1]??d_()),$p++,()=>{$p===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$p--}},[])}function d_(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,503 bytes, line 59
59style.position="fixed",e.style.pointerEvents="none",e}var qp="focusScope.autoFocusOnMount",Hp="focusScope.autoFocusOnUnmount",f_={bubbles:!1,cancelable:!0},gq="FocusScope",KA=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...c}=e,[d,f]=b.useState(null),p=Wr(a),y=Wr(l),m=b.useRef(null),v=Bt(t,E=>f(E)),x=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let E=function(R){if(x.paused||!d)return;const M=R.target;d.contains(M)?m.current=M:Ds(m.current,{select:!0})},T=function(R){if(x.paused||!d)return;const M=R.relatedTarget;M!==null&&(d.contains(M)||Ds(m.current,{select:!0}))},C=function(R){if(document.activeElement===document.body)for(const j of R)j.removedNodes.length>0&&Ds(d)};document.addEventListener("focusin",E),document.addEventListener("focusout",T);const k=new MutationObserver(C);return d&&k.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),k.disconnect()}}},[s,d,x.paused]),b.useEffect(()=>{if(d){p_.add(x);const E=document.activeElement;if(!d.contains(E)){const C=new CustomEvent(qp,f_);d.addEventListener(qp,p),d.dispatchEvent(C),C.defaultPrevented||(yq(Sq(YA(d)),{select:!0}),document.activeElement===E&&Ds(d))}return()=>{d.removeEventListener(qp,p),setTimeout(()=>{const C=new CustomEvent(Hp,f_);d.addEventListener(Hp,y),d.dispatchEvent(C),C.defaultPrevented||Ds(E??document.body,{select:!0}),d.removeEventListener(Hp,y),p_.remove(x)},0)}}},[d,p,y,x]);const _=b.useCallback(E=>{if(!n&&!s||x.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,C=document.activeElement;if(T&&C){const k=E.currentTarget,[R,M]=vq(k);R&&M?!E.shiftKey&&C===M?(E.preventDefault(),n&&Ds(R,{select:!0})):E.shiftKey&&C===R&&(E.preventDefault(),n&&Ds(M,{select:!0})):C===k&&E.preventDefault()}},[n,s,x.paused]);return S.jsx(Nt.div,{tabIndex:-1,...c,ref:v,onKeyDown:_})});KA.displayName=gq;function yq(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Ds(s,{select:t}),document.activeElement!==n)return}function vq(e){const t=YA(e),n=h_(t,e),s=h_(t.reverse(),e);return[n,s]}function YA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h_(e,t){for(const n of e)if(!bq(n,{upTo:t}))return n}function bq(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wq(e){return e instanceof HTMLInputElement&&"select"in e}function Ds(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&wq(e)&&t&&e.select()}}var p_=xq();function xq(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=m_(e,t),e.unshift(t)},remove(t){e=m_(e,t),e[0]?.resume()}}}function m_(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Sq(e){return e.filter(t=>t.tagName!=="A")}var Fp="rovingFocusGroup.onEntryFocus",_q={bubbles:!1,cancelable:!0},Ul="RovingFocusGroup",[Gm,XA,Eq]=ZA(Ul),[Tq,WA]=Qa(Ul,[Eq]),[Aq,Cq]=Tq(Ul),JA=b.forwardRef((e,t)=>S.jsx(Gm.Provider,{scope:e.__scopeRovingFocusGroup,children:S.jsx(Gm.Slot,{scope:e.__scopeRovingFocusGroup,children:S.jsx(Rq,{...e,ref:t})})}));JA.displayName=Ul;var Rq=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:a=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:y=!1,...m}=e,v=b.useRef(null),x=Bt(t,v),_=GA(l),[E,T]=RE({prop:c,defaultProp:d??null,onChange:f,caller:Ul}),[C,k]=b.useState(!1),R=Wr(p),M=XA(n),j=b.useRef(!1),[U,I]=b.useState(0);return b.useEffect(()=>{const z=v.current;if(z)return z.addEventListener(Fp,R),()=>z.removeEventListener(Fp,R)},[R]),S.jsx(Aq,{scope:n,orientation:s,dir:_,loop:a,currentTabStopId:E,onItemFocus:b.useCallback(z=>T(z),[T]),onItemShiftTab:b.useCallback(()=>k(!0),[]),onFocusableItemAdd:b.useCallback(()=>I(z=>z+1),[]),onFocusableItemRemove:b.useCallback(()=>I(z=>z-1),[]),children:S.jsx(Nt.div,{tabIndex:C||U===0?-1:0,"data-orientation":s,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:Ae(e.onMouseDown,()=>{j.current=!0}),onFocus:Ae(e.onFocus,z=>{const K=!j.current;
vendor: 9,164 bytes, lines 59-74
59if(z.target===z.currentTarget&&K&&!C){const ee=new CustomEvent(Fp,_q);if(z.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const ie=M().filter(N=>N.focusable),ae=ie.find(N=>N.active),pe=ie.find(N=>N.id===E),de=[ae,pe,...ie].filter(Boolean).map(N=>N.ref.current);nC(de,y)}}j.current=!1}),onBlur:Ae(e.onBlur,()=>k(!1))})})}),eC="RovingFocusGroupItem",tC=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:l,children:c,...d}=e,f=ym(),p=l||f,y=Cq(eC,n),m=y.currentTabStopId===p,v=XA(n),{onFocusableItemAdd:x,onFocusableItemRemove:_,currentTabStopId:E}=y;return b.useEffect(()=>{if(s)return x(),()=>_()},[s,x,_]),S.jsx(Gm.ItemSlot,{scope:n,id:p,focusable:s,active:a,children:S.jsx(Nt.span,{tabIndex:m?0:-1,"data-orientation":y.orientation,...d,ref:t,onMouseDown:Ae(e.onMouseDown,T=>{s?y.onItemFocus(p):T.preventDefault()}),onFocus:Ae(e.onFocus,()=>y.onItemFocus(p)),onKeyDown:Ae(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){y.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const C=Oq(T,y.orientation,y.dir);if(C!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let R=v().filter(M=>M.focusable).map(M=>M.ref.current);if(C==="last")R.reverse();else if(C==="prev"||C==="next"){C==="prev"&&R.reverse();const M=R.indexOf(T.currentTarget);R=y.loop?Dq(R,M+1):R.slice(M+1)}setTimeout(()=>nC(R))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:E!=null}):c})})});tC.displayName=eC;var kq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mq(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Oq(e,t,n){const s=Mq(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return kq[s]}function nC(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function Dq(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var Nq=JA,Pq=tC,jq=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xa=new WeakMap,vu=new WeakMap,bu={},Qp=0,rC=function(e){return e&&(e.host||rC(e.parentNode))},zq=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=rC(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Lq=function(e,t,n,s){var a=zq(t,Array.isArray(e)?e:[e]);bu[n]||(bu[n]=new WeakMap);var l=bu[n],c=[],d=new Set,f=new Set(a),p=function(m){!m||d.has(m)||(d.add(m),p(m.parentNode))};a.forEach(p);var y=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(v){if(d.has(v))y(v);else try{var x=v.getAttribute(s),_=x!==null&&x!=="false",E=(xa.get(v)||0)+1,T=(l.get(v)||0)+1;xa.set(v,E),l.set(v,T),c.push(v),E===1&&_&&vu.set(v,!0),T===1&&v.setAttribute(n,"true"),_||v.setAttribute(s,"true")}catch(C){console.error("aria-hidden: cannot operate on ",v,C)}})};return y(t),d.clear(),Qp++,function(){c.forEach(function(m){var v=xa.get(m)-1,x=l.get(m)-1;xa.set(m,v),l.set(m,x),v||(vu.has(m)||m.removeAttribute(s),vu.delete(m)),x||m.removeAttribute(n)}),Qp--,Qp||(xa=new WeakMap,xa=new WeakMap,vu=new WeakMap,bu={})}},Uq=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=jq(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),Lq(s,a,n,"aria-hidden")):function(){return null}},yr=function(){return yr=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},yr.apply(this,arguments)};function sC(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n}function Iq(e,t,n){if(n||arguments.length===2)for(var s=0,a=t.length,l;s<a;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var Uu="right-scroll-bar-position",Iu="width-before-scroll-bar",Bq="with-scroll-bars-hidden",Vq="--removed-body-scroll-bar-size";function Zp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $q(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var a=n.value;a!==s&&(n.value=s,n.callback(s,a))}}}})[0];return n.callback=t,n.facade}var qq=typeof window<"u"?b.useLayoutEffect:b.useEffect,g_=new WeakMap;function Hq(e,t){var n=$q(null,function(s){return e.forEach(function(a){return Zp(a,s)})});return qq(function(){var s=g_.get(n);if(s){var a=new Set(s),l=new Set(e),c=n.current;a.forEach(function(d){l.has(d)||Zp(d,null)}),l.forEach(function(d){a.has(d)||Zp(d,c)})}g_.set(n,e)},[e]),n}function Fq(e){return e}function Qq(e,t){t===void 0&&(t=Fq);var n=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,s);return n.push(c),function(){n=n.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(s=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(d){return l(d)},filter:function(){return n}}},assignMedium:function(l){s=!0;var c=[];if(n.length){var d=n;n=[],d.forEach(l),c=n}var f=function(){var y=c;c=[],y.forEach(l)},p=function(){return Promise.resolve().then(f)};p(),n={push:function(y){c.push(y),p()},filter:function(y){return c=c.filter(y),n}}}};return a}function Zq(e){e===void 0&&(e={});var t=Qq(null);return t.options=yr({async:!0,ssr:!1},e),t}var iC=function(e){var t=e.sideCar,n=sC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return b.createElement(s,yr({},n))};iC.isSideCarExport=!0;function Gq(e,t){return e.useMedium(t),iC}var aC=Zq(),Gp=function(){},Ud=b.forwardRef(function(e,t){var n=b.useRef(null),s=b.useState({onScrollCapture:Gp,onWheelCapture:Gp,onTouchMoveCapture:Gp}),a=s[0],l=s[1],c=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,y=e.enabled,m=e.shards,v=e.sideCar,x=e.noRelative,_=e.noIsolation,E=e.inert,T=e.allowPinchZoom,C=e.as,k=C===void 0?"div":C,R=e.gapMode,M=sC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,U=Hq([n,t]),I=yr(yr({},M),a);return b.createElement(b.Fragment,null,y&&b.createElement(j,{sideCar:aC,removeScrollBar:p,shards:m,noRelative:x,noIsolation:_,inert:E,setCallbacks:l,allowPinchZoom:!!T,lockRef:n,gapMode:R}),c?b.cloneElement(b.Children.only(d),yr(yr({},I),{ref:U})):b.createElement(k,yr({},I,{className:f,ref:U}),d))});Ud.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ud.classNames={fullWidth:Iu,zeroRight:Uu};var Kq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kq();return t&&e.setAttribute("nonce",t),e}function Xq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jq=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yq())&&(Xq(t,n),Wq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eH=function(){var e=Jq();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},oC=function(){var e=eH(),t=function(n){var s=n.styles,a=n.dynamic;return e(s,a),null};return t},tH={left:0,top:0,right:0,gap:0},Kp=function(e){return parseInt(e||"",10)||0},nH=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Kp(n),Kp(s),Kp(a)]},rH=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tH;var t=nH(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},sH=oC(),Na="data-scroll-locked",iH=function(e,t,n,s){var a=e.left,l=e.top,c=e.right,d=e.gap;return n===void 0&&(n="margin"),`
60  .`.concat(Bq,` {
61   overflow: hidden `).concat(s,`;
62   padding-right: `).concat(d,"px ").concat(s,`;
63  }
64  body[`).concat(Na,`] {
65    overflow: hidden `).concat(s,`;
66    overscroll-behavior: contain;
67    `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
68    padding-left: `.concat(a,`px;
69    padding-top: `).concat(l,`px;
70    padding-right: `).concat(c,`px;
71    margin-left:0;
72    margin-top:0;
73    margin-right: `).concat(d,"px ").concat(s,`;
74    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(s,";
74")].filter(Boolean).join(""),`
75  }
76  
77  .`).concat(Uu,` {
78    right: `).concat(d,"px ").concat(s,`;
79  }
80  
81  .`).concat(Iu,` {
82    margin-right: `).concat(d,"px ").concat(s,`;
83  }
84  
85  .`).concat(Uu," .").concat(Uu,` {
86    right: 0 `).concat(s,`;
87  }
88  
89  .`).concat(Iu," .").concat(Iu,` {
90    margin-right: 0 `).concat(s,`;
91  }
92  
93  body[`).concat(Na,`] {
94    `).concat(Vq,": ").concat(d,`px;
95  }
96`)},y_=function(){var e=parseInt(document.body.getAttribute(Na)||"0",10);return isFinite(e)?e:0},aH=function(){b.useEffect(function(){return document.body.setAttribute(Na,(y_()+1).toString()),function(){var e=y_()-1;e<=0?document.body.removeAttribute(Na):document.body.setAttribute(Na,e.toString())}},[])},oH=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;aH();var l=b.useMemo(function(){return rH(a)},[a]);return b.createElement(sH,{styles:iH(l,!t,a,n?"":"!important")})},Km=!1;if(typeof window<"u")try{var wu=Object.defineProperty({},"passive",{get:function(){return Km=!0,!0}});window.addEventListener("test",wu,wu),window.removeEventListener("test",wu,wu)}catch{Km=!1}var Sa=Km?{passive:!1}:!1,lH=function(e){return e.tagName==="TEXTAREA"},lC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lH(e)&&n[t]==="visible")},cH=function(e){return lC(e,"overflowY")},uH=function(e){return lC(e,"overflowX")},v_=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=cC(e,s);if(a){var l=uC(e,s),c=l[1],d=l[2];if(c>d)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},dH=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},fH=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},cC=function(e,t){return e==="v"?cH(t):uH(t)},uC=function(e,t){return e==="v"?dH(t):fH(t)},hH=function(e,t){return e==="h"&&t==="rtl"?-1:1},pH=function(e,t,n,s,a){var l=hH(e,window.getComputedStyle(t).direction),c=l*s,d=n.target,f=t.contains(d),p=!1,y=c>0,m=0,v=0;do{if(!d)break;var x=uC(e,d),_=x[0],E=x[1],T=x[2],C=E-T-l*_;(_||C)&&cC(e,d)&&(m+=C,v+=_);var k=d.parentNode;d=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(y&&Math.abs(m)<1||!y&&Math.abs(v)<1)&&(p=!0),p},xu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},b_=function(e){return[e.deltaX,e.deltaY]},w_=function(e){return e&&"current"in e?e.current:e},mH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gH=function(e){return`
97  .block-interactivity-`.concat(e,` {pointer-events: none;}
98  .allow-interactivity-`).concat(e,` {pointer-events: all;}
99`)},yH=0,_a=[];function vH(e){var t=b.useRef([]),n=b.useRef([0,0]),s=b.useRef(),a=b.useState(yH++)[0],l=b.useState(oC)[0],c=b.useRef(e);b.useEffect(function(){c.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var E=Iq([e.lockRef.current],(e.shards||[]).map(w_),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),E.forEac
vendor: 17,159 bytes, line 99
99h(function(T){return T.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=b.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!c.current.allowPinchZoom;var C=xu(E),k=n.current,R="deltaX"in E?E.deltaX:k[0]-C[0],M="deltaY"in E?E.deltaY:k[1]-C[1],j,U=E.target,I=Math.abs(R)>Math.abs(M)?"h":"v";if("touches"in E&&I==="h"&&U.type==="range")return!1;var z=window.getSelection(),K=z&&z.anchorNode,ee=K?K===U||K.contains(U):!1;if(ee)return!1;var ie=v_(I,U);if(!ie)return!0;if(ie?j=I:(j=I==="v"?"h":"v",ie=v_(I,U)),!ie)return!1;if(!s.current&&"changedTouches"in E&&(R||M)&&(s.current=j),!j)return!0;var ae=s.current||j;return pH(ae,T,E,ae==="h"?R:M)},[]),f=b.useCallback(function(E){var T=E;if(!(!_a.length||_a[_a.length-1]!==l)){var C="deltaY"in T?b_(T):xu(T),k=t.current.filter(function(j){return j.name===T.type&&(j.target===T.target||T.target===j.shadowParent)&&mH(j.delta,C)})[0];if(k&&k.should){T.cancelable&&T.preventDefault();return}if(!k){var R=(c.current.shards||[]).map(w_).filter(Boolean).filter(function(j){return j.contains(T.target)}),M=R.length>0?d(T,R[0]):!c.current.noIsolation;M&&T.cancelable&&T.preventDefault()}}},[]),p=b.useCallback(function(E,T,C,k){var R={name:E,delta:T,target:C,should:k,shadowParent:bH(C)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(M){return M!==R})},1)},[]),y=b.useCallback(function(E){n.current=xu(E),s.current=void 0},[]),m=b.useCallback(function(E){p(E.type,b_(E),E.target,d(E,e.lockRef.current))},[]),v=b.useCallback(function(E){p(E.type,xu(E),E.target,d(E,e.lockRef.current))},[]);b.useEffect(function(){return _a.push(l),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",f,Sa),document.addEventListener("touchmove",f,Sa),document.addEventListener("touchstart",y,Sa),function(){_a=_a.filter(function(E){return E!==l}),document.removeEventListener("wheel",f,Sa),document.removeEventListener("touchmove",f,Sa),document.removeEventListener("touchstart",y,Sa)}},[]);var x=e.removeScrollBar,_=e.inert;return b.createElement(b.Fragment,null,_?b.createElement(l,{styles:gH(a)}):null,x?b.createElement(oH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const wH=Gq(aC,vH);var dC=b.forwardRef(function(e,t){return b.createElement(Ud,yr({},e,{ref:t,sideCar:wH}))});dC.classNames=Ud.classNames;var Ym=["Enter"," "],xH=["ArrowDown","PageUp","Home"],fC=["ArrowUp","PageDown","End"],SH=[...xH,...fC],_H={ltr:[...Ym,"ArrowRight"],rtl:[...Ym,"ArrowLeft"]},EH={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Il="Menu",[Rl,TH,AH]=ZA(Il),[Mi,hC]=Qa(Il,[AH,Md,WA]),Id=Md(),pC=WA(),[CH,Oi]=Mi(Il),[RH,Bl]=Mi(Il),mC=e=>{const{__scopeMenu:t,open:n=!1,children:s,dir:a,onOpenChange:l,modal:c=!0}=e,d=Id(t),[f,p]=b.useState(null),y=b.useRef(!1),m=Wr(l),v=GA(a);return b.useEffect(()=>{const x=()=>{y.current=!0,document.addEventListener("pointerdown",_,{capture:!0,once:!0}),document.addEventListener("pointermove",_,{capture:!0,once:!0})},_=()=>y.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",_,{capture:!0}),document.removeEventListener("pointermove",_,{capture:!0})}},[]),S.jsx(V6,{...d,children:S.jsx(CH,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:p,children:S.jsx(RH,{scope:t,onClose:b.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:y,dir:v,modal:c,children:s})})})};mC.displayName=Il;var kH="MenuAnchor",hy=b.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e,a=Id(n);return S.jsx(EE,{...a,...s,ref:t})});hy.displayName=kH;var py="MenuPortal",[MH,gC]=Mi(py,{forceMount:void 0}),yC=e=>{const{__scopeMenu:t,forceMount:n,children:s,container:a}=e,l=Oi(py,t);return S.jsx(MH,{scope:t,forceMount:n,children:S.jsx(Ka,{present:n||l.open,children:S.jsx(CE,{asChild:!0,container:a,children:s})})})};yC.displayName=py;var Bn="MenuContent",[OH,my]=Mi(Bn),vC=b.forwardRef((e,t)=>{const n=gC(Bn,e.__scopeMenu),{forceMount:s=n.forceMount,...a}=e,l=Oi(Bn,e.__scopeMenu),c=Bl(Bn,e.__scopeMenu);return S.jsx(Rl.Provider,{scope:e.__scopeMenu,children:S.jsx(Ka,{present:s||l.open,children:S.jsx(Rl.Slot,{scope:e.__scopeMenu,children:c.modal?S.jsx(DH,{...a,ref:t}):S.jsx(NH,{...a,ref:t})})})})}),DH=b.forwardRef((e,t)=>{const n=Oi(Bn,e.__scopeMenu),s=b.useRef(null),a=Bt(t,s);return b.useEffect(()=>{const l=s.current;if(l)return Uq(l)},[]),S.jsx(gy,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ae(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),NH=b.forwardRef((e,t)=>{const n=Oi(Bn,e.__scopeMenu);return S.jsx(gy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),PH=Xu("MenuContent.ScrollLock"),gy=b.forwardRef((e,t)=>{const{__scopeMenu:n,loop:s=!1,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:y,onFocusOutside:m,onInteractOutside:v,onDismiss:x,disableOutsideScroll:_,...E}=e,T=Oi(Bn,n),C=Bl(Bn,n),k=Id(n),R=pC(n),M=TH(n),[j,U]=b.useState(null),I=b.useRef(null),z=Bt(t,I,T.onContentChange),K=b.useRef(0),ee=b.useRef(""),ie=b.useRef(0),ae=b.useRef(null),pe=b.useRef("right"),me=b.useRef(0),de=_?dC:b.Fragment,N=_?{as:PH,allowPinchZoom:!0}:void 0,Q=J=>{const Y=ee.current+J,D=M().filter(he=>!he.disabled),H=document.activeElement,X=D.find(he=>he.ref.current===H)?.textValue,re=D.map(he=>he.textValue),se=QH(re,Y,X),oe=D.find(he=>he.textValue===se)?.ref.current;(function he(be){ee.current=be,window.clearTimeout(K.current),be!==""&&(K.current=window.setTimeout(()=>he(""),1e3))})(Y),oe&&setTimeout(()=>oe.focus())};b.useEffect(()=>()=>window.clearTimeout(K.current),[]),mq();const Z=b.useCallback(J=>pe.current===ae.current?.side&&GH(J,ae.current?.area),[]);return S.jsx(OH,{scope:n,searchRef:ee,onItemEnter:b.useCallback(J=>{Z(J)&&J.preventDefault()},[Z]),onItemLeave:b.useCallback(J=>{Z(J)||(I.current?.focus(),U(null))},[Z]),onTriggerLeave:b.useCallback(J=>{Z(J)&&J.preventDefault()},[Z]),pointerGraceTimerRef:ie,onPointerGraceIntentChange:b.useCallback(J=>{ae.current=J},[]),children:S.jsx(de,{...N,children:S.jsx(KA,{asChild:!0,trapped:a,onMountAutoFocus:Ae(l,J=>{J.preventDefault(),I.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:S.jsx(_g,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:y,onFocusOutside:m,onInteractOutside:v,onDismiss:x,children:S.jsx(Nq,{asChild:!0,...R,dir:C.dir,orientation:"vertical",loop:s,currentTabStopId:j,onCurrentTabStopIdChange:U,onEntryFocus:Ae(f,J=>{C.isUsingKeyboardRef.current||J.preventDefault()}),preventScrollOnEntryFocus:!0,children:S.jsx(TE,{role:"menu","aria-orientation":"vertical","data-state":PC(T.open),"data-radix-menu-content":"",dir:C.dir,...k,...E,ref:z,style:{outline:"none",...E.style},onKeyDown:Ae(E.onKeyDown,J=>{const D=J.target.closest("[data-radix-menu-content]")===J.currentTarget,H=J.ctrlKey||J.altKey||J.metaKey,X=J.key.length===1;D&&(J.key==="Tab"&&J.preventDefault(),!H&&X&&Q(J.key));const re=I.current;if(J.target!==re||!SH.includes(J.key))return;J.preventDefault();const oe=M().filter(he=>!he.disabled).map(he=>he.ref.current);fC.includes(J.key)&&oe.reverse(),HH(oe)}),onBlur:Ae(e.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(K.current),ee.current="")}),onPointerMove:Ae(e.onPointerMove,kl(J=>{const Y=J.target,D=me.current!==J.clientX;if(J.currentTarget.contains(Y)&&D){const H=J.clientX>me.current?"right":"left";pe.current=H,me.current=J.clientX}}))})})})})})})});vC.displayName=Bn;var jH="MenuGroup",yy=b.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e;return S.jsx(Nt.div,{role:"group",...s,ref:t})});yy.displayName=jH;var zH="MenuLabel",bC=b.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e;return S.jsx(Nt.div,{...s,ref:t})});bC.displayName=zH;var hd="MenuItem",x_="menu.itemSelect",Bd=b.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:s,...a}=e,l=b.useRef(null),c=Bl(hd,e.__scopeMenu),d=my(hd,e.__scopeMenu),f=Bt(t,l),p=b.useRef(!1),y=()=>{const m=l.current;if(!n&&m){const v=new CustomEvent(x_,{bubbles:!0,cancelable:!0});m.addEventListener(x_,x=>s?.(x),{once:!0}),eE(m,v),v.defaultPrevented?p.current=!1:c.onClose()}};return S.jsx(wC,{...a,ref:f,disabled:n,onClick:Ae(e.onClick,y),onPointerDown:m=>{e.onPointerDown?.(m),p.current=!0},onPointerUp:Ae(e.onPointerUp,m=>{p.current||m.currentTarget?.click()}),onKeyDown:Ae(e.onKeyDown,m=>{const v=d.searchRef.current!=="";n||v&&m.key===" "||Ym.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Bd.displayName=hd;var wC=b.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:s=!1,textValue:a,...l}=e,c=my(hd,n),d=pC(n),f=b.useRef(null),p=Bt(t,f),[y,m]=b.useState(!1),[v,x]=b.useState("");return b.useEffect(()=>{const _=f.current;_&&x((_.textContent??"").trim())},[l.children]),S.jsx(Rl.ItemSlot,{scope:n,disabled:s,textValue:a??v,children:S.jsx(Pq,{asChild:!0,...d,focusable:!s,children:S.jsx(Nt.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...l,ref:p,onPointerMove:Ae(e.onPointerMove,kl(_=>{s?c.onItemLeave(_):(c.onItemEnter(_),_.defaultPrevented||_.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ae(e.onPointerLeave,kl(_=>c.onItemLeave(_))),onFocus:Ae(e.onFocus,()=>m(!0)),onBlur:Ae(e.onBlur,()=>m(!1))})})})}),LH="MenuCheckboxItem",xC=b.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:s,...a}=e;return S.jsx(AC,{scope:e.__scopeMenu,checked:n,children:S.jsx(Bd,{role:"menuitemcheckbox","aria-checked":pd(n)?"mixed":n,...a,ref:t,"data-state":by(n),onSelect:Ae(a.onSelect,()=>s?.(pd(n)?!0:!n),{checkForDefaultPrevented:!1})})})});xC.displayName=LH;var SC="MenuRadioGroup",[UH,IH]=Mi(SC,{value:void 0,onValueChange:()=>{}}),_C=b.forwardRef((e,t)=>{const{value:n,onValueChange:s,...a}=e,l=Wr(s);return S.jsx(UH,{scope:e.__scopeMenu,value:n,onValueChange:l,children:S.jsx(yy,{...a,ref:t})})});_C.displayName=SC;var EC="MenuRadioItem",TC=b.forwardRef((e,t)=>{const{value:n,...s}=e,a=IH(EC,e.__scopeMenu),l=n===a.value;return S.jsx(AC,{scope:e.__scopeMenu,checked:l,children:S.jsx(Bd,{role:"menuitemradio","aria-checked":l,...s,ref:t,"data-state":by(l),onSelect:Ae(s.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});TC.displayName=EC;var vy="MenuItemIndicator",[AC,BH]=Mi(vy,{checked:!1}),CC=b.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:s,...a}=e,l=BH(vy,n);return S.jsx(Ka,{present:s||pd(l.checked)||l.checked===!0,children:S.jsx(Nt.span,{...a,ref:t,"data-state":by(l.checked)})})});CC.displayName=vy;var VH="MenuSeparator",RC=b.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e;return S.jsx(Nt.div,{role:"separator","aria-orientation":"horizontal",...s,ref:t})});RC.displayName=VH;var $H="MenuArrow",kC=b.forwardRef((e,t)=>{const{__scopeMenu:n,...s}=e,a=Id(n);return S.jsx(AE,{...a,...s,ref:t})});kC.displayName=$H;var qH="MenuSub",[vF,MC]=Mi(qH),sl="MenuSubTrigger",OC=b.forwardRef((e,t)=>{const n=Oi(sl,e.__scopeMenu),s=Bl(sl,e.__scopeMenu),a=MC(sl,e.__scopeMenu),l=my(sl,e.__scopeMenu),c=b.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=l,p={__scopeMenu:e.__scopeMenu},y=b.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return b.useEffect(()=>y,[y]),b.useEffect(()=>{const m=d.current;return()=>{window.clearTimeout(m),f(null)}},[d,f]),S.jsx(hy,{asChild:!0,...p,children:S.jsx(wC,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":PC(n.open),...e,ref:Dl(t,a.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ae(e.onPointerMove,kl(m=>{l.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),y()},100))})),onPointerLeave:Ae(e.onPointerLeave,kl(m=>{y();const v=n.content?.getBoundingClientRect();if(v){const x=n.content?.dataset.side,_=x==="right",E=_?-5:5,T=v[_?"left":"right"],C=v[_?"right":"left"];l.onPointerGraceIntentChange({area:[{x:m.clientX+E,y:m.clientY},{x:T,y:v.top},{x:C,y:v.top},{x:C,y:v.bottom},{x:T,y:v.bottom}],side:x}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(m),m.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:Ae(e.onKeyDown,m=>{const v=l.searchRef.current!=="";e.disabled||v&&m.key===" "||_H[s.dir].includes(m.key)&&(n.onOpenChange(!0),n.content?.focus(),m.preventDefault())})})})});OC.displayName=sl;var DC="MenuSubContent",NC=b.forwardRef((e,t)=>{const n=gC(Bn,e.__scopeMenu),{forceMount:s=n.forceMount,...a}=e,l=Oi(Bn,e.__scopeMenu),c=Bl(Bn,e.__scopeMenu),d=MC(DC,e.__scopeMenu),f=b.useRef(null),p=Bt(t,f);return S.jsx(Rl.Provider,{scope:e.__scopeMenu,children:S.jsx(Ka,{present:s||l.open,children:S.jsx(Rl.Slot,{scope:e.__scopeMenu,children:S.jsx(gy,{id:d.contentId,"aria-labelledby":d.triggerId,...a,ref:p,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{c.isUsingKeyboardRef.current&&f.current?.focus(),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:Ae(e.onFocusOutside,y=>{y.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:Ae(e.onEscapeKeyDown,y=>{c.onClose(),y.preventDefault()}),onKeyDown:Ae(e.onKeyDown,y=>{const m=y.currentTarget.contains(y.target),v=EH[c.dir].includes(y.key);m&&v&&(l.onOpenChange(!1),d.trigger?.focus(),y.preventDefault())})})})})})});NC.displayName=DC;function PC(e){return e?"open":"closed"}function pd(e){return e==="indeterminate"}function by(e){return pd(e)?"indeterminate":e?"checked":"unchecked"}function HH(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function FH(e,t){return e.map((n,s)=>e[(t+s)%e.length])}function QH(e,t,n){const a=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=FH(e,Math.max(l,0));a.length===1&&(c=c.filter(p=>p!==n));const f=c.find(p=>p.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function ZH(e,t){const{x:n,y:s}=e;let a=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l],f=t[c],p=d.x,y=d.y,m=f.x,v=f.y;y>s!=v>s&&n<(m-p)*(s-y)/(v-y)+p&&(a=!a)}return a}function GH(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ZH(n,t)}function kl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var KH=mC,YH=hy,XH=yC,WH=vC,JH=yy,e9=bC,t9=Bd,n9=xC,r9=_C,s9=TC,i9=CC,a9=RC,o9=kC,l9=OC,c9=NC,Vd="DropdownMenu",[u9]=Qa(Vd,[hC]),Xt=hC(),[d9,jC]=u9(Vd),zC=e=>{const{__scopeDropdownMenu:t,children:n,dir:s,open:a,defaultOpen:l,onOpenChange:c,modal:d=!0}=e,f=Xt(t),p=b.useRef(null),[y,m]=RE({prop:a,defaultProp:l??!1,onChange:c,caller:Vd});return S.jsx(d9,{scope:t,triggerId:ym(),triggerRef:p,contentId:ym(),open:y,onOpenChange:m,onOpenToggle:b.useCallback(()=>m(v=>!v),[m]),modal:d,children:S.jsx(KH,{...f,open:y,onOpenChange:m,dir:s,modal:d,children:n})})};zC.displayName=Vd;var LC="DropdownMenuTrigger",UC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:s=!1,...a}=e,l=jC(LC,n),c=Xt(n);return S.jsx(YH,{asChild:!0,...c,children:S.jsx(Nt.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...a,ref:Dl(t,l.triggerRef),onPointerDown:Ae(e.onPointerDown,d=>{!s&&d.button===0&&d.ctrlKey===!1&&(l.onOpenToggle(),l.open||d.preventDefault())}),onKeyDown:Ae(e.onKeyDown,d=>{s||(["Enter"," "].includes(d.key)&&l.onOpenToggle(),d.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});UC.displayName=LC;var f9="DropdownMenuPortal",IC=e=>{const{__scopeDropdownMenu:t,...n}=e,s=Xt(t);return S.jsx(XH,{...s,...n})};IC.displayName=f9;var BC="DropdownMenuContent",VC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=jC(BC,n),l=Xt(n),c=b.useRef(!1);return S.jsx(WH,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...s,ref:t,onCloseAutoFocus:Ae(e.onCloseAutoFocus,d=>{c.current||a.triggerRef.current?.focus(),c.current=!1,d.preventDefault()}),onInteractOutside:Ae(e.onInteractOutside,d=>{const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,y=f.button===2||p;(!a.modal||y)&&(c.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)"}})});VC.displayName=BC;var h9="DropdownMenuGroup",p9=b.forwardRef((e,t)=>
99{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(JH,{...a,...s,ref:t})});p9.displayName=h9;var m9="DropdownMenuLabel",g9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(e9,{...a,...s,ref:t})});g9.displayName=m9;var y9="DropdownMenuItem",$C=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(t9,{...a,...s,ref:t})});$C.displayName=y9;var v9="DropdownMenuCheckboxItem",b9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(n9,{...a,...s,ref:t})});b9.displayName=v9;var w9="DropdownMenuRadioGroup",x9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(r9,{...a,...s,ref:t})});x9.displayName=w9;var S9="DropdownMenuRadioItem",_9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(s9,{...a,...s,ref:t})});_9.displayName=S9;var E9="DropdownMenuItemIndicator",T9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(i9,{...a,...s,ref:t})});T9.displayName=E9;var A9="DropdownMenuSeparator",qC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(a9,{...a,...s,ref:t})});qC.displayName=A9;var C9="DropdownMenuArrow",R9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(o9,{...a,...s,ref:t})});R9.displayName=C9;var k9="DropdownMenuSubTrigger",M9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(l9,{...a,...s,ref:t})});M9.displayName=k9;var O9="DropdownMenuSubContent",D9=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=Xt(n);return S.jsx(c9,{...a,...s,ref:t,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)"}})});D9.displayName=O9;var N9=zC,P9=UC,j9=IC,z9=VC,L9=$C,U9=qC;function I9({...e}){return S.jsx(N9,{"data-hercules-id":"src/components/ui/dropdown-menu.tsx:9:9","data-hercules-name":"DropdownMenuPrimitive.Root","data-slot":"dropdown-menu",...e})}function B9({className:e,...t}){return S.jsx(P9,{"data-hercules-id":"src/components/ui/dropdown-menu.tsx:25:4","data-hercules-name":"DropdownMenuPrimitive.Trigger","data-slot":"dropdown-menu-trigger",className:e,...t})}function V9({className:e,sideOffset:t=4,...n}){return S.jsx(j9,{"data-hercules-id":"src/components/ui/dropdown-menu.tsx:39:4","data-hercules-name":"DropdownMenuPrimitive.Portal",children:S.jsx(z9,{"data-hercules-id":"src/components/ui/dropdown-menu.tsx:40:6","data-hercules-name":"DropdownMenuPrimitive.Content","data-slot":"dropdown-menu-content",sideOffset:t,className:Ln("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Su({className:e,inset:t,variant:n="default",...s}){return S.jsx(L9,{"data-hercules-id":"src/components/ui/dropdown-menu.tsx:71:4","data-hercules-name":"DropdownMenuPrimitive.Item","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:Ln("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}function $9({className:e,...t}){return S.jsx(U9,{"data-hercules-id":"src/components/ui/dropdown-menu.tsx:170:4","data-hercules-name":"DropdownMenuPrimitive.Separator","data-slot":"dropdown-menu-separator",className:Ln("bg-border -mx-1 my-1 h-px",e),...t})}const S_=[{label:"LIBRARY",href:"/library",icon:bU},{label:"SETTINGS",href:"/settings",icon:sT}];function q9(){const e=qn(),t=Ha(),{user:n,removeUser:s}=vd(),a=O4(JE.users.getCurrentUser,{}),l=a?.role==="admin",c=a?.role==="referral_agent",[d,f]=b.useState(!1),p=async()=>{await s(),t("/")},y=(n?.profile?.name??n?.profile?.email??"U").split(" ").map(m=>m[0]).join("").slice(0,2).toUpperCase();return S.jsxs(S.Fragment,{children:[S.jsxs("nav",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:45:6","data-hercules-name":"nav",className:"fixed top-0 left-0 right-0 z-50 h-16 bg-background/95 backdrop-blur-sm border-b border-border/40 flex items-center px-4 sm:px-6 lg:px-8",children:[S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:47:8","data-hercules-name":"Link",to:Us,className:"flex items-center gap-2.5 shrink-0 mr-8",onClick:()=>f(!1),children:[S.jsx("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:52:10","data-hercules-name":"div",className:"w-7 h-7 bg-primary rounded-sm flex items-center justify-center shrink-0",children:S.jsx("span",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:53:12","data-hercules-name":"span",className:"text-[10px] font-black text-primary-foreground tracking-tighter",children:"RS"})}),S.jsx("span",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:55:10","data-hercules-name":"span",className:"text-sm font-black tracking-[0.15em] text-foreground hidden sm:block",style:{fontFamily:"var(--font-display)"},children:"STUDIORSAFILMS"})]}),S.jsxs("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:64:8","data-hercules-name":"div",className:"hidden md:flex items-center gap-1 flex-1",children:[S_.map(({label:m,href:v})=>S.jsx(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:66:12","data-hercules-name":"Link",to:v,className:Ln("px-3 py-1.5 text-xs font-semibold tracking-[0.15em] rounded-md transition-colors",e.pathname===v?"text-foreground bg-muted":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),children:m},v)),l&&S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:80:12","data-hercules-name":"Link",to:"/admin/movies",className:Ln("px-3 py-1.5 text-xs font-semibold tracking-[0.15em] rounded-md transition-colors flex items-center gap-1.5",e.pathname.startsWith("/admin")?"text-primary bg-primary/10":"text-primary/70 hover:text-primary hover:bg-primary/10"),children:[S.jsx(Ru,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:89:14","data-hercules-name":"Shield",size:11}),"ADMIN"]}),c&&S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:94:12","data-hercules-name":"Link",to:"/referral-dashboard",className:Ln("px-3 py-1.5 text-xs font-semibold tracking-[0.15em] rounded-md transition-colors flex items-center gap-1.5",e.pathname==="/referral-dashboard"?"text-amber-400 bg-amber-400/10":"text-amber-400/70 hover:text-amber-400 hover:bg-amber-400/10"),
99children:[S.jsx(Tp,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:103:14","data-hercules-name":"UserPlus",size:11}),"MY REFERRALS"]})]}),S.jsxs("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:110:8","data-hercules-name":"div",className:"ml-auto flex items-center gap-3",children:[S.jsxs(I9,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:111:10","data-hercules-name":"DropdownMenu",children:[S.jsx(B9,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:112:12","data-hercules-name":"DropdownMenuTrigger",asChild:!0,children:S.jsxs("button",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:113:14","data-hercules-name":"button",className:"flex items-center gap-2 group",children:[a?.avatarUrl?S.jsx("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:116:18","data-hercules-name":"div",className:"w-8 h-8 rounded-full border border-primary/30 overflow-hidden group-hover:border-primary/60 transition-colors",children:S.jsx("img",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:117:20","data-hercules-name":"img",src:a.avatarUrl,alt:"Avatar",className:"w-full h-full object-cover"})}):S.jsx("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:120:18","data-hercules-name":"div",className:"w-8 h-8 rounded-full bg-primary/20 border border-primary/30 flex items-center justify-center text-xs font-bold text-primary group-hover:border-primary/60 transition-colors",children:y}),S.jsx(tT,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:124:16","data-hercules-name":"ChevronDown",size:13,className:"text-muted-foreground group-hover:text-foreground transition-colors hidden sm:block"})]})}),S.jsxs(V9,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:130:12","data-hercules-name":"DropdownMenuContent",align:"end",className:"w-52",children:[S.jsxs("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:132:14","data-hercules-name":"div",className:"px-3 py-2 border-b border-border/40",children:[S.jsx("p",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:133:16","data-hercules-name":"p",className:"text-sm font-semibold text-foreground truncate",children:n?.profile?.name??"User"}),n?.profile?.email&&S.jsx("p",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:137:18","data-hercules-name":"p",className:"text-xs text-muted-foreground truncate mt-0.5",children:n.profile.email})]}),S.jsx(Su,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:142:14","data-hercules-name":"DropdownMenuItem",asChild:!0,children:S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:143:16","data-hercules-name":"Link",to:"/settings",className:"flex items-center gap-2",children:[S.jsx(sT,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:144:18","data-hercules-name":"Settings",size:14}),"Settings"]})}),l&&S.jsx(Su,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:149:16","data-hercules-name":"DropdownMenuItem",asChild:!0,children:S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:150:18","data-hercules-name":"Link",to:"/admin/movies",className:"flex items-center gap-2 text-primary",children:[S.jsx(Ru,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:151:20","data-hercules-name":"Shield",size:14}),"Admin Panel"]})}),c&&S.jsx(Su,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:157:16","data-hercules-name":"DropdownMenuItem",asChild:!0,children:S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:158:18","data-hercules-name":"Link",to:"/referral-dashboard",className:"flex items-center gap-2 text-amber-400",children:[S.jsx(Tp,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:159:20","data-hercules-name":"UserPlus",size:14}),"My Referrals"]})}),S.jsx($9,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:164:14","data-hercules-name":"DropdownMenuSeparator"}),S.jsxs(Su,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:165:14","data-hercules-name":"DropdownMenuItem",onClick:p,className:"text-destructive focus:text-destructive flex items-center gap-2 cursor-pointer",children:[S.jsx(_m,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:169:16","data-hercules-name":"LogOut",size:14}),"Sign Out"]})]})]}),S.jsx("button",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:176:10","data-hercules-name":"button",className:"md:hidden p-1.5 text-muted-foreground hover:text-foreground transition-colors",onClick:()=>f(m=>!m),"aria-label":"Toggle menu",children:d?S.jsx(iT,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:181:26","data-hercules-name":"X",size:20}):S.jsx(rT,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:181:44","data-hercules-name":"Menu",size:20})})]})]}),d&&S.jsx("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:188:8","data-hercules-name":"div",className:"fixed inset-0 z-40 bg-background/95 backdrop-blur-sm flex flex-col pt-16",onClick:()=>f(!1),children:S.jsxs("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:192:10","data-hercules-name":"div",className:"flex flex-col gap-1 px-4 pt-6",onClick:m=>m.stopPropagation(),children:[S_.map(({label:m,href:v,icon:x})=>S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:194:14","data-hercules-name":"Link",to:v,onClick:()=>f(!1),className:Ln("flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-semibold tracking-[0.12em] transition-colors",e.pathname===v?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),children:[S.jsx(x,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:205:16","data-hercules-name":"Icon",size:16}),m]},v)),l&&S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:210:14","data-hercules-name":"Link",to:"/admin/movies",onClick:()=>f(!1),className:Ln("flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-semibold tracking-[0.12em] transition-colors",e.pathname.startsWith("/admin")?"bg-primary/10 text-primary":"text-primary/70 hover:text-primary hover:bg-primary/10"),children:[S.jsx(Ru,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:220:16","data-hercules-name":"Shield",size:16}),"ADMIN PANEL"]}),c&&S.jsxs(ft,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:225:14","data-hercules-name":"Link",to:"/referral-dashboard",onClick:()=>f(!1),className:Ln("flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-semibold tracking-[0.12em] transition-colors",e.pathname==="/referral-dashboard"?"bg-amber-400/10 text-amber-400":"text-amber-400/70 hover:text-amber-400 hover:bg-amber-400/10"),
99children:[S.jsx(Tp,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:235:16","data-hercules-name":"UserPlus",size:16}),"MY REFERRALS"]}),S.jsx("div",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:239:12","data-hercules-name":"div",className:"mt-4 pt-4 border-t border-border/40",children:S.jsxs("button",{"data-hercules-id":"src/components/layout/AppNavbar.tsx:240:14","data-hercules-name":"button",onClick:p,className:"flex items-center gap-3 px-4 py-3 w-full text-sm font-semibold text-destructive hover:bg-destructive/10 rounded-lg transition-colors",children:[S.jsx(_m,{"data-hercules-id":"src/components/layout/AppNavbar.tsx:244:16","data-hercules-name":"LogOut",size:16}),"Sign Out"]})})]})})]})}function H9(){const e=Ha();return setTimeout(()=>e("/"),0),null}function F9(){return S.jsxs(S.Fragment,{children:[S.jsx($4,{"data-hercules-id":"src/components/layout/AppLayout.tsx:17:6","data-hercules-name":"AuthLoading",children:S.jsx("div",{"data-hercules-id":"src/components/layout/AppLayout.tsx:18:8","data-hercules-name":"div",className:"min-h-screen bg-background flex items-center justify-center",children:S.jsx(QA,{"data-hercules-id":"src/components/layout/AppLayout.tsx:19:10","data-hercules-name":"Skeleton",className:"h-16 w-64"})})}),S.jsx(wl,{"data-hercules-id":"src/components/layout/AppLayout.tsx:22:6","data-hercules-name":"Unauthenticated",children:S.jsx(H9,{"data-hercules-id":"src/components/layout/AppLayout.tsx:23:8","data-hercules-name":"RedirectToHome"})}),S.jsx(bl,{"data-hercules-id":"src/components/layout/AppLayout.tsx:25:6","data-hercules-name":"Authenticated",children:S.jsxs("div",{"data-hercules-id":"src/components/layout/AppLayout.tsx:26:8","data-hercules-name":"div",className:"min-h-screen bg-background",children:[S.jsx(q9,{"data-hercules-id":"src/components/layout/AppLayout.tsx:27:10","data-hercules-name":"AppNavbar"}),S.jsx("main",{"data-hercules-id":"src/components/layout/AppLayout.tsx:29:10","data-hercules-name":"main",className:"pt-16",children:S.jsx(uO,{"data-hercules-id":"src/components/layout/AppLayout.tsx:30:12","data-hercules-name":"Outlet"})})]})})]})}function Q9(){const e=b.useRef(!1);b.useEffect(()=>{if(!("serviceWorker"in navigator))return;const t=()=>{e.current||(e.current=!0,W1("A new version is available!",{duration:1/0,action:{label:"Refresh",onClick:()=>window.location.reload()}}))};navigator.serviceWorker.register("/sw.js").then(n=>{if(console.log("Service Worker registered:",n),n.waiting){t();return}n.addEventListener("updatefound",()=>{const s=n.installing;s&&s.addEventListener("statechange",()=>{s.state==="installed"&&navigator.serviceWorker.controller&&t()})})}).catch(n=>console.log("Service Worker registration failed:",n))},[])}const Z9=b.lazy(()=>dn(()=>import("./page-CdWr1ncP.js"),__vite__mapDeps([0,1,2,3,4]))),G9=b.lazy(()=>dn(()=>import("./page-JYdXMWNP.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,2,3,15,16,17]))),K9=b.lazy(()=>dn(()=>import("./page-B-sSNRem.js"),__vite__mapDeps([18,15,7,19,20,21,22,3,23,11,24,4,14,16]))),Y9=b.lazy(()=>dn(()=>import("./page-Bzw58jr-.js"),__vite__mapDeps([25,24,21,22,26]))),X9=b.lazy(()=>dn(()=>import("./AdminLayout-Cm7MONhp.js"),__vite__mapDeps([27,22,26,12,28,20,29]))),W9=b.lazy(()=>dn(()=>import("./page-BfhX_DhR.js"),__vite__mapDeps([30,1,31,12,23,4,10,17]))),J9=b.lazy(()=>dn(()=>import("./page-BvHbGpXi.js"),__vite__mapDeps([32,33,7,6,8,34,35,9,36,26]))),eF=b.lazy(()=>dn(()=>import("./page-Bs0tm1Yr.js"),__vite__mapDeps([37,24,21,33,7,6,8,34,35,9,36,26]))),tF=b.lazy(()=>dn(()=>import("./page-DR4qPPwZ.js"),__vite__mapDeps([38,7,6,34,35,9,15,1,31,20,17,2,3]))),nF=b.lazy(()=>dn(()=>import("./page-CaBo5nu7.js"),__vite__mapDeps([39,1,13,28,40,20,2,3]))),rF=b.lazy(()=>dn(()=>import("./page-dR_mzEm6.js"),__vite__mapDeps([41,7,36,35,19]))),sF=b.lazy(()=>dn(()=>import("./page-CmuyyMzu.js"),__vite__mapDeps([42,43,34,35,9,15,1,7,29,16,23,17,12]))),iF=b.lazy(()=>dn(()=>import("./page-CoX0BRw6.js"),__vite__mapDeps([44,43,7,34,35,9,15,1,14,40,13,45,20,17,19,21,2,3]))),aF=b.lazy(()=>dn(()=>import("./page-CDfFnDsh.js"),__vite__mapDeps([46,43,45,19,40,13,21,20,12,2,3])));function oF(){return S.jsx("div",{"data-hercules-id":"src/App.tsx:30:4","data-hercules-name":"div",className:"flex items-center justify-center min-h-[60vh]",children:S.jsx(QA,{"data-hercules-id":"src/App.tsx:31:6","data-hercules-name":"Skeleton",className:"h-10 w-10 rounded-full"})})}function lF(){return Q9(),S.jsx(aU,{"data-hercules-id":"src/App.tsx:40:4","data-hercules-name":"DefaultProviders",children:S.jsx(LO,{"data-hercules-id":"src/App.tsx:41:6","data-hercules-name":"BrowserRouter",children:S.jsx(b.Suspense,{"data-hercules-id":"src/App.tsx:42:8","data-hercules-name":"Suspense",fallback:S.jsx(oF,{"data-hercules-id":"src/App.tsx:42:28","data-hercules-name":"PageFallback"}),children:S.jsxs(fO,{"data-hercules-id":"src/App.tsx:43:10","data-hercules-name":"Routes",children:[S.jsx(it,{"data-hercules-id":"src/App.tsx:45:12","data-hercules-name":"Route",path:"/auth/callback",element:S.jsx(JU,{"data-hercules-id":"src/App.tsx:45:50","data-hercules-name":"AuthCallback"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:48:12","data-hercules-name":"Route",path:"/",element:S.jsx(fq,{"data-hercules-id":"src/App.tsx:48:37","data-hercules-name":"Index"})}),S.jsxs(it,{"data-hercules-id":"src/App.tsx:51:12","data-hercules-name":"Route",element:S.jsx(F9,{"data-hercules-id":"src/App.tsx:51:28","data-hercules-name":"AppLayout"}),children:[S.jsx(it,{"data-hercules-id":"src/App.tsx:52:14","data-hercules-name":"Route",path:"/home",element:S.jsx(Rw,{"data-hercules-id":"src/App.tsx:52:43","data-hercules-name":"Navigate",to:Us,replace:!0})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:53:14","data-hercules-name":"Route",path:"/movie/:movieId",element:S.jsx(K9,{"data-hercules-id":"src/App.tsx:53:53","data-hercules-name":"MovieDetailPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:54:14","data-hercules-name":"Route",path:"/library",element:S.jsx(Z9,{"data-hercules-id":"src/App.tsx:54:46","data-hercules-name":"LibraryPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:55:14","data-hercules-name":"Route",path:"/settings",element:S.jsx(G9,{"data-hercules-id":"src/App.tsx:55:47","data-hercules-name":"SettingsPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:56:14","data-hercules-name":"Route",path:"/referral-dashboard",element:S.jsx(aF,{"data-hercules-id":"src/App.tsx:56:57","data-hercules-name":"ReferralDashboardPage"})}),S.jsxs(it,{"data-hercules-id":"src/App.tsx:59:14","data-hercules-name":"Route",element:S.jsx(X9,{"data-hercules-id":"src/App.tsx:59:30","data-hercules-name":"AdminLayout"}),children:[S.jsx(it,{"data-hercules-id":"src/App.tsx:60:16","data-hercules-name":"Route",path:"/admin",element:S.jsx(Rw,{"data-hercules-id":"src/App.tsx:60:46","data-hercules-name":"Navigate",to:"/admin/movies",replace:!0})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:61:16","data-hercules-name":"Route",path:"/admin/movies",element:S.jsx(W9,{"data-hercules-id":"src/App.tsx:61:53","data-hercules-name":"AdminMoviesPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:62:16","data-hercules-name":"Route",path:"/admin/movies/new",element:S.jsx(J9,{"data-hercules-id":"src/App.tsx:62:57","data-hercules-name":"NewMoviePage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:63:16","data-hercules-name":"Route",path:"/admin/movies/edit/:movieId",element:S.jsx(eF,{"data-hercules-id":"src/App.tsx:63:67","data-hercules-name":"EditMoviePage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:64:16","data-hercules-name":"Route",path:"/admin/orders",element:S.jsx(nF,{"data-hercules-id":"src/App.tsx:64:53","data-hercules-name":"AdminOrdersPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:65:16","data-hercules-name":"Route",path:"/admin/promo-codes",element:S.jsx(tF,{"data-hercules-id":"src/App.tsx:65:58","data-hercules-name":"AdminPromoCodesPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:66:16","data-hercules-name":"Route",path:"/admin/users",element:S.jsx(sF,{"data-hercules-id":"src/App.tsx:66:52","data-hercules-name":"AdminUsersPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:67:16","data-hercules-name":"Route",path:"/admin/referral-agents",element:S.jsx(iF,{"data-hercules-id":"src/App.tsx:67:62","data-hercules-name":"AdminReferralAgentsPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:68:16","data-hercules-name":"Route",path:"/admin/streaming",element:S.jsx(rF,{"data-hercules-id":"src/App.tsx:68:56","data-hercules-name":"AdminStreamingPage"})})]})]}),S.jsx(it,{"data-hercules-id":"src/App.tsx:73:12","data-hercules-name":"Route",path:"/watch/:rentalId",element:S.jsx(Y9,{"data-hercules-id":"src/App.tsx:73:52","data-hercules-name":"WatchPage"})}),S.jsx(it,{"data-hercules-id":"src/App.tsx:76:12","data-hercules-name":"Route",path:"*",element:S.jsx(hq,{"data-hercules-id":"src/App.tsx:76:37","data-hercules-name":"NotFound"})})]})})})})}uM.createRoot(document.getElementById("root")).render(S.jsx(lF,{"data-hercules-id":"src/main.tsx:4:52","data-hercules-name":"App"}));export{KA as $,$4 as A,xr as B,mU as C,_r as D,k4 as E,Us as F,L4 as G,Bt as H,RE as I,Nt as J,Ae as K,bU as L,AU as M,P6 as N,uO as O,jg as P,Qa as Q,kU as R,QA as S,ym as T,wl as U,Ka as V,CE as W,iT as X,Uq as Y,dC as Z,mq as _,JE as a,_g as a0,Xu as a1,pF as a2,GA as a3,V6 as a4,EE as a5,js as a6,ig as a7,Md as a8,ZA as a9,K6 as aa,Wr as ab,TE as ac,AE as ad,tT as ae,HU as af,ft as b,_t as c,Ln as d,D4 as e,nT as f,NU as g,vd as h,qu as i,S as j,Ru as k,Kr as l,hF as m,yU as n,Ha as o,cF as p,uF as q,b as r,bl as s,W1 as t,O4 as u,qn as v,Tp as w,YU as x,qU as y,Gt as z};

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.