PageSourceSearch

https://lesnimoises.base44.app/assets/index-Dy8N_IMa.js

js lesnimoises.base44.app collected 2026-10-03 03:15:20 UTC 534,384 bytes, 179 lines download raw bytes

vendor: 6,401 bytes, lines 1-9
1var CS=Object.defineProperty;var gg=t=>{throw TypeError(t)};var TS=(t,e,n)=>e in t?CS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ue=(t,e,n)=>TS(t,typeof e!="symbol"?e+"":e,n),ed=(t,e,n)=>e.has(t)||gg("Cannot "+n);var R=(t,e,n)=>(ed(t,e,"read from private field"),n?n.call(t):e.get(t)),pe=(t,e,n)=>e.has(t)?gg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ee=(t,e,n,i)=>(ed(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Pe=(t,e,n)=>(ed(t,e,"access private method"),n);var ul=(t,e,n,i)=>({set _(a){ee(t,e,a,n)},get _(){return R(t,e,i)}});function PS(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in t)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).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 i(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function m0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var td={exports:{}},fo={},nd={exports:{}},ke={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var yg;function RS(){if(yg)return ke;yg=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function E(j,$,ye){this.props=j,this.context=$,this.refs=_,this.updater=ye||b}E.prototype.isReactComponent={},E.prototype.setState=function(j,$){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,$,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function S(){}S.prototype=E.prototype;function A(j,$,ye){this.props=j,this.context=$,this.refs=_,this.updater=ye||b}var P=A.prototype=new S;P.constructor=A,C(P,E.prototype),P.isPureReactComponent=!0;var O=Array.isArray,M=Object.prototype.hasOwnProperty,z={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function V(j,$,ye){var ve,he={},G=null,be=null;if($!=null)for(ve in $.ref!==void 0&&(be=$.ref),$.key!==void 0&&(G=""+$.key),$)M.call($,ve)&&!Y.hasOwnProperty(ve)&&(he[ve]=$[ve]);var Ce=arguments.length-2;if(Ce===1)he.children=ye;else if(1<Ce){for(var xe=Array(Ce),ot=0;ot<Ce;ot++)xe[ot]=arguments[ot+2];he.children=xe}if(j&&j.defaultProps)for(ve in Ce=j.defaultProps,Ce)he[ve]===void 0&&(he[ve]=Ce[ve]);return{$$typeof:t,type:j,key:G,ref:be,props:he,_owner:z.current}}function Z(j,$){return{$$typeof:t,type:j.type,key:$,ref:j.ref,props:j.props,_owner:j._owner}}function ue(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function Ee(j){var $={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(ye){return $[ye]})}var Ne=/\/+/g;function Le(j,$){return typeof j=="object"&&j!==null&&j.key!=null?Ee(""+j.key):$.toString(36)}function Te(j,$,ye,ve,he){var G=typeof j;(G==="undefined"||G==="boolean")&&(j=null);var be=!1;if(j===null)be=!0;else switch(G){case"string":case"number":be=!0;break;case"object":switch(j.$$typeof){case t:case e:be=!0}}if(be)return be=j,he=he(be),j=ve===""?"."+Le(be,0):ve,O(he)?(ye="",j!=null&&(ye=j.replace(Ne,"$&/")+"/"),Te(he,$,ye,"",function(ot){return ot})):he!=null&&(ue(he)&&(he=Z(he,ye+(!he.key||be&&be.key===he.key?"":(""+he.key).replace(Ne,"$&/")+"/")+j)),$.push(he)),1;if(be=0,ve=ve===""?".":ve+":",O(j))for(var Ce=0;Ce<j.length;Ce++){G=j[Ce];var xe=ve+Le(G,Ce);be+=Te(G,$,ye,xe,he)}else if(xe=w(j),typeof xe=="function")for(j=xe.call(j),Ce=0;!(G=j.next()).done;)G=G.value,xe=ve+Le(G,Ce++),be+=Te(G,$,ye,xe,he);else if(G==="object")throw $=String(j),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return be}function Ie(j,$,ye){if(j==null)return j;var ve=[],he=0;return Te(j,ve,"","",function(G){return $.call(ye,G,he++)}),ve}function fe(j){if(j._status===-1){var $=j._result;$=$(),$.then(function(ye){(j._status===0||j._status===-1)&&(j._status=1,j._result=ye)},function(ye){(j._status===0||j._status===-1)&&(j._status=2,j._result=ye)}),j._status===-1&&(j._status=0,j._result=$)}if(j._status===1)return j._result.default;throw j._result}var le={current:null},K={transition:null},se={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:K,ReactCurrentOwner:z};function B(){throw Error("act(...) is not supported in production builds of React.")}return ke.Children={map:Ie,forEach:function(j,$,ye){Ie(j,function(){$.apply(this,arguments)},ye)},count:function(j){var $=0;return Ie(j,function(){$++}),$},toArray:function(j){return Ie(j,function($){return $})||[]},only:function(j){if(!ue(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},ke.Component=E,ke.Fragment=n,ke.Profiler=a,ke.PureComponent=A,ke.StrictMode=i,ke.Suspense=h,ke.__SECRET_INT
vendor: 9,335 bytes, lines 9-33
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,ke.act=B,ke.cloneElement=function(j,$,ye){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ve=C({},j.props),he=j.key,G=j.ref,be=j._owner;if($!=null){if($.ref!==void 0&&(G=$.ref,be=z.current),$.key!==void 0&&(he=""+$.key),j.type&&j.type.defaultProps)var Ce=j.type.defaultProps;for(xe in $)M.call($,xe)&&!Y.hasOwnProperty(xe)&&(ve[xe]=$[xe]===void 0&&Ce!==void 0?Ce[xe]:$[xe])}var xe=arguments.length-2;if(xe===1)ve.children=ye;else if(1<xe){Ce=Array(xe);for(var ot=0;ot<xe;ot++)Ce[ot]=arguments[ot+2];ve.children=Ce}return{$$typeof:t,type:j.type,key:he,ref:G,props:ve,_owner:be}},ke.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:l,_context:j},j.Consumer=j},ke.createElement=V,ke.createFactory=function(j){var $=V.bind(null,j);return $.type=j,$},ke.createRef=function(){return{current:null}},ke.forwardRef=function(j){return{$$typeof:d,render:j}},ke.isValidElement=ue,ke.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:fe}},ke.memo=function(j,$){return{$$typeof:p,type:j,compare:$===void 0?null:$}},ke.startTransition=function(j){var $=K.transition;K.transition={};try{j()}finally{K.transition=$}},ke.unstable_act=B,ke.useCallback=function(j,$){return le.current.useCallback(j,$)},ke.useContext=function(j){return le.current.useContext(j)},ke.useDebugValue=function(){},ke.useDeferredValue=function(j){return le.current.useDeferredValue(j)},ke.useEffect=function(j,$){return le.current.useEffect(j,$)},ke.useId=function(){return le.current.useId()},ke.useImperativeHandle=function(j,$,ye){return le.current.useImperativeHandle(j,$,ye)},ke.useInsertionEffect=function(j,$){return le.current.useInsertionEffect(j,$)},ke.useLayoutEffect=function(j,$){return le.current.useLayoutEffect(j,$)},ke.useMemo=function(j,$){return le.current.useMemo(j,$)},ke.useReducer=function(j,$,ye){return le.current.useReducer(j,$,ye)},ke.useRef=function(j){return le.current.useRef(j)},ke.useState=function(j){return le.current.useState(j)},ke.useSyncExternalStore=function(j,$,ye){return le.current.useSyncExternalStore(j,$,ye)},ke.useTransition=function(){return le.current.useTransition()},ke.version="18.3.1",ke}var vg;function Ef(){return vg||(vg=1,nd.exports=RS()),nd.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var wg;function AS(){if(wg)return fo;wg=1;var t=Ef(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,p){var g,y={},w=null,b=null;p!==void 0&&(w=""+p),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(b=h.ref);for(g in h)i.call(h,g)&&!l.hasOwnProperty(g)&&(y[g]=h[g]);if(d&&d.defaultProps)for(g in h=d.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:e,type:d,key:w,ref:b,props:y,_owner:a.current}}return fo.Fragment=n,fo.jsx=u,fo.jsxs=u,fo}var xg;function NS(){return xg||(xg=1,td.exports=AS()),td.exports}var v=NS(),F=Ef();const OS=m0(F),jS=PS({__proto__:null,default:OS},[F]);var cl={},rd={exports:{}},Mt={},sd={exports:{}},id={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var bg;function LS(){return bg||(bg=1,(function(t){function e(K,se){var B=K.length;K.push(se);e:for(;0<B;){var j=B-1>>>1,$=K[j];if(0<a($,se))K[j]=se,K[B]=$,B=j;else break e}}function n(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var se=K[0],B=K.pop();if(B!==se){K[0]=B;e:for(var j=0,$=K.length,ye=$>>>1;j<ye;){var ve=2*(j+1)-1,he=K[ve],G=ve+1,be=K[G];if(0>a(he,B))G<$&&0>a(be,he)?(K[j]=be,K[G]=B,j=G):(K[j]=he,K[ve]=B,j=ve);else if(G<$&&0>a(be,B))K[j]=be,K[G]=B,j=G;else break e}}return se}function a(K,se){var B=K.sortIndex-se.sortIndex;return B!==0?B:K.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var h=[],p=[],g=1,y=null,w=3,b=!1,C=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(K){for(var se=n(p);se!==null;){if(se.callback===null)i(p);else if(se.startTime<=K)i(p),se.sortIndex=se.expirationTime,e(h,se);else break;se=n(p)}}function O(K){if(_=!1,P(K),!C)if(n(h)!==null)C=!0,fe(M);else{var se=n(p);se!==null&&le(O,se.startTime-K)}}function M(K,se){C=!1,_&&(_=!1,S(V),V=-1),b=!0;var B=w;try{for(P(se),y=n(h);y!==null&&(!(y.expirationTime>se)||K&&!Ee());){var j=y.callback;if(typeof j=="function"){y.callback=null,w=y.priorityLevel;var $=j(y.expirationTime<=se);se=t.unstable_now(),typeof $=="function"?y.callback=$:y===n(h)&&i(h),P(se)}else i(h);y=n(h)}if(y!==null)var ye=!0;else{var ve=n(p);ve!==null&&le(O,ve.startTime-se),ye=!1}return ye}finally{y=null,w=B,b=!1}}var z=!1,Y=null,V=-1,Z=5,ue=-1;function Ee(){return!(t.unstable_now()-ue<Z)}function Ne(){if(Y!==null){var K=t.unstable_now();ue=K;var se=!0;try{se=Y(!0,K)}finally{se?Le():(z=!1,Y=null)}}else z=!1}var Le;if(typeof A=="function")Le=function(){A(Ne)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Ie=Te.port2;Te.port1.onmessage=Ne,Le=function(){Ie.postMessage(null)}}else Le=function(){E(Ne,0)};function fe(K){Y=K,z||(z=!0,Le())}function le(K,se){V=E(function(){K(t.unstable_now())},se)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){C||b||(C=!0,fe(M))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return n(h)},t.unstable_next=function(K){switch(w){case 1:case 2:case 3:var se=3;break;default:se=w}var B=w;w=se;try{return K()}finally{w=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,se){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var B=w;w=K;try{return se()}finally{w=B}},t.unstable_scheduleCallback=function(K,se,B){var j=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?j+B:j):B=j,K){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=B+$,K={id:g++,callback:se,priorityLevel:K,startTime:B,expirationTime:$,sortIndex:-1},B>j?(K.sortIndex=B,e(p,K),n(h)===null&&K===n(p)&&(_?(S(V),V=-1):_=!0,le(O,B-j))):(K.sortIndex=$,e(h,K),C||b||(C=!0,fe(M))),K},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(K){var se=w;return function(){var B=w;w=se;try{return K.apply(this,arguments)}finally{w=B}}}})(id)),id}var Sg;function DS(){return Sg||(Sg=1,sd.exports=LS()),sd.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Eg;function MS(){if(Eg)return Mt;Eg=1;var t=Ef(),e=DS();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(a[r]=s,r=0;r<s.length;r++)i.add(s[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},y={};function w(r){return h.call(y,r)?!0:h.call(g,r)?!1:p.test(r)?y[r]=!0:(g[r]=!0,!1)}function b(r,s,o,c){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:o!==null?!o.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function C(r,s,o,c){if(s===null||typeof s>"u"||b(r,s,o,c))return!0;
vendor: 13,600 bytes, lines 33-37
33if(c)return!1;if(o!==null)switch(o.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function _(r,s,o,c,f,m,x){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=r,this.type=s,this.sanitizeURL=m,this.removeEmptyString=x}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){E[r]=new _(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];E[s]=new _(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){E[r]=new _(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){E[r]=new _(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){E[r]=new _(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){E[r]=new _(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){E[r]=new _(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){E[r]=new _(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){E[r]=new _(r,5,!1,r.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function A(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var s=r.replace(S,A);E[s]=new _(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(S,A);E[s]=new _(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(S,A);E[s]=new _(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){E[r]=new _(r,1,!1,r.toLowerCase(),null,!1,!1)}),E.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){E[r]=new _(r,1,!1,r.toLowerCase(),null,!0,!0)});function P(r,s,o,c){var f=E.hasOwnProperty(s)?E[s]:null;(f!==null?f.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(C(s,o,f,c)&&(o=null),c||f===null?w(s)&&(o===null?r.removeAttribute(s):r.setAttribute(s,""+o)):f.mustUseProperty?r[f.propertyName]=o===null?f.type===3?!1:"":o:(s=f.attributeName,c=f.attributeNamespace,o===null?r.removeAttribute(s):(f=f.type,o=f===3||f===4&&o===!0?"":""+o,c?r.setAttributeNS(c,s,o):r.setAttribute(s,o))))}var O=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),z=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),Ee=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),K=Symbol.iterator;function se(r){return r===null||typeof r!="object"?null:(r=K&&r[K]||r["@@iterator"],typeof r=="function"?r:null)}var B=Object.assign,j;function $(r){if(j===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);j=s&&s[1]||""}return`
34`+j+r}var ye=!1;function ve(r,s){if(!r||ye)return"";ye=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(U){var c=U}Reflect.construct(r,[],s)}else{try{s.call()}catch(U){c=U}r.call(s.prototype)}else{try{throw Error()}catch(U){c=U}r()}}catch(U){if(U&&c&&typeof U.stack=="string"){for(var f=U.stack.split(`
35`),m=c.stack.split(`
36`),x=f.length-1,k=m.length-1;1<=x&&0<=k&&f[x]!==m[k];)k--;for(;1<=x&&0<=k;x--,k--)if(f[x]!==m[k]){if(x!==1||k!==1)do if(x--,k--,0>k||f[x]!==m[k]){var T=`
37`+f[x].replace(" at new "," at ");return r.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",r.displayName)),T}while(1<=x&&0<=k);break}}}finally{ye=!1,Error.prepareStackTrace=o}return(r=r?r.displayName||r.name:"")?$(r):""}function he(r){switch(r.tag){case 5:return $(r.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return r=ve(r.type,!1),r;case 11:return r=ve(r.type.render,!1),r;case 1:return r=ve(r.type,!0),r;default:return""}}function G(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Y:return"Fragment";case z:return"Portal";case Z:return"Profiler";case V:return"StrictMode";case Le:return"Suspense";case Te:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Ee:return(r.displayName||"Context")+".Consumer";case ue:return(r._context.displayName||"Context")+".Provider";case Ne:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Ie:return s=r.displayName||null,s!==null?s:G(r.type)||"Memo";case fe:s=r._payload,r=r._init;try{return G(r(s))}catch{}}return null}function be(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(s);case 8:return s===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ce(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function xe(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ot(r){var s=xe(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),c=""+r[s];if(!r.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,m=o.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return f.call(this)},set:function(x){c=""+x,m.call(this,x)}}),Object.defineProperty(r,s,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Kt(r){r._valueTracker||(r._valueTracker=ot(r))}function dt(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=xe(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function ln(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}}function Qt(r,s){var o=s.checked;return B({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Gt(r,s){var o=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;o=Ce(s.value!=null?s.value:o),r._wrapperState={initialChecked:c,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Se(r,s){s=s.checked,s!=null&&P(r,"checked",s,!1)}function ft(r,s){Se(r,s);var o=Ce(s.value),c=s.type;if(o!=null)c==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+o):r.value!==""+o&&(r.value=""+o);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?cn(r,s.type,o):s.hasOwnProperty("defaultValue")&&cn(r,s.type,Ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function un(r,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,o||s===r.value||(r.value=s),r.defaultValue=s}o=r.name,o!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,o!==""&&(r.name=o)}function cn(r,s,o){(s!=="number"||ln(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var er=Array.isArray;function tr(r,s,o,c){if(r=r.options,s){s={};for(var f=0;f<o.length;f++)s["$"+o[f]]=!0;for(o=0;o<r.length;o++)f=s.hasOwnProperty("$"+r[o].value),r[o].selected!==f&&(r[o].selected=f),f&&c&&(r[o].defaultSelected=!0)}else{for(o=""+Ce(o),s=null,f=0;f<r.length;f++){if(r[f].value===o){r[f].selected=!0,c&&(r[f].defaultSelected=!0);return}s!==null||r[f].disabled||(s=r[f])}s!==null&&(s.selected=!0)}}function Dn(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return B({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ch(r,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(n(92));if(er(o)){if(1<o.length)throw Error(n(93));o=o[0]}s=o}s==null&&(s=""),o=s}r._wrapperState={initialValue:Ce(o)}}function Th(r,s){var o=Ce(s.value),c=Ce(s.defaultValue);o!=null&&(o=""+o,o!==r.value&&(r.value=o),s.defaultValue==null&&r.defaultValue!==o&&(r.defaultValue=o)),c!=null&&(r.defaultValue=""+c)}function Ph(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function Rh(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function du(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?Rh(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var ta,Ah=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,c,f){MSApp.execUnsafeLocalFunction(function(){return r(s,o,c,f)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(ta=ta||document.createElement("div"),ta.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=ta.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Ti(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var Pi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ab=["Webkit","ms","Moz","O"];Object.keys(Pi).forEach(function(r){Ab.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Pi[s]=Pi[r]})});function Nh(r,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||Pi.hasOwnProperty(r)&&Pi[r]?(""+s).trim():s+"px"}function Oh(r,s){r=r.style;for(var o in s)if(s.hasOwnProperty(o)){var c=o.indexOf("--")===0,f=Nh(o,s[o],c);o==="float"&&(o="cssFloat"),c?r.setProperty(o,f):r[o]=f}}var Nb=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fu(r,s){if(s){if(Nb[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function hu(r,s){if(r.indexOf("-")===-1)return typeof s.is=="str
37ing";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 pu=null;function mu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var gu=null,ks=null,Cs=null;function jh(r){if(r=Yi(r)){if(typeof gu!="function")throw Error(n(280));var s=r.stateNode;s&&(s=_a(s),gu(r.stateNode,r.type,s))}}function Lh(r){ks?Cs?Cs.push(r):Cs=[r]:ks=r}function Dh(){if(ks){var r=ks,s=Cs;if(Cs=ks=null,jh(r),s)for(r=0;r<s.length;r++)jh(s[r])}}function Mh(r,s){return r(s)}function Ih(){}var yu=!1;function Fh(r,s,o){if(yu)return r(s,o);yu=!0;try{return Mh(r,s,o)}finally{yu=!1,(ks!==null||Cs!==null)&&(Ih(),Dh())}}function Ri(r,s){var o=r.stateNode;if(o===null)return null;var c=_a(o);if(c===null)return null;o=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(n(231,s,typeof o));return o}var vu=!1;if(d)try{var Ai={};Object.defineProperty(Ai,"passive",{get:function(){vu=!0}}),window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{vu=!1}function Ob(r,s,o,c,f,m,x,k,T){var U=Array.prototype.slice.call(arguments,3);try{s.apply(o,U)}catch(q){this.onError(q)}}var Ni=!1,na=null,ra=!1,wu=null,jb={onError:function(r){Ni=!0,na=r}};
vendor: 29,937 bytes, lines 37-38
37function Lb(r,s,o,c,f,m,x,k,T){Ni=!1,na=null,Ob.apply(jb,arguments)}function Db(r,s,o,c,f,m,x,k,T){if(Lb.apply(this,arguments),Ni){if(Ni){var U=na;Ni=!1,na=null}else throw Error(n(198));ra||(ra=!0,wu=U)}}function Br(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function Vh(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function Uh(r){if(Br(r)!==r)throw Error(n(188))}function Mb(r){var s=r.alternate;if(!s){if(s=Br(r),s===null)throw Error(n(188));return s!==r?null:r}for(var o=r,c=s;;){var f=o.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){o=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===o)return Uh(f),r;if(m===c)return Uh(f),s;m=m.sibling}throw Error(n(188))}if(o.return!==c.return)o=f,c=m;else{for(var x=!1,k=f.child;k;){if(k===o){x=!0,o=f,c=m;break}if(k===c){x=!0,c=f,o=m;break}k=k.sibling}if(!x){for(k=m.child;k;){if(k===o){x=!0,o=m,c=f;break}if(k===c){x=!0,c=m,o=f;break}k=k.sibling}if(!x)throw Error(n(189))}}if(o.alternate!==c)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?r:s}function Bh(r){return r=Mb(r),r!==null?zh(r):null}function zh(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=zh(r);if(s!==null)return s;r=r.sibling}return null}var $h=e.unstable_scheduleCallback,Wh=e.unstable_cancelCallback,Ib=e.unstable_shouldYield,Fb=e.unstable_requestPaint,Xe=e.unstable_now,Vb=e.unstable_getCurrentPriorityLevel,xu=e.unstable_ImmediatePriority,qh=e.unstable_UserBlockingPriority,sa=e.unstable_NormalPriority,Ub=e.unstable_LowPriority,Hh=e.unstable_IdlePriority,ia=null,En=null;function Bb(r){if(En&&typeof En.onCommitFiberRoot=="function")try{En.onCommitFiberRoot(ia,r,void 0,(r.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:Wb,zb=Math.log,$b=Math.LN2;function Wb(r){return r>>>=0,r===0?32:31-(zb(r)/$b|0)|0}var oa=64,aa=4194304;function Oi(r){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function la(r,s){var o=r.pendingLanes;if(o===0)return 0;var c=0,f=r.suspendedLanes,m=r.pingedLanes,x=o&268435455;if(x!==0){var k=x&~f;k!==0?c=Oi(k):(m&=x,m!==0&&(c=Oi(m)))}else x=o&~f,x!==0?c=Oi(x):m!==0&&(c=Oi(m));if(c===0)return 0;if(s!==0&&s!==c&&(s&f)===0&&(f=c&-c,m=s&-s,f>=m||f===16&&(m&4194240)!==0))return s;if((c&4)!==0&&(c|=o&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=c;0<s;)o=31-dn(s),f=1<<o,c|=r[o],s&=~f;return c}function qb(r,s){switch(r){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hb(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes;0<m;){var x=31-dn(m),k=1<<x,T=f[x];T===-1?((k&o)===0||(k&c)!==0)&&(f[x]=qb(k,s)):T<=s&&(r.expiredLanes|=k),m&=~k}}function bu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Kh(){var r=oa;return oa<<=1,(oa&4194240)===0&&(oa=64),r}function Su(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function ji(r,s,o){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-dn(s),r[s]=o}function Kb(r,s){var o=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<o;){var f=31-dn(o),m=1<<f;s[f]=0,c[f]=-1,r[f]=-1,o&=~m}}function Eu(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-dn(o),f=1<<c;f&s|r[c]&s&&(r[c]|=s),o&=~f}}var Fe=0;function Qh(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Gh,_u,Yh,Xh,Jh,ku=!1,ua=[],nr=null,rr=null,sr=null,Li=new Map,Di=new Map,ir=[],Qb="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 submit".split(" ");function Zh(r,s){switch(r){case"focusin":case"focusout":nr=null;break;case"dragenter":case"dragleave":rr=null;break;case"mouseover":case"mouseout":sr=null;break;case"pointerover":case"pointerout":Li.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Di.delete(s.pointerId)}}function Mi(r,s,o,c,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:s,domEventName:o,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},s!==null&&(s=Yi(s),s!==null&&_u(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),r)}function Gb(r,s,o,c,f){switch(s){case"focusin":return nr=Mi(nr,r,s,o,c,f),!0;case"dragenter":return rr=Mi(rr,r,s,o,c,f),!0;case"mouseover":return sr=Mi(sr,r,s,o,c,f),!0;case"pointerover":var m=f.pointerId;return Li.set(m,Mi(Li.get(m)||null,r,s,o,c,f)),!0;case"gotpointercapture":return m=f.pointerId,Di.set(m,Mi(Di.get(m)||null,r,s,o,c,f)),!0}return!1}function ep(r){var s=zr(r.target);if(s!==null){var o=Br(s);if(o!==null){if(s=o.tag,s===13){if(s=Vh(o),s!==null){r.blockedOn=s,Jh(r.priority,function(){Yh(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function ca(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=Tu(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);pu=c,o.target.dispatchEvent(c),pu=null}else return s=Yi(o),s!==null&&_u(s),r.blockedOn=o,!1;s.shift()}return!0}function tp(r,s,o){ca(r)&&o.delete(s)}function Yb(){ku=!1,nr!==null&&ca(nr)&&(nr=null),rr!==null&&ca(rr)&&(rr=null),sr!==null&&ca(sr)&&(sr=null),Li.forEach(tp),Di.forEach(tp)}function Ii(r,s){r.blockedOn===s&&(r.blockedOn=null,ku||(ku=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Yb)))}function Fi(r){function s(f){return Ii(f,r)}if(0<ua.length){Ii(ua[0],r);for(var o=1;o<ua.length;o++){var c=ua[o];c.blockedOn===r&&(c.blockedOn=null)}}for(nr!==null&&Ii(nr,r),rr!==null&&Ii(rr,r),sr!==null&&Ii(sr,r),Li.forEach(s),Di.forEach(s),o=0;o<ir.length;o++)c=ir[o],c.blockedOn===r&&(c.blockedOn=null);for(;0<ir.length&&(o=ir[0],o.blockedOn===null);)ep(o),o.blockedOn===null&&ir.shift()}var Ts=O.ReactCurrentBatchConfig,da=!0;function Xb(r,s,o,c){var f=Fe,m=Ts.transition;Ts.transition=null;try{Fe=1,Cu(r,s,o,c)}finally{Fe=f,Ts.transition=m}}function Jb(r,s,o,c){var f=Fe,m=Ts.transition;Ts.transition=null;try{Fe=4,Cu(r,s,o,c)}finally{Fe=f,Ts.transition=m}}function Cu(r,s,o,c){if(da){var f=Tu(r,s,o,c);if(f===null)Wu(r,s,c,fa,o),Zh(r,c);else if(Gb(f,r,s,o,c))c.stopPropagation();else if(Zh(r,c),s&4&&-1<Qb.indexOf(r)){for(;f!==null;){var m=Yi(f);if(m!==null&&Gh(m),m=Tu(r,s,o,c),m===null&&Wu(r,s,c,fa,o),m===f)break;f=m}f!==null&&c.stopPropagation()}else Wu(r,s,c,null,o)}}var fa=null;function Tu(r,s,o,c){if(fa=null,r=mu(c),r=zr(r),r!==null)if(s=Br(r),s===null)r=null;else if(o=s.tag,o===13){if(r=Vh(s),r!==null)return r;r=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return fa=r,null}function np(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Vb()){case xu:return 1;case qh:return 4;case sa:case Ub:return 16;case Hh:return 536870912;default:return 16}default:return 16}}var or=null,Pu=null,ha=null;function rp(){if(ha)return ha;var r,s=Pu,o=s.length,c,f="value"in or?or.value:or.textContent,m=f.length;for(r=0;r<o&&s[r]===f[r];r++);var x=o-r;for(c=1;c<=x&&s[o-c]===f[m-c];c++);return ha=f.slice(r,1<c?1-c:void 0)}function pa(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function ma(){return!0}function sp(){return!1}function Bt(r){function s(o,c,f,m,x){this._reactName=o,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var k in r)r.hasOwnProperty(k)&&(o=r[k],this[k]=o?o(m):m[k]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ma:sp,this.isPropagationStopped=sp,this}return B(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ma)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ma)},persist:function(){},isPersistent:ma}),s}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Bt(Ps),Vi=B({},Ps,{view:0,detail:0}),Zb=Bt(Vi),Au,Nu,Ui,ga=B({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,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!==Ui&&(Ui&&r.type==="mousemove"?(Au=r.screenX-Ui.screenX,Nu=r.screenY-Ui.screenY):Nu=Au=0,Ui=r),Au)},movementY:function(r){return"movementY"in r?r.movementY:Nu}}),ip=Bt(ga),e1=B({},ga,{dataTransfer:0}),t1=Bt(e1),n1=B({},Vi,{relatedTarget:0}),Ou=Bt(n1),r1=B({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),s1=Bt(r1),i1=B({},Ps,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),o1=Bt(i1),a1=B({},Ps,{data:0}),op=Bt(a1),l1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u1={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"},c1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d1(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=c1[r])?!!s[r]:!1}function ju(){return d1}var f1=B({},Vi,{key:function(r){if(r.key){var s=l1[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=pa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?u1[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(r){return r.type==="keypress"?pa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?pa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),h1=Bt(f1),p1=B({},ga,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ap=Bt(p1),m1=B({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),g1=Bt(m1),y1=B({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),v1=Bt(y1),w1=B({},ga,{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}),x1=Bt(w1),b1=[9,13,27,32],Lu=d&&"CompositionEvent"in window,Bi=null;d&&"documentMode"in document&&(Bi=document.documentMode);var S1=d&&"TextEvent"in window&&!Bi,lp=d&&(!Lu||Bi&&8<Bi&&11>=Bi),up=" ",cp=!1;function dp(r,s){switch(r){case"keyup":return b1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Rs=!1;function E1(r,s){switch(r){case"compositionend":return fp(s);case"keypress":return s.which!==32?null:(cp=!0,up);case"textInput":return r=s.data,r===up&&cp?null:r;default:return null}}function _1(r,s){if(Rs)return r==="compositionend"||!Lu&&dp(r,s)?(r=rp(),ha=Pu=or=null,Rs=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return lp&&s.locale!=="ko"?null:s.data;default:return null}}var k1={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 hp(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!k1[r.type]:s==="textarea"}function pp(r,s,o,c){Lh(c),s=ba(s,"onChange"),0<s.length&&(o=new Ru("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var zi=null,$i=null;function C1(r){Op(r,0)}function ya(r){var s=Ls(r);if(dt(s))return r}function T1(r,s){if(r==="change")return s}var mp=!1;if(d){var Du;if(d){var Mu="oninput"in document;if(!Mu){var gp=document.createElement("div");gp.setAttribute("oninput","return;"),Mu=typeof gp.oninput=="function"}Du=Mu}else Du=!1;mp=Du&&(!document.documentMode||9<document.documentMode)}function yp(){zi&&(zi.detachEvent("onpropertychange",vp),$i=zi=null)}function vp(r){if(r.propertyName==="value"&&ya($i)){var s=[];pp(s,$i,r,mu(r)),Fh(C1,s)}}function P1(r,s,o){r==="focusin"?(yp(),zi=s,$i=o,zi.attachEvent("onpropertychange",vp)):r==="focusout"&&yp()}function R1(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ya($i)}function A1(r,s){if(r==="click")return ya(s)}function N1(r,s){if(r==="input"||r==="change")return ya(s)}function O1(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var fn=typeof Object.is=="function"?Object.is:O1;function Wi(r,s){if(fn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var o=Object.keys(r),c=Object.keys(s);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var f=o[c];if(!h.call(s,f)||!fn(r[f],s[f]))return!1}return!0}function wp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function xp(r,s){var o=wp(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=s&&c>=s)return{node:o,offset:s-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=wp(o)}}function bp(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?bp(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Sp(){for(var r=window,s=ln();s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=ln(r.document)}return s}function Iu(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function j1(r){var s=Sp(),o=r.focusedElem,c=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&bp(o.ownerDocument.documentElement,o)){if(c!==null&&Iu(o)){if(s=c.start,r=c.end,r===void 0&&(r=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(r,o.value.length);else if(r=(s=o.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var f=o.textContent.length,m=Math.min(c.start,f);c=c.end===void 0?m:Math.min(c.end,f),!r.extend&&m>c&&(f=c,c=m,m=f),f=xp(o,m);var x=xp(o,c);f&&x&&(r.rangeCount!==1||r.anchorNode!==f.node||r.anchorOffset!==f.offset||r.focusNode!==x.node||r.focusOffset!==x.offset)&&(s=s.createRange(),s.setStart(f.node,f.offset),r.removeAllRanges(),m>c?(r.addRange(s),r.extend(x.node,x.offset)):(s.setEnd(x.node,x.offset),r.addRange(s)))}}for(s=[],r=o;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)r=s[o],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var L1=d&&"documentMode"in document&&11>=document.documentMode,As=null,Fu=null,qi=null,Vu=!1;function Ep(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Vu||As==null||As!==ln(c)||(c=As,"selectionStart"in c&&Iu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),qi&&Wi(qi,c)||(qi=c,c=ba(Fu,"onSelect"),0<c.length&&(s=new Ru("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=As)))}function va(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var Ns={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionend:va("Transition","TransitionEnd")},Uu={},_p={};d&&(_p=document.createElement("div").style,"AnimationEvent"in window||(delete Ns.animationend.animation,delete Ns.animationiteration.animation,delete Ns.animationstart.animation),"TransitionEvent"in window||delete Ns.transitionend.transition);function wa(r){if(Uu[r])return Uu[r];if(!Ns[r])return r;var s=Ns[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in _p)return Uu[r]=s[o];return r}var kp=wa("animationend"),Cp=wa("animationiteration"),Tp=wa("animationstart"),Pp=wa("transitionend"),Rp=new Map,Ap="abort auxClick 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(" ");function ar(r,s){Rp.set(r,s),l(s,[r])}for(var Bu=0;Bu<Ap.length;Bu++){var zu=Ap[Bu],D1=zu.toLowerCase(),M1=zu[0].toUpperCase()+zu.slice(1);ar(D1,"on"+M1)}ar(kp,"onAnimationEnd"),ar(Cp,"onAnimationIteration"),ar(Tp,"onAnimationStart"),ar("dblclick","onDoubleClick"),ar("focusin","onFocus"),ar("focusout","onBlur"),ar(Pp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hi="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(" "),I1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hi));function Np(r,s,o){var c=r.type||"unknown-event";r.currentTarget=o,Db(c,s,void 0,r),r.currentTarget=null}function Op(r,s){s=(s&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],f=c.event;c=c.listeners;e:{var m=void 0;if(s)for(var x=c.length-1;0<=x;x--){var k=c[x],T=k.instance,U=k.currentTarget;if(k=k.listener,T!==m&&f.isPropagationStopped())break e;Np(f,k,U),m=T}else for(x=0;x<c.length;x++){if(k=c[x],T=k.instance,U=k.currentTarget,k=k.listener,T!==m&&f.isPropagationStopped())break e;Np(f,k,U),m=T}}}if(ra)throw r=wu,ra=!1,wu=null,r}function Be(r,s){var o=s[Yu];o===void 0&&(o=s[Yu]=new Set);var c=r+"__bubble";o.has(c)||(jp(s,r,2,!1),o.add(c))}function $u(r,s,o){var c=0;s&&(c|=4),jp(o,r,c,s)}var xa="_reactListening"+Math.random().toString(36).slice(2);function Ki(r){if(!r[xa]){r[xa]=!0,i.forEach(function(o){o!=="selectionchange"&&(I1.has(o)||$u(o,!1,r),$u(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[xa]||(s[xa]=!0,$u("selectionchange",!1,s))}}function jp(r,s,o,c){switch(np(s)){case 1:var f=Xb;break;case 4:f=Jb;break;default:f=Cu}o=f.bind(null,s,o,r),f=void 0,!vu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),c?f!==void 0?r.addEventListener(s,o,{capture:!0,passive:f}):r.addEventListener(s,o,!0):f!==void 0?r.addEventListener(s,o,{passive:f}):r.addEventListener(s,o,!1)}function Wu(r,s,o,c,f){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var k=c.stateNode.containerInfo;if(k===f||k.nodeType===8&&k.parentNode===f)break;if(x===4)for(x=c.return;x!==null;){var T=x.tag;if((T===3||T===4)&&(T=x.stateNode.containerInfo,T===f||T.nodeType===8&&T.parentNode===f))return;x=x.return}for(;k!==null;){if(x=zr(k),x===null)return;if(T=x.tag,T===5||T===6){c=m=x;continue e}k=k.parentNode}}c=c.return}Fh(function(){var U=m,q=mu(o),H=[];e:{var W=Rp.get(r);if(W!==void 0){var J=Ru,ne=r;switch(r){case"keypress":if(pa(o)===0)break e;case"keydown":case"keyup":J=h1;break;case"focusin":ne="focus",J=Ou;break;case"focusout":ne="blur",J=Ou;break;case"beforeblur":case"afterblur":J=Ou;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":J=ip;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=t1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=g1;break;case kp:case Cp:case Tp:J=s1;break;case Pp:J=v1;break;case"scroll":J=Zb;break;case"wheel":J=x1;break;case"copy":case"cut":case"paste":J=o1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=ap}var oe=(s&4)!==0,Je=!oe&&r==="scroll",D=oe?W!==null?W+"Capture":null:W;oe=[];for(var N=U,I;N!==null;){I=N;var Q=I.stateNode;if(I.tag===5&&Q!==null&&(I=Q,D!==null&&(Q=Ri(N,D),Q!=null&&oe.push(Qi(N,Q,I)))),Je)break;N=N.return}0<oe.length&&(W=new J(W,ne,null,o,q),H.push({event:W,listeners:oe}))}}if((s&7)===0){e:{if(W=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",W&&o!==pu&&(ne=o.relatedTarget||o.fromElement)&&(zr(ne)||ne[Mn]))break e;if((J||W)&&(W=q.window===q?q:(W=q.ownerDocument)?W.defaultView||W.parentWindow:window,J?(ne=o.relatedTarget||o.toElement,J=U,ne=ne?zr(ne):null,ne!==null&&(Je=Br(ne),ne!==Je||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(J=null,ne=U),J!==ne)){if(oe=ip,Q="onMouseLeave",D="onMouseEnter",N="mouse",(r==="pointerout"||r==="pointerover")&&(oe=ap,Q="onPointerLeave",D="onPointerEnter",N="pointer"),Je=J==null?W:Ls(J),I=ne==null?W:Ls(ne),W=new oe(Q,N+"leave",J,o,q),W.target=Je,W.relatedTarget=I,Q=null,zr(q)===U&&(oe=new oe(D,N+"enter",ne,o,q),oe.target=I,oe.relatedTarget=Je,Q=oe),Je=Q,J&&ne)t:{for(oe=J,D=ne,N=0,I=oe;I;I=Os(I))N++;for(I=0,Q=D;Q;Q=Os(Q))I++;for(;0<N-I;)oe=Os(oe),N--;for(;0<I-N;)D=Os(D),I--;for(;N--;){if(oe===D||D!==null&&oe===D.alternate)break t;oe=Os(oe),D=Os(D)}oe=null}else oe=null;J!==null&&Lp(H,W,J,oe,!1),ne!==null&&Je!==null&&Lp(H,Je,ne,oe,!0)}}e:{if(W=U?Ls(U):window,J=W.nodeName&&W.nodeName.toLowerCase(),J==="select"||J==="input"&&W.type==="file")var ae=T1;else if(hp(W))if(mp)ae=N1;else{ae=R1;var ce=P1}else(J=W.nodeName)&&J.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(ae=A1);if(ae&&(ae=ae(r,U))){pp(H,ae,o,q);break e}ce&&ce(r,W,U),r==="focusout"&&(ce=W._wrapperState)&&ce.controlled&&W.type==="number"&&cn(W,"number",W.value)}switch(ce=U?Ls(U):window,r){case"focusin":(hp(ce)||ce.contentEditable==="true")&&(As=ce,Fu=U,qi=null);break;case"focusout":qi=Fu=As=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Ep(H,o,q);break;case"selectionchange":if(L1)break;case"keydown":case"keyup":Ep(H,o,q)}var de;if(Lu)e:{switch(r){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Rs?dp(r,o)&&(we="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(we="onCompositionStart");we&&(lp&&o.locale!=="ko"&&(Rs||we!=="onCompositionStart"?we==="onCompositionEnd"&&Rs&&(de=rp()):(or=q,Pu="value"in or?or.value:or.textContent,Rs=!0)),ce=ba(U,we),0<ce.length&&(we=new op(we,r,null,o,q),H.push({event:we,listeners:ce}),de?we.data=de:(de=fp(o),de!==null&&(we.data=de)))),(de=S1?E1(r,o):_1(r,o))&&(U=ba(U,"onBeforeInput"),0<U.length&&(q=new op("onBeforeInput","beforeinput",null,o,q),H.push({event:q,listeners:U}),q.data=de))}Op(H,s)})}function Qi(r,s,o){return{instance:r,listener:s,currentTarget:o}}function ba(r,s){for(var o=s+"Capture",c=[];r!==null;){var f=r,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=Ri(r,o),m!=null&&c.unshift(Qi(r,m,f)),m=Ri(r,s),m!=null&&c.push(Qi(r,m,f))),r=r.return}return c}function Os(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Lp(r,s,o,c,f){for(var m=s._reactName,x=[];o!==null&&o!==c;){var k=o,T=k.alternate,U=k.stateNode;if(T!==null&&T===c)break;k.tag===5&&U!==null&&(k=U,f?(T=Ri(o,m),T!=null&&x.unshift(Qi(o,T,k))):f||(T=Ri(o,m),T!=null&&x.push(Qi(o,T,k)))),o=o.return}x.length!==0&&r.push({event:s,listeners:x})}var F1=/\r\n?/g,V1=/\u0000|\uFFFD/g;function Dp(r){return(typeof r=="string"?r:""+r).replace(F1,`
38`).replace(V1,"")}function Sa(r,s,o){if(s=Dp(s),Dp(r)!==s&&o)throw Error(n(425))}function Ea(){}var qu=null,Hu=null;function Ku(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Qu=typeof setTimeout=="function"?setTimeout:void 0,U1=typeof clearTimeout=="function"?clearTimeout:void 0,Mp=typeof Promise=="function"?Promise:void 0,B1=typeof queueMicrotask=="function"?queueMicrotask:typeof Mp<"u"?function(r){return Mp.resolve(null).then(r).catch(z1)}:Qu;function z1(r){setTimeout(function(){throw r})}function Gu(r,s){var o=s,c=0;do{var f=o.nextSibling;if(r.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(c===0){r.removeChild(f),Fi(s);return}c--}else o!=="$"&&o!=="$?"&&o!=="$!"||c++;o=f}while(o);Fi(s)}function lr(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function Ip(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return r;s--}else o==="/$"&&s++}r=r.previousSibling}return null}var js=Math.random().toString(36).slice(2),_n="__reactFiber$"+js,Gi="__reactProps$"+js,Mn="__reactContainer$"+js,Yu="__reactEvents$"+js,$1="__reactListeners$"+js,W1="__reactHandles$"+js;function zr(r){var s=r[_n];if(s)return s;for(var o=r.parentNode;o;){if(s=o[Mn]||o[_n]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=Ip(r);r!==null;){if(o=r[_n])return o;r=Ip(r)}return s}r=o,o=r.parentNode}return null}function Yi(r){return r=r[_n]||r[Mn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Ls(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function _a(r){return r[Gi]||null}var Xu=[],Ds=-1;function ur(r){return{current:r}}function ze(r){0>Ds||(r.current=Xu[Ds],Xu[Ds]=null,Ds--)}function Ve(r,s){Ds++,Xu[Ds]=r.current,r.current=s}var cr={},wt=ur(cr),Nt=ur(!1),$r=cr;function Ms(r,s){var o=r.type.contextTypes;if(!o)return cr;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var f={},m;
vendor: 4,188 bytes, line 38
38for(m in o)f[m]=s[m];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=f),f}function Ot(r){return r=r.childContextTypes,r!=null}function ka(){ze(Nt),ze(wt)}function Fp(r,s,o){if(wt.current!==cr)throw Error(n(168));Ve(wt,s),Ve(Nt,o)}function Vp(r,s,o){var c=r.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return o;c=c.getChildContext();for(var f in c)if(!(f in s))throw Error(n(108,be(r)||"Unknown",f));return B({},o,c)}function Ca(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||cr,$r=wt.current,Ve(wt,r),Ve(Nt,Nt.current),!0}function Up(r,s,o){var c=r.stateNode;if(!c)throw Error(n(169));o?(r=Vp(r,s,$r),c.__reactInternalMemoizedMergedChildContext=r,ze(Nt),ze(wt),Ve(wt,r)):ze(Nt),Ve(Nt,o)}var In=null,Ta=!1,Ju=!1;function Bp(r){In===null?In=[r]:In.push(r)}function q1(r){Ta=!0,Bp(r)}function dr(){if(!Ju&&In!==null){Ju=!0;var r=0,s=Fe;try{var o=In;for(Fe=1;r<o.length;r++){var c=o[r];do c=c(!0);while(c!==null)}In=null,Ta=!1}catch(f){throw In!==null&&(In=In.slice(r+1)),$h(xu,dr),f}finally{Fe=s,Ju=!1}}return null}var Is=[],Fs=0,Pa=null,Ra=0,Yt=[],Xt=0,Wr=null,Fn=1,Vn="";function qr(r,s){Is[Fs++]=Ra,Is[Fs++]=Pa,Pa=r,Ra=s}function zp(r,s,o){Yt[Xt++]=Fn,Yt[Xt++]=Vn,Yt[Xt++]=Wr,Wr=r;var c=Fn;r=Vn;var f=32-dn(c)-1;c&=~(1<<f),o+=1;var m=32-dn(s)+f;if(30<m){var x=f-f%5;m=(c&(1<<x)-1).toString(32),c>>=x,f-=x,Fn=1<<32-dn(s)+f|o<<f|c,Vn=m+r}else Fn=1<<m|o<<f|c,Vn=r}function Zu(r){r.return!==null&&(qr(r,1),zp(r,1,0))}function ec(r){for(;r===Pa;)Pa=Is[--Fs],Is[Fs]=null,Ra=Is[--Fs],Is[Fs]=null;for(;r===Wr;)Wr=Yt[--Xt],Yt[Xt]=null,Vn=Yt[--Xt],Yt[Xt]=null,Fn=Yt[--Xt],Yt[Xt]=null}var zt=null,$t=null,We=!1,hn=null;function $p(r,s){var o=tn(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=r,s=r.deletions,s===null?(r.deletions=[o],r.flags|=16):s.push(o)}function Wp(r,s){switch(r.tag){case 5:var o=r.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,zt=r,$t=lr(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,zt=r,$t=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=Wr!==null?{id:Fn,overflow:Vn}:null,r.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=tn(18,null,null,0),o.stateNode=s,o.return=r,r.child=o,zt=r,$t=null,!0):!1;default:return!1}}function tc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function nc(r){if(We){var s=$t;if(s){var o=s;if(!Wp(r,s)){if(tc(r))throw Error(n(418));s=lr(o.nextSibling);var c=zt;s&&Wp(r,s)?$p(c,o):(r.flags=r.flags&-4097|2,We=!1,zt=r)}}else{if(tc(r))throw Error(n(418));r.flags=r.flags&-4097|2,We=!1,zt=r}}}function qp(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;zt=r}function Aa(r){if(r!==zt)return!1;if(!We)return qp(r),We=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Ku(r.type,r.memoizedProps)),s&&(s=$t)){if(tc(r))throw Hp(),Error(n(418));for(;s;)$p(r,s),s=lr(s.nextSibling)}if(qp(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"){if(s===0){$t=lr(r.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}r=r.nextSibling}$t=null}}else $t=zt?lr(r.stateNode.nextSibling):null;return!0}function Hp(){for(var r=$t;r;)r=lr(r.nextSibling)}function Vs(){$t=zt=null,We=!1}function rc(r){hn===null?hn=[r]:hn.push(r)}var H1=O.ReactCurrentBatchConfig;function Xi(r,s,o){if(r=o.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(n(309));var c=o.stateNode}if(!c)throw Error(n(147,r));var f=c,m=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===m?s.ref:(s=function(x){var k=f.refs;x===null?delete k[m]:k[m]=x},s._stringRef=m,s)}if(typeof r!="string")throw Error(n(284));if(!o._owner)throw Error(n(290,r))}return r}function Na(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function Kp(r){var s=r._init;return s(r._payload)}
vendor: 5,148 bytes, line 38
38function Qp(r){function s(D,N){if(r){var I=D.deletions;I===null?(D.deletions=[N],D.flags|=16):I.push(N)}}function o(D,N){if(!r)return null;for(;N!==null;)s(D,N),N=N.sibling;return null}function c(D,N){for(D=new Map;N!==null;)N.key!==null?D.set(N.key,N):D.set(N.index,N),N=N.sibling;return D}function f(D,N){return D=wr(D,N),D.index=0,D.sibling=null,D}function m(D,N,I){return D.index=I,r?(I=D.alternate,I!==null?(I=I.index,I<N?(D.flags|=2,N):I):(D.flags|=2,N)):(D.flags|=1048576,N)}function x(D){return r&&D.alternate===null&&(D.flags|=2),D}function k(D,N,I,Q){return N===null||N.tag!==6?(N=Qc(I,D.mode,Q),N.return=D,N):(N=f(N,I),N.return=D,N)}function T(D,N,I,Q){var ae=I.type;return ae===Y?q(D,N,I.props.children,Q,I.key):N!==null&&(N.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===fe&&Kp(ae)===N.type)?(Q=f(N,I.props),Q.ref=Xi(D,N,I),Q.return=D,Q):(Q=tl(I.type,I.key,I.props,null,D.mode,Q),Q.ref=Xi(D,N,I),Q.return=D,Q)}function U(D,N,I,Q){return N===null||N.tag!==4||N.stateNode.containerInfo!==I.containerInfo||N.stateNode.implementation!==I.implementation?(N=Gc(I,D.mode,Q),N.return=D,N):(N=f(N,I.children||[]),N.return=D,N)}function q(D,N,I,Q,ae){return N===null||N.tag!==7?(N=Zr(I,D.mode,Q,ae),N.return=D,N):(N=f(N,I),N.return=D,N)}function H(D,N,I){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Qc(""+N,D.mode,I),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case M:return I=tl(N.type,N.key,N.props,null,D.mode,I),I.ref=Xi(D,null,N),I.return=D,I;case z:return N=Gc(N,D.mode,I),N.return=D,N;case fe:var Q=N._init;return H(D,Q(N._payload),I)}if(er(N)||se(N))return N=Zr(N,D.mode,I,null),N.return=D,N;Na(D,N)}return null}function W(D,N,I,Q){var ae=N!==null?N.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return ae!==null?null:k(D,N,""+I,Q);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case M:return I.key===ae?T(D,N,I,Q):null;case z:return I.key===ae?U(D,N,I,Q):null;case fe:return ae=I._init,W(D,N,ae(I._payload),Q)}if(er(I)||se(I))return ae!==null?null:q(D,N,I,Q,null);Na(D,I)}return null}function J(D,N,I,Q,ae){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return D=D.get(I)||null,k(N,D,""+Q,ae);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case M:return D=D.get(Q.key===null?I:Q.key)||null,T(N,D,Q,ae);case z:return D=D.get(Q.key===null?I:Q.key)||null,U(N,D,Q,ae);case fe:var ce=Q._init;return J(D,N,I,ce(Q._payload),ae)}if(er(Q)||se(Q))return D=D.get(I)||null,q(N,D,Q,ae,null);Na(N,Q)}return null}function ne(D,N,I,Q){for(var ae=null,ce=null,de=N,we=N=0,ut=null;de!==null&&we<I.length;we++){de.index>we?(ut=de,de=null):ut=de.sibling;var je=W(D,de,I[we],Q);if(je===null){de===null&&(de=ut);break}r&&de&&je.alternate===null&&s(D,de),N=m(je,N,we),ce===null?ae=je:ce.sibling=je,ce=je,de=ut}if(we===I.length)return o(D,de),We&&qr(D,we),ae;if(de===null){for(;we<I.length;we++)de=H(D,I[we],Q),de!==null&&(N=m(de,N,we),ce===null?ae=de:ce.sibling=de,ce=de);return We&&qr(D,we),ae}for(de=c(D,de);we<I.length;we++)ut=J(de,D,we,I[we],Q),ut!==null&&(r&&ut.alternate!==null&&de.delete(ut.key===null?we:ut.key),N=m(ut,N,we),ce===null?ae=ut:ce.sibling=ut,ce=ut);return r&&de.forEach(function(xr){return s(D,xr)}),We&&qr(D,we),ae}function oe(D,N,I,Q){var ae=se(I);if(typeof ae!="function")throw Error(n(150));if(I=ae.call(I),I==null)throw Error(n(151));for(var ce=ae=null,de=N,we=N=0,ut=null,je=I.next();de!==null&&!je.done;we++,je=I.next()){de.index>we?(ut=de,de=null):ut=de.sibling;var xr=W(D,de,je.value,Q);if(xr===null){de===null&&(de=ut);break}r&&de&&xr.alternate===null&&s(D,de),N=m(xr,N,we),ce===null?ae=xr:ce.sibling=xr,ce=xr,de=ut}if(je.done)return o(D,de),We&&qr(D,we),ae;if(de===null){for(;!je.done;we++,je=I.next())je=H(D,je.value,Q),je!==null&&(N=m(je,N,we),ce===null?ae=je:ce.sibling=je,ce=je);return We&&qr(D,we),ae}for(de=c(D,de);!je.done;we++,je=I.next())je=J(de,D,we,je.value,Q),je!==null&&(r&&je.alternate!==null&&de.delete(je.key===null?we:je.key),N=m(je,N,we),ce===null?ae=je:ce.sibling=je,ce=je);return r&&de.forEach(function(kS){return s(D,kS)}),We&&qr(D,we),ae}function Je(D,N,I,Q){if(typeof I=="object"&&I!==null&&I.type===Y&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case M:e:{for(var ae=I.key,ce=N;ce!==null;){if(ce.key===ae){if(ae=I.type,ae===Y){if(ce.tag===7){o(D,ce.sibling),N=f(ce,I.props.children),N.return=D,D=N;break e}}else if(ce.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===fe&&Kp(ae)===ce.type){o(D,ce.sibling),N=f(ce,I.props),N.ref=Xi(D,ce,I),N.return=D,D=N;break e}o(D,ce);break}else s(D,ce);ce=ce.sibling}I.type===Y?(N=Zr(I.props.children,D.mode,Q,I.key),N.return=D,D=N):(Q=tl(I.type,I.key,I.props,null,D.mode,Q),Q.ref=Xi(D,N,I),Q.return=D,D=Q)}return x(D);case z:e:{for(ce=I.key;N!==null;){if(N.key===ce)if(N.tag===4&&N.stateNode.containerInfo===I.containerInfo&&N.stateNode.implementation===I.implementation){o(D,N.sibling),N=f(N,I.children||[]),N.return=D,D=N;break e}else{o(D,N);break}else s(D,N);N=N.sibling}N=Gc(I,D.mode,Q),N.return=D,D=N}return x(D);case fe:return ce=I._init,Je(D,N,ce(I._payload),Q)}if(er(I))return ne(D,N,I,Q);if(se(I))return oe(D,N,I,Q);Na(D,I)}
vendor: 8,029 bytes, line 38
38return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,N!==null&&N.tag===6?(o(D,N.sibling),N=f(N,I),N.return=D,D=N):(o(D,N),N=Qc(I,D.mode,Q),N.return=D,D=N),x(D)):o(D,N)}return Je}var Us=Qp(!0),Gp=Qp(!1),Oa=ur(null),ja=null,Bs=null,sc=null;function ic(){sc=Bs=ja=null}function oc(r){var s=Oa.current;ze(Oa),r._currentValue=s}function ac(r,s,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===o)break;r=r.return}}function zs(r,s){ja=r,sc=Bs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(jt=!0),r.firstContext=null)}function Jt(r){var s=r._currentValue;if(sc!==r)if(r={context:r,memoizedValue:s,next:null},Bs===null){if(ja===null)throw Error(n(308));Bs=r,ja.dependencies={lanes:0,firstContext:r}}else Bs=Bs.next=r;return s}var Hr=null;function lc(r){Hr===null?Hr=[r]:Hr.push(r)}function Yp(r,s,o,c){var f=s.interleaved;return f===null?(o.next=o,lc(s)):(o.next=f.next,f.next=o),s.interleaved=o,Un(r,c)}function Un(r,s){r.lanes|=s;var o=r.alternate;for(o!==null&&(o.lanes|=s),o=r,r=r.return;r!==null;)r.childLanes|=s,o=r.alternate,o!==null&&(o.childLanes|=s),o=r,r=r.return;return o.tag===3?o.stateNode:null}var fr=!1;function uc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xp(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Bn(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function hr(r,s,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var f=c.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s,Un(r,o)}return f=c.interleaved,f===null?(s.next=s,lc(c)):(s.next=f.next,f.next=s),c.interleaved=s,Un(r,o)}function La(r,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,Eu(r,o)}}function Jp(r,s){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var f=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var x={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};m===null?f=m=x:m=m.next=x,o=o.next}while(o!==null);m===null?f=m=s:m=m.next=s}else f=m=s;o={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:c.shared,effects:c.effects},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}function Da(r,s,o,c){var f=r.updateQueue;fr=!1;var m=f.firstBaseUpdate,x=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var T=k,U=T.next;T.next=null,x===null?m=U:x.next=U,x=T;var q=r.alternate;q!==null&&(q=q.updateQueue,k=q.lastBaseUpdate,k!==x&&(k===null?q.firstBaseUpdate=U:k.next=U,q.lastBaseUpdate=T))}if(m!==null){var H=f.baseState;x=0,q=U=T=null,k=m;do{var W=k.lane,J=k.eventTime;if((c&W)===W){q!==null&&(q=q.next={eventTime:J,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ne=r,oe=k;switch(W=s,J=o,oe.tag){case 1:if(ne=oe.payload,typeof ne=="function"){H=ne.call(J,H,W);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=oe.payload,W=typeof ne=="function"?ne.call(J,H,W):ne,W==null)break e;H=B({},H,W);break e;case 2:fr=!0}}k.callback!==null&&k.lane!==0&&(r.flags|=64,W=f.effects,W===null?f.effects=[k]:W.push(k))}else J={eventTime:J,lane:W,tag:k.tag,payload:k.payload,callback:k.callback,next:null},q===null?(U=q=J,T=H):q=q.next=J,x|=W;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;W=k,k=W.next,W.next=null,f.lastBaseUpdate=W,f.shared.pending=null}}while(!0);if(q===null&&(T=H),f.baseState=T,f.firstBaseUpdate=U,f.lastBaseUpdate=q,s=f.shared.interleaved,s!==null){f=s;do x|=f.lane,f=f.next;while(f!==s)}else m===null&&(f.shared.lanes=0);Gr|=x,r.lanes=x,r.memoizedState=H}}function Zp(r,s,o){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var c=r[s],f=c.callback;if(f!==null){if(c.callback=null,c=o,typeof f!="function")throw Error(n(191,f));f.call(c)}}}var Ji={},kn=ur(Ji),Zi=ur(Ji),eo=ur(Ji);function Kr(r){if(r===Ji)throw Error(n(174));return r}function cc(r,s){switch(Ve(eo,s),Ve(Zi,r),Ve(kn,Ji),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:du(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=du(s,r)}ze(kn),Ve(kn,s)}function $s(){ze(kn),ze(Zi),ze(eo)}function em(r){Kr(eo.current);var s=Kr(kn.current),o=du(s,r.type);s!==o&&(Ve(Zi,r),Ve(kn,o))}function dc(r){Zi.current===r&&(ze(kn),ze(Zi))}var qe=ur(0);function Ma(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var fc=[];function hc(){for(var r=0;r<fc.length;r++)fc[r]._workInProgressVersionPrimary=null;fc.length=0}var Ia=O.ReactCurrentDispatcher,pc=O.ReactCurrentBatchConfig,Qr=0,He=null,rt=null,at=null,Fa=!1,to=!1,no=0,K1=0;function xt(){throw Error(n(321))}function mc(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!fn(r[o],s[o]))return!1;return!0}function gc(r,s,o,c,f,m){if(Qr=m,He=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Ia.current=r===null||r.memoizedState===null?X1:J1,r=o(c,f),to){m=0;do{if(to=!1,no=0,25<=m)throw Error(n(301));m+=1,at=rt=null,s.updateQueue=null,Ia.current=Z1,r=o(c,f)}while(to)}if(Ia.current=Ba,s=rt!==null&&rt.next!==null,Qr=0,at=rt=He=null,Fa=!1,s)throw Error(n(300));return r}function yc(){var r=no!==0;return no=0,r}function Cn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?He.memoizedState=at=r:at=at.next=r,at}function Zt(){if(rt===null){var r=He.alternate;r=r!==null?r.memoizedState:null}else r=rt.next;var s=at===null?He.memoizedState:at.next;if(s!==null)at=s,rt=r;else{if(r===null)throw Error(n(310));rt=r,r={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},at===null?He.memoizedState=at=r:at=at.next=r}return at}function ro(r,s){return typeof s=="function"?s(r):s}function vc(r){var s=Zt(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var c=rt,f=c.baseQueue,m=o.pending;if(m!==null){if(f!==null){var x=f.next;f.next=m.next,m.next=x}c.baseQueue=f=m,o.pending=null}if(f!==null){m=f.next,c=c.baseState;var k=x=null,T=null,U=m;do{var q=U.lane;if((Qr&q)===q)T!==null&&(T=T.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),c=U.hasEagerState?U.eagerState:r(c,U.action);else{var H={lane:q,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};T===null?(k=T=H,x=c):T=T.next=H,He.lanes|=q,Gr|=q}U=U.next}while(U!==null&&U!==m);T===null?x=c:T.next=k,fn(c,s.memoizedState)||(jt=!0),s.memoizedState=c,s.baseState=x,s.baseQueue=T,o.lastRenderedState=c}if(r=o.interleaved,r!==null){f=r;do m=f.lane,He.lanes|=m,Gr|=m,f=f.next;while(f!==r)}else f===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function wc(r){var s=Zt(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var c=o.dispatch,f=o.pending,m=s.memoizedState;if(f!==null){o.pending=null;var x=f=f.next;do m=r(m,x.action),x=x.next;while(x!==f);fn(m,s.memoizedState)||(jt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),o.lastRenderedState=m}return[m,c]}function tm(){}function nm(r,s){var o=He,c=Zt(),f=s(),m=!fn(c.memoizedState,f);if(m&&(c.memoizedState=f,jt=!0),c=c.queue,xc(im.bind(null,o,c,r),[r]),c.getSnapshot!==s||m||at!==null&&at.memoizedState.tag&1){if(o.flags|=2048,so(9,sm.bind(null,o,c,f,s),void 0,null),lt===null)throw Error(n(349));
vendor: 4,247 bytes, line 38
38(Qr&30)!==0||rm(o,s,f)}return f}function rm(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=He.updateQueue,s===null?(s={lastEffect:null,stores:null},He.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function sm(r,s,o,c){s.value=o,s.getSnapshot=c,om(s)&&am(r)}function im(r,s,o){return o(function(){om(s)&&am(r)})}function om(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!fn(r,o)}catch{return!0}}function am(r){var s=Un(r,1);s!==null&&yn(s,r,1,-1)}function lm(r){var s=Cn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:r},s.queue=r,r=r.dispatch=Y1.bind(null,He,r),[s.memoizedState,r]}function so(r,s,o,c){return r={tag:r,create:s,destroy:o,deps:c,next:null},s=He.updateQueue,s===null?(s={lastEffect:null,stores:null},He.updateQueue=s,s.lastEffect=r.next=r):(o=s.lastEffect,o===null?s.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,s.lastEffect=r)),r}function um(){return Zt().memoizedState}function Va(r,s,o,c){var f=Cn();He.flags|=r,f.memoizedState=so(1|s,o,void 0,c===void 0?null:c)}function Ua(r,s,o,c){var f=Zt();c=c===void 0?null:c;var m=void 0;if(rt!==null){var x=rt.memoizedState;if(m=x.destroy,c!==null&&mc(c,x.deps)){f.memoizedState=so(s,o,m,c);return}}He.flags|=r,f.memoizedState=so(1|s,o,m,c)}function cm(r,s){return Va(8390656,8,r,s)}function xc(r,s){return Ua(2048,8,r,s)}function dm(r,s){return Ua(4,2,r,s)}function fm(r,s){return Ua(4,4,r,s)}function hm(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function pm(r,s,o){return o=o!=null?o.concat([r]):null,Ua(4,4,hm.bind(null,s,r),o)}function bc(){}function mm(r,s){var o=Zt();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&mc(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function gm(r,s){var o=Zt();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&mc(s,c[1])?c[0]:(r=r(),o.memoizedState=[r,s],r)}function ym(r,s,o){return(Qr&21)===0?(r.baseState&&(r.baseState=!1,jt=!0),r.memoizedState=o):(fn(o,s)||(o=Kh(),He.lanes|=o,Gr|=o,r.baseState=!0),s)}function Q1(r,s){var o=Fe;Fe=o!==0&&4>o?o:4,r(!0);var c=pc.transition;pc.transition={};try{r(!1),s()}finally{Fe=o,pc.transition=c}}function vm(){return Zt().memoizedState}function G1(r,s,o){var c=yr(r);if(o={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null},wm(r))xm(s,o);else if(o=Yp(r,s,o,c),o!==null){var f=Rt();yn(o,r,c,f),bm(o,s,c)}}function Y1(r,s,o){var c=yr(r),f={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null};if(wm(r))xm(s,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var x=s.lastRenderedState,k=m(x,o);if(f.hasEagerState=!0,f.eagerState=k,fn(k,x)){var T=s.interleaved;T===null?(f.next=f,lc(s)):(f.next=T.next,T.next=f),s.interleaved=f;return}}catch{}finally{}o=Yp(r,s,f,c),o!==null&&(f=Rt(),yn(o,r,c,f),bm(o,s,c))}}function wm(r){var s=r.alternate;return r===He||s!==null&&s===He}function xm(r,s){to=Fa=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function bm(r,s,o){if((o&4194240)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,Eu(r,o)}}var Ba={readContext:Jt,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},X1={readContext:Jt,useCallback:function(r,s){return Cn().memoizedState=[r,s===void 0?null:s],r},useContext:Jt,useEffect:cm,useImperativeHandle:function(r,s,o){return o=o!=null?o.concat([r]):null,Va(4194308,4,hm.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Va(4194308,4,r,s)},useInsertionEffect:function(r,s){return Va(4,2,r,s)},useMemo:function(r,s){var o=Cn();return s=s===void 0?null:s,r=r(),o.memoizedState=[r,s],r},useReducer:function(r,s,o){var c=Cn();return s=o!==void 0?o(s):s,c.memoizedState=c.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},c.queue=r,r=r.dispatch=G1.bind(null,He,r),[c.memoizedState,r]}
vendor: 5,350 bytes, lines 38-40
38,useRef:function(r){var s=Cn();return r={current:r},s.memoizedState=r},useState:lm,useDebugValue:bc,useDeferredValue:function(r){return Cn().memoizedState=r},useTransition:function(){var r=lm(!1),s=r[0];return r=Q1.bind(null,r[1]),Cn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,o){var c=He,f=Cn();if(We){if(o===void 0)throw Error(n(407));o=o()}else{if(o=s(),lt===null)throw Error(n(349));(Qr&30)!==0||rm(c,s,o)}f.memoizedState=o;var m={value:o,getSnapshot:s};return f.queue=m,cm(im.bind(null,c,m,r),[r]),c.flags|=2048,so(9,sm.bind(null,c,m,o,s),void 0,null),o},useId:function(){var r=Cn(),s=lt.identifierPrefix;if(We){var o=Vn,c=Fn;o=(c&~(1<<32-dn(c)-1)).toString(32)+o,s=":"+s+"R"+o,o=no++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=K1++,s=":"+s+"r"+o.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},J1={readContext:Jt,useCallback:mm,useContext:Jt,useEffect:xc,useImperativeHandle:pm,useInsertionEffect:dm,useLayoutEffect:fm,useMemo:gm,useReducer:vc,useRef:um,useState:function(){return vc(ro)},useDebugValue:bc,useDeferredValue:function(r){var s=Zt();return ym(s,rt.memoizedState,r)},useTransition:function(){var r=vc(ro)[0],s=Zt().memoizedState;return[r,s]},useMutableSource:tm,useSyncExternalStore:nm,useId:vm,unstable_isNewReconciler:!1},Z1={readContext:Jt,useCallback:mm,useContext:Jt,useEffect:xc,useImperativeHandle:pm,useInsertionEffect:dm,useLayoutEffect:fm,useMemo:gm,useReducer:wc,useRef:um,useState:function(){return wc(ro)},useDebugValue:bc,useDeferredValue:function(r){var s=Zt();return rt===null?s.memoizedState=r:ym(s,rt.memoizedState,r)},useTransition:function(){var r=wc(ro)[0],s=Zt().memoizedState;return[r,s]},useMutableSource:tm,useSyncExternalStore:nm,useId:vm,unstable_isNewReconciler:!1};function pn(r,s){if(r&&r.defaultProps){s=B({},s),r=r.defaultProps;for(var o in r)s[o]===void 0&&(s[o]=r[o]);return s}return s}function Sc(r,s,o,c){s=r.memoizedState,o=o(c,s),o=o==null?s:B({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var za={isMounted:function(r){return(r=r._reactInternals)?Br(r)===r:!1},enqueueSetState:function(r,s,o){r=r._reactInternals;var c=Rt(),f=yr(r),m=Bn(c,f);m.payload=s,o!=null&&(m.callback=o),s=hr(r,m,f),s!==null&&(yn(s,r,f,c),La(s,r,f))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=Rt(),f=yr(r),m=Bn(c,f);m.tag=1,m.payload=s,o!=null&&(m.callback=o),s=hr(r,m,f),s!==null&&(yn(s,r,f,c),La(s,r,f))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=Rt(),c=yr(r),f=Bn(o,c);f.tag=2,s!=null&&(f.callback=s),s=hr(r,f,c),s!==null&&(yn(s,r,c,o),La(s,r,c))}};function Sm(r,s,o,c,f,m,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,x):s.prototype&&s.prototype.isPureReactComponent?!Wi(o,c)||!Wi(f,m):!0}function Em(r,s,o){var c=!1,f=cr,m=s.contextType;return typeof m=="object"&&m!==null?m=Jt(m):(f=Ot(s)?$r:wt.current,c=s.contextTypes,m=(c=c!=null)?Ms(r,f):cr),s=new s(o,m),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=za,r.stateNode=s,s._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=f,r.__reactInternalMemoizedMaskedChildContext=m),s}function _m(r,s,o,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,c),s.state!==r&&za.enqueueReplaceState(s,s.state,null)}function Ec(r,s,o,c){var f=r.stateNode;f.props=o,f.state=r.memoizedState,f.refs={},uc(r);var m=s.contextType;typeof m=="object"&&m!==null?f.context=Jt(m):(m=Ot(s)?$r:wt.current,f.context=Ms(r,m)),f.state=r.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(Sc(r,s,m,o),f.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(s=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),s!==f.state&&za.enqueueReplaceState(f,f.state,null),Da(r,o,f,c),f.state=r.memoizedState),typeof f.componentDidMount=="function"&&(r.flags|=4194308)}function Ws(r,s){try{var o="",c=s;do o+=he(c),c=c.return;while(c);var f=o}catch(m){f=`
39Error generating stack: `+m.message+`
40`+m.stack}return{value:r,source:s,stack:f,digest:null}}function _c(r,s,o){return{value:r,source:null,stack:o??null,digest:s??null}}function kc(r,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var eS=typeof WeakMap=="function"?WeakMap:Map;function km(r,s,o){o=Bn(-1,o),o.tag=3,o.payload={element:null};var c=s.value;return o.callback=function(){Ga||(Ga=!0,Uc=c),kc(r,s)},o}function Cm(r,s,o){o=Bn(-1,o),o.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var f=s.value;o.payload=function(){return c(f)},o.callback=function(){kc(r,s)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(o.callback=function(){kc(r,s),typeof c!="function"&&(mr===null?mr=new Set([this]):mr.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})}),o}function Tm(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new eS;var f=new Set;c.set(s,f)}else f=c.get(s),f===void 0&&(f=new Set,c.set(s,f));
vendor: 40,755 bytes, line 40
40f.has(o)||(f.add(o),r=pS.bind(null,r,s,o),s.then(r,r))}function Pm(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Rm(r,s,o,c,f){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=Bn(-1,1),s.tag=2,hr(o,s,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=f,r)}var tS=O.ReactCurrentOwner,jt=!1;function Pt(r,s,o,c){s.child=r===null?Gp(s,null,o,c):Us(s,r.child,o,c)}function Am(r,s,o,c,f){o=o.render;var m=s.ref;return zs(s,f),c=gc(r,s,o,c,m,f),o=yc(),r!==null&&!jt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,zn(r,s,f)):(We&&o&&Zu(s),s.flags|=1,Pt(r,s,c,f),s.child)}function Nm(r,s,o,c,f){if(r===null){var m=o.type;return typeof m=="function"&&!Kc(m)&&m.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=m,Om(r,s,m,c,f)):(r=tl(o.type,null,c,s,s.mode,f),r.ref=s.ref,r.return=s,s.child=r)}if(m=r.child,(r.lanes&f)===0){var x=m.memoizedProps;if(o=o.compare,o=o!==null?o:Wi,o(x,c)&&r.ref===s.ref)return zn(r,s,f)}return s.flags|=1,r=wr(m,c),r.ref=s.ref,r.return=s,s.child=r}function Om(r,s,o,c,f){if(r!==null){var m=r.memoizedProps;if(Wi(m,c)&&r.ref===s.ref)if(jt=!1,s.pendingProps=c=m,(r.lanes&f)!==0)(r.flags&131072)!==0&&(jt=!0);else return s.lanes=r.lanes,zn(r,s,f)}return Cc(r,s,o,c,f)}function jm(r,s,o){var c=s.pendingProps,f=c.children,m=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(Hs,Wt),Wt|=o;else{if((o&1073741824)===0)return r=m!==null?m.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Ve(Hs,Wt),Wt|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:o,Ve(Hs,Wt),Wt|=c}else m!==null?(c=m.baseLanes|o,s.memoizedState=null):c=o,Ve(Hs,Wt),Wt|=c;return Pt(r,s,f,o),s.child}function Lm(r,s){var o=s.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function Cc(r,s,o,c,f){var m=Ot(o)?$r:wt.current;return m=Ms(s,m),zs(s,f),o=gc(r,s,o,c,m,f),c=yc(),r!==null&&!jt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,zn(r,s,f)):(We&&c&&Zu(s),s.flags|=1,Pt(r,s,o,f),s.child)}function Dm(r,s,o,c,f){if(Ot(o)){var m=!0;Ca(s)}else m=!1;if(zs(s,f),s.stateNode===null)Wa(r,s),Em(s,o,c),Ec(s,o,c,f),c=!0;else if(r===null){var x=s.stateNode,k=s.memoizedProps;x.props=k;var T=x.context,U=o.contextType;typeof U=="object"&&U!==null?U=Jt(U):(U=Ot(o)?$r:wt.current,U=Ms(s,U));var q=o.getDerivedStateFromProps,H=typeof q=="function"||typeof x.getSnapshotBeforeUpdate=="function";H||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k!==c||T!==U)&&_m(s,x,c,U),fr=!1;var W=s.memoizedState;x.state=W,Da(s,c,x,f),T=s.memoizedState,k!==c||W!==T||Nt.current||fr?(typeof q=="function"&&(Sc(s,o,q,c),T=s.memoizedState),(k=fr||Sm(s,o,k,c,W,T,U))?(H||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=T),x.props=c,x.state=T,x.context=U,c=k):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{x=s.stateNode,Xp(r,s),k=s.memoizedProps,U=s.type===s.elementType?k:pn(s.type,k),x.props=U,H=s.pendingProps,W=x.context,T=o.contextType,typeof T=="object"&&T!==null?T=Jt(T):(T=Ot(o)?$r:wt.current,T=Ms(s,T));var J=o.getDerivedStateFromProps;(q=typeof J=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k!==H||W!==T)&&_m(s,x,c,T),fr=!1,W=s.memoizedState,x.state=W,Da(s,c,x,f);var ne=s.memoizedState;k!==H||W!==ne||Nt.current||fr?(typeof J=="function"&&(Sc(s,o,J,c),ne=s.memoizedState),(U=fr||Sm(s,o,U,c,W,ne,T)||!1)?(q||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,ne,T),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,ne,T)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||k===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=ne),x.props=c,x.state=ne,x.context=T,c=U):(typeof x.componentDidUpdate!="function"||k===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),c=!1)}return Tc(r,s,o,c,m,f)}function Tc(r,s,o,c,f,m){Lm(r,s);var x=(s.flags&128)!==0;if(!c&&!x)return f&&Up(s,o,!1),zn(r,s,m);c=s.stateNode,tS.current=s;var k=x&&typeof o.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,r!==null&&x?(s.child=Us(s,r.child,null,m),s.child=Us(s,null,k,m)):Pt(r,s,k,m),s.memoizedState=c.state,f&&Up(s,o,!0),s.child}function Mm(r){var s=r.stateNode;s.pendingContext?Fp(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Fp(r,s.context,!1),cc(r,s.containerInfo)}function Im(r,s,o,c,f){return Vs(),rc(f),s.flags|=256,Pt(r,s,o,c),s.child}var Pc={dehydrated:null,treeContext:null,retryLane:0};function Rc(r){return{baseLanes:r,cachePool:null,transitions:null}}function Fm(r,s,o){var c=s.pendingProps,f=qe.current,m=!1,x=(s.flags&128)!==0,k;if((k=x)||(k=r!==null&&r.memoizedState===null?!1:(f&2)!==0),k?(m=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(f|=1),Ve(qe,f&1),r===null)return nc(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(x=c.children,r=c.fallback,m?(c=s.mode,m=s.child,x={mode:"hidden",children:x},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=x):m=nl(x,c,0,null),r=Zr(r,c,o,null),m.return=s,r.return=s,m.sibling=r,s.child=m,s.child.memoizedState=Rc(o),s.memoizedState=Pc,r):Ac(s,x));if(f=r.memoizedState,f!==null&&(k=f.dehydrated,k!==null))return nS(r,s,x,c,k,f,o);if(m){m=c.fallback,x=s.mode,f=r.child,k=f.sibling;var T={mode:"hidden",children:c.children};return(x&1)===0&&s.child!==f?(c=s.child,c.childLanes=0,c.pendingProps=T,s.deletions=null):(c=wr(f,T),c.subtreeFlags=f.subtreeFlags&14680064),k!==null?m=wr(k,m):(m=Zr(m,x,o,null),m.flags|=2),m.return=s,c.return=s,c.sibling=m,s.child=c,c=m,m=s.child,x=r.child.memoizedState,x=x===null?Rc(o):{baseLanes:x.baseLanes|o,cachePool:null,transitions:x.transitions},m.memoizedState=x,m.childLanes=r.childLanes&~o,s.memoizedState=Pc,c}return m=r.child,r=m.sibling,c=wr(m,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=o),c.return=s,c.sibling=null,r!==null&&(o=s.deletions,o===null?(s.deletions=[r],s.flags|=16):o.push(r)),s.child=c,s.memoizedState=null,c}function Ac(r,s){return s=nl({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function $a(r,s,o,c){return c!==null&&rc(c),Us(s,r.child,null,o),r=Ac(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function nS(r,s,o,c,f,m,x){if(o)return s.flags&256?(s.flags&=-257,c=_c(Error(n(422))),$a(r,s,x,c)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(m=c.fallback,f=s.mode,c=nl({mode:"visible",children:c.children},f,0,null),m=Zr(m,f,x,null),m.flags|=2,c.return=s,m.return=s,c.sibling=m,s.child=c,(s.mode&1)!==0&&Us(s,r.child,null,x),s.child.memoizedState=Rc(x),s.memoizedState=Pc,m);if((s.mode&1)===0)return $a(r,s,x,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var k=c.dgst;return c=k,m=Error(n(419)),c=_c(m,c,void 0),$a(r,s,x,c)}if(k=(x&r.childLanes)!==0,jt||k){if(c=lt,c!==null){switch(x&-x){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(c.suspendedLanes|x))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,Un(r,f),yn(c,r,f,-1))}return Hc(),c=_c(Error(n(421))),$a(r,s,x,c)}return f.data==="$?"?(s.flags|=128,s.child=r.child,s=mS.bind(null,r),f._reactRetry=s,null):(r=m.treeContext,$t=lr(f.nextSibling),zt=s,We=!0,hn=null,r!==null&&(Yt[Xt++]=Fn,Yt[Xt++]=Vn,Yt[Xt++]=Wr,Fn=r.id,Vn=r.overflow,Wr=s),s=Ac(s,c.children),s.flags|=4096,s)}function Vm(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),ac(r.return,s,o)}function Nc(r,s,o,c,f){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:f}:(m.isBackwards=s,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=o,m.tailMode=f)}function Um(r,s,o){var c=s.pendingProps,f=c.revealOrder,m=c.tail;if(Pt(r,s,c.children,o),c=qe.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Vm(r,o,s);else if(r.tag===19)Vm(r,o,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Ve(qe,c),(s.mode&1)===0)s.memoizedState=null;else switch(f){case"forwards":for(o=s.child,f=null;o!==null;)r=o.alternate,r!==null&&Ma(r)===null&&(f=o),o=o.sibling;o=f,o===null?(f=s.child,s.child=null):(f=o.sibling,o.sibling=null),Nc(s,!1,f,o,m);break;case"backwards":for(o=null,f=s.child,s.child=null;f!==null;){if(r=f.alternate,r!==null&&Ma(r)===null){s.child=f;break}r=f.sibling,f.sibling=o,o=f,f=r}Nc(s,!0,o,null,m);break;case"together":Nc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Wa(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function zn(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Gr|=s.lanes,(o&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,o=wr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=wr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function rS(r,s,o){switch(s.tag){case 3:Mm(s),Vs();break;case 5:em(s);break;case 1:Ot(s.type)&&Ca(s);break;case 4:cc(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,f=s.memoizedProps.value;Ve(Oa,c._currentValue),c._currentValue=f;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Ve(qe,qe.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?Fm(r,s,o):(Ve(qe,qe.current&1),r=zn(r,s,o),r!==null?r.sibling:null);Ve(qe,qe.current&1);break;case 19:if(c=(o&s.childLanes)!==0,(r.flags&128)!==0){if(c)return Um(r,s,o);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Ve(qe,qe.current),c)break;return null;case 22:case 23:return s.lanes=0,jm(r,s,o)}return zn(r,s,o)}var Bm,Oc,zm,$m;Bm=function(r,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Oc=function(){},zm=function(r,s,o,c){var f=r.memoizedProps;if(f!==c){r=s.stateNode,Kr(kn.current);var m=null;switch(o){case"input":f=Qt(r,f),c=Qt(r,c),m=[];break;case"select":f=B({},f,{value:void 0}),c=B({},c,{value:void 0}),m=[];break;case"textarea":f=Dn(r,f),c=Dn(r,c),m=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Ea)}fu(o,c);var x;o=null;for(U in f)if(!c.hasOwnProperty(U)&&f.hasOwnProperty(U)&&f[U]!=null)if(U==="style"){var k=f[U];for(x in k)k.hasOwnProperty(x)&&(o||(o={}),o[x]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(a.hasOwnProperty(U)?m||(m=[]):(m=m||[]).push(U,null));for(U in c){var T=c[U];if(k=f!=null?f[U]:void 0,c.hasOwnProperty(U)&&T!==k&&(T!=null||k!=null))if(U==="style")if(k){for(x in k)!k.hasOwnProperty(x)||T&&T.hasOwnProperty(x)||(o||(o={}),o[x]="");for(x in T)T.hasOwnProperty(x)&&k[x]!==T[x]&&(o||(o={}),o[x]=T[x])}else o||(m||(m=[]),m.push(U,o)),o=T;else U==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,k=k?k.__html:void 0,T!=null&&k!==T&&(m=m||[]).push(U,T)):U==="children"?typeof T!="string"&&typeof T!="number"||(m=m||[]).push(U,""+T):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(a.hasOwnProperty(U)?(T!=null&&U==="onScroll"&&Be("scroll",r),m||k===T||(m=[])):(m=m||[]).push(U,T))}o&&(m=m||[]).push("style",o);var U=m;(s.updateQueue=U)&&(s.flags|=4)}},$m=function(r,s,o,c){o!==c&&(s.flags|=4)};function io(r,s){if(!We)switch(r.tailMode){case"hidden":s=r.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function bt(r){var s=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(s)for(var f=r.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags&14680064,c|=f.flags&14680064,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)o|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=c,r.childLanes=o,s}function sS(r,s,o){var c=s.pendingProps;switch(ec(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(s),null;case 1:return Ot(s.type)&&ka(),bt(s),null;case 3:return c=s.stateNode,$s(),ze(Nt),ze(wt),hc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Aa(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,hn!==null&&($c(hn),hn=null))),Oc(r,s),bt(s),null;case 5:dc(s);var f=Kr(eo.current);if(o=s.type,r!==null&&s.stateNode!=null)zm(r,s,o,c,f),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return bt(s),null}if(r=Kr(kn.current),Aa(s)){c=s.stateNode,o=s.type;var m=s.memoizedProps;switch(c[_n]=s,c[Gi]=m,r=(s.mode&1)!==0,o){case"dialog":Be("cancel",c),Be("close",c);break;case"iframe":case"object":case"embed":Be("load",c);break;case"video":case"audio":for(f=0;f<Hi.length;f++)Be(Hi[f],c);break;case"source":Be("error",c);break;case"img":case"image":case"link":Be("error",c),Be("load",c);break;case"details":Be("toggle",c);break;case"input":Gt(c,m),Be("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Be("invalid",c);break;case"textarea":Ch(c,m),Be("invalid",c)}fu(o,m),f=null;for(var x in m)if(m.hasOwnProperty(x)){var k=m[x];x==="children"?typeof k=="string"?c.textContent!==k&&(m.suppressHydrationWarning!==!0&&Sa(c.textContent,k,r),f=["children",k]):typeof k=="number"&&c.textContent!==""+k&&(m.suppressHydrationWarning!==!0&&Sa(c.textContent,k,r),f=["children",""+k]):a.hasOwnProperty(x)&&k!=null&&x==="onScroll"&&Be("scroll",c)}switch(o){case"input":Kt(c),un(c,m,!0);break;case"textarea":Kt(c),Ph(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Ea)}c=f,s.updateQueue=c,c!==null&&(s.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Rh(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=x.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=x.createElement(o,{is:c.is}):(r=x.createElement(o),o==="select"&&(x=r,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):r=x.createElementNS(r,o),r[_n]=s,r[Gi]=c,Bm(r,s,!1,!1),s.stateNode=r;e:{switch(x=hu(o,c),o){case"dialog":Be("cancel",r),Be("close",r),f=c;break;case"iframe":case"object":case"embed":Be("load",r),f=c;break;case"video":case"audio":for(f=0;f<Hi.length;f++)Be(Hi[f],r);f=c;break;case"source":Be("error",r),f=c;break;case"img":case"image":case"link":Be("error",r),Be("load",r),f=c;break;case"details":Be("toggle",r),f=c;break;case"input":Gt(r,c),f=Qt(r,c),Be("invalid",r);break;case"option":f=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},f=B({},c,{value:void 0}),Be("invalid",r);break;case"textarea":Ch(r,c),f=Dn(r,c),Be("invalid",r);break;default:f=c}fu(o,f),k=f;for(m in k)if(k.hasOwnProperty(m)){var T=k[m];m==="style"?Oh(r,T):m==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&Ah(r,T)):m==="children"?typeof T=="string"?(o!=="textarea"||T!=="")&&Ti(r,T):typeof T=="number"&&Ti(r,""+T):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?T!=null&&m==="onScroll"&&Be("scroll",r):T!=null&&P(r,m,T,x))}switch(o){case"input":Kt(r),un(r,c,!1);break;case"textarea":Kt(r),Ph(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Ce(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?tr(r,!!c.multiple,m,!1):c.defaultValue!=null&&tr(r,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(r.onclick=Ea)}switch(o){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return bt(s),null;case 6:if(r&&s.stateNode!=null)$m(r,s,r.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(o=Kr(eo.current),Kr(kn.current),Aa(s)){if(c=s.stateNode,o=s.memoizedProps,c[_n]=s,(m=c.nodeValue!==o)&&(r=zt,r!==null))switch(r.tag){case 3:Sa(c.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Sa(c.nodeValue,o,(r.mode&1)!==0)}m&&(s.flags|=4)}else c=(o.nodeType===9?o:o.ownerDocument).createTextNode(c),c[_n]=s,s.stateNode=c}return bt(s),null;case 13:if(ze(qe),c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(We&&$t!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Hp(),Vs(),s.flags|=98560,m=!1;else if(m=Aa(s),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[_n]=s}else Vs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;bt(s),m=!1}else hn!==null&&($c(hn),hn=null),m=!0;if(!m)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=o,s):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(qe.current&1)!==0?st===0&&(st=3):Hc())),s.updateQueue!==null&&(s.flags|=4),bt(s),null);case 4:return $s(),Oc(r,s),r===null&&Ki(s.stateNode.containerInfo),bt(s),null;case 10:return oc(s.type._context),bt(s),null;case 17:return Ot(s.type)&&ka(),bt(s),null;case 19:if(ze(qe),m=s.memoizedState,m===null)return bt(s),null;if(c=(s.flags&128)!==0,x=m.rendering,x===null)if(c)io(m,!1);else{if(st!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(x=Ma(r),x!==null){for(s.flags|=128,io(m,!1),c=x.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=o,o=s.child;o!==null;)m=o,r=c,m.flags&=14680066,x=m.alternate,x===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=x.childLanes,m.lanes=x.lanes,m.child=x.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=x.memoizedProps,m.memoizedState=x.memoizedState,m.updateQueue=x.updateQueue,m.type=x.type,r=x.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),o=o.sibling;return Ve(qe,qe.current&1|2),s.child}r=r.sibling}m.tail!==null&&Xe()>Ks&&(s.flags|=128,c=!0,io(m,!1),s.lanes=4194304)}else{if(!c)if(r=Ma(x),r!==null){if(s.flags|=128,c=!0,o=r.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),io(m,!0),m.tail===null&&m.tailMode==="hidden"&&!x.alternate&&!We)return bt(s),null}else 2*Xe()-m.renderingStartTime>Ks&&o!==1073741824&&(s.flags|=128,c=!0,io(m,!1),s.lanes=4194304);m.isBackwards?(x.sibling=s.child,s.child=x):(o=m.last,o!==null?o.sibling=x:s.child=x,m.last=x)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=Xe(),s.sibling=null,o=qe.current,Ve(qe,c?o&1|2:o&1),s):(bt(s),null);case 22:case 23:return qc(),c=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Wt&1073741824)!==0&&(bt(s),s.subtreeFlags&6&&(s.flags|=8192)):bt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function iS(r,s){switch(ec(s),s.tag){case 1:return Ot(s.type)&&ka(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return $s(),ze(Nt),ze(wt),hc(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return dc(s),null;case 13:if(ze(qe),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Vs()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return ze(qe),null;case 4:return $s(),null;case 10:return oc(s.type._context),null;case 22:case 23:return qc(),null;case 24:return null;default:return null}}var qa=!1,St=!1,oS=typeof WeakSet=="function"?WeakSet:Set,te=null;function qs(r,s){var o=r.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(c){Qe(r,s,c)}else o.current=null}function jc(r,s,o){try{o()}catch(c){Qe(r,s,c)}}var Wm=!1;function aS(r,s){if(qu=da,r=Sp(),Iu(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var f=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var x=0,k=-1,T=-1,U=0,q=0,H=r,W=null;t:for(;;){for(var J;H!==o||f!==0&&H.nodeType!==3||(k=x+f),H!==m||c!==0&&H.nodeType!==3||(T=x+c),H.nodeType===3&&(x+=H.nodeValue.length),(J=H.firstChild)!==null;)W=H,H=J;for(;;){if(H===r)break t;if(W===o&&++U===f&&(k=x),W===m&&++q===c&&(T=x),(J=H.nextSibling)!==null)break;H=W,W=H.parentNode}H=J}o=k===-1||T===-1?null:{start:k,end:T}}else o=null}o=o||{start:0,end:0}}else o=null;for(Hu={focusedElem:r,selectionRange:o},da=!1,te=s;te!==null;)if(s=te,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,te=r;else for(;te!==null;){s=te;try{var ne=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var oe=ne.memoizedProps,Je=ne.memoizedState,D=s.stateNode,N=D.getSnapshotBeforeUpdate(s.elementType===s.type?oe:pn(s.type,oe),Je);D.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var I=s.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Q){Qe(s,s.return,Q)}if(r=s.sibling,r!==null){r.return=s.return,te=r;break}te=s.return}return ne=Wm,Wm=!1,ne}function oo(r,s,o){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&r)===r){var m=f.destroy;f.destroy=void 0,m!==void 0&&jc(s,o,m)}f=f.next}while(f!==c)}}function Ha(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&r)===r){var c=o.create;o.destroy=c()}o=o.next}while(o!==s)}}function Lc(r){var s=r.ref;if(s!==null){var o=r.stateNode;switch(r.tag){case 5:r=o;break;default:r=o}typeof s=="function"?s(r):s.current=r}}function qm(r){var s=r.alternate;s!==null&&(r.alternate=null,qm(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[_n],delete s[Gi],delete s[Yu],delete s[$1],delete s[W1])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Hm(r){return r.tag===5||r.tag===3||r.tag===4}function Km(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Hm(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.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 Dc(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(r,s):o.insertBefore(r,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(r,o)):(s=o,s.appendChild(r)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=Ea));else if(c!==4&&(r=r.child,r!==null))for(Dc(r,s,o),r=r.sibling;r!==null;)Dc(r,s,o),r=r.sibling}function Mc(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.insertBefore(r,s):o.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Mc(r,s,o),r=r.sibling;r!==null;)Mc(r,s,o),r=r.sibling}var ht=null,mn=!1;function pr(r,s,o){for(o=o.child;o!==null;)Qm(r,s,o),o=o.sibling}function Qm(r,s,o){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(ia,o)}catch{}switch(o.tag){case 5:St||qs(o,s);case 6:var c=ht,f=mn;ht=null,pr(r,s,o),ht=c,mn=f,ht!==null&&(mn?(r=ht,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):ht.removeChild(o.stateNode));break;case 18:ht!==null&&(mn?(r=ht,o=o.stateNode,r.nodeType===8?Gu(r.parentNode,o):r.nodeType===1&&Gu(r,o),Fi(r)):Gu(ht,o.stateNode));break;case 4:c=ht,f=mn,ht=o.stateNode.containerInfo,mn=!0,pr(r,s,o),ht=c,mn=f;break;case 0:case 11:case 14:case 15:if(!St&&(c=o.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var m=f,x=m.destroy;m=m.tag,x!==void 0&&((m&2)!==0||(m&4)!==0)&&jc(o,s,x),f=f.next}while(f!==c)}pr(r,s,o);break;case 1:if(!St&&(qs(o,s),c=o.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=o.memoizedProps,c.state=o.memoizedState,c.componentWillUnmount()}catch(k){Qe(o,s,k)}pr(r,s,o);break;case 21:pr(r,s,o);break;case 22:o.mode&1?(St=(c=St)||o.memoizedState!==null,pr(r,s,o),St=c):pr(r,s,o);break;default:pr(r,s,o)}}function Gm(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new oS),s.forEach(function(c){var f=gS.bind(null,r,c);o.has(c)||(o.add(c),c.then(f,f))})}}function gn(r,s){var o=s.deletions;if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];try{var m=r,x=s,k=x;e:for(;k!==null;){switch(k.tag){case 5:ht=k.stateNode,mn=!1;break e;case 3:ht=k.stateNode.containerInfo,mn=!0;break e;case 4:ht=k.stateNode.containerInfo,mn=!0;break e}k=k.return}if(ht===null)throw Error(n(160));Qm(m,x,f),ht=null,mn=!1;var T=f.alternate;T!==null&&(T.return=null),f.return=null}catch(U){Qe(f,s,U)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Ym(s,r),s=s.sibling}function Ym(r,s){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(gn(s,r),Tn(r),c&4){try{oo(3,r,r.return),Ha(3,r)}catch(oe){Qe(r,r.return,oe)}try{oo(5,r,r.return)}catch(oe){Qe(r,r.return,oe)}}break;case 1:gn(s,r),Tn(r),c&512&&o!==null&&qs(o,o.return);break;case 5:if(gn(s,r),Tn(r),c&512&&o!==null&&qs(o,o.return),r.flags&32){var f=r.stateNode;try{Ti(f,"")}catch(oe){Qe(r,r.return,oe)}}if(c&4&&(f=r.stateNode,f!=null)){var m=r.memoizedProps,x=o!==null?o.memoizedProps:m,k=r.type,T=r.updateQueue;if(r.updateQueue=null,T!==null)try{k==="input"&&m.type==="radio"&&m.name!=null&&Se(f,m),hu(k,x);var U=hu(k,m);for(x=0;x<T.length;x+=2){var q=T[x],H=T[x+1];q==="style"?Oh(f,H):q==="dangerouslySetInnerHTML"?Ah(f,H):q==="children"?Ti(f,H):P(f,q,H,U)}switch(k){case"input":ft(f,m);break;case"textarea":Th(f,m);break;case"select":var W=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var J=m.value;J!=null?tr(f,!!m.multiple,J,!1):W!==!!m.multiple&&(m.defaultValue!=null?tr(f,!!m.multiple,m.defaultValue,!0):tr(f,!!m.multiple,m.multiple?[]:"",!1))}f[Gi]=m}catch(oe){Qe(r,r.return,oe)}}break;case 6:if(gn(s,r),Tn(r),c&4){if(r.stateNode===null)throw Error(n(162));f=r.stateNode,m=r.memoizedProps;try{f.nodeValue=m}catch(oe){Qe(r,r.return,oe)}}break;case 3:if(gn(s,r),Tn(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Fi(s.containerInfo)}catch(oe){Qe(r,r.return,oe)}break;case 4:gn(s,r),Tn(r);break;case 13:gn(s,r),Tn(r),f=r.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(Vc=Xe())),c&4&&Gm(r);break;case 22:if(q=o!==null&&o.memoizedState!==null,r.mode&1?(St=(U=St)||q,gn(s,r),St=U):gn(s,r),Tn(r),c&8192){if(U=r.memoizedState!==null,(r.stateNode.isHidden=U)&&!q&&(r.mode&1)!==0)for(te=r,q=r.child;q!==null;){for(H=te=q;te!==null;){switch(W=te,J=W.child,W.tag){case 0:case 11:case 14:case 15:oo(4,W,W.return);break;case 1:qs(W,W.return);var ne=W.stateNode;if(typeof ne.componentWillUnmount=="function"){c=W,o=W.return;try{s=c,ne.props=s.memoizedProps,ne.state=s.memoizedState,ne.componentWillUnmount()}catch(oe){Qe(c,o,oe)}}break;case 5:qs(W,W.return);break;case 22:if(W.memoizedState!==null){Zm(H);continue}}J!==null?(J.return=W,te=J):Zm(H)}q=q.sibling}e:for(q=null,H=r;;){if(H.tag===5){if(q===null){q=H;try{f=H.stateNode,U?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(k=H.stateNode,T=H.memoizedProps.style,x=T!=null&&T.hasOwnProperty("display")?T.display:null,k.style.display=Nh("display",x))}catch(oe){Qe(r,r.return,oe)}}}else if(H.tag===6){if(q===null)try{H.stateNode.nodeValue=U?"":H.memoizedProps}catch(oe){Qe(r,r.return,oe)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===r)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===r)break e;for(;H.sibling===null;){if(H.return===null||H.return===r)break e;q===H&&(q=null),H=H.return}q===H&&(q=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:gn(s,r),Tn(r),c&4&&Gm(r);break;case 21:break;default:gn(s,r),Tn(r)}}function Tn(r){var s=r.flags;if(s&2){try{e:{for(var o=r.return;o!==null;){if(Hm(o)){var c=o;break e}o=o.return}throw Error(n(160))}switch(c.tag){case 5:var f=c.stateNode;c.flags&32&&(Ti(f,""),c.flags&=-33);var m=Km(r);Mc(r,m,f);break;case 3:case 4:var x=c.stateNode.containerInfo,k=Km(r);Dc(r,k,x);break;default:throw Error(n(161))}}catch(T){Qe(r,r.return,T)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function lS(r,s,o){te=r,Xm(r)}function Xm(r,s,o){for(var c=(r.mode&1)!==0;te!==null;){var f=te,m=f.child;if(f.tag===22&&c){var x=f.memoizedState!==null||qa;if(!x){var k=f.alternate,T=k!==null&&k.memoizedState!==null||St;k=qa;var U=St;if(qa=x,(St=T)&&!U)for(te=f;te!==null;)x=te,T=x.child,x.tag===22&&x.memoizedState!==null?eg(f):T!==null?(T.return=x,te=T):eg(f);for(;m!==null;)te=m,Xm(m),m=m.sibling;te=f,qa=k,St=U}Jm(r)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,te=m):Jm(r)}}function Jm(r){for(;te!==null;){var s=te;if((s.flags&8772)!==0){var o=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:St||Ha(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!St)if(o===null)c.componentDidMount();else{var f=s.elementType===s.type?o.memoizedProps:pn(s.type,o.memoizedProps);c.componentDidUpdate(f,o.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&Zp(s,m,c);break;case 3:var x=s.updateQueue;if(x!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}Zp(s,x,o)}break;case 5:var k=s.stateNode;if(o===null&&s.flags&4){o=k;var T=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&o.focus();break;case"img":T.src&&(o.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var U=s.alternate;if(U!==null){var q=U.memoizedState;if(q!==null){var H=q.dehydrated;H!==null&&Fi(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}St||s.flags&512&&Lc(s)}catch(W){Qe(s,s.return,W)}}if(s===r){te=null;break}if(o=s.sibling,o!==null){o.return=s.return,te=o;break}te=s.return}}function Zm(r){for(;te!==null;){var s=te;if(s===r){te=null;break}var o=s.sibling;if(o!==null){o.return=s.return,te=o;break}te=s.return}}function eg(r){for(;te!==null;){var s=te;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{Ha(4,s)}catch(T){Qe(s,o,T)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var f=s.return;try{c.componentDidMount()}catch(T){Qe(s,f,T)}}var m=s.return;try{Lc(s)}catch(T){Qe(s,m,T)}break;case 5:var x=s.return;try{Lc(s)}catch(T){Qe(s,x,T)}}}catch(T){Qe(s,s.return,T)}if(s===r){te=null;break}var k=s.sibling;if(k!==null){k.return=s.return,te=k;break}te=s.return}}var uS=Math.ceil,Ka=O.ReactCurrentDispatcher,Ic=O.ReactCurrentOwner,en=O.ReactCurrentBatchConfig,Oe=0,lt=null,tt=null,pt=0,Wt=0,Hs=ur(0),st=0,ao=null,Gr=0,Qa=0,Fc=0,lo=null,Lt=null,Vc=0,Ks=1/0,$n=null,Ga=!1,Uc=null,mr=null,Ya=!1,gr=null,Xa=0,uo=0,Bc=null,Ja=-1,Za=0;function Rt(){return(Oe&6)!==0?Xe():Ja!==-1?Ja:Ja=Xe()}function yr(r){return(r.mode&1)===0?1:(Oe&2)!==0&&pt!==0?pt&-pt:H1.transition!==null?(Za===0&&(Za=Kh()),Za):(r=Fe,r!==0||(r=window.event,r=r===void 0?16:np(r.type)),r)}function yn(r,s,o,c){if(50<uo)throw uo=0,Bc=null,Error(n(185));ji(r,o,c),((Oe&2)===0||r!==lt)&&(r===lt&&((Oe&2)===0&&(Qa|=o),st===4&&vr(r,pt)),Dt(r,c),o===1&&Oe===0&&(s.mode&1)===0&&(Ks=Xe()+500,Ta&&dr()))}function Dt(r,s){var o=r.callbackNode;Hb(r,s);var c=la(r,r===lt?pt:0);if(c===0)o!==null&&Wh(o),r.callbackNode=null,r.callbackPriority=0;else if(s=c&-c,r.callbackPriority!==s){if(o!=null&&Wh(o),s===1)r.tag===0?q1(ng.bind(null,r)):Bp(ng.bind(null,r)),B1(function(){(Oe&6)===0&&dr()}),o=null;else{switch(Qh(c)){case 1:o=xu;break;case 4:o=qh;break;case 16:o=sa;break;case 536870912:o=Hh;break;default:o=sa}o=cg(o,tg.bind(null,r))}r.callbackPriority=s,r.callbackNode=o}}function tg(r,s){if(Ja=-1,Za=0,(Oe&6)!==0)throw Error(n(327));var o=r.callbackNode;if(Qs()&&r.callbackNode!==o)return null;var c=la(r,r===lt?pt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||s)s=el(r,c);else{s=c;var f=Oe;Oe|=2;var m=sg();(lt!==r||pt!==s)&&($n=null,Ks=Xe()+500,Xr(r,s));do try{fS();break}catch(k){rg(r,k)}while(!0);ic(),Ka.current=m,Oe=f,tt!==null?s=0:(lt=null,pt=0,s=st)}if(s!==0){if(s===2&&(f=bu(r),f!==0&&(c=f,s=zc(r,f))),s===1)throw o=ao,Xr(r,0),vr(r,c),Dt(r,Xe()),o;if(s===6)vr(r,c);else{if(f=r.current.alternate,(c&30)===0&&!cS(f)&&(s=el(r,c),s===2&&(m=bu(r),m!==0&&(c=m,s=zc(r,m))),s===1))throw o=ao,Xr(r,0),vr(r,c),Dt(r,Xe()),o;switch(r.finishedWork=f,r.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Jr(r,Lt,$n);break;case 3:if(vr(r,c),(c&130023424)===c&&(s=Vc+500-Xe(),10<s)){if(la(r,0)!==0)break;if(f=r.suspendedLanes,(f&c)!==c){Rt(),r.pingedLanes|=r.suspendedLanes&f;break}r.timeoutHandle=Qu(Jr.bind(null,r,Lt,$n),s);break}Jr(r,Lt,$n);break;case 4:if(vr(r,c),(c&4194240)===c)break;for(s=r.eventTimes,f=-1;0<c;){var x=31-dn(c);m=1<<x,x=s[x],x>f&&(f=x),c&=~m}if(c=f,c=Xe()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*uS(c/1960))-c,10<c){r.timeoutHandle=Qu(Jr.bind(null,r,Lt,$n),c);break}Jr(r,Lt,$n);break;case 5:Jr(r,Lt,$n);break;default:throw Error(n(329))}}}return Dt(r,Xe()),r.callbackNode===o?tg.bind(null,r):null}function zc(r,s){var o=lo;return r.current.memoizedState.isDehydrated&&(Xr(r,s).flags|=256),r=el(r,s),r!==2&&(s=Lt,Lt=o,s!==null&&$c(s)),r}function $c(r){Lt===null?Lt=r:Lt.push.apply(Lt,r)}function cS(r){for(var s=r;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var c=0;c<o.length;c++){var f=o[c],m=f.getSnapshot;f=f.value;try{if(!fn(m(),f))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function vr(r,s){for(s&=~Fc,s&=~Qa,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var o=31-dn(s),c=1<<o;r[o]=-1,s&=~c}}function ng(r){if((Oe&6)!==0)throw Error(n(327));Qs();var s=la(r,0);if((s&1)===0)return Dt(r,Xe()),null;var o=el(r,s);if(r.tag!==0&&o===2){var c=bu(r);c!==0&&(s=c,o=zc(r,c))}if(o===1)throw o=ao,Xr(r,0),vr(r,s),Dt(r,Xe()),o;if(o===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Jr(r,Lt,$n),Dt(r,Xe()),null}function Wc(r,s){var o=Oe;Oe|=1;try{return r(s)}finally{Oe=o,Oe===0&&(Ks=Xe()+500,Ta&&dr())}}function Yr(r){gr!==null&&gr.tag===0&&(Oe&6)===0&&Qs();var s=Oe;Oe|=1;var o=en.transition,c=Fe;try{if(en.transition=null,Fe=1,r)return r()}finally{Fe=c,en.transition=o,Oe=s,(Oe&6)===0&&dr()}}function qc(){Wt=Hs.current,ze(Hs)}function Xr(r,s){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,U1(o)),tt!==null)for(o=tt.return;o!==null;){var c=o;switch(ec(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&ka();break;case 3:$s(),ze(Nt),ze(wt),hc();break;case 5:dc(c);break;case 4:$s();break;case 13:ze(qe);break;case 19:ze(qe);break;case 10:oc(c.type._context);break;case 22:case 23:qc()}o=o.return}if(lt=r,tt=r=wr(r.current,null),pt=Wt=s,st=0,ao=null,Fc=Qa=Gr=0,Lt=lo=null,Hr!==null){for(s=0;s<Hr.length;s++)if(o=Hr[s],c=o.interleaved,c!==null){o.interleaved=null;var f=c.next,m=o.pending;if(m!==null){var x=m.next;m.next=f,c.next=x}o.pending=c}Hr=null}return r}function rg(r,s){do{var o=tt;try{if(ic(),Ia.current=Ba,Fa){for(var c=He.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}Fa=!1}if(Qr=0,at=rt=He=null,to=!1,no=0,Ic.current=null,o===null||o.return===null){st=1,ao=s,tt=null;break}e:{var m=r,x=o.return,k=o,T=s;if(s=pt,k.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=T,q=k,H=q.tag;if((q.mode&1)===0&&(H===0||H===11||H===15)){var W=q.alternate;W?(q.updateQueue=W.updateQueue,q.memoizedState=W.memoizedState,q.lanes=W.lanes):(q.updateQueue=null,q.memoizedState=null)}var J=Pm(x);if(J!==null){J.flags&=-257,Rm(J,x,k,m,s),J.mode&1&&Tm(m,U,s),s=J,T=U;var ne=s.updateQueue;if(ne===null){var oe=new Set;oe.add(T),s.updateQueue=oe}else ne.add(T);break e}else{if((s&1)===0){Tm(m,U,s),Hc();break e}T=Error(n(426))}}else if(We&&k.mode&1){var Je=Pm(x);if(Je!==null){(Je.flags&65536)===0&&(Je.flags|=256),Rm(Je,x,k,m,s),rc(Ws(T,k));break e}}m=T=Ws(T,k),st!==4&&(st=2),lo===null?lo=[m]:lo.push(m),m=x;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var D=km(m,T,s);Jp(m,D);break e;case 1:k=T;var N=m.type,I=m.stateNode;if((m.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(mr===null||!mr.has(I)))){m.flags|=65536,s&=-s,m.lanes|=s;var Q=Cm(m,k,s);Jp(m,Q);break e}}m=m.return}while(m!==null)}og(o)}catch(ae){s=ae,tt===o&&o!==null&&(tt=o=o.return);continue}break}while(!0)}function sg(){var r=Ka.current;return Ka.current=Ba,r===null?Ba:r}function Hc(){(st===0||st===3||st===2)&&(st=4),lt===null||(Gr&268435455)===0&&(Qa&268435455)===0||vr(lt,pt)}function el(r,s){var o=Oe;Oe|=2;var c=sg();(lt!==r||pt!==s)&&($n=null,Xr(r,s));do try{dS();break}catch(f){rg(r,f)}while(!0);if(ic(),Oe=o,Ka.current=c,tt!==null)throw Error(n(261));return lt=null,pt=0,st}function dS(){for(;tt!==null;)ig(tt)}function fS(){for(;tt!==null&&!Ib();)ig(tt)}function ig(r){var s=ug(r.alternate,r,Wt);r.memoizedProps=r.pendingProps,s===null?og(r):tt=s,Ic.current=null}function og(r){var s=r;do{var o=s.alternate;if(r=s.return,(s.flags&32768)===0){if(o=sS(o,s,Wt),o!==null){tt=o;return}}else{if(o=iS(o,s),o!==null){o.flags&=32767,tt=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{st=6,tt=null;return}}if(s=s.sibling,s!==null){tt=s;return}tt=s=r}while(s!==null);st===0&&(st=5)}function Jr(r,s,o){var c=Fe,f=en.transition;try{en.transition=null,Fe=1,hS(r,s,o,c)}finally{en.transition=f,Fe=c}return null}function hS(r,s,o,c){do Qs();while(gr!==null);if((Oe&6)!==0)throw Error(n(327));o=r.finishedWork;var f=r.finishedLanes;if(o===null)return null;if(r.finishedWork=null,r.finishedLanes=0,o===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=o.lanes|o.childLanes;if(Kb(r,m),r===lt&&(tt=lt=null,pt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ya||(Ya=!0,cg(sa,function(){return Qs(),null})),m=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||m){m=en.transition,en.transition=null;var x=Fe;Fe=1;var k=Oe;Oe|=4,Ic.current=null,aS(r,o),Ym(o,r),j1(Hu),da=!!qu,Hu=qu=null,r.current=o,lS(o),Fb(),Oe=k,Fe=x,en.transition=m}else r.current=o;if(Ya&&(Ya=!1,gr=r,Xa=f),m=r.pendingLanes,m===0&&(mr=null),Bb(o.stateNode),Dt(r,Xe()),s!==null)for(c=r.onRecoverableError,o=0;o<s.length;o++)f=s[o],c(f.value,{componentStack:f.stack,digest:f.digest});if(Ga)throw Ga=!1,r=Uc,Uc=null,r;return(Xa&1)!==0&&r.tag!==0&&Qs(),m=r.pendingLanes,(m&1)!==0?r===Bc?uo++:(uo=0,Bc=r):uo=0,dr(),null}function Qs(){if(gr!==null){var r=Qh(Xa),s=en.transition,o=Fe;try{if(en.transition=null,Fe=16>r?16:r,gr===null)var c=!1;
vendor: 4,698 bytes, line 40
40else{if(r=gr,gr=null,Xa=0,(Oe&6)!==0)throw Error(n(331));var f=Oe;for(Oe|=4,te=r.current;te!==null;){var m=te,x=m.child;if((te.flags&16)!==0){var k=m.deletions;if(k!==null){for(var T=0;T<k.length;T++){var U=k[T];for(te=U;te!==null;){var q=te;switch(q.tag){case 0:case 11:case 15:oo(8,q,m)}var H=q.child;if(H!==null)H.return=q,te=H;else for(;te!==null;){q=te;var W=q.sibling,J=q.return;if(qm(q),q===U){te=null;break}if(W!==null){W.return=J,te=W;break}te=J}}}var ne=m.alternate;if(ne!==null){var oe=ne.child;if(oe!==null){ne.child=null;do{var Je=oe.sibling;oe.sibling=null,oe=Je}while(oe!==null)}}te=m}}if((m.subtreeFlags&2064)!==0&&x!==null)x.return=m,te=x;else e:for(;te!==null;){if(m=te,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:oo(9,m,m.return)}var D=m.sibling;if(D!==null){D.return=m.return,te=D;break e}te=m.return}}var N=r.current;for(te=N;te!==null;){x=te;var I=x.child;if((x.subtreeFlags&2064)!==0&&I!==null)I.return=x,te=I;else e:for(x=N;te!==null;){if(k=te,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:Ha(9,k)}}catch(ae){Qe(k,k.return,ae)}if(k===x){te=null;break e}var Q=k.sibling;if(Q!==null){Q.return=k.return,te=Q;break e}te=k.return}}if(Oe=f,dr(),En&&typeof En.onPostCommitFiberRoot=="function")try{En.onPostCommitFiberRoot(ia,r)}catch{}c=!0}return c}finally{Fe=o,en.transition=s}}return!1}function ag(r,s,o){s=Ws(o,s),s=km(r,s,1),r=hr(r,s,1),s=Rt(),r!==null&&(ji(r,1,s),Dt(r,s))}function Qe(r,s,o){if(r.tag===3)ag(r,r,o);else for(;s!==null;){if(s.tag===3){ag(s,r,o);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(mr===null||!mr.has(c))){r=Ws(o,r),r=Cm(s,r,1),s=hr(s,r,1),r=Rt(),s!==null&&(ji(s,1,r),Dt(s,r));break}}s=s.return}}function pS(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),s=Rt(),r.pingedLanes|=r.suspendedLanes&o,lt===r&&(pt&o)===o&&(st===4||st===3&&(pt&130023424)===pt&&500>Xe()-Vc?Xr(r,0):Fc|=o),Dt(r,s)}function lg(r,s){s===0&&((r.mode&1)===0?s=1:(s=aa,aa<<=1,(aa&130023424)===0&&(aa=4194304)));var o=Rt();r=Un(r,s),r!==null&&(ji(r,s,o),Dt(r,o))}function mS(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),lg(r,o)}function gS(r,s){var o=0;switch(r.tag){case 13:var c=r.stateNode,f=r.memoizedState;f!==null&&(o=f.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),lg(r,o)}var ug;ug=function(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps||Nt.current)jt=!0;else{if((r.lanes&o)===0&&(s.flags&128)===0)return jt=!1,rS(r,s,o);jt=(r.flags&131072)!==0}else jt=!1,We&&(s.flags&1048576)!==0&&zp(s,Ra,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;Wa(r,s),r=s.pendingProps;var f=Ms(s,wt.current);zs(s,o),f=gc(null,s,c,r,f,o);var m=yc();return s.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Ot(c)?(m=!0,Ca(s)):m=!1,s.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,uc(s),f.updater=za,s.stateNode=f,f._reactInternals=s,Ec(s,c,r,o),s=Tc(null,s,c,!0,m,o)):(s.tag=0,We&&m&&Zu(s),Pt(null,s,f,o),s=s.child),s;case 16:c=s.elementType;e:{switch(Wa(r,s),r=s.pendingProps,f=c._init,c=f(c._payload),s.type=c,f=s.tag=vS(c),r=pn(c,r),f){case 0:s=Cc(null,s,c,r,o);break e;case 1:s=Dm(null,s,c,r,o);break e;case 11:s=Am(null,s,c,r,o);break e;case 14:s=Nm(null,s,c,pn(c.type,r),o);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:pn(c,f),Cc(r,s,c,f,o);case 1:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:pn(c,f),Dm(r,s,c,f,o);case 3:e:{if(Mm(s),r===null)throw Error(n(387));c=s.pendingProps,m=s.memoizedState,f=m.element,Xp(r,s),Da(s,c,null,o);var x=s.memoizedState;if(c=x.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){f=Ws(Error(n(423)),s),s=Im(r,s,c,o,f);break e}else if(c!==f){f=Ws(Error(n(424)),s),s=Im(r,s,c,o,f);break e}else for($t=lr(s.stateNode.containerInfo.firstChild),zt=s,We=!0,hn=null,o=Gp(s,null,c,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Vs(),c===f){s=zn(r,s,o);break e}Pt(r,s,c,o)}s=s.child}return s;case 5:return em(s),r===null&&nc(s),c=s.type,f=s.pendingProps,m=r!==null?r.memoizedProps:null,x=f.children,Ku(c,f)?x=null:m!==null&&Ku(c,m)&&(s.flags|=32),Lm(r,s),Pt(r,s,x,o),s.child;case 6:return r===null&&nc(s),null;case 13:return Fm(r,s,o);case 4:return cc(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=Us(s,null,c,o):Pt(r,s,c,o),s.child;case 11:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:pn(c,f),Am(r,s,c,f,o);
vendor: 5,709 bytes, line 40
40case 7:return Pt(r,s,s.pendingProps,o),s.child;case 8:return Pt(r,s,s.pendingProps.children,o),s.child;case 12:return Pt(r,s,s.pendingProps.children,o),s.child;case 10:e:{if(c=s.type._context,f=s.pendingProps,m=s.memoizedProps,x=f.value,Ve(Oa,c._currentValue),c._currentValue=x,m!==null)if(fn(m.value,x)){if(m.children===f.children&&!Nt.current){s=zn(r,s,o);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var k=m.dependencies;if(k!==null){x=m.child;for(var T=k.firstContext;T!==null;){if(T.context===c){if(m.tag===1){T=Bn(-1,o&-o),T.tag=2;var U=m.updateQueue;if(U!==null){U=U.shared;var q=U.pending;q===null?T.next=T:(T.next=q.next,q.next=T),U.pending=T}}m.lanes|=o,T=m.alternate,T!==null&&(T.lanes|=o),ac(m.return,o,s),k.lanes|=o;break}T=T.next}}else if(m.tag===10)x=m.type===s.type?null:m.child;else if(m.tag===18){if(x=m.return,x===null)throw Error(n(341));x.lanes|=o,k=x.alternate,k!==null&&(k.lanes|=o),ac(x,o,s),x=m.sibling}else x=m.child;if(x!==null)x.return=m;else for(x=m;x!==null;){if(x===s){x=null;break}if(m=x.sibling,m!==null){m.return=x.return,x=m;break}x=x.return}m=x}Pt(r,s,f.children,o),s=s.child}return s;case 9:return f=s.type,c=s.pendingProps.children,zs(s,o),f=Jt(f),c=c(f),s.flags|=1,Pt(r,s,c,o),s.child;case 14:return c=s.type,f=pn(c,s.pendingProps),f=pn(c.type,f),Nm(r,s,c,f,o);case 15:return Om(r,s,s.type,s.pendingProps,o);case 17:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:pn(c,f),Wa(r,s),s.tag=1,Ot(c)?(r=!0,Ca(s)):r=!1,zs(s,o),Em(s,c,f),Ec(s,c,f,o),Tc(null,s,c,!0,r,o);case 19:return Um(r,s,o);case 22:return jm(r,s,o)}throw Error(n(156,s.tag))};function cg(r,s){return $h(r,s)}function yS(r,s,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(r,s,o,c){return new yS(r,s,o,c)}function Kc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function vS(r){if(typeof r=="function")return Kc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ne)return 11;if(r===Ie)return 14}return 2}function wr(r,s){var o=r.alternate;return o===null?(o=tn(r.tag,s,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=s,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&14680064,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,s=r.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o}function tl(r,s,o,c,f,m){var x=2;if(c=r,typeof r=="function")Kc(r)&&(x=1);else if(typeof r=="string")x=5;else e:switch(r){case Y:return Zr(o.children,f,m,s);case V:x=8,f|=8;break;case Z:return r=tn(12,o,s,f|2),r.elementType=Z,r.lanes=m,r;case Le:return r=tn(13,o,s,f),r.elementType=Le,r.lanes=m,r;case Te:return r=tn(19,o,s,f),r.elementType=Te,r.lanes=m,r;case le:return nl(o,f,m,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ue:x=10;break e;case Ee:x=9;break e;case Ne:x=11;break e;case Ie:x=14;break e;case fe:x=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=tn(x,o,s,f),s.elementType=r,s.type=c,s.lanes=m,s}function Zr(r,s,o,c){return r=tn(7,r,c,s),r.lanes=o,r}function nl(r,s,o,c){return r=tn(22,r,c,s),r.elementType=le,r.lanes=o,r.stateNode={isHidden:!1},r}function Qc(r,s,o){return r=tn(6,r,null,s),r.lanes=o,r}function Gc(r,s,o){return s=tn(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function wS(r,s,o,c,f){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Su(0),this.expirationTimes=Su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Su(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Yc(r,s,o,c,f,m,x,k,T){return r=new wS(r,s,o,k,T),s===1?(s=1,m===!0&&(s|=8)):s=0,m=tn(3,null,null,s),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},uc(m),r}function xS(r,s,o){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:c==null?null:""+c,children:r,containerInfo:s,implementation:o}}function dg(r){if(!r)return cr;r=r._reactInternals;e:{if(Br(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Ot(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var o=r.type;if(Ot(o))return Vp(r,o,s)}return s}function fg(r,s,o,c,f,m,x,k,T){return r=Yc(o,c,!0,r,f,m,x,k,T),r.context=dg(null),o=r.current,c=Rt(),f=yr(o),m=Bn(c,f),m.callback=s??null,hr(o,m,f),r.current.lanes=f,ji(r,f,c),Dt(r,c),r}function rl(r,s,o,c){var f=s.current,m=Rt(),x=yr(f);return o=dg(o),s.context===null?s.context=o:s.pendingContext=o,s=Bn(m,x),s.payload={element:r},c=c===void 0?null:c,c!==null&&(s.callback=c),r=hr(f,s,x),r!==null&&(yn(r,f,x,m),La(r,f,x)),x}function sl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}
vendor: 6,713 bytes, line 40
40function hg(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function Xc(r,s){hg(r,s),(r=r.alternate)&&hg(r,s)}function bS(){return null}var pg=typeof reportError=="function"?reportError:function(r){console.error(r)};function Jc(r){this._internalRoot=r}il.prototype.render=Jc.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));rl(r,s,null,null)},il.prototype.unmount=Jc.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Yr(function(){rl(null,r,null,null)}),s[Mn]=null}};function il(r){this._internalRoot=r}il.prototype.unstable_scheduleHydration=function(r){if(r){var s=Xh();r={blockedOn:null,target:r,priority:s};for(var o=0;o<ir.length&&s!==0&&s<ir[o].priority;o++);ir.splice(o,0,r),o===0&&ep(r)}};function Zc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function ol(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function mg(){}function SS(r,s,o,c,f){if(f){if(typeof c=="function"){var m=c;c=function(){var U=sl(x);m.call(U)}}var x=fg(s,c,r,0,null,!1,!1,"",mg);return r._reactRootContainer=x,r[Mn]=x.current,Ki(r.nodeType===8?r.parentNode:r),Yr(),x}for(;f=r.lastChild;)r.removeChild(f);if(typeof c=="function"){var k=c;c=function(){var U=sl(T);k.call(U)}}var T=Yc(r,0,!1,null,null,!1,!1,"",mg);return r._reactRootContainer=T,r[Mn]=T.current,Ki(r.nodeType===8?r.parentNode:r),Yr(function(){rl(s,T,o,c)}),T}function al(r,s,o,c,f){var m=o._reactRootContainer;if(m){var x=m;if(typeof f=="function"){var k=f;f=function(){var T=sl(x);k.call(T)}}rl(s,x,r,f)}else x=SS(o,s,r,f,c);return sl(x)}Gh=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var o=Oi(s.pendingLanes);o!==0&&(Eu(s,o|1),Dt(s,Xe()),(Oe&6)===0&&(Ks=Xe()+500,dr()))}break;case 13:Yr(function(){var c=Un(r,1);if(c!==null){var f=Rt();yn(c,r,1,f)}}),Xc(r,1)}},_u=function(r){if(r.tag===13){var s=Un(r,134217728);if(s!==null){var o=Rt();yn(s,r,134217728,o)}Xc(r,134217728)}},Yh=function(r){if(r.tag===13){var s=yr(r),o=Un(r,s);if(o!==null){var c=Rt();yn(o,r,s,c)}Xc(r,s)}},Xh=function(){return Fe},Jh=function(r,s){var o=Fe;try{return Fe=r,s()}finally{Fe=o}},gu=function(r,s,o){switch(s){case"input":if(ft(r,o),s=o.name,o.type==="radio"&&s!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var c=o[s];if(c!==r&&c.form===r.form){var f=_a(c);if(!f)throw Error(n(90));dt(c),ft(c,f)}}}break;case"textarea":Th(r,o);break;case"select":s=o.value,s!=null&&tr(r,!!o.multiple,s,!1)}},Mh=Wc,Ih=Yr;var ES={usingClientEntryPoint:!1,Events:[Yi,Ls,_a,Lh,Dh,Wc]},co={findFiberByHostInstance:zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_S={bundleType:co.bundleType,version:co.version,rendererPackageName:co.rendererPackageName,rendererConfig:co.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Bh(r),r===null?null:r.stateNode},findFiberByHostInstance:co.findFiberByHostInstance||bS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{ia=ll.inject(_S),En=ll}catch{}}return Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ES,Mt.createPortal=function(r,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zc(s))throw Error(n(200));return xS(r,s,null,o)},Mt.createRoot=function(r,s){if(!Zc(r))throw Error(n(299));var o=!1,c="",f=pg;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(f=s.onRecoverableError)),s=Yc(r,1,!1,null,null,o,!1,c,f),r[Mn]=s.current,Ki(r.nodeType===8?r.parentNode:r),new Jc(s)},Mt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Bh(s),r=r===null?null:r.stateNode,r},Mt.flushSync=function(r){return Yr(r)},Mt.hydrate=function(r,s,o){if(!ol(s))throw Error(n(200));return al(null,r,s,!0,o)},Mt.hydrateRoot=function(r,s,o){if(!Zc(r))throw Error(n(405));var c=o!=null&&o.hydratedSources||null,f=!1,m="",x=pg;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),s=fg(s,null,r,1,o??null,f,!1,m,x),r[Mn]=s.current,Ki(r),c)for(r=0;r<c.length;r++)o=c[r],f=o._getVersion,f=f(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,f]:s.mutableSourceEagerHydrationData.push(o,f);return new il(s)},Mt.render=function(r,s,o){if(!ol(s))throw Error(n(200));return al(null,r,s,!1,o)},Mt.unmountComponentAtNode=function(r){if(!ol(r))throw Error(n(40));return r._reactRootContainer?(Yr(function(){al(null,null,r,!1,function(){r._reactRootContainer=null,r[Mn]=null})}),!0):!1},Mt.unstable_batchedUpdates=Wc,Mt.unstable_renderSubtreeIntoContainer=function(r,s,o,c){if(!ol(o))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return al(r,s,o,!1,c)},Mt.version="18.3.1-next-f1338f8080-20240426",Mt}var _g;function g0(){if(_g)return rd.exports;_g=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),rd.exports=MS(),rd.exports}var kg;function IS(){if(kg)return cl;kg=1;var t=g0();return cl.createRoot=t.createRoot,cl.hydrateRoot=t.hydrateRoot,cl}var FS=IS();const VS=m0(FS),US=20,BS=1e6,Gn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let od=0;function zS(){return od=(od+1)%Number.MAX_VALUE,od.toString()}const ad=new Map,Cg=t=>{if(ad.has(t))return;const e=setTimeout(()=>{ad.delete(t),Co({type:Gn.REMOVE_TOAST,toastId:t})},BS);ad.set(t,e)},$S=(t,e)=>{switch(e.type){case Gn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,US)};case Gn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case Gn.DISMISS_TOAST:{const{toastId:n}=e;
40return n?Cg(n):t.toasts.forEach(i=>{Cg(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case Gn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},El=[];let _l={toasts:[]};function Co(t){_l=$S(_l,t),El.forEach(e=>{e(_l)})}function WS({...t}){const e=zS(),n=a=>Co({type:Gn.UPDATE_TOAST,toast:{...a,id:e}}),i=()=>Co({type:Gn.DISMISS_TOAST,toastId:e});return Co({type:Gn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:a=>{a||i()}}}),{id:e,dismiss:i,update:n}}function qS(){const[t,e]=F.useState(_l);return F.useEffect(()=>(El.push(e),()=>{const n=El.indexOf(e);n>-1&&El.splice(n,1)}),[t]),{...t,toast:WS,dismiss:n=>Co({type:Gn.DISMISS_TOAST,toastId:n})}}function y0(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=y0(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function v0(){for(var t,e,n=0,i="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=y0(t))&&(i&&(i+=" "),i+=e);return i}const Tg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Pg=v0,HS=(t,e)=>n=>{var i;if((e==null?void 0:e.variants)==null)return Pg(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:l}=e,u=Object.keys(a).map(p=>{const g=n==null?void 0:n[p],y=l==null?void 0:l[p];if(g===null)return null;const w=Tg(g)||Tg(y);return a[p][w]}),d=n&&Object.entries(n).reduce((p,g)=>{let[y,w]=g;return w===void 0||(p[y]=w),p},{}),h=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((p,g)=>{let{class:y,className:w,...b}=g;return Object.entries(b).every(C=>{let[_,E]=C;return Array.isArray(E)?E.includes({...l,...d}[_]):{...l,...d}[_]===E})?[...p,y,w]:p},[]);return Pg(t,u,h,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const KS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),w0=(...t)=>t.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var QS={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"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const GS=F.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},h)=>F.createElement("svg",{ref:h,...QS,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:w0("lucide",a),...d},[...u.map(([p,g])=>F.createElement(p,g)),...Array.isArray(l)?l:[l]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Zn=(t,e)=>{const n=F.forwardRef(({className:i,...a},l)=>F.createElement(GS,{ref:l,iconNode:e,className:w0(`lucide-${KS(t)}`,i),...a}));return n.displayName=`${t}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const YS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],XS=Zn("Check",YS);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const JS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ZS=Zn("ChevronLeft",JS);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const eE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],tE=Zn("ChevronRight",eE);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const nE=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],Yl=Zn("Linkedin",nE);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const rE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sE=Zn("LoaderCircle",rE);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const iE=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],x0=Zn("Mail",iE);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const oE=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],b0=Zn("MapPin",oE);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const aE=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],lE=Zn("Menu",aE);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const uE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 8,407 bytes, line 105
105],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_f=Zn("X",uE),cE=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},dE=(t,e)=>({classGroupId:t,validator:e}),S0=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Dl="-",Rg=[],fE="arbitrary..",hE=t=>{const e=mE(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return pE(u);const d=u.split(Dl),h=d[0]===""&&d.length>1?1:0;return E0(d,h,e)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=i[u],p=n[u];return h?p?cE(p,h):h:p||Rg}return n[u]||Rg}}},E0=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const p=E0(t,e+1,l);if(p)return p}const u=n.validators;if(u===null)return;const d=e===0?t.join(Dl):t.slice(e).join(Dl),h=u.length;for(let p=0;p<h;p++){const g=u[p];if(g.validator(d))return g.classGroupId}},pE=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?fE+i:void 0})(),mE=t=>{const{theme:e,classGroups:n}=t;return gE(n,e)},gE=(t,e)=>{const n=S0();for(const i in t){const a=t[i];kf(a,n,i,e)}return n},kf=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const u=t[l];yE(u,e,n,i)}},yE=(t,e,n,i)=>{if(typeof t=="string"){vE(t,e,n);return}if(typeof t=="function"){wE(t,e,n,i);return}xE(t,e,n,i)},vE=(t,e,n)=>{const i=t===""?e:_0(e,t);i.classGroupId=n},wE=(t,e,n,i)=>{if(bE(t)){kf(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(dE(n,t))},xE=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let u=0;u<l;u++){const[d,h]=a[u];kf(h,_0(e,d),n,i)}},_0=(t,e)=>{let n=t;const i=e.split(Dl),a=i.length;for(let l=0;l<a;l++){const u=i[l];let d=n.nextPart.get(u);d||(d=S0(),n.nextPart.set(u,d)),n=d}return n},bE=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,SE=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const a=(l,u)=>{n[l]=u,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in n?n[l]=u:a(l,u)}}},Od="!",Ag=":",EE=[],Ng=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),_E=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const l=[];let u=0,d=0,h=0,p;const g=a.length;for(let _=0;_<g;_++){const E=a[_];if(u===0&&d===0){if(E===Ag){l.push(a.slice(h,_)),h=_+1;continue}if(E==="/"){p=_;continue}}E==="["?u++:E==="]"?u--:E==="("?d++:E===")"&&d--}const y=l.length===0?a:a.slice(h);let w=y,b=!1;y.endsWith(Od)?(w=y.slice(0,-1),b=!0):y.startsWith(Od)&&(w=y.slice(1),b=!0);const C=p&&p>h?p-h:void 0;return Ng(l,b,w,C)};if(e){const a=e+Ag,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):Ng(EE,!1,u,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},kE=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let l=0;l<n.length;l++){const u=n[l],d=u[0]==="[",h=e.has(u);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},CE=t=>({cache:SE(t.cacheSize),parseClassName:_E(t),sortModifiers:kE(t),...hE(t)}),TE=/\s+/,PE=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,u=[],d=t.trim().split(TE);let h="";for(let p=d.length-1;p>=0;p-=1){const g=d[p],{isExternal:y,modifiers:w,hasImportantModifier:b,baseClassName:C,maybePostfixModifierPosition:_}=n(g);if(y){h=g+(h.length>0?" "+h:h);continue}let E=!!_,S=i(E?C.substring(0,_):C);if(!S){if(!E){h=g+(h.length>0?" "+h:h);continue}if(S=i(C),!S){h=g+(h.length>0?" "+h:h);continue}E=!1}const A=w.length===0?"":w.length===1?w[0]:l(w).join(":"),P=b?A+Od:A,O=P+S;if(u.indexOf(O)>-1)continue;u.push(O);const M=a(S,E);for(let z=0;z<M.length;++z){const Y=M[z];u.push(P+Y)}h=g+(h.length>0?" "+h:h)}return h},RE=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=k0(n))&&(a&&(a+=" "),a+=i);return a},k0=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=k0(t[i]))&&(n&&(n+=" "),n+=e);return n},AE=(t,...e)=>{let n,i,a,l;const u=h=>{const p=e.reduce((g,y)=>y(g),t());return n=CE(p),i=n.cache.get,a=n.cache.set,l=d,d(h)},d=h=>{const p=i(h);if(p)return p;const g=PE(h,n);return a(h,g),g};return l=u,(...h)=>l(RE(...h))},NE=[],it=t=>{const e=n=>n[t]||NE;return e.isThemeGetter=!0,e},C0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,OE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,jE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LE=/\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$/,DE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ME=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,br=t=>OE.test(t),_e=t=>!!t&&!Number.isNaN(Number(t)),Sr=t=>!!t&&Number.isInteger(Number(t)),ld=t=>t.endsWith("%")&&_e(t.slice(0,-1)),Wn=t=>jE.test(t),P0=()=>!0,FE=t=>LE.test(t)&&!DE.test(t),Cf=()=>!1,VE=t=>ME.test(t),UE=t=>IE.test(t),BE=t=>!re(t)&&!ie(t),zE=t=>Vr(t,N0,Cf),re=t=>C0.test(t),es=t=>Vr(t,O0,FE),Og=t=>Vr(t,YE,_e),$E=t=>Vr(t,L0,P0),WE=t=>Vr(t,j0,Cf),jg=t=>Vr(t,R0,Cf),qE=t=>Vr(t,A0,UE),dl=t=>Vr(t,D0,VE),ie=t=>T0.test(t),ho=t=>Es(t,O0),HE=t=>Es(t,j0),Lg=t=>Es(t,R0),KE=t=>Es(t,N0),QE=t=>Es(t,A0),fl=t=>Es(t,D0,!0),GE=t=>Es(t,L0,!0),Vr=(t,e,n)=>{const i=C0.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},Es=(t,e,n=!1)=>{const i=T0.exec(t);return i?i[1]?e(i[1]):n:!1},R0=t=>t==="position"||t==="percentage",A0=t=>t==="image"||t==="url",N0=t=>t==="length"||t==="size"||t==="bg-size",O0=t=>t==="length",YE=t=>t==="number",j0=t=>t==="family-name",L0=t=>t==="number"||t==="weight",D0=t=>t==="shadow",XE=()=>{const t=it("color"),e=it("font"),n=it("text"),i=it("font-weight"),a=it("tracking"),l=it("leading"),u=it("breakpoint"),d=it("container"),h=it("spacing"),p=it("radius"),g=it("shadow"),y=it("inset-shadow"),w=it("text-shadow"),b=it("drop-shadow"),C=it("blur"),_=it("perspective"),E=it("aspect"),S=it("ease"),A=it("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...O(),ie,re],z=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],V=()=>[ie,re,h],Z=()=>[br,"full","auto",...V()],ue=()=>[Sr,"none","subgrid",ie,re],Ee=()=>["auto",{span:["full",Sr,ie,re]},Sr,ie,re],Ne=()=>[Sr,"auto",ie,re],Le=()=>["auto","min","max","fr",ie,re],Te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ie=()=>["start","end","center","stretch","center-safe","end-safe"],fe=()=>["auto",...V()],le=()=>[br,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],K=()=>[br,"screen","full","dvw","lvw","svw","min","max","fit",...V()],se=()=>[br,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],B=()=>[t,ie,re],j=()=>[...O(),Lg,jg,{position:[ie,re]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",KE,zE,{size:[ie,re]}],ve=()=>[ld,ho,es],he=()=>["","none","full",p,ie,re],G=()=>["",_e,ho,es],be=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[_e,ld,Lg,jg],ot=()=>["","none",C,ie,re],Kt=()=>["none",_e,ie,re],dt=()=>["none",_e,ie,re],ln=()=>[_e,ie,re],Qt=()=>[br,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[P0],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[BE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",_e],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",br,re,ie,E]}
vendor: 6,133 bytes, line 105
105],container:["container"],columns:[{columns:[_e,re,ie,d]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:M()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Sr,"auto",ie,re]}],basis:[{basis:[br,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,br,"auto","initial","none",re]}],grow:[{grow:["",_e,ie,re]}],shrink:[{shrink:["",_e,ie,re]}],order:[{order:[Sr,"first","last","none",ie,re]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...Te(),"normal"]}],"justify-items":[{"justify-items":[...Ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ie()]}],"align-content":[{content:["normal",...Te()]}],"align-items":[{items:[...Ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":Te()}],"place-items":[{"place-items":[...Ie(),"baseline"]}],"place-self":[{"place-self":["auto",...Ie()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:fe()}],mx:[{mx:fe()}],my:[{my:fe()}],ms:[{ms:fe()}],me:[{me:fe()}],mbs:[{mbs:fe()}],mbe:[{mbe:fe()}],mt:[{mt:fe()}],mr:[{mr:fe()}],mb:[{mb:fe()}],ml:[{ml:fe()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[d,"screen",...le()]}],"min-w":[{"min-w":[d,"screen","none",...le()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",n,ho,es]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,GE,$E]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ld,re]}],"font-family":[{font:[HE,WE,e]}],"font-features":[{"font-features":[re]}],"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,ie,re]}],"line-clamp":[{"line-clamp":[_e,"none",ie,Og]}],leading:[{leading:[l,...V()]}],"list-image":[{"list-image":["none",ie,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ie,es]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[_e,"auto",ie,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,re]}],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",ie,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Sr,ie,re],radial:["",ie,re],conic:[Sr,ie,re]},QE,qE]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:ve()}
105],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,754 bytes, line 105
105],"divide-color":[{divide:B()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ie,re]}],"outline-w":[{outline:["",_e,ho,es]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",g,fl,dl]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",y,fl,dl]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[_e,es]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",w,fl,dl]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[_e,ie,re]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"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":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ie,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,re]}],filter:[{filter:["","none",ie,re]}],blur:[{blur:ot()}],brightness:[{brightness:[_e,ie,re]}],contrast:[{contrast:[_e,ie,re]}],"drop-shadow":[{"drop-shadow":["","none",b,fl,dl]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",_e,ie,re]}],"hue-rotate":[{"hue-rotate":[_e,ie,re]}],invert:[{invert:["",_e,ie,re]}],saturate:[{saturate:[_e,ie,re]}],sepia:[{sepia:["",_e,ie,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,re]}],"backdrop-blur":[{"backdrop-blur":ot()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ie,re]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ie,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ie,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ie,re]}],"backdrop-invert":[{"backdrop-invert":["",_e,ie,re]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ie,re]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ie,re]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ie,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ie,re]}],ease:[{ease:["linear","initial",S,ie,re]}],delay:[{delay:[_e,ie,re]}],animate:[{animate:["none",A,ie,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ie,re]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:Kt()}],"rotate-x":[{"rotate-x":Kt()}],"rotate-y":[{"rotate-y":Kt()}],"rotate-z":[{"rotate-z":Kt()}],scale:[{scale:dt()}],"scale-x":[{"scale-x":dt()}],"scale-y":[{"scale-y":dt()}],"scale-z":[{"scale-z":dt()}],"scale-3d":["scale-3d"],skew:[{skew:ln()}],"skew-x":[{"skew-x":ln()}],"skew-y":[{"skew-y":ln()}],transform:[{transform:[ie,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qt()}],"translate-x":[{"translate-x":Qt()}],"translate-y":[{"translate-y":Qt()}],"translate-z":[{"translate-z":Qt()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 6,955 bytes, line 105
105],"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",ie,re]}],"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":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",ie,re]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[_e,ho,es,Og]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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"]}},JE=AE(XE);function qo(...t){return JE(v0(t))}const M0=F.forwardRef(({...t},e)=>v.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));M0.displayName="ToastProvider";const I0=F.forwardRef(({...t},e)=>v.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));I0.displayName="ToastViewport";const ZE=HS("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),F0=F.forwardRef(({className:t,variant:e,...n},i)=>v.jsx("div",{ref:i,className:qo(ZE({variant:e}),t),...n}));F0.displayName="Toast";const e_=F.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:qo("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));e_.displayName="ToastAction";const V0=F.forwardRef(({className:t,...e},n)=>v.jsx("button",{ref:n,className:qo("absolute right-2 top-2 rounded-md p-1 text-foreground
105/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:v.jsx(_f,{className:"h-4 w-4"})}));V0.displayName="ToastClose";const U0=F.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:qo("text-sm font-semibold",t),...e}));U0.displayName="ToastTitle";const B0=F.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:qo("text-sm opacity-90",t),...e}));B0.displayName="ToastDescription";function t_(){const{toasts:t}=qS();return v.jsxs(M0,{children:[t.map(function({id:e,title:n,description:i,action:a,...l}){return v.jsxs(F0,{...l,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(U0,{children:n}),i&&v.jsx(B0,{children:i})]}),a,v.jsx(V0,{})]},e)}),v.jsx(I0,{})]})}var Ho=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},n_={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},kr,Sf,s0,r_=(s0=class{constructor(){pe(this,kr,n_);pe(this,Sf,!1)}setTimeoutProvider(t){ee(this,kr,t)}setTimeout(t,e){return R(this,kr).setTimeout(t,e)}clearTimeout(t){R(this,kr).clearTimeout(t)}setInterval(t,e){return R(this,kr).setInterval(t,e)}clearInterval(t){R(this,kr).clearInterval(t)}},kr=new WeakMap,Sf=new WeakMap,s0),os=new r_;function s_(t){setTimeout(t,0)}var xs=typeof window>"u"||"Deno"in globalThis;function Ft(){}function i_(t,e){return typeof t=="function"?t(e):t}function jd(t){return typeof t=="number"&&t>=0&&t!==1/0}function z0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Dr(t,e){return typeof t=="function"?t(e):t}function on(t,e){return typeof t=="function"?t(e):t}function Dg(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:u,stale:d}=t;if(u){if(i){if(e.queryHash!==Tf(u,e.options))return!1}else if(!jo(e.queryKey,u))return!1}if(n!=="all"){const h=e.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||a&&a!==e.state.fetchStatus||l&&!l(e))}function Mg(t,e){const{exact:n,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Oo(e.options.mutationKey)!==Oo(l))return!1}else if(!jo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function Tf(t,e){return((e==null?void 0:e.queryKeyHashFn)||Oo)(t)}function Oo(t){return JSON.stringify(t,(e,n)=>Dd(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function jo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>jo(t[n],e[n])):!1}var o_=Object.prototype.hasOwnProperty;function $0(t,e,n=0){if(t===e)return t;if(n>500)return e;const i=Ig(t)&&Ig(e);if(!i&&!(Dd(t)&&Dd(e)))return e;const l=(i?t:Object.keys(t)).length,u=i?e:Object.keys(e),d=u.length,h=i?new Array(d):{};let p=0;for(let g=0;g<d;g++){const y=i?g:u[g],w=t[y],b=e[y];if(w===b){h[y]=w,(i?g<l:o_.call(t,y))&&p++;continue}if(w===null||b===null||typeof w!="object"||typeof b!="object"){h[y]=b;continue}const C=$0(w,b,n+1);h[y]=C,C===w&&p++}return l===d&&p===l?t:h}function Ld(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Ig(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Dd(t){if(!Fg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Fg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Fg(t){return Object.prototype.toString.call(t)==="[object Object]"}function a_(t){return new Promise(e=>{os.setTimeout(e,t)})}function Md(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?$0(t,e):e}function l_(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function u_(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var Pf=Symbol();function W0(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Pf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function q0(t,e){return typeof t=="function"?t(...e):!!t}function c_(t,e,n){let i=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??(a=e()),i||(i=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),t}var us,Cr,ii,i0,d_=(i0=class extends Ho{constructor(){super();pe(this,us);pe(this,Cr);pe(this,ii);ee(this,ii,e=>{if(!xs&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Cr)||this.setEventListener(R(this,ii))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Cr))==null||e.call(this),ee(this,Cr,void 0))}setEventListener(e){var n;ee(this,ii,e),(n=R(this,Cr))==null||n.call(this),ee(this,Cr,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){R(this,us)!==e&&(ee(this,us,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,677 bytes, line 105
105this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof R(this,us)=="boolean"?R(this,us):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},us=new WeakMap,Cr=new WeakMap,ii=new WeakMap,i0),Rf=new d_;function Id(){let t,e;const n=new Promise((a,l)=>{t=a,e=l});n.status="pending",n.catch(()=>{});function i(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},n.reject=a=>{i({status:"rejected",reason:a}),e(a)},n}var f_=s_;function h_(){let t=[],e=0,n=d=>{d()},i=d=>{d()},a=f_;const l=d=>{e?t.push(d):a(()=>{n(d)})},u=()=>{const d=t;t=[],d.length&&a(()=>{i(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||u()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{a=d}}}var yt=h_(),oi,Tr,ai,o0,p_=(o0=class extends Ho{constructor(){super();pe(this,oi,!0);pe(this,Tr);pe(this,ai);ee(this,ai,e=>{if(!xs&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){R(this,Tr)||this.setEventListener(R(this,ai))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Tr))==null||e.call(this),ee(this,Tr,void 0))}setEventListener(e){var n;ee(this,ai,e),(n=R(this,Tr))==null||n.call(this),ee(this,Tr,e(this.setOnline.bind(this)))}setOnline(e){R(this,oi)!==e&&(ee(this,oi,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return R(this,oi)}},oi=new WeakMap,Tr=new WeakMap,ai=new WeakMap,o0),Ml=new p_;function m_(t){return Math.min(1e3*2**t,3e4)}function H0(t){return(t??"online")==="online"?Ml.isOnline():!0}var Fd=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function K0(t){let e=!1,n=0,i;const a=Id(),l=()=>a.status!=="pending",u=_=>{var E;if(!l()){const S=new Fd(_);w(S),(E=t.onCancel)==null||E.call(t,S)}},d=()=>{e=!0},h=()=>{e=!1},p=()=>Rf.isFocused()&&(t.networkMode==="always"||Ml.isOnline())&&t.canRun(),g=()=>H0(t.networkMode)&&t.canRun(),y=_=>{l()||(i==null||i(),a.resolve(_))},w=_=>{l()||(i==null||i(),a.reject(_))},b=()=>new Promise(_=>{var E;i=S=>{(l()||p())&&_(S)},(E=t.onPause)==null||E.call(t)}).then(()=>{var _;i=void 0,l()||(_=t.onContinue)==null||_.call(t)}),C=()=>{if(l())return;let _;const E=n===0?t.initialPromise:void 0;try{_=E??t.fn()}catch(S){_=Promise.reject(S)}Promise.resolve(_).then(y).catch(S=>{var z;if(l())return;const A=t.retry??(xs?0:3),P=t.retryDelay??m_,O=typeof P=="function"?P(n,S):P,M=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,S);if(e||!M){w(S);return}n++,(z=t.onFail)==null||z.call(t,n,S),a_(O).then(()=>p()?void 0:b()).then(()=>{e?w(S):C()})})};return{promise:a,status:()=>a.status,cancel:u,continue:()=>(i==null||i(),a),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?C():b().then(C),a)}}var cs,a0,Q0=(a0=class{constructor(){pe(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jd(this.gcTime)&&ee(this,cs,os.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(xs?1/0:300*1e3))}clearGcTimeout(){R(this,cs)&&(os.clearTimeout(R(this,cs)),ee(this,cs,void 0))}},cs=new WeakMap,a0),ds,li,sn,fs,ct,Uo,hs,wn,Hn,l0,g_=(l0=class extends Q0{constructor(e){super();pe(this,wn);pe(this,ds);pe(this,li);pe(this,sn);pe(this,fs);pe(this,ct);pe(this,Uo);pe(this,hs);ee(this,hs,!1),ee(this,Uo,e.defaultOptions),this.setOptions(e.options),this.observers=[],ee(this,fs,e.client),ee(this,sn,R(this,fs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ee(this,ds,Ug(this.options)),this.state=e.state??R(this,ds),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ct))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,Uo),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Ug(this.options);n.data!==void 0&&(this.setState(Vg(n.data,n.dataUpdatedAt)),ee(this,ds,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,sn).remove(this)}setData(e,n){const i=Md(this.state.data,e,this.options);return Pe(this,wn,Hn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){Pe(this,wn,Hn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=R(this,ct))==null?void 0:i.promise;return(a=R(this,ct))==null||a.cancel(e),n?n.then(Ft).catch(Ft):Prom
105ise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,ds))}isActive(){return this.observers.some(e=>on(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Dr(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:!z0(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ct))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ct))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,sn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(R(this,ct)&&(R(this,hs)?R(this,ct).cancel({revert:!0}):R(this,ct).cancelRetry()),this.scheduleGc()),R(this,sn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,wn,Hn).call(this,{type:"invalidate"})}async fetch(e,n){var h,p,g,y,w,b,C,_,E,S,A,P;if(this.state.fetchStatus!=="idle"&&((h=R(this,ct))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,ct))return R(this,ct).continueRetry(),R(this,ct).promise}if(e&&this.setOptions(e),!this.options.queryFn){const O=this.observers.find(M=>M.options.queryFn);O&&this.setOptions(O.options)}const i=new AbortController,a=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(ee(this,hs,!0),i.signal)})},l=()=>{const O=W0(this.options,n),z=(()=>{const Y={client:R(this,fs),queryKey:this.queryKey,meta:this.meta};return a(Y),Y})();return ee(this,hs,!1),this.options.persister?this.options.persister(O,z,this):O(z)},d=(()=>{const O={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,fs),state:this.state,fetchFn:l};return a(O),O})();(p=this.options.behavior)==null||p.onFetch(d,this),ee(this,li,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&Pe(this,wn,Hn).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),ee(this,ct,K0({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:O=>{O instanceof Fd&&O.revert&&this.setState({...R(this,li),fetchStatus:"idle"}),i.abort()},onFail:(O,M)=>{Pe(this,wn,Hn).call(this,{type:"failed",failureCount:O,error:M})},onPause:()=>{Pe(this,wn,Hn).call(this,{type:"pause"})},onContinue:()=>{Pe(this,wn,Hn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const O=await R(this,ct).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(b=(w=R(this,sn).config).onSuccess)==null||b.call(w,O,this),(_=(C=R(this,sn).config).onSettled)==null||_.call(C,O,this.state.error,this),O}catch(O){if(O instanceof Fd){if(O.silent)return R(this,ct).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw Pe(this,wn,Hn).call(this,{type:"error",error:O}),(S=(E=R(this,sn).config).onError)==null||S.call(E,O,this),(P=(A=R(this,sn).config).onSettled)==null||P.call(A,this.state.data,O,this),O}finally{this.scheduleGc()}}},ds=new WeakMap,li=new WeakMap,sn=new WeakMap,fs=new WeakMap,ct=new WeakMap,Uo=new WeakMap,hs=new WeakMap,wn=new WeakSet,Hn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...G0(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Vg(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,li,e.manual?a:void 0),a;case"error":const l=e.error;
vendor: 10,241 bytes, line 105
105return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),yt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),R(this,sn).notify({query:this,type:"updated",action:e})})},l0);function G0(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H0(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Vg(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ug(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var It,Re,Bo,At,ps,ui,Kn,Pr,zo,ci,di,ms,gs,Rr,fi,Me,vo,Vd,Ud,Bd,zd,$d,Wd,qd,Y0,u0,y_=(u0=class extends Ho{constructor(e,n){super();pe(this,Me);pe(this,It);pe(this,Re);pe(this,Bo);pe(this,At);pe(this,ps);pe(this,ui);pe(this,Kn);pe(this,Pr);pe(this,zo);pe(this,ci);pe(this,di);pe(this,ms);pe(this,gs);pe(this,Rr);pe(this,fi,new Set);this.options=n,ee(this,It,e),ee(this,Pr,null),ee(this,Kn,Id()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Re).addObserver(this),Bg(R(this,Re),this.options)?Pe(this,Me,vo).call(this):this.updateResult(),Pe(this,Me,zd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hd(R(this,Re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hd(R(this,Re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Me,$d).call(this),Pe(this,Me,Wd).call(this),R(this,Re).removeObserver(this)}setOptions(e){const n=this.options,i=R(this,Re);if(this.options=R(this,It).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof on(this.options.enabled,R(this,Re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Me,qd).call(this),R(this,Re).setOptions(this.options),n._defaulted&&!Ld(this.options,n)&&R(this,It).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Re),observer:this});const a=this.hasListeners();a&&zg(R(this,Re),i,this.options,n)&&Pe(this,Me,vo).call(this),this.updateResult(),a&&(R(this,Re)!==i||on(this.options.enabled,R(this,Re))!==on(n.enabled,R(this,Re))||Dr(this.options.staleTime,R(this,Re))!==Dr(n.staleTime,R(this,Re)))&&Pe(this,Me,Vd).call(this);const l=Pe(this,Me,Ud).call(this);a&&(R(this,Re)!==i||on(this.options.enabled,R(this,Re))!==on(n.enabled,R(this,Re))||l!==R(this,Rr))&&Pe(this,Me,Bd).call(this,l)}getOptimisticResult(e){const n=R(this,It).getQueryCache().build(R(this,It),e),i=this.createResult(n,e);return w_(this,i)&&(ee(this,At,i),ee(this,ui,this.options),ee(this,ps,R(this,Re).state)),i}getCurrentResult(){return R(this,At)}trackResult(e,n){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Kn).status==="pending"&&R(this,Kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){R(this,fi).add(e)}getCurrentQuery(){return R(this,Re)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=R(this,It).defaultQueryOptions(e),i=R(this,It).getQueryCache().build(R(this,It),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return Pe(this,Me,vo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,At)))}createResult(e,n){var Z;const i=R(this,Re),a=this.options,l=R(this,At),u=R(this,ps),d=R(this,ui),p=e!==i?e.state:R(this,Bo),{state:g}=e;let y={...g},w=!1,b;if(n._optimisticResults){const ue=this.hasListeners(),Ee=!ue&&Bg(e,n),Ne=ue&&zg(e,i,n,a);(Ee||Ne)&&(y={...y,...G0(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:C,errorUpdatedAt:_,status:E}=y;b=y.data;let S=!1;if(n.placeholderData!==void 0&&b===void 0&&E==="pending"){let ue;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(ue=l.data,S=!0):ue=typeof n.placeholderData=="function"?n.placeholderData((Z=R(this,di))==null?void 0:Z.state.data,R(this,di)):n.placeholderData,ue!==void 0&&(E="success",b=Md(l==null?void 0:l.data,ue,n),w=!0)}if(n.select&&b!==void 0&&!S)if(l&&b===(u==null?void 0:u.data)&&n.select===R(this,zo))b=R(this,ci);else try{ee(this,zo,n.select),b=n.select(b),b=Md(l==null?void 0:l.data,b,n),ee(this,ci,b),ee(this,Pr,null)}catch(ue){ee(this,Pr,ue)}R(this,Pr)&&(C=R(this,Pr),b=R(this,ci),_=Date.now(),E="error");const A=y.fetchStatus==="fetching",P=E==="pending",O=E==="error",M=P&&A,z=b!==void 0,V={status:E,fetchStatus:y.fetchStatus,isPending:P,isSuccess:E==="success",isError:O,isInitialLoading:M,isLoading:M,data:b,dataUpdatedAt:y.dataUpdatedAt,error:C,errorUpdatedAt:_,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:A,isRefetching:A&&!P,isLoadingError:O&&!z,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:O&&z,isStale:Af(e,n),refetch:this.refetch,promise:R(this,Kn),isEnabled:on(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ue=V.data!==void 0,Ee=V.status==="error"&&!ue,Ne=Ie=>{Ee?Ie.reject(V.error):ue&&Ie.resolve(V.data)},Le=()=>{const Ie=ee(this,Kn,V.promise=Id());Ne(Ie)},Te=R(this,Kn);switch(Te.status){case"pending":e.queryHash===i.queryHash&&Ne(Te);break;case"fulfilled":(Ee||V.data!==Te.value)&&Le();break;case"rejected":(!Ee||V.error!==Te.reason)&&Le();break}}return V}updateResult(){const e=R(this,At),n=this.createResult(R(this,Re),this.options);if(ee(this,ps,R(this,Re).state),ee(this,ui,this.options),R(this,ps).data!==void 0&&ee(this,di,R(this,Re)),Ld(n,e))return;ee(this,At,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!R(this,fi).size)return!0;const u=new Set(l??R(this,fi));return this.options.throwOnError&&u.add("error"),Object.keys(R(this,At)).some(d=>{const h=d;return R(this,At)[h]!==e[h]&&u.has(h)})};Pe(this,Me,Y0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Me,zd).call(this)}},It=new WeakMap,Re=new WeakMap,Bo=new WeakMap,At=new WeakMap,ps=new WeakMap,ui=new WeakMap,Kn=new WeakMap,Pr=new WeakMap,zo=new WeakMap,ci=new WeakMap,di=new WeakMap,ms=new WeakMap,gs=new WeakMap,Rr=new WeakMap,fi=new WeakMap,Me=new WeakSet,vo=function(e){Pe(this,Me,qd).call(this);let n=R(this,Re).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Ft)),n},Vd=function(){Pe(this,Me,$d).call(this);const e=Dr(this.options.staleTime,R(this,Re));if(xs||R(this,At).isStale||!jd(e))return;const i=z0(R(this,At).dataUpdatedAt,e)+1;ee(this,ms,os.setTimeout(()=>{R(this,At).isStale||this.updateResult()},i))},Ud=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Re)):this.options.refetchInterval)??!1},Bd=function(e){Pe(this,Me,Wd).call(this),ee(this,Rr,e),!(xs||on(this.options.enabled,R(this,Re))===!1||!jd(R(this,Rr))||R(this,Rr)===0)&&ee(this,gs,os.setInterval(()=>{(this.options.refetchIntervalInBackground||Rf.isFocused())&&Pe(this,Me,vo).call(this)},R(this,Rr)))},zd=function(){Pe(this,Me,Vd).call(this),Pe(this,Me,Bd).call(this,Pe(this,Me,Ud).call(this))},$d=function(){R(this,ms)&&(os.clearTimeout(R(this,ms)),ee(this,ms,void 0))},Wd=function(){R(this,gs)&&(os.clearInterval(R(this,gs)),ee(this,gs,void 0))},qd=function(){const e=R(this,It).getQueryCache().build(R(this,It),this.options);if(e===R(this,Re))return;const n=R(this,Re);ee(this,Re,e),ee(this,Bo,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Y0=function(e){yt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(R(this,At))}),R(this,It).getQueryCache().notify({query:R(this,Re),type:"observerResultsUpdated"})})},u0);function v_(t,e){return on(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Bg(t,e){return v_(t,e)||t.state.data!==void 0&&Hd(t,e,e.refetchOnMount)}function Hd(t,e,n){if(on(e.enabled,t)!==!1&&Dr(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Af(t,e)}return!1}function zg(t,e,n,i){return(t!==e||on(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Af(t,n)}function Af(t,e){return on(e.enabled,t)!==!1&&t.isStaleByTime(Dr(e.staleTime,t))}function w_(t,e){return!Ld(t.getCurrentResult(),e)}function $g(t){return{onFetch:(e,n)=>{var g,y,w,b,C;const i=e.options,a=(w=(y=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,l=((b=e.state.data)==null?void 0:b.pages)||[],u=((C=e.state.data)==null?void 0:C.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let _=!1;const E=P=>{c_(P,()=>e.signal,()=>_=!0)},S=W0(e.options,e.fetchOptions),A=async(P,O,M)=>{if(_)return Promise.reject();if(O==null&&P.pages.length)return Promise.resolve(P);const Y=(()=>{const Ee={client:e.client,queryKey:e.queryKey,pageParam:O,direction:M?"backward":"forward",meta:e.options.meta};return E(Ee),Ee})(),V=await S(Y),{maxPages:Z}=e.options,ue=M?u_:l_;return{pages:ue(P.pages,V,Z),pageParams:ue(P.pageParams,O,Z)}};if(a&&l.length){const P=a==="backward",O=P?x_:Wg,M={pages:l,pageParams:u},z=O(i,M);d=await A(M,z,P)}else{const P=t??l.length;do{const O=h===0?u[0]??i.initialPageParam:Wg(i,d);if(h>0&&O==null)break;d=await A(d,O),h++}while(h<P)}return d};e.options.persister?e.fetchFn=()=>{var _,E;
105return(E=(_=e.options).persister)==null?void 0:E.call(_,p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=p}}}function Wg(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function x_(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var $o,Pn,_t,ys,Rn,Er,c0,b_=(c0=class extends Q0{constructor(e){super();pe(this,Rn);pe(this,$o);pe(this,Pn);pe(this,_t);pe(this,ys);ee(this,$o,e.client),this.mutationId=e.mutationId,ee(this,_t,e.mutationCache),ee(this,Pn,[]),this.state=e.state||S_(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,Pn).includes(e)||(R(this,Pn).push(e),this.clearGcTimeout(),R(this,_t).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ee(this,Pn,R(this,Pn).filter(n=>n!==e)),this.scheduleGc(),R(this,_t).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,Pn).length||(this.state.status==="pending"?this.scheduleGc():R(this,_t).remove(this))}continue(){var e;return((e=R(this,ys))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,d,h,p,g,y,w,b,C,_,E,S,A,P,O,M,z,Y;const n=()=>{Pe(this,Rn,Er).call(this,{type:"continue"})},i={client:R(this,$o),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,ys,K0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(V,Z)=>{Pe(this,Rn,Er).call(this,{type:"failed",failureCount:V,error:Z})},onPause:()=>{Pe(this,Rn,Er).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,_t).canRun(this)}));const a=this.state.status==="pending",l=!R(this,ys).canStart();try{if(a)n();else{Pe(this,Rn,Er).call(this,{type:"pending",variables:e,isPaused:l}),R(this,_t).config.onMutate&&await R(this,_t).config.onMutate(e,this,i);const Z=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e,i));Z!==this.state.context&&Pe(this,Rn,Er).call(this,{type:"pending",context:Z,variables:e,isPaused:l})}const V=await R(this,ys).start();return await((p=(h=R(this,_t).config).onSuccess)==null?void 0:p.call(h,V,e,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,V,e,this.state.context,i)),await((b=(w=R(this,_t).config).onSettled)==null?void 0:b.call(w,V,null,this.state.variables,this.state.context,this,i)),await((_=(C=this.options).onSettled)==null?void 0:_.call(C,V,null,e,this.state.context,i)),Pe(this,Rn,Er).call(this,{type:"success",data:V}),V}catch(V){try{await((S=(E=R(this,_t).config).onError)==null?void 0:S.call(E,V,e,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((P=(A=this.options).onError)==null?void 0:P.call(A,V,e,this.state.context,i))}catch(Z){Promise.reject(Z)}try{await((M=(O=R(this,_t).config).onSettled)==null?void 0:M.call(O,void 0,V,this.state.variables,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((Y=(z=this.options).onSettled)==null?void 0:Y.call(z,void 0,V,e,this.state.context,i))}catch(Z){Promise.reject(Z)}throw Pe(this,Rn,Er).call(this,{type:"error",error:V}),V}finally{R(this,_t).runNext(this)}}},$o=new WeakMap,Pn=new WeakMap,_t=new WeakMap,ys=new WeakMap,Rn=new WeakSet,Er=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),yt.batch(()=>
105{R(this,Pn).forEach(i=>{i.onMutationUpdate(e)}),R(this,_t).notify({mutation:this,type:"updated",action:e})})},c0);function S_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qn,xn,Wo,d0,E_=(d0=class extends Ho{constructor(e={}){super();pe(this,Qn);pe(this,xn);pe(this,Wo);this.config=e,ee(this,Qn,new Set),ee(this,xn,new Map),ee(this,Wo,0)}build(e,n,i){const a=new b_({client:e,mutationCache:this,mutationId:++ul(this,Wo)._,options:e.defaultMutationOptions(n),state:i});return this.add(a),a}add(e){R(this,Qn).add(e);const n=hl(e);if(typeof n=="string"){const i=R(this,xn).get(n);i?i.push(e):R(this,xn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Qn).delete(e)){const n=hl(e);if(typeof n=="string"){const i=R(this,xn).get(n);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&R(this,xn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=hl(e);if(typeof n=="string"){const i=R(this,xn).get(n),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const n=hl(e);if(typeof n=="string"){const a=(i=R(this,xn).get(n))==null?void 0:i.find(l=>
vendor: 5,415 bytes, line 105
105l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{R(this,Qn).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Qn).clear(),R(this,xn).clear()})}getAll(){return Array.from(R(this,Qn))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Mg(n,i))}findAll(e={}){return this.getAll().filter(n=>Mg(e,n))}notify(e){yt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return yt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ft))))}},Qn=new WeakMap,xn=new WeakMap,Wo=new WeakMap,d0);function hl(t){var e;return(e=t.options.scope)==null?void 0:e.id}var An,f0,__=(f0=class extends Ho{constructor(e={}){super();pe(this,An);this.config=e,ee(this,An,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??Tf(a,n);let u=this.get(l);return u||(u=new g_({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){R(this,An).has(e.queryHash)||(R(this,An).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=R(this,An).get(e.queryHash);n&&(e.destroy(),n===e&&R(this,An).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,An).get(e)}getAll(){return[...R(this,An).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Dg(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Dg(e,i)):n}notify(e){yt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},An=new WeakMap,f0),Ge,Ar,Nr,hi,pi,Or,mi,gi,h0,k_=(h0=class{constructor(t={}){pe(this,Ge);pe(this,Ar);pe(this,Nr);pe(this,hi);pe(this,pi);pe(this,Or);pe(this,mi);pe(this,gi);ee(this,Ge,t.queryCache||new __),ee(this,Ar,t.mutationCache||new E_),ee(this,Nr,t.defaultOptions||{}),ee(this,hi,new Map),ee(this,pi,new Map),ee(this,Or,0)}mount(){ul(this,Or)._++,R(this,Or)===1&&(ee(this,mi,Rf.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Ge).onFocus())})),ee(this,gi,Ml.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Ge).onOnline())})))}unmount(){var t,e;ul(this,Or)._--,R(this,Or)===0&&((t=R(this,mi))==null||t.call(this),ee(this,mi,void 0),(e=R(this,gi))==null||e.call(this),ee(this,gi,void 0))}isFetching(t){return R(this,Ge).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return R(this,Ar).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Ge).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=R(this,Ge).build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Dr(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return R(this,Ge).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),a=R(this,Ge).get(i.queryHash),l=a==null?void 0:a.state.data,u=i_(e,l);if(u!==void 0)return R(this,Ge).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return yt.batch(()=>R(this,Ge).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Ge).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=R(this,Ge);yt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=R(this,Ge);return yt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=yt.batch(()=>R(this,Ge).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(t,e={}){return yt.batch(()=>(R(this,Ge).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=yt.batch(()=>R(this,Ge).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(Ft)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Ft)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=R(this,Ge).build(this,e);return n.isStaleByTime(Dr(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ft).catch(Ft)}fetchInfiniteQuery(t){return t.behavior=$g(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ft).catch(Ft)}ensureInfiniteQueryData(t){return t.behavior=$g(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ml.isOnline()?R(this,Ar).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ge)}getMutationCache(){return R(this,Ar)}getDefaultOptions(){return R(this,Nr)}setDefaultOptions(t){ee(this,Nr,t)}setQueryDefaults(t,e){R(this,hi).set(Oo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...R(this,hi).values()],n={};return e.forEach(i=>
105{jo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){R(this,pi).set(Oo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...R(this,pi).values()],n={};return e.forEach(i=>{jo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...R(this,Nr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Tf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Pf&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...R(this,Nr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){R(this,Ge).clear(),R(this,Ar).clear()}},Ge=new WeakMap,Ar=new WeakMap,Nr=new WeakMap,hi=new WeakMap,pi=new WeakMap,Or=new WeakMap,mi=new WeakMap,gi=new WeakMap,h0),X0=F.createContext(void 0),C_=t=>{const e=F.useContext(X0);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},T_=({client:t,children:e})=>(F.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(X0.Provider,{value:t,children:e})),J0=F.createContext(!1),P_=()=>F.useContext(J0);J0.Provider;function R_(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var A_=F.createContext(R_()),N_=()=>F.useContext(A_),O_=(t,e,n)=>{const i=n!=null&&n.state.error&&typeof t.throwOnError=="function"?q0(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},j_=t=>{F.useEffect(()=>{t.clearReset()},[t])},L_=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||q0(n,[t.error,i])),D_=t=>{if(t.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>n(i(...a)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},M_=(t,e)=>t.isLoading&&t.isFetching&&!e,I_=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,qg=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function F_(t,e,n){var w,b,C,_;const i=P_(),a=N_(),l=C_(),u=l.defaultQueryOptions(t);(b=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||b.call(w,u);const d=l.getQueryCache().get(u.queryHash);u._optimisticResults=i?"isRestoring":"optimistic",D_(u),O_(u,a,d),j_(a);const h=!l.getQueryCache().get(u.queryHash),[p]=F.useState(()=>new e(l,u)),g=p.getOptimisticResult(u),y=!i&&t.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(E=>{const S=y?p.subscribe(yt.batchCalls(E)):Ft;return p.updateResult(),S},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),F.useEffect(()=>{p.setOptions(u)},[u,p]),I_(u,g))throw qg(u,p,a);if(L_({result:g,errorResetBoundary:a,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw g.error;if((_=(C=l.getDefaultOptions().queries)==null?void 0:C._experimental_afterQuery)==null||_.call(C,u,g),u.experimental_prefetchInRender&&!xs&&M_(g,i)){const E=h?qg(u,p,a):d==null?void 0:d.promise;E==null||E.catch(Ft).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?g:p.trackResult(g)}function V_(t,e){return F_(t,y_)}const U_=new k_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});g0();/**
106 * @remix-run/router v1.23.2
107 *
108 * Copyright (c) Remix Software Inc.
109 *
110 * This source code is licensed under the MIT license found in the
111 * LICENSE.md file in the root directory of this source tree.
112 *
113 * @license MIT
114 */function Il(){return Il=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Il.apply(this,arguments)}var jr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(jr||(jr={}));const Hg="popstate";function B_(t){t===void 0&&(t={});function e(i,a){let{pathname:l,search:u,hash:d}=i.location;return Kd("",{pathname:l,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 4,515 bytes, line 114
114function n(i,a){return typeof a=="string"?a:ew(a)}return $_(e,n,null,t)}function Ut(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Z0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function z_(){return Math.random().toString(36).substr(2,8)}function Kg(t,e){return{usr:t.state,key:t.key,idx:e}}function Kd(t,e,n,i){return n===void 0&&(n=null),Il({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Xl(e):e,{state:n,key:e&&e.key||i||z_()})}function ew(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Xl(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function $_(t,e,n,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,u=a.history,d=jr.Pop,h=null,p=g();p==null&&(p=0,u.replaceState(Il({},u.state,{idx:p}),""));function g(){return(u.state||{idx:null}).idx}function y(){d=jr.Pop;let E=g(),S=E==null?null:E-p;p=E,h&&h({action:d,location:_.location,delta:S})}function w(E,S){d=jr.Push;let A=Kd(_.location,E,S);p=g()+1;let P=Kg(A,p),O=_.createHref(A);try{u.pushState(P,"",O)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(O)}l&&h&&h({action:d,location:_.location,delta:1})}function b(E,S){d=jr.Replace;let A=Kd(_.location,E,S);p=g();let P=Kg(A,p),O=_.createHref(A);u.replaceState(P,"",O),l&&h&&h({action:d,location:_.location,delta:0})}function C(E){let S=a.location.origin!=="null"?a.location.origin:a.location.href,A=typeof E=="string"?E:ew(E);return A=A.replace(/ $/,"%20"),Ut(S,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,S)}let _={get action(){return d},get location(){return t(a,u)},listen(E){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Hg,y),h=E,()=>{a.removeEventListener(Hg,y),h=null}},createHref(E){return e(a,E)},createURL:C,encodeLocation(E){let S=C(E);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:w,replace:b,go(E){return u.go(E)}};return _}var Qg;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Qg||(Qg={}));function W_(t,e,n){return n===void 0&&(n="/"),q_(t,e,n)}function q_(t,e,n,i){let a=typeof e=="string"?Xl(e):e,l=rw(a.pathname||"/",n);if(l==null)return null;let u=tw(t);H_(u);let d=null;for(let h=0;d==null&&h<u.length;++h){let p=sk(l);d=tk(u[h],p)}return d}function tw(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let a=(l,u,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};h.relativePath.startsWith("/")&&(Ut(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let p=si([i,h.relativePath]),g=n.concat(h);l.children&&l.children.length>0&&(Ut(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),tw(l.children,e,g,p)),!(l.path==null&&!l.index)&&e.push({path:p,score:Z_(p,l.index),routesMeta:g})};return t.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,u);else for(let h of nw(l.path))a(l,u,h)}),e}function nw(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let u=nw(i.join("/")),d=[];return d.push(...u.map(h=>h===""?l:[l,h].join("/"))),a&&d.push(...u),d.map(h=>t.startsWith("/")&&h===""?"/":h)}function H_(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:ek(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const K_=/^:[\w-]+$/,Q_=3,G_=2,Y_=1,X_=10,J_=-2,Gg=t=>t==="*";function Z_(t,e){let n=t.split("/"),i=n.length;return n.some(Gg)&&(i+=J_),e&&(i+=G_),n.filter(a=>!Gg(a)).reduce((a,l)=>a+(K_.test(l)?Q_:l===""?Y_:X_),i)}function ek(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function tk(t,e,n){let{routesMeta:i}=t,a={},l="/",u=[];for(let d=0;d<i.length;++d){let h=i[d],p=d===i.length-1,g=l==="/"?e:e.slice(l.length)||"/",y=nk({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),w=h.route;if(!y)return null;
vendor: 4,131 bytes, lines 114-123
114Object.assign(a,y.params),u.push({params:a,pathname:si([l,y.pathname]),pathnameBase:ik(si([l,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(l=si([l,y.pathnameBase]))}return u}function nk(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=rk(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let l=a[0],u=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((p,g,y)=>{let{paramName:w,isOptional:b}=g;if(w==="*"){let _=d[y]||"";u=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const C=d[y];return b&&!C?p[w]=void 0:p[w]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:t}}function rk(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Z0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function sk(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Z0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function rw(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}const si=t=>t.join("/").replace(/\/\/+/g,"/"),ik=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/");function ok(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const sw=["post","put","patch","delete"];new Set(sw);const ak=["get",...sw];new Set(ak);/**
115 * React Router v6.30.3
116 *
117 * Copyright (c) Remix Software Inc.
118 *
119 * This source code is licensed under the MIT license found in the
120 * LICENSE.md file in the root directory of this source tree.
121 *
122 * @license MIT
123 */function Fl(){return Fl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Fl.apply(this,arguments)}const lk=F.createContext(null),uk=F.createContext(null),iw=F.createContext(null),Jl=F.createContext(null),Zl=F.createContext({outlet:null,matches:[],isDataRoute:!1}),ow=F.createContext(null);function Nf(){return F.useContext(Jl)!=null}function aw(){return Nf()||Ut(!1),F.useContext(Jl).location}function ck(t,e){return dk(t,e)}function dk(t,e,n,i){Nf()||Ut(!1);let{navigator:a}=F.useContext(iw),{matches:l}=F.useContext(Zl),u=l[l.length-1],d=u?u.params:{};u&&u.pathname;let h=u?u.pathnameBase:"/";u&&u.route;let p=aw(),g;if(e){var y;let E=typeof e=="string"?Xl(e):e;h==="/"||(y=E.pathname)!=null&&y.startsWith(h)||Ut(!1),g=E}else g=p;let w=g.pathname||"/",b=w;if(h!=="/"){let E=h.replace(/^\//,"").split("/");b="/"+w.replace(/^\//,"").split("/").slice(E.length).join("/")}let C=W_(t,{pathname:b}),_=gk(C&&C.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:si([h,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:si([h,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),l,n,i);return e&&_?F.createElement(Jl.Provider,{value:{location:Fl({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:jr.Pop}},_):_}function fk(){let t=xk(),e=ok(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application 
123Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},e),n?F.createElement("pre",{style:a},n):null,null)}const hk=F.createElement(fk,null);class pk extends F.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?F.createElement(Zl.Provider,{value:this.props.routeContext},F.createElement(ow.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mk(t){let{routeContext:e,match:n,children:i}=t,a=F.useContext(lk);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),F.createElement(Zl.Provider,{value:e},i)}function gk(t,e,n,i){var a;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var l;if(!n)return null;if(n.errors)t=n.matches;else if((l=i)!=null&&l.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,d=(a=n)==null?void 0:a.errors;if(d!=null){let g=u.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);g>=0||Ut(!1),u=u.slice(0,Math.min(u.length,g+1))}let h=!1,p=-1;if(n&&i&&i.v7_partialHydration)for(let g=0;g<u.length;g++){let y=u[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=g),y.route.id){let{loaderData:w,errors:b}=n,C=y.route.loader&&w[y.route.id]===void 0&&(!b||b[y.route.id]===void 0);if(y.route.lazy||C){h=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let b,C=!1,_=null,E=null;n&&(b=d&&y.route.id?d[y.route.id]:void 0,_=y.route.errorElement||hk,h&&(p<0&&w===0?(bk("route-fallback"),C=!0,E=null):p===w&&(C=!0,E=y.route.hydrateFallbackElement||null)));let S=e.concat(u.slice(0,w+1)),A=()=>{let P;return b?P=_:C?P=E:y.route.Component?P=F.createElement(y.route.Component,null):y.route.element?P=y.route.element:P=g,F.createElement(mk,{match:y,routeContext:{outlet:g,matches:S,isDataRoute:n!=null},children:P})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?F.createElement(pk,{location:n.location,revalidation:n.revalidation,component:_,error:b,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):A()},null)}var lw=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(lw||{});function yk(t){let e=F.useContext(uk);return e||Ut(!1),e}function vk(t){let e=F.useContext(Zl);return e||Ut(!1),e}function wk(t){let e=vk(),n=e.matches[e.matches.length-1];return n.route.id||Ut(!1),n.route.id}function xk(){var t;let e=F.useContext(ow),n=yk(lw.UseRouteError),i=wk();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}const Yg={};function bk(t,e,n){Yg[t]||(Yg[t]=!0)}function Sk(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function wo(t){Ut(!1)}function Ek(t){let{basename:e="/",children:n=null,location:i,navigationType:a=jr.Pop,navigator:l,static:u=!1,future:d}=t;Nf()&&Ut(!1);let h=e.replace(/^\/*/,"/"),p=F.useMemo(()=>({basename:h,navigator:l,static:u,future:Fl({v7_relativeSplatPath:!1},d)}),[h,d,l,u]);typeof i=="string"&&(i=Xl(i));let{pathname:g="/",search:y="",hash:w="",state:b=null,key:C="default"}=i,_=F.useMemo(()=>{let E=rw(g,h);return E==null?null:{location:{pathname:E,search:y,hash:w,state:b,key:C},navigationType:a}},[h,g,y,w,b,C,a]);return _==null?null:F.createElement(iw.Provider,{value:p},F.createElement(Jl.Provider,{children:n,value:_}))}function _k(t){let{children:e,location:n}=t;return ck(Qd(e),n)}new Promise(()=>{});function Qd(t,e){e===void 0&&(e=[]);let n=[];
123return F.Children.forEach(t,(i,a)=>{if(!F.isValidElement(i))return;let l=[...e,a];if(i.type===F.Fragment){n.push.apply(n,Qd(i.props.children,l));return}i.type!==wo&&Ut(!1),!i.props.index||!i.props.children||Ut(!1);let u={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=Qd(i.props.children,l)),n.push(u)}),n}/**
124 * React Router DOM v6.30.3
125 *
126 * Copyright (c) Remix Software Inc.
127 *
128 * This source code is licensed under the MIT license found in the
129 * LICENSE.md file in the root directory of this source tree.
130 *
131 * @license MIT
132 */const kk="6";try{window.__reactRouterVersion=kk}catch{}const Ck="startTransition",Xg=jS[Ck];function Tk(t){let{basename:e,children:n,future:i,window:a}=t,l=F.useRef();l.current==null&&(l.current=B_({window:a,v5Compat:!0}));let u=l.current,[d,h]=F.useState({action:u.action,location:u.location}),{v7_startTransition:p}=i||{},g=F.useCallback(y=>{p&&Xg?Xg(()=>h(y)):h(y)},[h,p]);return F.useLayoutEffect(()=>u.listen(g),[u,g]),F.useEffect(()=>Sk(i),[i]),F.createElement(Ek,{basename:e,children:n,location:d.location,navigationType:d.action,navigator:u,future:i})}var Jg;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Jg||(Jg={}));var Zg;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Zg||(Zg={}));function uw(t,e){return function(){return t.apply(e,arguments)}}const{toString:Pk}=Object.prototype,{getPrototypeOf:yi}=Object,{iterator:Ko,toStringTag:cw}=Symbol,Vl=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Lo=(t,e)=>{let n=t;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),Vl(n,e))return!0;n=yi(n)}return!1},Rk=(t,e)=>t!=null&&Lo(t,e)?t[e]:void 0,Of=(t=>e=>{const n=Pk.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Sn=t=>(t=t.toLowerCase(),e=>Of(e)===t),eu=t=>e=>typeof e===t,{isArray:bs}=Array,vi=eu("undefined");function Si(t){return t!==null&&!vi(t)&&t.constructor!==null&&!vi(t.constructor)&&Vt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const dw=Sn("ArrayBuffer");function Ak(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&dw(t.buffer),e}const Nk=eu("string"),Vt=eu("function"),fw=eu("number"),Ei=t=>t!==null&&typeof t=="object",Ok=t=>t===!0||t===!1,kl=t=>{if(!Ei(t))return!1;const e=yi(t);return(e===null||e===Object.prototype||yi(e)===null)&&!Lo(t,cw)&&!Lo(t,Ko)},jk=t=>{if(!Ei(t)||Si(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Lk=Sn("Date"),Dk=Sn("File"),Mk=t=>!!(t&&typeof t.uri<"u"),Ik=t=>t&&typeof t.getParts<"u",Fk=Sn("Blob"),Vk=Sn("FileList"),Uk=t=>Ei(t)&&Vt(t.pipe);function Bk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ey=Bk(),ty=typeof ey.FormData<"u"?ey.FormData:void 0,zk=t=>{if(!t)return!1;if(ty&&t instanceof ty)return!0;const e=yi(t);if(!e||e===Object.prototype||!Vt(t.append))return!1;const n=Of(t);return n==="formdata"||n==="object"&&Vt(t.toString)&&t.toString()==="[object FormData]"},$k=Sn("URLSearchParams"),[Wk,qk,Hk,Kk]=["ReadableStream","Request","Response","Headers"].map(Sn),Qk=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),bs(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(Si(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),u=l.length;let d;for(i=0;i<u;i++)d=l[i],e.call(null,t[d],d,t)}}function hw(t,e){if(Si(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i=n.length,a;for(;i-- >0;)if(a=n[i],e===a.toLowerCase())return a;return null}const as=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pw=t=>!vi(t)&&t!==as;function Gd(...t){const{caseless:e,skipUndefined:n}=pw(this)&&this||{},i={},a=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=e&&typeof u=="string"&&hw(i,u)||u,h=Vl(i,d)?i[d]:void 0;kl(h)&&kl(l)?i[d]=Gd(h,l):kl(l)?i[d]=Gd({},l):bs(l)?i[d]=l.slice():(!n||!vi(l))&&(i[d]=l)};for(let l=0,u=t.length;l<u;l++){const d=t[l];if(!d||Si(d)||(Qo(d,a),typeof d!="object"||bs(d)))continue;const h=Object.getOwnPropertySymbols(d);for(let p=0;p<h.length;p++){const g=h[p];
vendor: 8,884 bytes, lines 132-134
132oC.call(d,g)&&a(d[g],g)}}return i}const Gk=(t,e,n,{allOwnKeys:i}={})=>(Qo(e,(a,l)=>{n&&Vt(a)?Object.defineProperty(t,l,{__proto__:null,value:uw(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),Yk=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Xk=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},Jk=(t,e,n,i)=>{let a,l,u;const d={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;)u=a[l],(!i||i(u,t,e))&&!d[u]&&(e[u]=t[u],d[u]=!0);t=n!==!1&&yi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Zk=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},eC=t=>{if(!t)return null;if(bs(t))return t;let e=t.length;if(!fw(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},tC=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&yi(Uint8Array)),nC=(t,e)=>{const i=(t&&t[Ko]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},rC=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},sC=Sn("HTMLFormElement"),iC=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:oC}=Object.prototype,aC=Sn("RegExp"),mw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Qo(n,(a,l)=>{let u;(u=e(a,l,t))!==!1&&(i[l]=u||a)}),Object.defineProperties(t,i)},lC=t=>{mw(t,(e,n)=>{if(Vt(t)&&["arguments","caller","callee"].includes(n))return!1;const i=t[n];if(Vt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uC=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return bs(t)?i(t):i(String(t).split(e)),n},cC=()=>{},dC=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function fC(t){return!!(t&&Vt(t.append)&&t[cw]==="FormData"&&t[Ko])}const hC=t=>{const e=new WeakSet,n=i=>{if(Ei(i)){if(e.has(i))return;if(Si(i))return i;if(!("toJSON"in i)){e.add(i);const a=bs(i)?[]:{};return Qo(i,(l,u)=>{const d=n(l);!vi(d)&&(a[u]=d)}),e.delete(i),a}}return i};return n(t)},pC=Sn("AsyncFunction"),mC=t=>t&&(Ei(t)||Vt(t))&&Vt(t.then)&&Vt(t.catch),gw=((t,e)=>t?setImmediate:e?((n,i)=>(as.addEventListener("message",({source:a,data:l})=>{a===as&&l===n&&i.length&&i.shift()()},!1),a=>{i.push(a),as.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vt(as.postMessage)),gC=typeof queueMicrotask<"u"?queueMicrotask.bind(as):typeof process<"u"&&process.nextTick||gw,yw=t=>t!=null&&Vt(t[Ko]),yC=t=>t!=null&&Lo(t,Ko)&&yw(t),L={isArray:bs,isArrayBuffer:dw,isBuffer:Si,isFormData:zk,isArrayBufferView:Ak,isString:Nk,isNumber:fw,isBoolean:Ok,isObject:Ei,isPlainObject:kl,isEmptyObject:jk,isReadableStream:Wk,isRequest:qk,isResponse:Hk,isHeaders:Kk,isUndefined:vi,isDate:Lk,isFile:Dk,isReactNativeBlob:Mk,isReactNative:Ik,isBlob:Fk,isRegExp:aC,isFunction:Vt,isStream:Uk,isURLSearchParams:$k,isTypedArray:tC,isFileList:Vk,forEach:Qo,merge:Gd,extend:Gk,trim:Qk,stripBOM:Yk,inherits:Xk,toFlatObject:Jk,kindOf:Of,kindOfTest:Sn,endsWith:Zk,toArray:eC,forEachEntry:nC,matchAll:rC,isHTMLForm:sC,hasOwnProperty:Vl,hasOwnProp:Vl,hasOwnInPrototypeChain:Lo,getSafeProp:Rk,reduceDescriptors:mw,freezeMethods:lC,toObjectSet:uC,toCamelCase:iC,noop:cC,toFiniteNumber:dC,findKey:hw,global:as,isContextDefined:pw,isSpecCompliantForm:fC,toJSONObject:hC,isAsyncFn:pC,isThenable:mC,setImmediate:gw,asap:gC,isIterable:yw,isSafeIterable:yC},vC=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wC=t=>{const e={};let n,i,a;return t&&t.split(`
133`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim(),!(!n||e[n]&&vC[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e};function xC(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const bC=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),SC=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function jf(t,e){return L.isArray(t)?t.map(n=>jf(n,e)):xC(String(t).replace(e,""))}const EC=t=>jf(t,bC),_C=t=>jf(t,SC);function vw(t){const e=Object.create(null);return L.forEach(t.toJSON(),(n,i)=>{e[i]=_C(n)}),e}const ny=Symbol("internals");function po(t){return t&&String(t).trim().toLowerCase()}function Cl(t){return t===!1||t==null?t:L.isArray(t)?t.map(Cl):EC(String(t))}function kC(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const CC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ud(t,e,n,i,a){if(L.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!L.isString(e)){if(L.isString(i))return e.indexOf(i)!==-1;if(L.isRegExp(i))return i.test(e)}}function TC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function PC(t,e){const n=L.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{__proto__:null,value:function(a,l,u){return this[i].call(this,e,a,l,u)},configurable:!0})})}let Tt=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(d,h,p){const g=po(h);if(!g)return;const y=L.findKey(a,g);(!y||a[y]===void 0||p===!0||p===void 0&&a[y]!==!1)&&(a[y||h]=Cl(d))}const u=(d,h)=>L.forEach(d,(p,g)=>l(p,g,h));if(L.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(L.isString(e)&&(e=e.trim())&&!CC(e))u(wC(e),n);else if(L.isObject(e)&&L.isSafeIterable(e)){let d=Object.create(null),h,p;for(const g of e){if(!L.isArray(g))throw new TypeError("Object iterator must return a key-value pair");p=g[0],L.hasOwnProp(d,p)?(h=d[p],d[p]=L.isArray(h)?[...h,g[1]]:[h,g[1]]):d[p]=g[1]}u(d,n)}else e!=null&&l(n,e,i);return this}get(e,n){if(e=po(e),e){const i=L.findKey(this,e);if(i){const a=this[i];if(!n)return a;if(n===!0)return kC(a);if(L.isFunction(n))return n.call(this,a,i);if(L.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=po(e),e){const i=L.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||ud(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(u){if(u=po(u),u){const d=L.findKey(i,u);d&&(!n||ud(i,i[d],d,n))&&(delete i[d],a=!0)}}return L.isArray(e)?e.forEach(l):l(e),a}clear(e){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const l=n[i];(!e||ud(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return L.forEach(this,(a,l)=>{const u=L.findKey(i,l);if(u){n[u]=Cl(a),delete n[l];return}const d=e?TC(l):String(l).trim();d!==l&&delete n[l],n[d]=Cl(a),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return L.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&L.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
134`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[ny]=this[ny]={accessors:{}}).accessors,a=this.prototype;function l(u){const d=po(u);i[d]||(PC(a,u),i[d]=!0)}return L.isArray(e)?e.forEach(l):l(e),this}};Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Tt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});L.freezeMethods(Tt);const RC="[REDACTED ****]";function AC(t){if(L.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(L.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function NC(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),i=[],a=l=>{if(l===null||typeof l!="object"||L.isBuffer(l))return l;if(i.indexOf(l)!==-1)return;l instanceof Tt&&(l=l.toJSON()),i.push(l);let u;if(L.isArray(l))u=[],l.forEach((d,h)=>{const p=a(d);L.isUndefined(p)||(u[h]=p)});else{if(!L.isPlainObject(l)&&AC(l))return i.pop(),l;u=Object.create(null);for(const[d,h]of Object.entries(l)){const p=n.has(d.toLowerCase())?RC:a(h);L.isUndefined(p)||(u[d]=p)}}return i.pop(),u};return a(t)}
vendor: 3,646 bytes, line 134
134let X=class ww extends Error{static from(e,n,i,a,l,u){const d=new ww(e.message,n||e.code,i,a,l);return Object.defineProperty(d,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),u&&Object.assign(d,u),d}constructor(e,n,i,a,l){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){const e=this.config,n=e&&L.hasOwnProp(e,"redact")?e.redact:void 0,i=L.isArray(n)&&n.length>0?NC(e,n):L.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";X.ERR_BAD_OPTION="ERR_BAD_OPTION";X.ECONNABORTED="ECONNABORTED";X.ETIMEDOUT="ETIMEDOUT";X.ECONNREFUSED="ECONNREFUSED";X.ERR_NETWORK="ERR_NETWORK";X.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";X.ERR_DEPRECATED="ERR_DEPRECATED";X.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";X.ERR_BAD_REQUEST="ERR_BAD_REQUEST";X.ERR_CANCELED="ERR_CANCELED";X.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";X.ERR_INVALID_URL="ERR_INVALID_URL";X.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const OC=null,xw=100;function Yd(t){return L.isPlainObject(t)||L.isArray(t)}function bw(t){return L.endsWith(t,"[]")?t.slice(0,-2):t}function cd(t,e,n){return t?t.concat(e).map(function(a,l){return a=bw(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function jC(t){return L.isArray(t)&&!t.some(Yd)}const LC=L.toFlatObject(L,{},null,function(e){return/^is[A-Z]/.test(e)});function tu(t,e,n){if(!L.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,P){return!L.isUndefined(P[A])});const i=n.metaTokens,a=n.visitor||C,l=n.dots,u=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,h=n.maxDepth===void 0?xw:n.maxDepth,p=d&&L.isSpecCompliantForm(e),g=[];if(!L.isFunction(a))throw new TypeError("visitor must be a function");function y(S){if(S===null)return"";if(L.isDate(S))return S.toISOString();if(L.isBoolean(S))return S.toString();if(!p&&L.isBlob(S))throw new X("Blob is not supported. Use a Buffer instead.");if(L.isArrayBuffer(S)||L.isTypedArray(S)){if(p&&typeof d=="function")return new d([S]);if(typeof Buffer<"u")return Buffer.from(S);throw new X("Blob is not supported. Use a Buffer instead.",X.ERR_NOT_SUPPORT)}return S}function w(S){if(S>h)throw new X("Object is too deeply nested ("+S+" levels). Max depth: "+h,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(S,A){if(h===1/0)return JSON.stringify(S);const P=[];return JSON.stringify(S,function(M,z){if(!L.isObject(z))return z;for(;P.length&&P[P.length-1]!==this;)P.pop();return P.push(z),w(A+P.length-1),z})}function C(S,A,P){let O=S;if(L.isReactNative(e)&&L.isReactNativeBlob(S))return e.append(cd(P,A,l),y(S)),!1;if(S&&!P&&typeof S=="object"){if(L.endsWith(A,"{}"))A=i?A:A.slice(0,-2),S=b(S,1);else if(L.isArray(S)&&jC(S)||(L.isFileList(S)||L.endsWith(A,"[]"))&&(O=L.toArray(S)))return A=bw(A),O.forEach(function(z,Y){!(L.isUndefined(z)||z===null)&&e.append(u===!0?cd([A],Y,l):u===null?A:A+"[]",y(z))}),!1}return Yd(S)?!0:(e.append(cd(P,A,l),y(S)),!1)}const _=Object.assign(LC,{defaultVisitor:C,convertValue:y,isVisitable:Yd});function E(S,A,P=0){if(!L.isUndefined(S)){if(w(P),g.indexOf(S)!==-1)throw new Error("Circular reference detected in "+A.join("."));
vendor: 4,181 bytes, line 134
134g.push(S),L.forEach(S,function(M,z){(!(L.isUndefined(M)||M===null)&&a.call(e,M,L.isString(z)?z.trim():z,A,_))===!0&&E(M,A?A.concat(z):[z],P+1)}),g.pop()}}if(!L.isObject(t))throw new TypeError("data must be an object");return E(t),e}function ry(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function Lf(t,e){this._pairs=[],t&&tu(t,this,e)}const Sw=Lf.prototype;Sw.append=function(e,n){this._pairs.push([e,n])};Sw.toString=function(e){const n=e?i=>e.call(this,i,ry):ry;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function DC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ew(t,e,n){if(!e)return t;t=t||"";const i=L.isFunction(n)?{serialize:n}:n,a=L.getSafeProp(i,"encode")||DC,l=L.getSafeProp(i,"serialize");let u;if(l?u=l(e,i):u=L.isURLSearchParams(e)?e.toString():new Lf(e,i).toString(a),u){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class sy{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Df={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},MC=typeof URLSearchParams<"u"?URLSearchParams:Lf,IC=typeof FormData<"u"?FormData:null,FC=typeof Blob<"u"?Blob:null,VC={isBrowser:!0,classes:{URLSearchParams:MC,FormData:IC,Blob:FC},protocols:["http","https","file","blob","url","data"]},Mf=typeof window<"u"&&typeof document<"u",Xd=typeof navigator=="object"&&navigator||void 0,UC=Mf&&(!Xd||["ReactNative","NativeScript","NS"].indexOf(Xd.product)<0),BC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zC=Mf&&window.location.href||"http://localhost",$C=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mf,hasStandardBrowserEnv:UC,hasStandardBrowserWebWorkerEnv:BC,navigator:Xd,origin:zC},Symbol.toStringTag,{value:"Module"})),vt={...$C,...VC};function WC(t,e){return tu(t,new vt.classes.URLSearchParams,{visitor:function(n,i,a,l){return vt.isNode&&L.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const iy=xw;function _w(t){if(t>iy)throw new X("FormData field is too deeply nested ("+t+" levels). Max depth: "+iy,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function qC(t){const e=[],n=/\w+|\[(\w*)]/g;let i;for(;(i=n.exec(t))!==null;)_w(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function HC(t){const e={},n=Object.keys(t);let i;const a=n.length;let l;for(i=0;i<a;i++)l=n[i],e[l]=t[l];return e}function kw(t){function e(n,i,a,l){_w(l);let u=n[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),h=l>=n.length;return u=!u&&L.isArray(a)?a.length:u,h?(L.hasOwnProp(a,u)?a[u]=L.isArray(a[u])?a[u].concat(i):[a[u],i]:a[u]=i,!d):((!L.hasOwnProp(a,u)||!L.isObject(a[u]))&&(a[u]=[]),e(n,i,a[u],l)&&L.isArray(a[u])&&(a[u]=HC(a[u])),!d)}if(L.isFormData(t)&&L.isFunction(t.entries)){const n={};return L.forEachEntry(t,(i,a)=>{e(qC(i),a,n,0)}),n}return null}const Gs=(t,e)=>t!=null&&L.hasOwnProp(t,e)?t[e]:void 0;function KC(t,e,n){if(L.isString(t))try{return(e||JSON.parse)(t),L.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const Go={transitional:Df,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=L.isObject(e);if(l&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return a?JSON.stringify(kw(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e)||L.isReadableStream(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;
vendor: 10,637 bytes, line 134
134if(l){const h=Gs(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return WC(e,h).toString();if((d=L.isFileList(e))||i.indexOf("multipart/form-data")>-1){const p=Gs(this,"env"),g=p&&p.FormData;return tu(d?{"files[]":e}:e,g&&new g,h)}}return l||a?(n.setContentType("application/json",!1),KC(e)):e}],transformResponse:[function(e){const n=Gs(this,"transitional")||Go.transitional,i=n&&n.forcedJSONParsing,a=Gs(this,"responseType"),l=a==="json";if(L.isResponse(e)||L.isReadableStream(e))return e;if(e&&L.isString(e)&&(i&&!a||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,Gs(this,"parseReviver"))}catch(h){if(d)throw h.name==="SyntaxError"?X.from(h,X.ERR_BAD_RESPONSE,this,null,Gs(this,"response")):h}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch","query"],t=>{Go.headers[t]={}});function dd(t,e){const n=this||Go,i=e||n,a=Tt.from(i.headers);let l=i.data;return L.forEach(t,function(d){l=d.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function Cw(t){return!!(t&&t.__CANCEL__)}let Yo=class extends X{constructor(e,n,i){super(e??"canceled",X.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function Tw(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new X("Request failed with status code "+n.status,n.status>=400&&n.status<500?X.ERR_BAD_REQUEST:X.ERR_BAD_RESPONSE,n.config,n.request,n))}function QC(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function GC(t,e){t=t||10;const n=new Array(t),i=new Array(t);let a=0,l=0,u;return e=e!==void 0?e:1e3,function(h){const p=Date.now(),g=i[l];u||(u=p),n[a]=h,i[a]=p;let y=l,w=0;for(;y!==a;)w+=n[y++],y=y%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),p-u<e)return;const b=g&&p-g;return b?Math.round(w*1e3/b):void 0}}function YC(t,e){let n=0,i=1e3/e,a,l;const u=(p,g=Date.now())=>{n=g,a=null,l&&(clearTimeout(l),l=null),t(...p)};return[(...p)=>{const g=Date.now(),y=g-n;y>=i?u(p,g):(a=p,l||(l=setTimeout(()=>{l=null,u(a)},i-y)))},()=>a&&u(a)]}const Ul=(t,e,n=3)=>{let i=0;const a=GC(50,250);return YC(l=>{if(!l||typeof l.loaded!="number")return;const u=l.loaded,d=l.lengthComputable?l.total:void 0,h=d!=null?Math.min(u,d):u,p=Math.max(0,h-i),g=a(p);i=Math.max(i,h);const y={loaded:h,total:d,progress:d?h/d:void 0,bytes:p,rate:g||void 0,estimated:g&&d?(d-h)/g:void 0,event:l,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(y)},n)},oy=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},ay=t=>(...e)=>L.asap(()=>t(...e)),XC=vt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,vt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,JC=vt.hasStandardBrowserEnv?{write(t,e,n,i,a,l,u){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];L.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),L.isString(i)&&d.push(`path=${i}`),L.isString(a)&&d.push(`domain=${a}`),l===!0&&d.push("secure"),L.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const i=e[n].replace(/^\s+/,""),a=i.indexOf("=");if(a!==-1&&i.slice(0,a)===t)try{return decodeURIComponent(i.slice(a+1))}catch{return i.slice(a+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ZC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function eT(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const tT=/^https?:(?!\/\/)/i,nT=/[\t\n\r]/g;function rT(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function sT(t){return rT(t).replace(nT,"")}function ly(t,e){if(typeof t=="string"&&tT.test(sT(t)))throw new X('Invalid URL: missing "//" after protocol',X.ERR_INVALID_URL,e)}function Pw(t,e,n,i){ly(e,i);let a=!ZC(e);return t&&(a||n===!1)?(ly(t,i),eT(t,e)):e}const uy=t=>t instanceof Tt?{...t}:t;function Ss(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(g,y,w,b){return L.isPlainObject(g)&&L.isPlainObject(y)?L.merge.call({caseless:b},g,y):L.isPlainObject(y)?L.merge({},y):L.isArray(y)?y.slice():y}function a(g,y,w,b){if(L.isUndefined(y)){if(!L.isUndefined(g))return i(void 0,g,w,b)}else return i(g,y,w,b)}function l(g,y){if(!L.isUndefined(y))return i(void 0,y)}function u(g,y){if(L.isUndefined(y)){if(!L.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function d(g){const y=L.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!L.isUndefined(y))if(L.isPlainObject(y)){if(L.hasOwnProp(y,g))return y[g]}else return;const w=L.hasOwnProp(t,"transitional")?t.transitional:void 0;if(L.isPlainObject(w)&&L.hasOwnProp(w,g))return w[g]}function h(g,y,w){if(L.hasOwnProp(e,w))return i(g,y);if(L.hasOwnProp(t,w))return i(void 0,g)}const p={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:h,headers:(g,y,w)=>a(uy(g),uy(y),w,!0)};return L.forEach(Object.keys({...t,...e}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=L.hasOwnProp(p,y)?p[y]:a,b=L.hasOwnProp(t,y)?t[y]:void 0,C=L.hasOwnProp(e,y)?e[y]:void 0,_=w(b,C,y);L.isUndefined(_)&&w!==h||(n[y]=_)}),L.hasOwnProp(e,"validateStatus")&&L.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(L.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.validateStatus),n}const iT=["content-type","content-length"];function oT(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,a])=>{iT.includes(i.toLowerCase())&&t.set(i,a)})}const aT=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function Rw(t){const e=Ss({},t),n=w=>L.hasOwnProp(e,w)?e[w]:void 0,i=n("data");let a=n("withXSRFToken");const l=n("xsrfHeaderName"),u=n("xsrfCookieName");let d=n("headers");const h=n("auth"),p=n("baseURL"),g=n("allowAbsoluteUrls"),y=n("url");if(e.headers=d=Tt.from(d),e.url=Ew(Pw(p,y,g,e),n("params"),n("paramsSerializer")),h){const w=L.getSafeProp(h,"username")||"",b=L.getSafeProp(h,"password")||"";try{d.set("Authorization","Basic "+btoa(w+":"+(b?aT(b):"")))}catch(C){throw X.from(C,X.ERR_BAD_OPTION_VALUE,t)}}if(L.isFormData(i)&&(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv||L.isReactNative(i)?d.setContentType(void 0):L.isFunction(i.getHeaders)&&oT(d,i.getHeaders(),n("formDataHeaderPolicy"))),vt.hasStandardBrowserEnv&&(L.isFunction(a)&&(a=a(e)),a===!0||a==null&&XC(e.url))){const b=l&&u&&JC.read(u);b&&d.set(l,b)}return e}const lT=typeof XMLHttpRequest<"u",uT=lT&&function(t){return new Promise(function(n,i){const a=Rw(t);let l=a.data;const u=Tt.from(a.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:p}=a,g,y,w,b,C;function _(){b&&b(),C&&C(),a.cancelToken&&a.cancelToken.unsubscribe(g),a.signal&&a.signal.removeEventListener("abort",g)}let E=new XMLHttpRequest;E.open(a.method.toUpperCase(),a.url,!0),E.timeout=a.timeout;function S(){if(!E)return;const P=Tt.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),M={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:P,config:t,request:E};Tw(function(Y){n(Y),_()},function(Y){i(Y),_()},M),E=null}"onloadend"in E?E.onloadend=S:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.startsWith("file:"))||setTimeout(S)},E.onabort=function(){E&&(i(new X("Request aborted",X.ECONNABORTED,t,E)),_(),E=null)},E.onerror=function(O){const M=O&&O.message?O.message:"Network Error",z=new X(M,X.ERR_NETWORK,t,E);z.event=O||null,i(z),_(),E=null},E.ontimeout=function(){let O=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const M=a.transitional||Df;a.timeoutErrorMessage&&(O=a.timeoutErrorMessage),i(new X(O,M.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,E)),_(),E=null},l===void 0&&u.setContentType(null),"setRequestHeader"in E&&L.forEach(vw(u),function(O,M){E.setRequestHeader(M,O)}),L.isUndefined(a.withCredentials)||(E.withCredentials=!!a.withCredentials),d&&d!=="json"&&(E.responseType=a.responseType),p&&([w,C]=Ul(p,!0),E.addEventListener("progress",w)),h&&E.upload&&([y,b]=Ul(h),E.upload.addEventListener("progress",y),E.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(g=P=>{E&&(i(!P||P.type?new Yo(null,t,E):P),E.abort(),_(),E=null)},a.cancelToken&&a.cancelToken.subscribe(g),a.signal&&(a.signal.aborted?g():a.signal.addEventListener("abort",g)));const A=QC(a.url);if(A&&!vt.protocols.includes(A)){i(new X("Unsupported protocol "+A+":",X.ERR_BAD_REQUEST,t)),_();return}E.send(l||null)})},cT=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let i=!1;const a=function(h){if(!i){i=!0,u();const p=h instanceof Error?h:this.reason;n.abort(p instanceof X?p:new Yo(p instanceof Error?p.message:p))}};let l=e&&setTimeout(()=>{l=null,a(new X(`timeout of ${e}ms exceeded`,X.ETIMEDOUT))},e);const u=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),t=null)};t.forEach(h=>h.addEventListener("abort",a,{once:!0}));const{signal:d}=n;return d.unsubscribe=()=>L.asap(u),d},dT=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,a;for(;i<n;)a=i+e,yield t.slice(i,a),i=a},fT=async function*(t,e){for await(const n of hT(t))yield*dT(n,e)},hT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},cy=(t,e,n,i)=>{const a=fT(t,e);let l=0,u,d=h=>{u||(u=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:p,value:g}=await a.next();if(p){d(),h.close();return}let y=g.byteLength;if(n){let w=l+=y;
vendor: 5,404 bytes, line 134
134n(w)}h.enqueue(new Uint8Array(g))}catch(p){throw d(p),p}},cancel(h){return d(h),a.return()}},{highWaterMark:2})},Bl=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,pT=(t,e,n)=>e+2<n&&Bl(t.charCodeAt(e+1))&&Bl(t.charCodeAt(e+2));function mT(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),i=t.slice(e+1);if(/;base64/i.test(n)){let u=i.length;const d=i.length;for(let b=0;b<d;b++)if(i.charCodeAt(b)===37&&b+2<d){const C=i.charCodeAt(b+1),_=i.charCodeAt(b+2);Bl(C)&&Bl(_)&&(u-=2,b+=2)}let h=0,p=d-1;const g=b=>b>=2&&i.charCodeAt(b-2)===37&&i.charCodeAt(b-1)===51&&(i.charCodeAt(b)===68||i.charCodeAt(b)===100);p>=0&&(i.charCodeAt(p)===61?(h++,p--):g(p)&&(h++,p-=3)),h===1&&p>=0&&(i.charCodeAt(p)===61||g(p))&&h++;const w=Math.floor(u/4)*3-(h||0);return w>0?w:0}let l=0;for(let u=0,d=i.length;u<d;u++){const h=i.charCodeAt(u);if(h===37&&pT(i,u,d))l+=1,u+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&u+1<d){const p=i.charCodeAt(u+1);p>=56320&&p<=57343?(l+=4,u++):l+=3}else l+=3}return l}const If="1.18.1",dy=64*1024,{isFunction:pl}=L,gT=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),fy=t=>{if(!L.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},hy=(t,...e)=>{try{return!!t(...e)}catch{return!1}},yT=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},vT=t=>{const e=L.global!==void 0&&L.global!==null?L.global:globalThis,{ReadableStream:n,TextEncoder:i}=e;t=L.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:a,Request:l,Response:u}=t,d=a?pl(a):typeof fetch=="function",h=pl(l),p=pl(u);if(!d)return!1;const g=d&&pl(n),y=d&&(typeof i=="function"?(S=>A=>S.encode(A))(new i):async S=>new Uint8Array(await new l(S).arrayBuffer())),w=h&&g&&hy(()=>{let S=!1;const A=new l(vt.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),P=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),S&&!P}),b=p&&g&&hy(()=>L.isReadableStream(new u("").body)),C={stream:b&&(S=>S.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!C[S]&&(C[S]=(A,P)=>{let O=A&&A[S];if(O)return O.call(A);throw new X(`Response type '${S}' is not supported`,X.ERR_NOT_SUPPORT,P)})});const _=async S=>{if(S==null)return 0;if(L.isBlob(S))return S.size;if(L.isSpecCompliantForm(S))return(await new l(vt.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(L.isArrayBufferView(S)||L.isArrayBuffer(S))return S.byteLength;if(L.isURLSearchParams(S)&&(S=S+""),L.isString(S))return(await y(S)).byteLength},E=async(S,A)=>{const P=L.toFiniteNumber(S.getContentLength());return P??_(A)};return async S=>{let{url:A,method:P,data:O,signal:M,cancelToken:z,timeout:Y,onDownloadProgress:V,onUploadProgress:Z,responseType:ue,headers:Ee,withCredentials:Ne="same-origin",fetchOptions:Le,maxContentLength:Te,maxBodyLength:Ie}=Rw(S);const fe=L.isNumber(Te)&&Te>-1,le=L.isNumber(Ie)&&Ie>-1,K=G=>L.hasOwnProp(S,G)?S[G]:void 0;let se=a||fetch;ue=ue?(ue+"").toLowerCase():"text";let B=cT([M,z&&z.toAbortSignal()],Y),j=null;const $=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let ye,ve=null;const he=()=>new X("Request body larger than maxBodyLength limit",X.ERR_BAD_REQUEST,S,j);try{let G;const be=K("auth");if(be){const Se=L.getSafeProp(be,"username")||"",ft=L.getSafeProp(be,"password")||"";G={username:Se,password:ft}}if(yT(A)){const Se=new URL(A,vt.origin);if(!G&&(Se.username||Se.password)){const ft=fy(Se.username),un=fy(Se.password);G={username:ft,password:un}}(Se.username||Se.password)&&(Se.username="",Se.password="",A=Se.href)}if(G&&(Ee.delete("authorization"),Ee.set("Authorization","Basic "+btoa(gT((G.username||"")+":"+(G.password||""))))),fe&&typeof A=="string"&&A.startsWith("data:")&&mT(A)>Te)throw new X("maxContentLength size of "+Te+" exceeded",X.ERR_BAD_RESPONSE,S,j);if(le&&P!=="get"&&P!=="head"){const Se=await _(O);if(typeof Se=="number"&&isFinite(Se)&&(ye=Se,Se>Ie))throw he()}const Ce=le&&(L.isReadableStream(O)||L.isStream(O)),xe=(Se,ft,un)=>cy(Se,dy,cn=>{if(le&&cn>Ie)throw ve=he();ft&&ft(cn)},un);if(w&&P!=="get"&&P!=="head"&&(Z||Ce)){if(ye=ye??await E(Ee,O),ye!==0||Ce){let Se=new l(A,{method:"POST",body:O,duplex:"half"}),ft;if(L.isFormData(O)&&(ft=Se.headers.get("content-type"))&&Ee.setContentType(ft),Se.body){const[un,cn]=Z&&oy(ye,Ul(ay(Z)))||[];O=xe(Se.body,un,cn)}}}else if(Ce&&!h&&g&&P!=="get"&&P!=="head")O=xe(O);else if(Ce&&h&&!w&&P!=="get"&&P!=="head")throw new X("Stream request bodies are not supported by the current fetch implementation",X.ERR_NOT_SUPPORT,S,j);L.isString(Ne)||(Ne=Ne?"include":"omit");const ot=h&&"credentials"in l.prototype;if(L.isFormData(O)){const Se=Ee.getContentType();Se&&/^multipart\/form-data/i.test(Se)&&!/boundary=/i.test(Se)&&Ee.delete("content-type")}Ee.set("User-Agent","axios/"+If,!1);const Kt={...Le,signal:B,method:P.toUpperCase(),headers:vw(Ee.normalize()),body:O,duplex:"half",credentials:ot?Ne:void 0};j=h&&new l(A,Kt);let dt=await(h?se(j,Le):se(A,Kt));const ln=Tt.from(dt.headers);if(fe){const Se=L.toFiniteNumber(ln.getContentLength());if(Se!=null&&Se>Te)throw new X("maxContentLength size of "+Te+" exceeded",X.ERR_BAD_RESPONSE,S,j)}const Qt=b&&(ue==="stream"||ue==="response");if(b&&dt.body&&(V||fe||Qt&&$)){const Se={};["status","statusText","headers"].forEach(Dn=>{Se[Dn]=dt[Dn]});
vendor: 6,819 bytes, lines 134-140
134const ft=L.toFiniteNumber(ln.getContentLength()),[un,cn]=V&&oy(ft,Ul(ay(V),!0))||[];let er=0;const tr=Dn=>{if(fe&&(er=Dn,er>Te))throw new X("maxContentLength size of "+Te+" exceeded",X.ERR_BAD_RESPONSE,S,j);un&&un(Dn)};dt=new u(cy(dt.body,dy,tr,()=>{cn&&cn(),$&&$()}),Se)}ue=ue||"text";let Gt=await C[L.findKey(C,ue)||"text"](dt,S);if(fe&&!b&&!Qt){let Se;if(Gt!=null&&(typeof Gt.byteLength=="number"?Se=Gt.byteLength:typeof Gt.size=="number"?Se=Gt.size:typeof Gt=="string"&&(Se=typeof i=="function"?new i().encode(Gt).byteLength:Gt.length)),typeof Se=="number"&&Se>Te)throw new X("maxContentLength size of "+Te+" exceeded",X.ERR_BAD_RESPONSE,S,j)}return!Qt&&$&&$(),await new Promise((Se,ft)=>{Tw(Se,ft,{data:Gt,headers:Tt.from(dt.headers),status:dt.status,statusText:dt.statusText,config:S,request:j})})}catch(G){if($&&$(),B&&B.aborted&&B.reason instanceof X){const be=B.reason;throw be.config=S,j&&(be.request=j),G!==be&&Object.defineProperty(be,"cause",{__proto__:null,value:G,writable:!0,enumerable:!1,configurable:!0}),be}if(ve)throw j&&!ve.request&&(ve.request=j),ve;if(G instanceof X)throw j&&!G.request&&(G.request=j),G;if(G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)){const be=new X("Network Error",X.ERR_NETWORK,S,j,G&&G.response);throw Object.defineProperty(be,"cause",{__proto__:null,value:G.cause||G,writable:!0,enumerable:!1,configurable:!0}),be}throw X.from(G,G&&G.code,S,j,G&&G.response)}}},wT=new Map,Aw=t=>{let e=t&&t.env||{};const{fetch:n,Request:i,Response:a}=e,l=[i,a,n];let u=l.length,d=u,h,p,g=wT;for(;d--;)h=l[d],p=g.get(h),p===void 0&&g.set(h,p=d?new Map:vT(e)),g=p;return p};Aw();const Ff={http:OC,xhr:uT,fetch:{get:Aw}};L.forEach(Ff,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const py=t=>`- ${t}`,xT=t=>L.isFunction(t)||t===null||t===!1;function bT(t,e){t=L.isArray(t)?t:[t];const{length:n}=t;let i,a;const l={};for(let u=0;u<n;u++){i=t[u];let d;if(a=i,!xT(i)&&(a=Ff[(d=String(i)).toLowerCase()],a===void 0))throw new X(`Unknown adapter '${d}'`);if(a&&(L.isFunction(a)||(a=a.get(e))))break;l[d||"#"+u]=a}if(!a){const u=Object.entries(l).map(([h,p])=>`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let d=n?u.length>1?`since :
135`+u.map(py).join(`
136`):" "+py(u[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+d,X.ERR_NOT_SUPPORT)}return a}const Nw={getAdapter:bT,adapters:Ff};function fd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Yo(null,t)}function my(t){return fd(t),t.headers=Tt.from(t.headers),t.data=dd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Nw.getAdapter(t.adapter||Go.adapter,t)(t).then(function(i){fd(t),t.response=i;try{i.data=dd.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=Tt.from(i.headers),i},function(i){if(!Cw(i)&&(fd(t),i&&i.response)){t.response=i.response;try{i.response.data=dd.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=Tt.from(i.response.headers)}return Promise.reject(i)})}const nu={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{nu[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const gy={};nu.transitional=function(e,n,i){function a(l,u){return"[Axios v"+If+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,d)=>{if(e===!1)throw new X(a(u," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!gy[u]&&(gy[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,u,d):!0}};nu.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function ST(t,e,n){if(typeof t!="object"||t===null)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],u=Object.prototype.hasOwnProperty.call(e,l)?e[l]:void 0;if(u){const d=t[l],h=d===void 0||u(d,l,t);if(h!==!0)throw new X("option "+l+" must be "+h,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+l,X.ERR_BAD_OPTION)}}const Tl={assertOptions:ST,validators:nu},Et=Tl.validators;let vs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new sy,response:new sy}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=(()=>{if(!a.stack)return"";const u=a.stack.indexOf(`
137`);return u===-1?"":a.stack.slice(u+1)})();try{if(!i.stack)i.stack=l;else if(l){const u=l.indexOf(`
138`),d=u===-1?-1:l.indexOf(`
139`,u+1),h=d===-1?"":l.slice(d+1);String(i.stack).endsWith(h)||(i.stack+=`
140`+l)}}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ss(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:l}=n;i!==void 0&&Tl.assertOptions(i,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean),legacyInterceptorReqResOrdering:Et.transitional(Et.boolean),advertiseZstdAcceptEncoding:Et.transitional(Et.boolean),validateStatusUndefinedResolves:Et.transitional(Et.boolean)},!1),a!=null&&(L.isFunction(a)?n.paramsSerializer={serialize:a}:Tl.assertOptions(a,{encode:Et.function,serialize:Et.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Tl.assertOptions(n,{baseUrl:Et.spelling("baseURL"),withXsrfToken:Et.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&L.merge(l.common,l[n.method]);l&&L.forEach(["delete","get","head","post","put","patch","query","common"],C=>{delete l[C]}),n.headers=Tt.concat(u,l);const d=[];let h=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;h=h&&_.synchronous;const E=n.transitional||Df;E&&E.legacyInterceptorReqResOrdering?d.unshift(_.fulfilled,_.rejected):d.push(_.fulfilled,_.rejected)});const p=[];this.interceptors.response.forEach(function(_){p.push(_.fulfilled,_.rejected)});let g,y=0,w;if(!h){const C=[my.bind(this),void 0];for(C.unshift(...d),C.push(...p),w=C.length,g=Promise.resolve(n);y<w;)g=g.then(C[y++],C[y++]);return g}w=d.length;let b=n;for(;y<w;){const C=d[y++],_=d[y++];try{b=C(b)}catch(E){_.call(this,E);break}}try{g=my.call(this,b)}catch(C){return Promise.reject(C)}for(y=0,w=p.length;y<w;)g=g.then(p[y++],p[y++]);return g}getUri(e){e=Ss(this.defaults,e);const n=Pw(e.baseURL,e.url,e.allowAbsoluteUrls,e);return Ew(n,e.params,e.paramsSerializer)}};
vendor: 1,715 bytes, line 140
140L.forEach(["delete","get","head","options"],function(e){vs.prototype[e]=function(n,i){return this.request(Ss(i||{},{method:e,url:n,data:i&&L.hasOwnProp(i,"data")?i.data:void 0}))}});L.forEach(["post","put","patch","query"],function(e){function n(i){return function(l,u,d){return this.request(Ss(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}vs.prototype[e]=n(),e!=="query"&&(vs.prototype[e+"Form"]=n(!0))});let ET=class Ow{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const u=new Promise(d=>{i.subscribe(d),l=d}).then(a);return u.cancel=function(){i.unsubscribe(l)},u},e(function(l,u,d){i.reason||(i.reason=new Yo(l,u,d),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Ow(function(a){e=a}),cancel:e}}};function _T(t){return function(n){return t.apply(null,n)}}function kT(t){return L.isObject(t)&&t.isAxiosError===!0}const Jd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
140alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Jd).forEach(([t,e])=>{Jd[e]=t});function jw(t){const e=new vs(t),n=uw(vs.prototype.request,e);return L.extend(n,vs.prototype,e,{allOwnKeys:!0}),L.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return jw(Ss(t,a))},n}const et=jw(Go);et.Axios=vs;et.CanceledError=Yo;et.CancelToken=ET;et.isCancel=Cw;et.VERSION=If;et.toFormData=tu;et.AxiosError=X;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=_T;et.isAxiosError=kT;et.mergeConfig=Ss;et.AxiosHeaders=Tt;et.formToJSON=t=>kw(L.isHTMLForm(t)?new FormData(t):t);et.getAdapter=Nw.getAdapter;et.HttpStatusCode=Jd;et.default=et;const{Axios:Aj,AxiosError:Nj,CanceledError:Oj,isCancel:jj,CancelToken:Lj,VERSION:Dj,all:Mj,Cancel:Ij,isAxiosError:Fj,spread:Vj,toFormData:Uj,AxiosHeaders:Bj,HttpStatusCode:zj,formToJSON:$j,getAdapter:Wj,mergeConfig:qj,create:Hj}=et,Lw=typeof window>"u",yy=!Lw&&window.self!==window.top,CT=!Lw&&typeof document>"u",Dw=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),mt=[];for(let t=0;t<256;++t)mt.push((t+256).toString(16).slice(1));function TT(t,e=0){return(mt[t[e+0]]+mt[t[e+1]]+mt[t[e+2]]+mt[t[e+3]]+"-"+mt[t[e+4]]+mt[t[e+5]]+"-"+mt[t[e+6]]+mt[t[e+7]]+"-"+mt[t[e+8]]+mt[t[e+9]]+"-"+mt[t[e+10]]+mt[t[e+11]]+mt[t[e+12]]+mt[t[e+13]]+mt[t[e+14]]+mt[t[e+15]]).toLowerCase()}let hd;const PT=new Uint8Array(16);function RT(){if(!hd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hd=crypto.getRandomValues.bind(crypto)}return hd(PT)}const AT=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vy={randomUUID:AT};function NT(t,e,n){var a;t=t||{};const i=t.random??((a=t.rng)==null?void 0:a.call(t))??RT();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,TT(i)}function OT(t,e,n){return vy.randomUUID&&!t?vy.randomUUID():NT(t)}const mo=typeof window<"u"?window:{base44SharedInstances:{}};function jT(t,e){return mo.base44SharedInstances||(mo.base44SharedInstances={}),mo.base44SharedInstances[t]||(mo.base44SharedInstances[t]={instance:e()}),mo.base44SharedInstances[t].instance}const LT="__user_heartbeat_event__",DT="__initialization_event__",MT="__session_duration_event__",wy="analytics-enable",xy="base44_analytics_session_id",IT={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},FT="analytics",De=jT(FT,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...IT,...HT()}})),VT=({axiosClient:t,serverUrl:e,appId:n,userAuthModule:i,enabled:a})=>{var l;const{maxQueueSize:u,throttleTime:d,batchSize:h}=De.config;if(!a||!(!((l=De.config)===null||l===void 0)&&l.enabled)||CT)return{track:()=>{},cleanup:()=>{}};let p;const g=`${e}/api/apps/${n}/analytics/track/batch`,y=async O=>{await t.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:O}})},w=O=>{try{const M=JSON.stringify({events:O}),z=new Blob([M],{type:"application/json"});return typeof navigator>"u"||M.length>6e4||!navigator.sendBeacon(g,z)}catch{return!1}},b=async(O,M={})=>
140{if(O.length===0)return;const z=await qT(i),Y=O.map(WT(z));try{(!M.isBeacon||!w(Y))&&await y(Y)}catch{}},C=()=>{Sy(b,{throttleTime:d,batchSize:h})},_=O=>{if(De.requestsQueue.length>=u)return;const M=$T();De.requestsQueue.push({...O,...M}),C()},E=()=>{Sy(b,{throttleTime:d,batchSize:h}),p=Ey(_),BT()},S=()=>{by(),p==null||p(),zT(_);const O=De.requestsQueue.splice(0);b(O,{isBeacon:!0})},A=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&E())},P=()=>{by(),p==null||p(),typeof window<"u"&&window.removeEventListener("visibilitychange",A)};return C(),p=Ey(_),UT(_),typeof window<"u"&&window.addEventListener("visibilitychange",A),{track:_,cleanup:P}};function by(){De.isProcessing=!1}async function Sy(t,e){if(De.isProcessing)return;De.isProcessing=!0;const{throttleTime:n=1e3,batchSize:i=30}=e??{};for(;De.isProcessing&&De.requestsQueue.length>0;){const a=De.requestsQueue.splice(0,i);a.length&&await t(a),await new Promise(l=>setTimeout(l,n))}De.isProcessing=!1}function Ey(t){var e;if(typeof window>"u"||De.isHeartBeatProcessing||((e=De.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};De.isHeartBeatProcessing=!0;const n=setInterval(()=>{t({eventName:LT})},De.config.heartBeatInterval);return()=>{clearInterval(n),De.isHeartBeatProcessing=!1}}function UT(t){typeof window>"u"||De.wasInitializationTracked||(De.wasInitializationTracked=!0,t({eventName:DT,properties:{referrer:document==null?void 0:document.referrer}}))}function BT(){typeof window>"u"||De.sessionStartTime!==null||(De.sessionStartTime=new Date().toISOString())}function zT(t){if(typeof window>"u"||De.sessionStartTime===null)return;const e=new Date().getTime()-new Date(De.sessionStartTime).getTime();De.sessionStartTime=null,t({eventName:MT,properties:{sessionDuration:e}})}function $T(){var t,e;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(e=(t=window.location)===null||t===void 0?void 0:t.pathname)!==null&&e!==void 0?e:null}}function WT(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let xo=null;function _y(){De.sessionContext=null,xo=null}async function qT(t){if(!De.sessionContext){if(!t.hasToken())return{user_id:null,session_id:zl()};if(!xo){const i=zl();xo=t.me().then(a=>({user_id:a.id,session_id:i})).catch(()=>({user_id:null,session_id:i}))}const e=xo,n=await e;return xo===e&&(De.sessionContext=n),n}return De.sessionContext}function HT(){if(typeof window>"u"||!window.location)return;const e=new URLSearchParams(window.location.search).get(wy);if(e==null||!e.length)return;const n=new URLSearchParams(window.location.search);n.delete(wy);const i=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function ky(){var t;return(t=De.fallbackSessionId)!==null&&t!==void 0?t:De.fallbackSessionId=Dw()}function zl(){if(typeof window>"u")return ky();try{const t=localStorage.getItem(xy);if(!t){const e=Dw();return localStorage.setItem(xy,e),e}return t}catch{return ky()}}class KT extends Error{constructor(e,n,i,a,l){super(e),this.name="Base44Error",this.status=n,this.code=i,this.data=a,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Xs({baseURL:t,headers:e={},token:n,interceptResponses:i=!0,onError:a}){const l=et.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(u=>{typeof window<"u"&&(window.location&&u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",zl()));const d=OT();if(u.requestId=d,yy)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:t+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),i&&l.interceptors.response.use(u=>{var d;const h=(d=u.config)===null||d===void 0?void 0:d.requestId;try{yy&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var d,h,p,g,y,w,b,C,_,E,S,A,P,O,M;const z=((h=(d=u.response)===null||d===void 0?void 0:d.data)===null||h===void 0?void 0:h.message)||((g=(p=u.response)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g.detail)||u.message,Y=new KT(z,(y=u.response)===null||y===void 0?void 0:y.status,(A=(C=(b=(w=u.response)===null||w===void 0?void 0:w.data)===null||b===void 0?void 0:b.code)!==null&&C!==void 0?C:(S=(E=(_=u.response)===null||_===void 0?void 0:_.headers)===null||E===void 0?void 0:E.get)===null||S===void 0?void 0:S.call(E,"x-base44-connector-error"))!==null&&A!==void 0?A:(O=(P=u.response)===null||P===void 0?void 0:P.headers)===null||O===void 0?void 0:O["x-base44-connector-error"],(M=u.response)===null||M===void 0?void 0:M.data,u);return a==null||a(Y),Promise.reject(Y)}),l}function Cy(t){const{axios:e,appId:n,getSocket:i}=t;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return GT(e,n,l,i)}})}function QT(t){var e;try{const n=JSON.parse(t);
140return{type:n.type,data:n.data,id:n.id||((e=n.data)===null||e===void 0?void 0:e.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function GT(t,e,n,i){const a=`/apps/${e}/entities/${n}`;return{async list(l,u,d,h){const p={};return l&&(p.sort=l),u&&(p.limit=u),d&&(p.skip=d),h&&(p.fields=Array.isArray(h)?h.join(","):h),t.get(a,{params:p})},async filter(l,u,d,h,p){const g={q:JSON.stringify(l)};return u&&(g.sort=u),d&&(g.limit=d),h&&(g.skip=h),p&&(g.fields=Array.isArray(p)?p.join(","):p),t.get(a,{params:g})},async get(l){return t.get(`${a}/${l}`)},async create(l){return t.post(a,l)},async update(l,u){return t.put(`${a}/${l}`,u)},async delete(l){return t.delete(`${a}/${l}`)},async deleteMany(l){return t.delete(a,{data:l})},async bulkCreate(l){return t.post(`${a}/bulk`,l)},async updateMany(l,u){return t.patch(`${a}/update-many`,{query:l,data:u})},async bulkUpdate(l){return t.put(`${a}/bulk`,l)},async importEntities(l){const u=new FormData;return u.append("file",l,l.name),t.post(`${a}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const u=`entities:${e}:${n}`;return i().subscribeToRoom(u,{update_model:p=>{var g;const y=QT(p.data);if(y){y.type!=="delete"&&(!((g=y.data)===null||g===void 0)&&g._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${y.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${y.id}")\` to fetch the full record.`);try{l(y)}catch(w){console.error("[Base44 SDK] Subscription callback error:",w)}}}})}}}function YT(t,e){return{async call(n,i,a){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:u,...d}=a??{},h={...d,...l&&{path_params:l},...u&&{query_params:u}};return await t.post(`/apps/${e}/integrations/custom/${n}/${i}`,h)}}}function Ty(t,e){const n=YT(t,e);return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return a==="custom"?n:new Proxy({},{get(l,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async d=>{if(typeof d=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${d}`);let h,p;return d instanceof FormData||d&&Object.values(d).some(g=>g instanceof File)?(h=new FormData,Object.keys(d).forEach(g=>{d[g]instanceof File?h.append(g,d[g],d[g].name):typeof d[g]=="object"&&d[g]!==null?h.append(g,JSON.stringify(d[g])):h.append(g,d[g])}),p="multipart/form-data"):(h=d,p="application/json"),a==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${u}`,h||d,{headers:{"Content-Type":p}}):t.post(`/apps/${e}/integration-endpoints/installable/${a}/integration-endpoints/${u}`,h||d,{headers:{"Content-Type":p}})}}})}})}function XT(){return typeof window>"u"?!1:window!==window.parent}function JT(t,e,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${u},resizable=yes,scrollbars=yes`);if(!d)return;const h=()=>{window.removeEventListener("message",p),clearInterval(g),d.closed||d.close()},p=y=>{var w;if(y.origin!==n||y.source!==d||!(!((w=y.data)===null||w===void 0)&&w.access_token))return;h();const b=new URL(e),{access_token:C,is_new_user:_}=y.data;b.searchParams.set("access_token",C),_!=null&&b.searchParams.set("is_new_user",String(_)),window.location.href=b.toString()},g=setInterval(()=>{d.closed&&h()},500);window.addEventListener("message",p)}function ZT(t,e,n,i){let a=null;const l=()=>{a=null};let u=!!i.token;return{hasToken(){return u},async me(){const d=a??t.get(`/apps/${n}/entities/User/me`).finally(()=>{a===d&&(a=null)});return a=d,d},async updateMe(d){return t.put(`/apps/${n}/entities/User/me`,d)},redirectToLogin(d){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const h=d?new URL(d,window.location.origin).toString():window.location.href,p=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(h)}`;window.location.href=p},loginWithProvider(d,h="/"){const p=new URL(h,window.location.origin).toString(),g=`app_id=${n}&from_url=${encodeURIComponent(p)}`;let y;d==="sso"?y=`/apps/${n}/auth/sso/login`:y=`/apps/auth${d==="google"?"":`/${d}`}/login`;const w=`${i.appBaseUrl}/api${y}?${g}`;if(XT()){const b=`${w}&popup_origin=${encodeURIComponent(window.location.origin)}`;return JT(b,p,window.location.origin)}window.location.href=w},logout(d){if(delete t.defaults.headers.common.Authorization,l(),_y(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(g){console.error("Failed to remove token from localStorage:",g)}const h=d||window.location.href,p=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(h)}`;window.location.href=p}},setToken(d,h=!0){if(d&&(l(),_y(),u=!0,t.defaults.headers.common.Authorization=`Bearer ${d}`,e.defaults.headers.common.Authorization=`Bearer ${d}`,h&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",d),window.localStorage.setItem("token",d)}catch(p){console.error("Failed to save token to localStorage:",p)}},async loginViaEmailPassword(d,h,p){var g;try{const y=await t.post(`/apps/${n}/auth/login`,{email:d,password:h,...p&&{turnstile_token:p}}),{access_token:w,user:b}=y;return w&&this.setToken(w),{access_token:w,user:b}}catch(y){throw((g=y.response)===null||g===void 0?void 0:g.status)===401&&await this.logout(),y}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(d,h){return t.post(`/apps/${n}/users/invite-user`,{user_email:d,role:h})},register(d){return t.post(`/apps/${n}/auth/register`,d)},verifyOtp({email:d,otpCode:h}){return t.post(`/apps/${n}/auth/verify-otp`,{email:d,otp_code:h})},resendOtp(d){return t.post(`/apps/${n}/auth/resend-otp`,{email:d})},resetPasswordRequest(d){return t.post(`/apps/${n}/auth/reset-password-request`,{email:d})},resetPassword({resetToken:d,newPassword:h}){return t.post(`/apps/${n}/auth/reset-password`,{reset_token:d,new_password:h})},changePassword({userId:d,currentPassword:h,newPassword:p}){return t.post(`/apps/${n}/auth/change-password`,{user_id:d,current_password:h,new_password:p})}}}function eP(t,e){return{async getAccessToken(n){const i=`/apps/${e}/auth/sso/accesstoken/${n}`;return t.get(i)},async getIdToken(n){const i=`/apps/${e}/auth/sso/idtoken/${n}`;return t.get(i)}}}const tP=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
140function nP(t,e){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var i;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async callApi(n,i){return Mw(n,"Integration type"),rP(t,`/apps/${e}/connectors/${encodeURIComponent(n)}/call`,i)}}}function Mw(t,e){if(!t||typeof t!="string")throw new Error(`${e} is required and must be a string`)}async function rP(t,e,n){var i,a,l,u,d,h,p,g,y;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");Mw(n.path,"Request path");const w=(i=n.method)!==null&&i!==void 0?i:"GET";if(!tP.has(w))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const C=await t.post(e,{method:w,...n.host==null?{}:{host:n.host},path:n.path,query:(a=n.query)!==null&&a!==void 0?a:{},headers:(l=n.headers)!==null&&l!==void 0?l:{},body:(u=n.body)!==null&&u!==void 0?u:null});return{success:C.success,phase:C.phase,status:(d=C.status_code)!==null&&d!==void 0?d:null,data:C.data,dataBase64:(h=C.data_base64)!==null&&h!==void 0?h:null,contentType:(p=C.content_type)!==null&&p!==void 0?p:null,headers:(g=C.headers)!==null&&g!==void 0?g:{},creditsCharged:(y=C.credits_charged)!==null&&y!==void 0?y:0}}function sP(t,e){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Lr(t={}){const{storageKey:e="base44_access_token",paramName:n="access_token",saveToStorage:i=!0,removeFromUrl:a=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(l=u.get(n),l){if(i&&iP(l,{storageKey:e}),a){u.delete(n);const d=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(e),l}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function iP(t,e){const{storageKey:n="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(n,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function oP({axios:t,serviceRoleAxios:e,appId:n,serverUrl:i,functionsVersion:a,platformHeaders:l}){const u=new Headers(l),d=h=>{const p=h.defaults.headers.common.Authorization;return typeof p=="string"&&p.startsWith("Bearer ")?p:null};return async function(p,g={}){aP(p);const{fetch:y=fetch,...w}=g,b=new Headers(g.headers),C=(_,E)=>{E&&!b.has(_)&&b.set(_,E)};return C("Authorization",d(t)),C("Base44-Service-Authorization",d(e)),C("Base44-App-Id",n),
140C("Base44-Api-Url",i),C("Base44-Functions-Version",a),C("Base44-State",u.get("Base44-State")),C("X-Data-Env",u.get("X-Data-Env")),y(p,{...w,headers:b})}}function aP(t){if(typeof t!="string"||t==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const e=t.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${t}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function Py(t,e,n){const i=(l,u)=>l?`${String(l).replace(/\/$/,"")}${u}`:u,a=l=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();Object.entries(d).forEach(([h,p])=>{p!=null&&u.set(h,String(p))})}return l&&new Headers(l).forEach((d,h)=>{u.set(h,d)}),u};return{async invoke(l,u){if(typeof u=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${u}`);let d,h;return u instanceof FormData||u&&Object.values(u).some(p=>p instanceof File)?(d=new FormData,Object.keys(u).forEach(p=>{u[p]instanceof File?d.append(p,u[p],u[p].name):typeof u[p]=="object"&&u[p]!==null?d.append(p,JSON.stringify(u[p])):d.append(p,u[p])}),h="multipart/form-data"):(d=u,h="application/json"),t.post(`/apps/${e}/functions/${l}`,d||u,{headers:{"Content-Type":h}})},async fetch(l,u={}){const h=`/functions${l.startsWith("/")?l:`/${l}`}`,p=a(u.headers),g={...u,headers:p};return await fetch(i(n==null?void 0:n.baseURL,h),g)}}}function Ry({axios:t,getSocket:e,appId:n,serverUrl:i,token:a}){const l=`/apps/${n}/agents`,u={},d=()=>t.get(`${l}/conversations`),h=_=>t.get(`${l}/conversations/${_}`);return{getConversations:d,getConversation:h,listConversations:_=>t.get(`${l}/conversations`,{params:_}),createConversation:_=>t.post(`${l}/conversations`,_),addMessage:async(_,E)=>t.post(`${l}/conversations/v2/${_.id}/messages`,E),subscribeToConversation:(_,E)=>{const S=`/agent-conversations/${_}`,A=e(),P=h(_).then(O=>(u[_]=O,O));return A.subscribeToRoom(S,{connect:()=>{},update_model:async({data:O})=>{const M=JSON.parse(O);if(M._message){await P;const z=M._message,Y=u[_];if(Y){const V=Y.messages||[],Z=V.findIndex(Ee=>Ee.id===z.id),ue=Z!==-1?V.map((Ee,Ne)=>Ne===Z?z:Ee):[...V,z];u[_]={...Y,messages:ue},E==null||E(u[_])}}}})},getWhatsAppConnectURL:_=>{const E=`${i}/api/apps/${n}/agents/${encodeURIComponent(_)}/whatsapp`,S=a??Lr();return S?`${E}?token=${S}`:E},getTelegramConnectURL:_=>{const E=`${i}/api/apps/${n}/agents/${encodeURIComponent(_)}/telegram`,S=a??Lr();return S?`${E}?token=${S}`:E}}}function Ay({serverUrl:t,token:e,appId:n}){return{connection:()=>{var a;return{baseURL:`${t}/api/apps/${n}/ai/openai/v1`,token:(a=e??Lr())!==null&&a!==void 0?a:""}}}}function Ny(t,e){const n=`/app-logs/${e}`;return{async logUserInApp(i){await t.post(`${n}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(n,{params:i})},async getStats(i={}){return await t.get(`${n}/stats`,{params:i})}}}function lP(t,e){return{async getPublicSettings(){return t.get(`/apps/public/prod/public-settings/by-id/${e}`)}}}function uP(t,e){return{async inviteUser(n,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:n,role:i})}}}const Ln=Object.create(null);Ln.open="0";Ln.close="1";Ln.ping="2";Ln.pong="3";Ln.message="4";Ln.upgrade="5";Ln.noop="6";const Pl=Object.create(null);Object.keys(Ln).forEach(t=>{Pl[Ln[t]]=t});const Zd={type:"error",data:"parser error"},Iw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Fw=typeof ArrayBuffer=="function",Vw=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Vf=({type:t,data:e},n,i)=>Iw&&e instanceof Blob?n?i(e):Oy(e,i):Fw&&(e instanceof ArrayBuffer||Vw(e))?n?i(e):Oy(new Blob([e]),i):i(Ln[t]+(e||"")),Oy=(t,e)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];e("b"+(i||""))},n.readAsDataURL(t)};function jy(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let pd;function cP(t,e){if(Iw&&t.data instanceof Blob)return t.data.arrayBuffer().then(jy).then(e);if(Fw&&(t.data instanceof ArrayBuffer||Vw(t.data)))return e(jy(t.data));Vf(t,!1,n=>{pd||(pd=new TextEncoder),e(pd.encode(n))})}const Ly="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
140+/",bo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Ly.length;t++)bo[Ly.charCodeAt(t)]=t;const dP=t=>{let e=t.length*.75,n=t.length,i,a=0,l,u,d,h;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const p=new ArrayBuffer(e),g=new Uint8Array(p);for(i=0;i<n;i+=4)l=bo[t.charCodeAt(i)],u=bo[t.charCodeAt(i+1)],d=bo[t.charCodeAt(i+2)],h=bo[t.charCodeAt(i+3)],g[a++]=l<<2|u>>4,g[a++]=(u&15)<<4|d>>2,g[a++]=(d&3)<<6|h&63;return p},fP=typeof ArrayBuffer=="function",Uf=(t,e)=>{if(typeof t!="string")return{type:"message",data:Uw(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:hP(t.substring(1),e)}:Pl[n]?t.length>1?{type:Pl[n],data:t.substring(1)}:{type:Pl[n]}:Zd},hP=(t,e)=>{if(fP){const n=dP(t);return Uw(n,e)}else return{base64:!0,data:t}},Uw=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Bw="�",pP=(t,e)=>{const n=t.length,i=new Array(n);let a=0;t.forEach((l,u)=>{Vf(l,!1,d=>{i[u]=d,++a===n&&e(i.join(Bw))})})},mP=(t,e)=>{const n=t.split(Bw),i=[];for(let a=0;a<n.length;a++){const l=Uf(n[a],e);if(i.push(l),l.type==="error")break}return i};function gP(){return new TransformStream({transform(t,e){cP(t,n=>{const i=n.length;let a;if(i<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,i);else if(i<65536){a=new Uint8Array(3);const l=new DataView(a.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{a=new Uint8Array(9);const l=new DataView(a.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(n)})}})}let md;function ml(t){return t.reduce((e,n)=>e+n.length,0)}function gl(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let i=0;for(let a=0;a<e;a++)n[a]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),n}function yP(t,e){md||(md=new TextDecoder);const n=[];let i=0,a=-1,l=!1;return new TransformStream({transform(u,d){for(n.push(u);;){if(i===0){if(ml(n)<1)break;const h=gl(n,1);l=(h[0]&128)===128,a=h[0]&127,a<126?i=3:a===126?i=1:i=2}else if(i===1){if(ml(n)<2)break;const h=gl(n,2);a=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),i=3}else if(i===2){if(ml(n)<8)break;const h=gl(n,8),p=new DataView(h.buffer,h.byteOffset,h.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){d.enqueue(Zd);break}a=g*Math.pow(2,32)+p.getUint32(4),i=3}else{if(ml(n)<a)break;const h=gl(n,a);d.enqueue(Uf(l?h:md.decode(h),e)),i=0}if(a===0||a>t){d.enqueue(Zd);break}}}})}const zw=4;function nt(t){if(t)return vP(t)}function vP(t){for(var e in nt.prototype)t[e]=nt.prototype[e];return t}nt.prototype.on=nt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};nt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};nt.prototype.off=nt.prototype.removeListener=nt.prototype.removeAllListeners=nt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,a=0;a<n.length;a++)if(i=n[a],i===e||i.fn===e){n.splice(a,1);break}return n.length===0&&delete this._callbacks["$"+t],this};nt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,a=n.length;i<a;++i)n[i].apply(this,e)}return this};nt.prototype.emitReserved=nt.prototype.emit;nt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};nt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const ru=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),an=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),wP="arraybuffer";function $w(t,...e){return e.reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=t[i]),n),{})}const xP=an.setTimeout,bP=an.clearTimeout;function su(t,e){e.useNativeTimers?(t.setTimeoutFn=xP.bind(an),t.clearTimeoutFn=bP.bind(an)):(t.setTimeoutFn=an.setTimeout.bind(an),t.clearTimeoutFn=an.clearTimeout.bind(an))}const SP=1.33;function EP(t){return typeof t=="string"?_P(t):Math.ceil((t.byteLength||t.size)*SP)}function _P(t){let e=0,n=0;for(let i=0,a=t.length;i<a;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}function Ww(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function kP(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function CP(t){let e={},n=t.split("&");for(let i=0,a=n.length;i<a;i++){let l=n[i].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}
vendor: 24,029 bytes, line 140
140class TP extends Error{constructor(e,n,i){super(e),this.description=n,this.context=i,this.type="TransportError"}}class Bf extends nt{constructor(e){super(),this.writable=!1,su(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,i){return super.emitReserved("error",new TP(e,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Uf(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=kP(e);return n.length?"?"+n:""}}class PP extends Bf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};mP(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,pP(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Ww()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let qw=!1;try{qw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const RP=qw;function AP(){}class NP extends PP{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,n){const i=this.request({method:"POST",data:e});i.on("success",n),i.on("error",(a,l)=>{this.onError("xhr post error",a,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=e}}class Nn extends nt{constructor(e,n,i){super(),this.createRequest=e,su(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const n=$w(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&i.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var a;i.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=Nn.requestsCount++,Nn.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=AP,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Nn.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Nn.requestsCount=0;Nn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Dy);else if(typeof addEventListener=="function"){const t="onpagehide"in an?"pagehide":"unload";addEventListener(t,Dy,!1)}}function Dy(){for(let t in Nn.requests)Nn.requests.hasOwnProperty(t)&&Nn.requests[t].abort()}const OP=(function(){const t=Hw({xdomain:!1});return t&&t.responseType!==null})();class jP extends NP{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=OP&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Nn(Hw,this.uri(),e)}}function Hw(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||RP))return new XMLHttpRequest}catch{}if(!e)try{return new an[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Kw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class LP extends Bf{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,i=Kw?{}:$w(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,i)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;Vf(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&ru(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Ww()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const gd=an.WebSocket||an.MozWebSocket;class DP extends LP{createSocket(e,n,i){return Kw?new gd(e,n,i):n?new gd(e,n):new gd(e)}doWrite(e,n){this.ws.send(n)}}class MP extends Bf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const n=yP(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(n).getReader(),a=gP();a.readable.pipeTo(e.writable),this._writer=a.writable.getWriter();const l=()=>{i.read().then(({done:d,value:h})=>{d||(this.onPacket(h),l())}).catch(d=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;this._writer.write(i).then(()=>{a&&ru(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const IP={websocket:DP,webtransport:MP,polling:jP},FP=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,VP=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ef(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));let a=FP.exec(t||""),l={},u=14;for(;u--;)l[VP[u]]=a[u]||"";return n!=-1&&i!=-1&&(l.source=e,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=UP(l,l.path),l.queryKey=BP(l,l.query),l}function UP(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function BP(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(n[a]=l)}),n}const tf=typeof addEventListener=="function"&&typeof removeEventListener=="function",Rl=[];tf&&addEventListener("offline",()=>{Rl.forEach(t=>t())},!1);class Mr extends nt{constructor(e,n){if(super(),this.binaryType=wP,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const i=ef(e);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=ef(n.host).host);su(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const a=i.prototype.name;this.transports.push(a),this._transportsByName[a]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=CP(this.opts.query)),tf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Rl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=zw,n.transport=e,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Mr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Mr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=e.data,this._onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(n+=EP(a)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ru(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,i){return this._sendPacket("message",e,n,i),this}send(e,n,i){return this._sendPacket("message",e,n,i),this}_sendPacket(e,n,i,a){if(typeof n=="function"&&(a=n,n=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:e,data:n,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(Mr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),tf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Rl.indexOf(this._offlineEventListener);i!==-1&&Rl.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Mr.protocol=zw;class zP extends Mr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let n=this.createTransport(e),i=!1;Mr.priorWebsocketSuccess=!1;const a=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!i)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Mr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,g(),n.close(),n=null)}const u=y=>{const w=new Error("probe error: "+y);w.transport=n.name,l(),this.emitReserved("upgradeError",w)};function d(){u("transport closed")}function h(){u("socket closed")}function p(y){n&&y.name!==n.name&&l()}const g=()=>{n.removeListener("open",a),n.removeListener("error",u),n.removeListener("close",d),this.off("close",h),this.off("upgrading",p)};n.once("open",a),n.once("error",u),n.once("close",d),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&n.push(e[i]);return n}}let $P=class extends zP{constructor(e,n={}){const i=typeof e=="object"?e:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(a=>IP[a]).filter(a=>!!a)),super(e,i)}};function WP(t,e="",n){let i=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),i=ef(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+e,i.href=i.protocol+"://"+l+(n&&n.port===i.port?"":":"+i.port),i}const qP=typeof ArrayBuffer=="function",HP=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Qw=Object.prototype.toString,KP=typeof Blob=="function"||typeof Blob<"u"&&Qw.call(Blob)==="[object BlobConstructor]",QP=typeof File=="function"||typeof File<"u"&&Qw.call(File)==="[object FileConstructor]";function zf(t){return qP&&(t instanceof ArrayBuffer||HP(t))||KP&&t instanceof Blob||QP&&t instanceof File}function Al(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if(Al(t[n]))return!0;return!1}if(zf(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Al(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Al(t[n]))return!0;return!1}function GP(t){const e=[],n=t.data,i=t;return i.data=nf(n,e),i.attachments=e.length,{packet:i,buffers:e}}function nf(t,e){if(!t)return t;if(zf(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=nf(t[i],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=nf(t[i],e));return n}return t}function YP(t,e){return t.data=rf(t.data,e),delete t.attachments,t}function rf(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=rf(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=rf(t[n],e));return t}const XP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ae;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ae||(Ae={}));class JP{constructor(e){this.replacer=e}encode(e){return(e.type===Ae.EVENT||e.type===Ae.ACK)&&Al(e)?this.encodeAsBinary({type:e.type===Ae.EVENT?Ae.BINARY_EVENT:Ae.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Ae.BINARY_EVENT||e.type===Ae.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=GP(e),i=this.encodeAsString(n.packet),a=n.buffers;return a.unshift(i),a}}class $f extends nt{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const i=n.type===Ae.BINARY_EVENT;i||n.type===Ae.BINARY_ACK?(n.type=i?Ae.EVENT:Ae.ACK,this.reconstructor=new ZP(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(zf(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const i={type:Number(e.charAt(0))};if(Ae[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Ae.BINARY_EVENT||i.type===Ae.BINARY_ACK){const l=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const u=e.substring(l,n);if(u!=Number(u)||e.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(e.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););i.nsp=e.substring(l,n)}else i.nsp="/";const a=e.charAt(n+1);if(a!==""&&Number(a)==a){const l=n+1;for(;++n;){const u=e.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===e.length)break}i.id=Number(e.substring(l,n+1))}if(e.charAt(++n)){const l=this.tryParse(e.substr(n));if($f.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Ae.CONNECT:return My(n);case Ae.DISCONNECT:return n===void 0;case Ae.CONNECT_ERROR:return typeof n=="string"||My(n);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&XP.indexOf(n[0])===-1);case Ae.ACK:case Ae.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ZP{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=YP(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function My(t){return Object.prototype.toString.call(t)==="[object Object]"}const eR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:$f,Encoder:JP,get PacketType(){return Ae}},Symbol.toStringTag,{value:"Module"}));function bn(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const tR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Gw extends nt{constructor(e,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[bn(e,"open",this.onopen.bind(this)),bn(e,"packet",this.onpacket.b
vendor: 2,660 bytes, line 140
140ind(this)),bn(e,"error",this.onerror.bind(this)),bn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){var i,a,l;if(tR.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:Ae.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,y=n.pop();this._registerAckCallback(g,y),u.id=g}const d=(a=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||a===void 0?void 0:a.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(h?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(e,n){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[e]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===e&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},a),u=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};u.withError=!0,this.acks[e]=u}emitWithAck(e,...n){return new Promise((i,a)=>{const l=(u,d)=>u?a(u):i(d);l.withError=!0,n.push(l),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...l)=>(this._queue[0],a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ae.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}
vendor: 7,087 bytes, line 140
140_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ae.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ae.EVENT:case Ae.BINARY_EVENT:this.onevent(e);break;case Ae.ACK:case Ae.BINARY_ACK:this.onack(e);break;case Ae.DISCONNECT:this.ondisconnect();break;case Ae.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let i=!1;return function(...a){i||(i=!0,n.packet({type:Ae.ACK,id:e,data:a}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ae.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,e.data)}}}function _i(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}_i.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};_i.prototype.reset=function(){this.attempts=0};_i.prototype.setMin=function(t){this.ms=t};_i.prototype.setMax=function(t){this.max=t};_i.prototype.setJitter=function(t){this.jitter=t};class sf extends nt{constructor(e,n){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,su(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new _i({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const a=n.parser||eR;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new $P(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=bn(n,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},u=bn(n,"error",l);if(this._timeout!==!1){const d=this._timeout,h=this.setTimeoutFn(()=>{a(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(a),this.subs.push(u),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(bn(e,"ping",this.onping.bind(this)),bn(e,"data",this.ondata.bind(this)),bn(e,"error",this.onerror.bind(this)),bn(e,"close",this.onclose.bind(this)),bn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){ru(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new Gw(this,e,n),this.nsps[e]=i),i}_destroy(e){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let i=0;i<n.length;i++)this.engine.write(n[i],e.options)}
140cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const go={};function Nl(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=WP(t,e.path||"/socket.io"),i=n.source,a=n.id,l=n.path,u=go[a]&&l in go[a].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||u;let h;return d?h=new sf(i,e):(go[a]||(go[a]=new sf(i,e)),h=go[a]),n.query&&!e.query&&(e.query=n.queryKey),h.socket(n.path,e)}Object.assign(Nl,{Manager:sf,Socket:Gw,io:Nl,connect:Nl});const nR=250;function Iy(t,e){var n;const i=(n=t.token)!==null&&n!==void 0?n:Lr(),a={app_id:t.appId,token:i};i||(a.anonymous_id=zl());const l=Nl(t.serverUrl,{path:t.mountPath,transports:t.transports,query:a});return l.on("connect",async()=>{var u;return console.log("connect",l.id),(u=e.connect)===null||u===void 0?void 0:u.call(e)}),l.on("update_model",async u=>{var d;return(d=e.update_model)===null||d===void 0?void 0:d.call(e,u)}),l.on("error",async u=>{var d;return(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l.on("connect_error",async u=>{var d;return console.error("connect_error",u),(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l}function rR({config:t}){let e={...t};const n={},i={},a={connect:async()=>{const S=[];Object.keys(n).forEach(A=>{const P=w(A);P.length!==0&&(p(A),P.forEach(({connect:O})=>{const M=async()=>O==null?void 0:O();S.push(M())}))}),await Promise.all(S)},update_model:async S=>{const P=w(S.room).map(O=>{var M;return(M=O.update_model)===null||M===void 0?void 0:M.call(O,S)});await Promise.all(P)},error:async S=>{console.error("error",S);const A=Object.values(n).flat().map(P=>{var O;return(O=P.error)===null||O===void 0?void 0:O.call(P,S)});await Promise.all(A)}};let l=Iy(t,a);function u(){d()}function d(){C(),l&&l.disconnect()}function h(S){u(),e={...e,...S},l=Iy(e,a)}function p(S){l.emit("join",S)}function g(S){l.emit("leave",S)}async function y(S,A){var P;const O=JSON.stringify(A);return(P=a.update_model)===null||P===void 0?void 0:P.call(a,{room:S,data:O})}function w(S){var A;return(A=n[S])!==null&&A!==void 0?A:[]}function b(S){const A=i[S];A&&(clearTimeout(A),delete i[S])}
140function C(){Object.keys(i).forEach(S=>{var A,P;clearTimeout(i[S]),delete i[S],((P=(A=n[S])===null||A===void 0?void 0:A.length)!==null&&P!==void 0?P:0)===0&&delete n[S]})}function _(S){b(S),i[S]=setTimeout(()=>{var A,P;delete i[S],!(((P=(A=n[S])===null||A===void 0?void 0:A.length)!==null&&P!==void 0?P:0)>0)&&(g(S),delete n[S])},nR)}return{socket:l,subscribeToRoom:(S,A)=>{n[S]?b(S):(p(S),n[S]=[]),n[S].push(A);let P=!1;return()=>{var O,M;P||(P=!0,n[S]=(M=(O=n[S])===null||O===void 0?void 0:O.filter(z=>z!==A))!==null&&M!==void 0?M:[],n[S].length===0&&_(S))}},updateConfig:h,updateModel:y,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
141  PartySocket requires a global 'EventTarget' class to be available!
142  You can polyfill this global by adding this to your code before any partysocket imports: 
143  
144  \`\`\`
145  import 'partysocket/event-target-polyfill';
146  \`\`\`
147  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
148`);var Yw=class extends Event{constructor(e,n){super("error",n);Ue(this,"message");Ue(this,"error");this.message=e.message,this.error=e}},Xw=class extends Event{constructor(e=1e3,n="",i){super("close",i);Ue(this,"code");Ue(this,"reason");Ue(this,"wasClean",!0);this.code=e,this.reason=n}},yd={Event,ErrorEvent:Yw,CloseEvent:Xw};function sR(t,e){if(!t)throw new Error(e)}function iR(t){return new t.constructor(t.type,t)}function oR(t){return"data"in t?new MessageEvent(t.type,t):"code"in t||"reason"in t?new Xw(t.code||1999,t.reason||"unknown reason",t):"error"in t?new Yw(t.error,t):new Event(t.type,t)}var p0,aR=typeof process<"u"&&typeof((p0=process.versions)==null?void 0:p0.node)<"u"&&typeof document>"u",yl=aR?oR:iR,ts={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Fy=!1,lR=class rs extends EventTarget{constructor(n,i,a={}){super();Ue(this,"_ws");Ue(this,"_retryCount",-1);Ue(this,"_uptimeTimeout");Ue(this,"_connectTimeout");Ue(this,"_shouldReconnect",!0);Ue(this,"_connectLock",!1);Ue(this,"_binaryType","blob");Ue(this,"_closeCalled",!1);Ue(this,"_messageQueue",[]);Ue(this,"_url");Ue(this,"_protocols");Ue(this,"_options");Ue(this,"onclose",null);Ue(this,"onerror",null);Ue(this,"onmessage",null);Ue(this,"onopen",null);Ue(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:i=ts.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),i),sR(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(a=>{var l;return(l=this._ws)==null?void 0:l.send(a)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(yl(n))});Ue(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(yl(n))});Ue(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(yl(n)),this._connect()});Ue(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(yl(n))});this._url=n,this._protocols=i,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return rs.CONNECTING}get OPEN(){return rs.OPEN}get CLOSING(){return rs.CLOSING}get CLOSED(){return rs.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((i,a)=>(typeof a=="string"?i+=a.length:a instanceof Blob?i+=a.size:i+=a.byteLength,i),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?rs.CLOSED:rs.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,i){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,i)}reconnect(n,i){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,i),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:i=ts.maxEnqueuedMessages}=this._options;this._messageQueue.length<i&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=ts.reconnectionDelayGrowFactor,minReconnectionDelay:i=ts.minReconnectionDelay,maxReconnectionDelay:a=ts.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=i*Math.pow(n,this._retryCount-1),l>a&&(l=a)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const i=n();if(!i)return Promise.resolve(null);if(typeof i=="string"||Array.isArray(i))return Promise.resolve(i);if(i.then)return i}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const i=n();if(typeof i=="string")return Promise.resolve(i);if(i.then)return i}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
148const{maxRetries:n=ts.maxRetries,connectionTimeout:i=ts.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([a,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Fy&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
149
150For example, if you're using node.js, run \`npm install ws\`, and then in your code:
151
152import PartySocket from 'partysocket';
153import WS from 'ws';
154
155const partysocket = new PartySocket({
156  host: "127.0.0.1:1999",
157  room: "test-room",
158  WebSocket: WS
159});
160
161`),Fy=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:a,protocols:l}),this._ws=l?new u(a,l):new u(a),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),i)}).catch(a=>{this._connectLock=!1,this._handleError(new yd.ErrorEvent(Error(a.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new yd.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,i){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,i),this._handleClose(new yd.CloseEvent(n,i,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
162 * Reconnecting WebSocket
163 * by Pedro Ladaria <[email protected]>
164 * https://github.com/pladaria/reconnecting-websocket
165 * License MIT
166 */const uR=1e3,cR=3e3,dR=new Set([405,409,422,503]),fR=new Set([400,403,404]);function hR(t){const e=t&&typeof t=="object"?t.status:void 0;return typeof e=="number"?e:void 0}function pR(t){return t instanceof Error?t:new Error(String(t))}class mR{constructor(e,n,i,a,l){var u;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(u=a==null?void 0:a.id)!==null&&u!==void 0?u:crypto.randomUUID();let d=i.transport==="proxy";const h=async()=>{var w;if(this.closed)throw new Error("Actor connection is closed");if(!d)try{const{websocket_url:b,token:C}=await i.mintConnectionToken(e,n,this.id),_=b.includes("?")?"&":"?";return`${b}${_}token=${encodeURIComponent(C)}`}catch(b){const C=hR(b);if(!(i.transport!=="direct"&&C!==void 0&&dR.has(C))){C!==void 0&&fR.has(C)&&this.close();try{(w=i.onMintError)===null||w===void 0||w.call(i,pR(b))}catch{}throw b}d=!0}return yR(i.host,e,n,this.id,i.appId,i.getAuthToken(),i.functionsVersion)},p=new lR(h);this.ws=p;let g=Date.now();const y=()=>{g=Date.now()};p.addEventListener("open",y),p.addEventListener("message",w=>{y();let b;try{b=JSON.parse(w.data)}catch{return}if((b&&typeof b=="object"?b.type:void 0)!=="__pong")for(const _ of this.listeners)_(b)}),this.heartbeat=setInterval(()=>{if(Date.now()-g>cR){y(),p.readyState===p.OPEN&&p.reconnect();return}try{p.send(JSON.stringify({type:"__ping"}))}catch{}},uR)}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}send(e){this.closed||this.ws.send(JSON.stringify(e))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function gR(t,e,n,i){let a=null;return{connect(l){if(a)return a;const u=new mR(t,e,n,l,()=>{i.delete(u),a===u&&(a=null)});return a=u,i.add(u),u}}}function yR(t,e,n,i,a,l,u){let d=t.replace(/^(http|https|ws|wss):\/\//,"");d.endsWith("/")&&(d=d.slice(0,-1));const h=d.startsWith("localhost:")||d.startsWith("127.0.0.1:")||d.startsWith("192.168.")||d.startsWith("10.")||d.startsWith("172.")&&d.split(".")[1]>="16"&&d.split(".")[1]<="31"||d.startsWith("[::ffff:7f00:1]:"),p=new URLSearchParams([["_pk",i],["app_id",a],["handler",e]]);return l&&p.append("token",l),u&&p.append("fv",u),`${h?"ws":"wss"}://${d}
166/parties/${e}/${n}?${p}`}function vR(t,e){return t&&!t.startsWith("/")?t:e??t}function wR(t){const e=new Set;return{module:new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"))return l=>gR(a,l,t,e)}}),closeAll:()=>{for(const i of[...e])i.close()}}}function xR(t){var e,n,i,a;const{serverUrl:l="https://base44.app",appId:u,analytics:d,token:h,serviceToken:p,requiresAuth:g=!1,appBaseUrl:y,options:w,functionsVersion:b,headers:C}=t,_=typeof y=="string"?y:"",E={serverUrl:l,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:u,token:h};let S=null;const A=()=>(S||(S=rR({config:E})),S),P={...C,"X-App-Id":String(u)},O=b?{...P,"Base44-Functions-Version":b}:P,M=Xs({baseURL:`${l}/api`,headers:P,token:h,onError:w==null?void 0:w.onError}),z=Xs({baseURL:`${l}/api`,headers:O,token:h,interceptResponses:!1,onError:w==null?void 0:w.onError}),Y={...P,...h?{"on-behalf-of":`Bearer ${h}`}:{}},V=Xs({baseURL:`${l}/api`,headers:Y,token:p,onError:w==null?void 0:w.onError}),Z=Xs({baseURL:`${l}/api`,headers:O,token:p,interceptResponses:!1}),ue=Xs({baseURL:`${l}/api`,headers:P}),Ee=ZT(M,z,u,{appBaseUrl:_,token:h});if(typeof window<"u"){const fe=h||Lr();fe&&Ee.setToken(fe)}const Ne=wR({appId:u,host:vR(l,typeof window<"u"?(e=window.location)===null||e===void 0?void 0:e.origin:void 0),functionsVersion:b,getAuthToken:()=>h||Lr(),mintConnectionToken:async(fe,le,K)=>{const se=h||Lr();return await ue.post(`/apps/${u}/actors/${encodeURIComponent(fe)}/connection-token`,{room:le,connection_id:K},{headers:{...se?{Authorization:`Bearer ${se}`}:{},...b?{"Base44-Functions-Version":b}:{}}})},transport:w==null?void 0:w.actorsTransport,onMintError:w==null?void 0:w.onError}),Le={entities:Cy({axios:M,appId:u,getSocket:A}),integrations:Ty(M,u),connectors:sP(M,u),auth:Ee,functions:Py(z,u,{getAuthHeaders:()=>{const fe={},le=h||Lr();return le&&(fe.Authorization=`Bearer ${le}`),fe},baseURL:(n=z.defaults)===null||n===void 0?void 0:n.baseURL}),agents:Ry({axios:M,getSocket:A,appId:u,serverUrl:l,token:h}),aiGateway:Ay({serverUrl:l,token:h,appId:u}),appLogs:Ny(M,u),app:lP(M,u),users:uP(M,u),analytics:VT({axiosClient:M,serverUrl:l,appId:u,userAuthModule:Ee,enabled:(i=d==null?void 0:d.enabled)!==null&&i!==void 0?i:!0}),actors:Ne.module,cleanup:()=>{Le.analytics.cleanup(),Ne.closeAll(),S&&S.disconnect()}},Te={entities:Cy({axios:V,appId:u,getSocket:A}),integrations:Ty(V,u),sso:eP(V,u),connectors:nP(V,u),functions:Py(Z,u,{getAuthHeaders:()=>{const fe={};return p&&(fe.Authorization=`Bearer ${p}`),fe},baseURL:(a=Z.defaults)===null||a===void 0?void 0:a.baseURL}),agents:Ry({axios:V,getSocket:A,appId:u,serverUrl:l,token:h}),aiGateway:Ay({serverUrl:l,token:p,appId:u}),appLogs:Ny(V,u),cleanup:()=>{S&&S.disconnect()}};return g&&typeof window<"u"&&setTimeout(async()=>{try{await Le.auth.isAuthenticated()||Le.auth.redirectToLogin(window.location.href)}catch(fe){console.error("Authentication check failed:",fe),Le.auth.redirectToLogin(window.location.href)}},0),{...Le,fetchWithAuth:oP({axios:M,serviceRoleAxios:V,appId:String(u),serverUrl:l,functionsVersion:b,platformHeaders:C}),setToken(fe){Le.auth.setToken(fe),S&&S.updateConfig({token:fe}),E.token=fe},getConfig(){return{serverUrl:l,appId:u,requiresAuth:g}},get asServiceRole(){if(!p)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Te}}}const Jw=typeof window>"u",bR=Jw?{localStorage:new Map}:window,To=bR.localStorage,SR=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),Ys=(t,{defaultValue:e=void 0,removeFromUrl:n=!1}={})=>{if(Jw)return e;const i=`base44_${SR(t)}`,a=new URLSearchParams(window.location.search),l=a.get(t);if(n){a.delete(t);const d=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return To.setItem(i,l),l;if(e)return To.setItem(i,e),e;const u=To.getItem(i);return u||null},ER=()=>(Ys("clear_access_token")==="true"&&(To.removeItem("base44_access_token"),To.removeItem("token")),{appId:Ys("app_id",{defaultValue:"69e729a2e1f1532472b3b1e9"}),token:Ys("access_token",{removeFromUrl:!0}),fromUrl:Ys("from_url",{defaultValue:window.location.href}),functionsVersion:Ys("functions_version",{defaultValue:"prod"}),appBaseUrl:Ys("app_base_url",{defaultValue:void 0})}),So={...ER()},{appId:_R,token:kR,functionsVersion:CR,appBaseUrl:TR}=So,Js=xR({appId:_R,token:kR,functionsVersion:CR,serverUrl:"",requiresAuth:!1,appBaseUrl:TR});function PR({}){var a;const e=aw().pathname.substring(1),{data:n,isFetched:i}=V_({queryKey:["user"],queryFn:async()=>{try{return{user:await Js.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return v.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:v.jsx("div",{className:"max-w-md w-full",children:v.jsxs("div",{className:"text-center space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),v.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),v.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",v.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),i&&n.isAuthenticated&&((a=n.user)==null?void 0:a.role)==="admin"&&v.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:v.jsxs("div",{className:"flex items-start space-x-3",children:[v.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),v.jsxs("div",{className:"text-left space-y-1",children:[v.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),v.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),v.jsx("div",{className:"pt-6",children:v.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[v.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Zw=F.createContext(),RR=({children:t})=>{const[e,n]=F.useState(null),[i,a]=F.useState(!1),[l,u]=F.useState(!0),[d,h]=F.useState(!0),[p,g]=F.useState(null),[y,w]=F.useState(!1),[b,C]=F.useState(null);F.useEffect(()=>{_()},[]);const _=async()=>{var P,O;try{h(!0),g(null);const M=Xs({baseURL:"/api/apps/public",headers:{"X-App-Id":So.appId},token:So.token,interceptResponses:!0});try{const z=await M.get(`/prod/public-settings/by-id/${So.appId}`);C(z),So.token?await E():(u(!1),a(!1),w(!0)),h(!1)}catch(z){if(console.error("App state check failed:",z),z.status===403&&((O=(P=z.data)==null?void 0:P.extra_data)!=null&&O.reason)){const Y=z.data.extra_data.reason;g(Y==="auth_required"?{type:"auth_required",message:"Authentication required"}:Y==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:Y,message:z.message})}else g({type:"unknown",message:z.message||"Failed to load app"});h(!1),u(!1)}}catch(M){console.error("Unexpected error:",M),g({type:"unknown",message:M.message||"An unexpected error occurred"}),h(!1),u(!1)}},E=async()=>{try{u(!0);const P=await Js.auth.me();n(P),a(!0),u(!1),w(!0)}catch(P){console.error("User auth check failed:",P),u(!1),a(!1),w(!0),(P.status===401||P.status===403)&&g({type:"auth_required",message:"Authentication required"})}},S=(P=!0)=>{n(null),a(!1),P?Js.auth.logout(window.location.href):Js.auth.logout()},A=()=>{Js.auth.redirectToLogin(window.location.href)};return v.jsx(Zw.Provider,{value:{user:e,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:d,authError:p,appPublicSettings:b,authChecked:y,logout:S,navigateToLogin:A,checkUserAuth:E,checkAppState:_},children:t})},AR=()=>{const t=F.useContext(Zw);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},NR=()=>v.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:v.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:v.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),v.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),v.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),v.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[v.jsx("p",{children:"If you believe this is an error, you can:"}),v.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[v.jsx("li",{children:"Verify you are logged in with the correct account"}),v.jsx("li",{children:"Contact the app administrator for access"}),v.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),Wf=F.createContext({});function qf(t){const e=F.useRef(null);return e.current===null&&(e.current=t()),e.current}const iu=F.createContext(null),Hf=F.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});
vendor: 31,382 bytes, lines 166-174
166class OR extends F.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function jR({children:t,isPresent:e}){const n=F.useId(),i=F.useRef(null),a=F.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=F.useContext(Hf);return F.useInsertionEffect(()=>{const{width:u,height:d,top:h,left:p}=a.current;if(e||!i.current||!u||!d)return;i.current.dataset.motionPopId=n;const g=document.createElement("style");return l&&(g.nonce=l),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(`
167          [data-motion-pop-id="${n}"] {
168            position: absolute !important;
169            width: ${u}px !important;
170            height: ${d}px !important;
171            top: ${h}px !important;
172            left: ${p}px !important;
173          }
174        `),()=>{document.head.removeChild(g)}},[e]),v.jsx(OR,{isPresent:e,childRef:i,sizeRef:a,children:F.cloneElement(t,{ref:i})})}const LR=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:l,mode:u})=>{const d=qf(DR),h=F.useId(),p=F.useCallback(y=>{d.set(y,!0);for(const w of d.values())if(!w)return;i&&i()},[d,i]),g=F.useMemo(()=>({id:h,initial:e,isPresent:n,custom:a,onExitComplete:p,register:y=>(d.set(y,!1),()=>d.delete(y))}),l?[Math.random(),p]:[n,p]);return F.useMemo(()=>{d.forEach((y,w)=>d.set(w,!1))},[n]),F.useEffect(()=>{!n&&!d.size&&i&&i()},[n]),u==="popLayout"&&(t=v.jsx(jR,{isPresent:n,children:t})),v.jsx(iu.Provider,{value:g,children:t})};function DR(){return new Map}function ex(t=!0){const e=F.useContext(iu);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=e,l=F.useId();F.useEffect(()=>{t&&a(l)},[t]);const u=F.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const vl=t=>t.key||"";function Vy(t){const e=[];return F.Children.forEach(t,n=>{F.isValidElement(n)&&e.push(n)}),e}const Kf=typeof window<"u",tx=Kf?F.useLayoutEffect:F.useEffect,nx=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync",propagate:u=!1})=>{const[d,h]=ex(u),p=F.useMemo(()=>Vy(t),[t]),g=u&&!d?[]:p.map(vl),y=F.useRef(!0),w=F.useRef(p),b=qf(()=>new Map),[C,_]=F.useState(p),[E,S]=F.useState(p);tx(()=>{y.current=!1,w.current=p;for(let O=0;O<E.length;O++){const M=vl(E[O]);g.includes(M)?b.delete(M):b.get(M)!==!0&&b.set(M,!1)}},[E,g.length,g.join("-")]);const A=[];if(p!==C){let O=[...p];for(let M=0;M<E.length;M++){const z=E[M],Y=vl(z);g.includes(Y)||(O.splice(M,0,z),A.push(z))}l==="wait"&&A.length&&(O=A),S(Vy(O)),_(p);return}const{forceRender:P}=F.useContext(Wf);return v.jsx(v.Fragment,{children:E.map(O=>{const M=vl(O),z=u&&!d?!1:p===E||g.includes(M),Y=()=>{if(b.has(M))b.set(M,!0);else return;let V=!0;b.forEach(Z=>{Z||(V=!1)}),V&&(P==null||P(),S(w.current),u&&(h==null||h()),i&&i())};return v.jsx(LR,{isPresent:z,initial:!y.current||n?void 0:!1,custom:z?void 0:e,presenceAffectsLayout:a,mode:l,onExitComplete:z?void 0:Y,children:O},M)})})},qt=t=>t;let rx=qt;function Qf(t){let e;return()=>(e===void 0&&(e=t()),e)}const wi=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Yn=t=>t*1e3,Xn=t=>t/1e3,MR={useManualTiming:!1};function IR(t){let e=new Set,n=new Set,i=!1,a=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(h.schedule(p),t()),p(u)}const h={schedule:(p,g=!1,y=!1)=>{const b=y&&i?e:n;return g&&l.add(p),b.has(p)||b.add(p),p},cancel:p=>{n.delete(p),l.delete(p)},process:p=>{if(u=p,i){a=!0;return}i=!0,[e,n]=[n,e],e.forEach(d),e.clear(),i=!1,a&&(a=!1,h.process(p))}};return h}const wl=["read","resolveKeyframes","update","preRender","render","postRender"],FR=40;function sx(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=wl.reduce((S,A)=>(S[A]=IR(l),S),{}),{read:d,resolveKeyframes:h,update:p,preRender:g,render:y,postRender:w}=u,b=()=>{const S=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(S-a.timestamp,FR),1),a.timestamp=S,a.isProcessing=!0,d.process(a),h.process(a),p.process(a),g.process(a),y.process(a),w.process(a),a.isProcessing=!1,n&&e&&(i=!1,t(b))},C=()=>{n=!0,i=!0,a.isProcessing||t(b)};return{schedule:wl.reduce((S,A)=>{const P=u[A];return S[A]=(O,M=!1,z=!1)=>(n||C(),P.schedule(O,M,z)),S},{}),cancel:S=>{for(let A=0;A<wl.length;A++)u[wl[A]].cancel(S)},state:a,steps:u}}const{schedule:$e,cancel:Ir,state:gt,steps:vd}=sx(typeof requestAnimationFrame<"u"?requestAnimationFrame:qt,!0),ix=F.createContext({strict:!1}),Uy={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"]},xi={};for(const t in Uy)xi[t]={isEnabled:e=>Uy[t].some(n=>!!e[n])};function VR(t){for(const e in t)xi[e]={...xi[e],...t[e]}}const UR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $l(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||UR.has(t)}let ox=t=>!$l(t);function BR(t){t&&(ox=e=>e.startsWith("on")?!$l(e):t(e))}try{BR(require("@emotion/is-prop-valid").default)}catch{}function zR(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(ox(a)||n===!0&&$l(a)||!e&&!$l(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function $R(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,a)=>a==="create"?t:(e.has(a)||e.set(a,t(a)),e.get(a))})}const ou=F.createContext({});function Do(t){return typeof t=="string"||Array.isArray(t)}function au(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Gf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yf=["initial",...Gf];function lu(t){return au(t.animate)||Yf.some(e=>Do(t[e]))}function ax(t){return!!(lu(t)||t.variants)}function WR(t,e){if(lu(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Do(n)?n:void 0,animate:Do(i)?i:void 0}}return t.inherit!==!1?e:{}}function qR(t){const{initial:e,animate:n}=WR(t,F.useContext(ou));return F.useMemo(()=>({initial:e,animate:n}),[By(e),By(n)])}function By(t){return Array.isArray(t)?t.join(" "):t}const HR=Symbol.for("motionComponentSymbol");function Zs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function KR(t,e,n){return F.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Zs(n)&&(n.current=i))},[e])}const Xf=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),QR="framerAppearId",lx="data-"+Xf(QR),{schedule:Jf}=sx(queueMicrotask,!1),ux=F.createContext({});function GR(t,e,n,i,a){var l,u;const{visualElement:d}=F.useContext(ou),h=F.useContext(ix),p=F.useContext(iu),g=F.useContext(Hf).reducedMotion,y=F.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(t,{visualState:e,parent:d,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const w=y.current,b=F.useContext(ux);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&YR(y.current,n,a,b);const C=F.useRef(!1);F.useInsertionEffect(()=>{w&&C.current&&w.update(n,p)});const _=n[lx],E=F.useRef(!!_&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,_))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,_)));return tx(()=>{w&&(C.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),Jf.render(w.render),E.current&&w.animationState&&w.animationState.animateChanges())}),F.useEffect(()=>{w&&(!E.current&&w.animationState&&w.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,_)}),E.current=!1))}),w}function YR(t,e,n,i){const{layoutId:a,layout:l,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:cx(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||d&&Zs(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:p})}function cx(t){if(t)return t.options.allowProjection!==!1?t.projection:cx(t.parent)}function XR({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:a}){var l,u;t&&VR(t);function d(p,g){let y;const w={...F.useContext(Hf),...p,layoutId:JR(p)},{isStatic:b}=w,C=qR(p),_=i(p,b);if(!b&&Kf){ZR();const E=eA(w);y=E.MeasureLayout,C.visualElement=GR(a,_,w,e,E.ProjectionNode)}return v.jsxs(ou.Provider,{value:C,children:[y&&C.visualElement?v.jsx(y,{visualElement:C.visualElement,...w}):null,n(a,p,KR(_,C.visualElement,g),_,b,C.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(u=(l=a.displayName)!==null&&l!==void 0?l:a.name)!==null&&u!==void 0?u:""})`}`;const h=F.forwardRef(d);return h[HR]=a,h}function JR({layoutId:t}){const e=F.useContext(Wf).id;return e&&t!==void 0?e+"-"+t:t}function ZR(t,e){F.useContext(ix).strict}function eA(t){const{drag:e,layout:n}=xi;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const tA=["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 Zf(t){return typeof t!="string"||t.includes("-")?!1:!!(tA.indexOf(t)>-1||/[A-Z]/u.test(t))}function zy(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function eh(t,e,n,i){if(typeof e=="function"){const[a,l]=zy(i);e=e(n!==void 0?n:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=zy(i);e=e(n!==void 0?n:t.custom,a,l)}return e}const of=t=>Array.isArray(t),nA=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),rA=t=>of(t)?t[t.length-1]||0:t,Ct=t=>!!(t&&t.getVelocity);function Ol(t){const e=Ct(t)?t.get():t;return nA(e)?e.toValue():e}function sA({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,a,l){const u={latestValues:iA(i,a,l,t),renderState:e()};return n&&(u.onMount=d=>n({props:i,current:d,...u}),u.onUpdate=d=>n(d)),u}const dx=t=>(e,n)=>{const i=F.useContext(ou),a=F.useContext(iu),l=()=>sA(t,e,i,a);return n?l():qf(l)};function iA(t,e,n,i){const a={},l=i(t,{});for(const w in l)a[w]=Ol(l[w]);let{initial:u,animate:d}=t;const h=lu(t),p=ax(t);e&&p&&!h&&t.inherit!==!1&&(u===void 0&&(u=e.initial),d===void 0&&(d=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?d:u;if(y&&typeof y!="boolean"&&!au(y)){const w=Array.isArray(y)?y:[y];for(let b=0;b<w.length;b++){const C=eh(t,w[b]);if(C){const{transitionEnd:_,transition:E,...S}=C;for(const A in S){let P=S[A];if(Array.isArray(P)){const O=g?P.length-1:0;P=P[O]}P!==null&&(a[A]=P)}for(const A in _)a[A]=_[A]}}}return a}const ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_s=new Set(ki),fx=t=>e=>typeof e=="string"&&e.startsWith(t),hx=fx("--"),oA=fx("var(--"),th=t=>oA(t)?aA.test(t.split("/*")[0].trim()):!1,aA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,px=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Jn=(t,e,n)=>n>e?e:n<t?t:n,Ci={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Mo={...Ci,transform:t=>Jn(0,1,t)},xl={...Ci,default:1},Xo=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),_r=Xo("deg"),On=Xo("%"),me=Xo("px"),lA=Xo("vh"),uA=Xo("vw"),$y={...On,parse:t=>On.parse(t)/100,transform:t=>On.transform(t*100)},cA={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},dA={rotate:_r,rotateX:_r,rotateY:_r,rotateZ:_r,scale:xl,scaleX:xl,scaleY:xl,scaleZ:xl,skew:_r,skewX:_r,skewY:_r,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Mo,originX:$y,originY:$y,originZ:me},Wy={...Ci,transform:Math.round},nh={...cA,...dA,zIndex:Wy,size:me,fillOpacity:Mo,strokeOpacity:Mo,numOctaves:Wy},fA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hA=ki.length;function pA(t,e,n){let i="",a=!0;for(let l=0;l<hA;l++){const u=ki[l],d=t[u];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(u.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||n){const p=px(d,nh[u]);if(!h){a=!1;const g=fA[u]||u;i+=`${g}(${p}) `}n&&(e[u]=p)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function rh(t,e,n){const{style:i,vars:a,transformOrigin:l}=t;let u=!1,d=!1;for(const h in e){const p=e[h];if(_s.has(h)){u=!0;continue}else if(hx(h)){a[h]=p;continue}else{const g=px(p,nh[h]);h.startsWith("origin")?(d=!0,l[h]=g):i[h]=g}}if(e.transform||(u||n?i.transform=pA(e,t.transform,n):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:g=0}=l;i.transformOrigin=`${h} ${p} ${g}`}}const mA={offset:"stroke-dashoffset",array:"stroke-dasharray"},gA={offset:"strokeDashoffset",array:"strokeDasharray"};function yA(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?mA:gA;t[l.offset]=me.transform(-i);const u=me.transform(e),d=me.transform(n);t[l.array]=`${u} ${d}`}function qy(t,e,n){return typeof t=="string"?t:me.transform(e+n*t)}function vA(t,e,n){const i=qy(e,t.x,t.width),a=qy(n,t.y,t.height);return`${i} ${a}`}function sh(t,{attrX:e,attrY:n,attrScale:i,originX:a,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:h=0,...p},g,y){if(rh(t,p,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:b,dimensions:C}=t;w.transform&&(C&&(b.transform=w.transform),delete w.transform),C&&(a!==void 0||l!==void 0||b.transform)&&(b.transformOrigin=vA(C,a!==void 0?a:.5,l!==void 0?l:.5)),e!==void 0&&(w.x=e),n!==void 0&&(w.y=n),i!==void 0&&(w.scale=i),u!==void 0&&yA(w,u,d,h,!1)}const ih=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mx=()=>({...ih(),attrs:{}}),oh=t=>typeof t=="string"&&t.toLowerCase()==="svg";function gx(t,{style:e,vars:n},i,a){Object.assign(t.style,e,a&&a.getProjectionStyles(i));for(const l in n)t.style.setProperty(l,n[l])}const yx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vx(t,e,n,i){gx(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(yx.has(a)?a:Xf(a),e.attrs[a])}const Wl={};function wA(t){Object.assign(Wl,t)}function wx(t,{layout:e,layoutId:n}){return _s.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Wl[t]||t==="opacity")}function ah(t,e,n){var i;const{style:a}=t,l={};for(const u in a)(Ct(a[u])||e.style&&Ct(e.style[u])||wx(u,t)||((i=n==null?void 0:n.getValue(u))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[u]=a[u]);return l}function xx(t,e,n){const i=ah(t,e,n);for(const a in t)if(Ct(t[a])||Ct(e[a])){const l=ki.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}function xA(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Hy=["x","y","width","height","cx","cy","r"],bA={useVisualState:dx({scrapeMotionValuesFromProps:xx,createRenderState:mx,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:a})=>{if(!n)return;let l=!!t.drag;if(!l){for(const d in a)if(_s.has(d)){l=!0;break}}if(!l)return;let u=!e;if(e)for(let d=0;d<Hy.length;d++){const h=Hy[d];t[h]!==e[h]&&(u=!0)}u&&$e.read(()=>{xA(n,i),$e.render(()=>{sh(i,a,oh(n.tagName),t.transformTemplate),vx(n,i)})})}})},SA={useVisualState:dx({scrapeMotionValuesFromProps:ah,createRenderState:ih})};function bx(t,e,n){for(const i in e)!Ct(e[i])&&!wx(i,n)&&(t[i]=e[i])}function EA({transformTemplate:t},e){return F.useMemo(()=>{const n=ih();return rh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function _A(t,e){const n=t.style||{},i={};return bx(i,n,t),Object.assign(i,EA(t,e)),i}function kA(t,e){const n={},i=_A(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function CA(t,e,n,i){const a=F.useMemo(()=>{const l=mx();return sh(l,e,oh(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};bx(l,t.style,t),a.style={...l,...a.style}}return a}function TA(t=!1){return(n,i,a,{latestValues:l},u)=>{const h=(Zf(n)?CA:kA)(i,l,u,n),p=zR(i,typeof n=="string",t),g=n!==F.Fragment?{...p,...h,ref:a}:{},{children:y}=i,w=F.useMemo(()=>Ct(y)?y.get():y,[y]);return F.createElement(n,{...g,children:w})}}function PA(t,e){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const u={...Zf(i)?bA:SA,preloadedFeatures:t,useRender:TA(a),createVisualElement:e,Component:i};return XR(u)}}function Sx(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function uu(t,e,n){const i=t.getProps();return eh(i,e,n!==void 0?n:i.custom,t)}const RA=Qf(()=>window.ScrollTimeline!==void 0);class AA{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(a=>{if(RA()&&a.attachTimeline)return a.attachTimeline(e);if(typeof n=="function")return n(a)});return()=>{i.forEach((a,l)=>{a&&a(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class NA extends AA{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function lh(t,e){return t?t[e]||t.default||t:void 0}const af=2e4;function Ex(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<af;)e+=n,i=t.next(e);return e>=af?1/0:e}function uh(t){return typeof t=="function"}function Ky(t,e){t.timeline=e,t.onfinish=null}const ch=t=>Array.isArray(t)&&typeof t[0]=="number",OA={linearEasing:void 0};function jA(t,e){const n=Qf(t);return()=>{var i;return(i=OA[e])!==null&&i!==void 0?i:n()}}const ql=jA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_x=(t,e,n=10)=>{let i="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)i+=t(wi(0,a-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function kx(t){return!!(typeof t=="function"&&ql()||!t||typeof t=="string"&&(t in lf||ql())||ch(t)||Array.isArray(t)&&t.every(kx))}const Eo=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,lf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Eo([0,.65,.55,1]),circOut:Eo([.55,0,1,.45]),backIn:Eo([.31,.01,.66,-.59]),backOut:Eo([.33,1.53,.69,.99])};function Cx(t,e){if(t)return typeof t=="function"&&ql()?_x(t,e):ch(t)?Eo(t):Array.isArray(t)?t.map(n=>Cx(n,e)||lf.easeOut):lf[t]}const vn={x:!1,y:!1};function Tx(){return vn.x||vn.y}function LA(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let a=document;const l=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function Px(t,e){const n=LA(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function Qy(t){return e=>{e.pointerType==="touch"||Tx()||t(e)}}function DA(t,e,n={}){const[i,a,l]=Px(t,n),u=Qy(d=>{const{target:h}=d,p=e(d);if(typeof p!="function"||!h)return;const g=Qy(y=>{p(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,a)});return i.forEach(d=>{d.addEventListener("pointerenter",u,a)}),l}const Rx=(t,e)=>e?t===e?!0:Rx(t,e.parentElement):!1,dh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,MA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function IA(t){return MA.has(t.tagName)||t.tabIndex!==-1}const _o=new WeakSet;function Gy(t){return e=>{e.key==="Enter"&&t(e)}}function wd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const FA=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Gy(()=>{if(_o.has(n))return;wd(n,"down");const a=Gy(()=>{wd(n,"up")}),l=()=>wd(n,"cancel");n.addEventListener("keyup",a,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Yy(t){return dh(t)&&!Tx()}function VA(t,e,n={}){const[i,a,l]=Px(t,n),u=d=>{const h=d.currentTarget;if(!Yy(d)||_o.has(h))return;_o.add(h);const p=e(d),g=(b,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),!(!Yy(b)||!_o.has(h))&&(_o.delete(h),typeof p=="function"&&p(b,{success:C}))},y=b=>{g(b,n.useGlobalTarget||Rx(h,b.target))},w=b=>{g(b,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",w,a)};return i.forEach(d=>{!IA(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),d.addEventListener("focus",p=>FA(p,a),a)}),l}function UA(t){return t==="x"||t==="y"?vn[t]?null:(vn[t]=!0,()=>{vn[t]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}const Ax=new Set(["width","height","top","left","right","bottom",...ki]);let jl;function BA(){jl=void 0}const jn={now:()=>(jl===void 0&&jn.set(gt.isProcessing||MR.useManualTiming?gt.timestamp:performance.now()),jl),set:t=>{jl=t,queueMicrotask(BA)}};function fh(t,e){t.indexOf(e)===-1&&t.push(e)}function hh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ph{constructor(){this.subscriptions=[]}add(e){return fh(this.subscriptions,e),()=>hh(this.subscriptions,e)}notify(e,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,n,i);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Nx(t,e){return e?t*(1e3/e):0}const Xy=30,zA=t=>!isNaN(parseFloat(t));class $A{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const l=jn.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=jn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=zA(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ph);const i=this.events[e].add(n);return e==="change"?()=>{i(),$e.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=jn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Xy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Xy);return Nx(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Io(t,e){return new $A(t,e)}function WA(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Io(n))}function qA(t,e){const n=uu(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const d=rA(l[u]);WA(t,u,d)}}function HA(t){return!!(Ct(t)&&t.add)}function uf(t,e){const n=t.getValue("willChange");if(HA(n))return n.add(e)}function Ox(t){return t.props[lx]}const jx=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,KA=1e-7,QA=12;function GA(t,e,n,i,a){let l,u,d=0;do u=e+(n-e)/2,l=jx(u,i,a)-t,l>0?n=u:e=u;while(Math.abs(l)>KA&&++d<QA);return u}function Jo(t,e,n,i){if(t===e&&n===i)return qt;const a=l=>GA(l,0,1,t,n);return l=>l===0||l===1?l:jx(a(l),e,i)}const Lx=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Dx=t=>e=>1-t(1-e),Mx=Jo(.33,1.53,.69,.99),mh=Dx(Mx),Ix=Lx(mh),Fx=t=>(t*=2)<1?.5*mh(t):.5*(2-Math.pow(2,-10*(t-1))),gh=t=>1-Math.sin(Math.acos(t)),Vx=Dx(gh),Ux=Lx(gh),Bx=t=>/^0[^.\s]+$/u.test(t);function YA(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bx(t):!0}const Po=t=>Math.round(t*1e5)/1e5,yh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XA(t){return t==null}const JA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vh=(t,e)=>n=>!!(typeof n=="string"&&JA.test(n)&&n.startsWith(t)||e&&!XA(n)&&Object.prototype.hasOwnProperty.call(n,e)),zx=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,d]=i.match(yh);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},ZA=t=>Jn(0,255,t),xd={...Ci,transform:t=>Math.round(ZA(t))},ls={test:vh("rgb","red"),parse:zx("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+xd.transform(t)+", "+xd.transform(e)+", "+xd.transform(n)+", "+Po(Mo.transform(i))+")"};function eN(t){let e="",n="",i="",a="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const cf={test:vh("#"),parse:eN,transform:ls.transform},ei={test:vh("hsl","hue"),parse:zx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+On.transform(Po(e))+", "+On.transform(Po(n))+", "+Po(Mo.transform(i))+")"},kt={test:t=>ls.test(t)||cf.test(t)||ei.test(t),parse:t=>ls.test(t)?ls.parse(t):ei.test(t)?ei.parse(t):cf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ls.transform(t):ei.transform(t)},tN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(yh))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(tN))===null||n===void 0?void 0:n.length)||0)>0}const $x="number",Wx="color",rN="var",sN="var(",Jy="${}",iN=/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 Fo(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(iN,h=>(kt.test(h)?(i.color.push(l),a.push(Wx),n.push(kt.parse(h))):h.startsWith(sN)?(i.var.push(l),a.push(rN),n.push(h)):(i.number.push(l),a.push($x),n.push(parseFloat(h))),++l,Jy)).split(Jy);return{values:n,split:d,indexes:i,types:a}}function qx(t){return Fo(t).values}function Hx(t){const{split:e,types:n}=Fo(t),i=e.length;return a=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],a[u]!==void 0){const d=n[u];d===$x?l+=Po(a[u]):d===Wx?l+=kt.transform(a[u]):l+=a[u]}return l}}const oN=t=>typeof t=="number"?0:t;function aN(t){const e=qx(t);return Hx(t)(e.map(oN))}const Fr={test:nN,parse:qx,createTransformer:Hx,getAnimatableNone:aN},lN=new Set(["brightness","contrast","saturate","opacity"]);function uN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(yh)||[];if(!i)return t;const a=n.replace(i,"");let l=lN.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const cN=/\b([a-z-]*)\(.*?\)/gu,df={...Fr,getAnimatableNone:t=>{const e=t.match(cN);return e?e.map(uN).join(" "):t}},dN={...nh,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:df,WebkitFilter:df},wh=t=>dN[t];function Kx(t,e){let n=wh(t);return n!==df&&(n=Fr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const fN=new Set(["auto","none","0"]);function hN(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!fN.has(l)&&Fo(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=Kx(n,a)}const Zy=t=>t===Ci||t===me,ev=(t,e)=>parseFloat(t.split(", ")[e]),tv=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return ev(a[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?ev(l[1],t):0}},pN=new Set(["x","y","z"]),mN=ki.filter(t=>!pN.has(t));function gN(t){const e=[];
vendor: 8,524 bytes, line 174
174return mN.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const bi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tv(4,13),y:tv(5,14)};bi.translateX=bi.x;bi.translateY=bi.y;const ws=new Set;let ff=!1,hf=!1;function Qx(){if(hf){const t=Array.from(ws).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const a=gN(i);a.length&&(n.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([l,u])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}hf=!1,ff=!1,ws.forEach(t=>t.complete()),ws.clear()}function Gx(){ws.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(hf=!0)})}function yN(){Gx(),Qx()}class xh{constructor(e,n,i,a,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ws.add(this),ff||(ff=!0,$e.read(Gx),$e.resolveKeyframes(Qx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:a}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const u=a==null?void 0:a.get(),d=e[e.length-1];if(u!==void 0)e[0]=u;else if(i&&n){const h=i.readValue(n,d);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=d),a&&u===void 0&&a.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ws.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ws.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Yx=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),vN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wN(t){const e=vN.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function Xx(t,e,n=1){const[i,a]=wN(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return Yx(u)?parseFloat(u):u}return th(a)?Xx(a,e,n+1):a}const Jx=t=>e=>e.test(t),xN={test:t=>t==="auto",parse:t=>t},Zx=[Ci,me,On,_r,uA,lA,xN],nv=t=>Zx.find(Jx(t));class eb extends xh{constructor(e,n,i,a,l){super(e,n,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let p=e[h];if(typeof p=="string"&&(p=p.trim(),th(p))){const g=Xx(p,n.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Ax.has(i)||e.length!==2)return;const[a,l]=e,u=nv(a),d=nv(l);if(u!==d)if(Zy(u)&&Zy(d))for(let h=0;h<e.length;h++){const p=e[h];typeof p=="string"&&(e[h]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let a=0;a<e.length;a++)YA(e[a])&&i.push(a);i.length&&hN(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bi[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=a.length-1,d=a[u];a[u]=bi[i](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const rv=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Fr.test(t)||t==="0")&&!t.startsWith("url("));function bN(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function SN(t,e,n,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=rv(a,e),d=rv(l,e);return!u||!d?!1:bN(t)||(n==="spring"||uh(n))&&i}const EN=t=>t!==null;function cu(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(EN),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}const _N=40;class tb{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=jn.now(),this.options={autoplay:e,delay:n,type:i,repeat:a,repeatDelay:l,repeatType:u,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>_N?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&yN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=jn.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:l,delay:u,onComplete:d,onUpdate:h,isGenerator:p}=this.options;if(!p&&!SN(e,i,a,l))if(u)this.options.duration=0;else{h&&h(cu(e,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,n);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...g},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Ke=(t,e,n)=>t+(e-t)*n;function bd(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function kN({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,l=0,u=0;if(!e)a=l=u=n;else{const d=n<.5?n*(1+e):n+e-n*e,h=2*n-d;a=bd(h,d,t+1/3),l=bd(h,d,t),u=bd(h,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Hl(t,e){return n=>n>0?e:t}const Sd=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},CN=[cf,ls,ei],TN=t=>CN.find(e=>e.test(t));function sv(t){const e=TN(t);if(!e)return!1;let n=e.parse(t);return e===ei&&(n=kN(n)),n}const iv=(t,e)=>{const n=sv(t),i=sv(e);if(!n||!i)return Hl(t,e);const a={...n};return l=>(a.red=Sd(n.red,i.red,l),a.green=Sd(n.green,i.green,l),a.blue=Sd(n.blue,i.blue,l),a.alpha=Ke(n.alpha,i.alpha,l),ls.transform(a))},PN=(t,e)=>n=>e(t(n)),Zo=(...t)=>t.reduce(PN),pf=new Set(["none","hidden"]);function RN(t,e){return pf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function AN(t,e){return n=>Ke(t,e,n)}function bh(t){return typeof t=="number"?AN:typeof t=="string"?th(t)?Hl:kt.test(t)?iv:jN:Array.isArray(t)?nb:typeof t=="object"?kt.test(t)?iv:NN:Hl}function nb(t,e){const n=[...t],i=n.length,a=t.map((l,u)=>bh(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function NN(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=bh(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function ON(t,e){var n;const i=[],a={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const u=e.types[l],d=t.indexes[u][a[u]],h=(n=t.values[d])!==null&&n!==void 0?n:0;i[l]=h,a[u]++}return i}const jN=(t,e)=>{const n=Fr.createTransformer(e),i=Fo(t),a=Fo(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?pf.has(t)&&!a.values.length||pf.has(e)&&!i.values.length?RN(t,e):Zo(nb(ON(i,a),a.values),n):Hl(t,e)};function rb(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Ke(t,e,n):bh(t)(t,e)}const LN=5;function sb(t,e,n){const i=Math.max(e-LN,0);return Nx(n-t(i),e-i)}const Ye={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},Ed=.001;function DN({duration:t=Ye.duration,bounce:e=Ye.bounce,velocity:n=Ye.velocity,mass:i=Ye.mass}){let a,l,u=1-e;u=Jn(Ye.minDamping,Ye.maxDamping,u),t=Jn(Ye.minDuration,Ye.maxDuration,
vendor: 61,918 bytes, line 174
174Xn(t)),u<1?(a=p=>{const g=p*u,y=g*t,w=g-n,b=mf(p,u),C=Math.exp(-y);return Ed-w/b*C},l=p=>{const y=p*u*t,w=y*n+n,b=Math.pow(u,2)*Math.pow(p,2)*t,C=Math.exp(-y),_=mf(Math.pow(p,2),u);return(-a(p)+Ed>0?-1:1)*((w-b)*C)/_}):(a=p=>{const g=Math.exp(-p*t),y=(p-n)*t+1;return-Ed+g*y},l=p=>{const g=Math.exp(-p*t),y=(n-p)*(t*t);return g*y});const d=5/t,h=IN(a,l,d);if(t=Yn(t),isNaN(h))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:t};{const p=Math.pow(h,2)*i;return{stiffness:p,damping:u*2*Math.sqrt(i*p),duration:t}}}const MN=12;function IN(t,e,n){let i=n;for(let a=1;a<MN;a++)i=i-t(i)/e(i);return i}function mf(t,e){return t*Math.sqrt(1-e*e)}const FN=["duration","bounce"],VN=["stiffness","damping","mass"];function ov(t,e){return e.some(n=>t[n]!==void 0)}function UN(t){let e={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...t};if(!ov(t,VN)&&ov(t,FN))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*Jn(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Ye.mass,stiffness:a,damping:l}}else{const n=DN(t);e={...e,...n,mass:Ye.mass},e.isResolvedFromDuration=!0}return e}function ib(t=Ye.visualDuration,e=Ye.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:p,mass:g,duration:y,velocity:w,isResolvedFromDuration:b}=UN({...n,velocity:-Xn(n.velocity||0)}),C=w||0,_=p/(2*Math.sqrt(h*g)),E=u-l,S=Xn(Math.sqrt(h/g)),A=Math.abs(E)<5;i||(i=A?Ye.restSpeed.granular:Ye.restSpeed.default),a||(a=A?Ye.restDelta.granular:Ye.restDelta.default);let P;if(_<1){const M=mf(S,_);P=z=>{const Y=Math.exp(-_*S*z);return u-Y*((C+_*S*E)/M*Math.sin(M*z)+E*Math.cos(M*z))}}else if(_===1)P=M=>u-Math.exp(-S*M)*(E+(C+S*E)*M);else{const M=S*Math.sqrt(_*_-1);P=z=>{const Y=Math.exp(-_*S*z),V=Math.min(M*z,300);return u-Y*((C+_*S*E)*Math.sinh(V)+M*E*Math.cosh(V))/M}}const O={calculatedDuration:b&&y||null,next:M=>{const z=P(M);if(b)d.done=M>=y;else{let Y=0;_<1&&(Y=M===0?Yn(C):sb(P,M,z));const V=Math.abs(Y)<=i,Z=Math.abs(u-z)<=a;d.done=V&&Z}return d.value=d.done?u:z,d},toString:()=>{const M=Math.min(Ex(O),af),z=_x(Y=>O.next(M*Y).value,M,30);return M+"ms "+z}};return O}function av({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:h,restDelta:p=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},b=V=>d!==void 0&&V<d||h!==void 0&&V>h,C=V=>d===void 0?h:h===void 0||Math.abs(d-V)<Math.abs(h-V)?d:h;let _=n*e;const E=y+_,S=u===void 0?E:u(E);S!==E&&(_=S-y);const A=V=>-_*Math.exp(-V/i),P=V=>S+A(V),O=V=>{const Z=A(V),ue=P(V);w.done=Math.abs(Z)<=p,w.value=w.done?S:ue};let M,z;const Y=V=>{b(w.value)&&(M=V,z=ib({keyframes:[w.value,C(w.value)],velocity:sb(P,V,w.value),damping:a,stiffness:l,restDelta:p,restSpeed:g}))};return Y(0),{calculatedDuration:null,next:V=>{let Z=!1;return!z&&M===void 0&&(Z=!0,O(V),Y(V)),M!==void 0&&V>=M?z.next(V-M):(!Z&&O(V),w)}}}const BN=Jo(.42,0,1,1),zN=Jo(0,0,.58,1),ob=Jo(.42,0,.58,1),$N=t=>Array.isArray(t)&&typeof t[0]!="number",WN={linear:qt,easeIn:BN,easeInOut:ob,easeOut:zN,circIn:gh,circInOut:Ux,circOut:Vx,backIn:mh,backInOut:Ix,backOut:Mx,anticipate:Fx},lv=t=>{if(ch(t)){rx(t.length===4);const[e,n,i,a]=t;return Jo(e,n,i,a)}else if(typeof t=="string")return WN[t];return t};function qN(t,e,n){const i=[],a=n||rb,l=t.length-1;for(let u=0;u<l;u++){let d=a(t[u],t[u+1]);if(e){const h=Array.isArray(e)?e[u]||qt:e;d=Zo(h,d)}i.push(d)}return i}function HN(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(rx(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=qN(e,i,a),h=d.length,p=g=>{if(u&&g<t[0])return e[0];let y=0;if(h>1)for(;y<t.length-2&&!(g<t[y+1]);y++);const w=wi(t[y],t[y+1],g);return d[y](w)};return n?g=>p(Jn(t[0],t[l-1],g)):p}function KN(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=wi(0,e,i);t.push(Ke(n,1,a))}}function QN(t){const e=[0];return KN(e,t.length-1),e}function GN(t,e){return t.map(n=>n*e)}function YN(t,e){return t.map(()=>e||ob).splice(0,t.length-1)}function Kl({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=$N(i)?i.map(lv):lv(i),l={done:!1,value:e[0]},u=GN(n&&n.length===e.length?n:QN(e),t),d=HN(u,e,{ease:Array.isArray(a)?a:YN(e,a)});return{calculatedDuration:t,next:h=>(l.value=d(h),l.done=h>=t,l)}}const XN=t=>{const e=({timestamp:n})=>t(n);return{start:()=>$e.update(e,!0),stop:()=>Ir(e),now:()=>gt.isProcessing?gt.timestamp:jn.now()}},JN={decay:av,inertia:av,tween:Kl,keyframes:Kl,spring:ib},ZN=t=>t/100;class Sh extends tb{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:i,element:a,keyframes:l}=this.options,u=(a==null?void 0:a.KeyframeResolver)||xh,d=(h,p)=>this.onKeyframesResolved(h,p);this.resolver=new u(l,d,n,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=this.options,d=uh(n)?n:JN[n]||Kl;let h,p;d!==Kl&&typeof e[0]!="number"&&(h=Zo(ZN,rb(e[0],e[1])),e=[0,100]);const g=d({...this.options,keyframes:e});l==="mirror"&&(p=d({...this.options,keyframes:[...e].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=Ex(g));const{calculatedDuration:y}=g,w=y+a,b=w*(i+1)-a;return{generator:g,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:w,totalDuration:b}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:a,generator:l,mirroredGenerator:u,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:p,totalDuration:g,resolvedDuration:y}=i;if(this.startTime===null)return l.next(0);const{delay:w,repeat:b,repeatType:C,repeatDelay:_,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const S=this.currentTime-w*(this.speed>=0?1:-1),A=this.speed>=0?S<0:S>g;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let P=this.currentTime,O=l;if(b){const V=Math.min(this.currentTime,g)/y;let Z=Math.floor(V),ue=V%1;!ue&&V>=1&&(ue=1),ue===1&&Z--,Z=Math.min(Z,b+1),!!(Z%2)&&(C==="reverse"?(ue=1-ue,_&&(ue-=_/y)):C==="mirror"&&(O=u)),P=Jn(0,1,ue)*y}const M=A?{done:!1,value:h[0]}:O.next(P);d&&(M.value=d(M.value));let{done:z}=M;!A&&p!==null&&(z=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return Y&&a!==void 0&&(M.value=cu(h,this.options,a)),E&&E(M.value),Y&&this.finish(),M}get duration(){const{resolved:e}=this;return e?Xn(e.calculatedDuration):0}get time(){return Xn(this.currentTime)}set time(e){e=Yn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Xn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=XN,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const e2=new Set(["opacity","clipPath","filter","transform"]);function t2(t,e,n,{delay:i=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:d="easeInOut",times:h}={}){const p={[e]:n};h&&(p.offset=h);const g=Cx(d,a);return Array.isArray(g)&&(p.easing=g),t.animate(p,{delay:i,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const n2=Qf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ql=10,r2=2e4;function s2(t){return uh(t.type)||t.type==="spring"||!kx(t.ease)}function i2(t,e){const n=new Sh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const a=[];let l=0;for(;!i.done&&l<r2;)i=n.sample(l),a.push(i.value),l+=Ql;return{times:void 0,keyframes:a,duration:l-Ql,ease:"linear"}}const ab={anticipate:Fx,backInOut:Ix,circInOut:Ux};function o2(t){return t in ab}class uv extends tb{constructor(e){super(e);const{name:n,motionValue:i,element:a,keyframes:l}=this.options;this.resolver=new eb(l,(u,d)=>this.onKeyframesResolved(u,d),n,i,a),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:a,ease:l,type:u,motionValue:d,name:h,startTime:p}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&ql()&&o2(l)&&(l=ab[l]),s2(this.options)){const{onComplete:y,onUpdate:w,motionValue:b,element:C,..._}=this.options,E=i2(e,_);e=E.keyframes,e.length===1&&(e[1]=e[0]),i=E.duration,a=E.times,l=E.ease,u="keyframes"}const g=t2(d.owner.current,h,e,{...this.options,duration:i,times:a,ease:l});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(Ky(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(cu(e,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:a,type:u,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Xn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Xn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Yn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return qt;const{animation:i}=n;Ky(i,e)}return qt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:a,type:l,ease:u,times:d}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:g,onComplete:y,element:w,...b}=this.options,C=new Sh({...b,keyframes:i,duration:a,type:l,ease:u,times:d,isGenerator:!0}),_=Yn(this.time);p.setWithVelocity(C.sample(_-Ql).value,C.sample(_).value,Ql)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:a,repeatType:l,damping:u,type:d}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=n.owner.getProps();return n2()&&i&&e2.has(i)&&!h&&!p&&!a&&l!=="mirror"&&u!==0&&d!=="inertia"}}const a2={type:"spring",stiffness:500,damping:25,restSpeed:10},l2=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),u2={type:"keyframes",duration:.8},c2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},d2=(t,{keyframes:e})=>e.length>2?u2:_s.has(t)?t.startsWith("scale")?l2(e[1]):a2:c2;function f2({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:d,from:h,elapsed:p,...g}){return!!Object.keys(g).length}const Eh=(t,e,n,i={},a,l)=>u=>{const d=lh(i,t)||{},h=d.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Yn(h);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:w=>{e.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};f2(d)||(g={...g,...d2(t,g)}),g.duration&&(g.duration=Yn(g.duration)),g.repeatDelay&&(g.repeatDelay=Yn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const w=cu(g.keyframes,d);if(w!==void 0)return $e.update(()=>{g.onUpdate(w),g.onComplete()}),new NA([])}return!l&&uv.supports(g)?new uv(g):new Sh(g)};function h2({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function lb(t,e,{delay:n=0,transitionOverride:i,type:a}={}){var l;let{transition:u=t.getDefaultTransition(),transitionEnd:d,...h}=e;i&&(u=i);const p=[],g=a&&t.animationState&&t.animationState.getState()[a];for(const y in h){const w=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),b=h[y];if(b===void 0||g&&h2(g,y))continue;const C={delay:n,...lh(u||{},y)};let _=!1;if(window.MotionHandoffAnimation){const S=Ox(t);if(S){const A=window.MotionHandoffAnimation(S,y,$e);A!==null&&(C.startTime=A,_=!0)}}uf(t,y),w.start(Eh(y,w,b,t.shouldReduceMotion&&Ax.has(y)?{type:!1}:C,t,_));const E=w.animation;E&&p.push(E)}return d&&Promise.all(p).then(()=>{$e.update(()=>{d&&qA(t,d)})}),p}function gf(t,e,n={}){var i;const a=uu(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(l=n.transitionOverride);const u=a?()=>Promise.all(lb(t,a,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=l;return p2(t,e,g+p,y,w,n)}:()=>Promise.resolve(),{when:h}=l;if(h){const[p,g]=h==="beforeChildren"?[u,d]:[d,u];return p().then(()=>g())}else return Promise.all([u(),d(n.delay)])}function p2(t,e,n=0,i=0,a=1,l){const u=[],d=(t.variantChildren.size-1)*i,h=a===1?(p=0)=>p*i:(p=0)=>d-p*i;return Array.from(t.variantChildren).sort(m2).forEach((p,g)=>{p.notify("AnimationStart",e),u.push(gf(p,e,{...l,delay:n+h(g)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(u)}function m2(t,e){return t.sortNodePosition(e)}function g2(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>gf(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=gf(t,e,n);else{const a=typeof e=="function"?uu(t,e,n.custom):e;i=Promise.all(lb(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const y2=Yf.length;function ub(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ub(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<y2;n++){const i=Yf[n],a=t.props[i];(Do(a)||a===!1)&&(e[i]=a)}return e}const v2=[...Gf].reverse(),w2=Gf.length;function x2(t){return e=>Promise.all(e.map(({animation:n,options:i})=>g2(t,n,i)))}function b2(t){let e=x2(t),n=cv(),i=!0;const a=h=>(p,g)=>{var y;const w=uu(t,g,h==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(w){const{transition:b,transitionEnd:C,..._}=w;p={...p,..._,...C}}return p};function l(h){e=h(t)}function u(h){const{props:p}=t,g=ub(t.parent)||{},y=[],w=new Set;let b={},C=1/0;for(let E=0;E<w2;E++){const S=v2[E],A=n[S],P=p[S]!==void 0?p[S]:g[S],O=Do(P),M=S===h?A.isActive:null;M===!1&&(C=E);let z=P===g[S]&&P!==p[S]&&O;if(z&&i&&t.manuallyAnimateOnMount&&(z=!1),A.protectedKeys={...b},!A.isActive&&M===null||!P&&!A.prevProp||au(P)||typeof P=="boolean")continue;const Y=S2(A.prevProp,P);let V=Y||S===h&&A.isActive&&!z&&O||E>C&&O,Z=!1;const ue=Array.isArray(P)?P:[P];let Ee=ue.reduce(a(S),{});M===!1&&(Ee={});const{prevResolvedValues:Ne={}}=A,Le={...Ne,...Ee},Te=le=>{V=!0,w.has(le)&&(Z=!0,w.delete(le)),A.needsAnimating[le]=!0;const K=t.getValue(le);K&&(K.liveStyle=!1)};for(const le in Le){const K=Ee[le],se=Ne[le];if(b.hasOwnProperty(le))continue;let B=!1;of(K)&&of(se)?B=!Sx(K,se):B=K!==se,B?K!=null?Te(le):w.add(le):K!==void 0&&w.has(le)?Te(le):A.protectedKeys[le]=!0}A.prevProp=P,A.prevResolvedValues=Ee,A.isActive&&(b={...b,...Ee}),i&&t.blockInitialAnimation&&(V=!1),V&&(!(z&&Y)||Z)&&y.push(...ue.map(le=>({animation:le,options:{type:S}})))}if(w.size){const E={};w.forEach(S=>{const A=t.getBaseTarget(S),P=t.getValue(S);P&&(P.liveStyle=!0),E[S]=A??null}),y.push({animation:E})}let _=!!y.length;return i&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(_=!1),i=!1,_?e(y):Promise.resolve()}function d(h,p){var g;if(n[h].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(w=>{var b;return(b=w.animationState)===null||b===void 0?void 0:b.setActive(h,p)}),n[h].isActive=p;const y=u(h);for(const w in n)n[w].protectedKeys={};return y}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=cv(),i=!0}}}function S2(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Sx(e,t):!1}function ns(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cv(){return{animate:ns(!0),whileInView:ns(),whileHover:ns(),whileTap:ns(),whileDrag:ns(),whileFocus:ns(),exit:ns()}}class Ur{constructor(e){this.isMounted=!1,this.node=e}update(){}}class E2 extends Ur{constructor(e){super(e),e.animationState||(e.animationState=b2(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();au(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let _2=0;class k2 extends Ur{constructor(){super(...arguments),this.id=_2++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);n&&!e&&a.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const C2={animation:{Feature:E2},exit:{Feature:k2}};function Vo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ea(t){return{point:{x:t.pageX,y:t.pageY}}}const T2=t=>e=>dh(e)&&t(e,ea(e));function Ro(t,e,n,i){return Vo(t,e,T2(n),i)}const dv=(t,e)=>Math.abs(t-e);function P2(t,e){const n=dv(t.x,e.x),i=dv(t.y,e.y);return Math.sqrt(n**2+i**2)}class cb{constructor(e,n,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=kd(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=P2(y.offset,{x:0,y:0})>=3;if(!w&&!b)return;const{point:C}=y,{timestamp:_}=gt;this.history.push({...C,timestamp:_});const{onStart:E,onMove:S}=this.handlers;w||(E&&E(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=_d(w,this.transformPagePoint),$e.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:b,onSessionEnd:C,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=kd(y.type==="pointercancel"?this.lastMoveEventInfo:_d(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,E),C&&C(y,E)},!dh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const u=ea(e),d=_d(u,this.transformPagePoint),{point:h}=d,{timestamp:p}=gt;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(e,kd(d,this.history)),this.removeListeners=Zo(Ro(this.contextWindow,"pointermove",this.handlePointerMove),Ro(this.contextWindow,"pointerup",this.handlePointerUp),Ro(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ir(this.updatePoint)}}function _d(t,e){return e?{point:e(t.point)}:t}function fv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function kd({point:t},e){return{point:t,delta:fv(t,db(e)),offset:fv(t,R2(e)),velocity:A2(e,.1)}}function R2(t){return t[0]}function db(t){return t[t.length-1]}function A2(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=db(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>Yn(e)));)n--;if(!i)return{x:0,y:0};const l=Xn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const fb=1e-4,N2=1-fb,O2=1+fb,hb=.01,j2=0-hb,L2=0+hb;function Ht(t){return t.max-t.min}function D2(t,e,n){return Math.abs(t-e)<=n}function hv(t,e,n,i=.5){t.origin=i,t.originPoint=Ke(e.min,e.max,t.origin),t.scale=Ht(n)/Ht(e),t.translate=Ke(n.min,n.max,t.origin)-t.originPoint,(t.scale>=N2&&t.scale<=O2||isNaN(t.scale))&&(t.scale=1),(t.translate>=j2&&t.translate<=L2||isNaN(t.translate))&&(t.translate=0)}function Ao(t,e,n,i){hv(t.x,e.x,n.x,i?i.originX:void 0),hv(t.y,e.y,n.y,i?i.originY:void 0)}function pv(t,e,n){t.min=n.min+e.min,t.max=t.min+Ht(e)}function M2(t,e,n){pv(t.x,e.x,n.x),pv(t.y,e.y,n.y)}function mv(t,e,n){t.min=e.min-n.min,t.max=t.min+Ht(e)}function No(t,e,n){mv(t.x,e.x,n.x),mv(t.y,e.y,n.y)}function I2(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?Ke(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?Ke(n,t,i.max):Math.min(t,n)),t}function gv(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function F2(t,{top:e,left:n,bottom:i,right:a}){return{x:gv(t.x,n,a),y:gv(t.y,e,i)}}function yv(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function V2(t,e){return{x:yv(t.x,e.x),y:yv(t.y,e.y)}}function U2(t,e){let n=.5;const i=Ht(t),a=Ht(e);return a>i?n=wi(e.min,e.max-i,t.min):i>a&&(n=wi(t.min,t.max-a,e.min)),Jn(0,1,n)}function B2(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const yf=.35;function z2(t=yf){return t===!1?t=0:t===!0&&(t=yf),{x:vv(t,"left","right"),y:vv(t,"top","bottom")}}function vv(t,e,n){return{min:wv(t,e),max:wv(t,n)}}function wv(t,e){return typeof t=="number"?t:t[e]||0}const xv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ti=()=>({x:xv(),y:xv()}),bv=()=>({min:0,max:0}),Ze=()=>({x:bv(),y:bv()});function rn(t){return[t("x"),t("y")]}function pb({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function $2({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function W2(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Cd(t){return t===void 0||t===1}function vf({scale:t,scaleX:e,scaleY:n}){return!Cd(t)||!Cd(e)||!Cd(n)}function ss(t){return vf(t)||mb(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function mb(t){return Sv(t.x)||Sv(t.y)}function Sv(t){return t&&t!=="0%"}function Gl(t,e,n){const i=t-n,a=e*i;return n+a}function Ev(t,e,n,i,a){return a!==void 0&&(t=Gl(t,a,i)),Gl(t,n,i)+e}function wf(t,e=0,n=1,i,a){t.min=Ev(t.min,e,n,i,a),t.max=Ev(t.max,e,n,i,a)}function gb(t,{x:e,y:n}){wf(t.x,e.translate,e.scale,e.originPoint),wf(t.y,n.translate,n.scale,n.originPoint)}const _v=.999999999999,kv=1.0000000000001;function q2(t,e,n,i=!1){const a=n.length;if(!a)return;e.x=e.y=1;let l,u;for(let d=0;d<a;d++){l=n[d],u=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ri(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,gb(t,u)),i&&ss(l.latestValues)&&ri(t,l.latestValues))}e.x<kv&&e.x>_v&&(e.x=1),e.y<kv&&e.y>_v&&(e.y=1)}function ni(t,e){t.min=t.min+e,t.max=t.max+e}function Cv(t,e,n,i,a=.5){const l=Ke(t.min,t.max,a);wf(t,e,n,l,i)}function ri(t,e){Cv(t.x,e.x,e.scaleX,e.scale,e.originX),Cv(t.y,e.y,e.scaleY,e.scale,e.originY)}function yb(t,e){return pb(W2(t.getBoundingClientRect(),e))}function H2(t,e,n){const i=yb(t,n),{scroll:a}=e;return a&&(ni(i.x,a.offset.x),ni(i.y,a.offset.y)),i}const vb=({current:t})=>t?t.ownerDocument.defaultView:null,K2=new WeakMap;class Q2{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ea(g).point)},l=(g,y)=>{const{drag:w,dragPropagation:b,onDragStart:C}=this.getProps();if(w&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=UA(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(E=>{let S=this.getAxisMotionValue(E).get()||0;if(On.test(S)){const{projection:A}=this.visualElement;if(A&&A.layout){const P=A.layout.layoutBox[E];P&&(S=Ht(P)*(parseFloat(S)/100))}}this.originPoint[E]=S}),C&&$e.postRender(()=>C(g,y)),uf(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:b,onDirectionLock:C,onDrag:_}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:E}=y;if(b&&this.currentDirection===null){this.currentDirection=G2(E),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",y.point,E),this.updateAxis("y",y.point,E),this.visualElement.render(),_&&_(g,y)},d=(g,y)=>this.stop(g,y),h=()=>rn(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new cb(e,{onSessionStart:a,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:vb(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&$e.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:a}=this.getProps();if(!i||!bl(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=I2(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;n&&Zs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=F2(a.layoutBox,n):this.constraints=!1,this.elastic=z2(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&rn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=B2(a.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Zs(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=H2(i,a.root,this.visualElement.getTransformPagePoint());let u=V2(a.layout.layoutBox,l);if(n){const d=n($2(u));this.hasMutatedConstraints=!!d,d&&(u=pb(d))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=rn(g=>{if(!bl(g,n,this.currentDirection))return;let y=h&&h[g]||{};u&&(y={min:0,max:0});const w=a?200:1e6,b=a?40:1e7,C={type:"inertia",velocity:i?e[g]:0,bounceStiffness:w,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,C)});return Promise.all(p).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return uf(this.visualElement,e),i.start(Eh(e,i,0,n,this.visualElement,!1))}stopAnimation(){rn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){rn(n=>{const{drag:i}=this.getProps();if(!bl(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:d}=a.layout.layoutBox[n];l.set(e[n]-Ke(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Zs(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};rn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const h=d.get();a[u]=U2({min:h,max:h},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rn(u=>{if(!bl(u,e,null))return;const d=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];d.set(Ke(h,p,a[u]))})}addListeners(){if(!this.visualElement.current)return;K2.set(this.visualElement,this);const e=this.visualElement.current,n=Ro(e,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();Zs(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),$e.read(i);const u=Vo(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(rn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=yf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function bl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function G2(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Y2 extends Ur{constructor(e){super(e),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new Q2(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Tv=t=>(e,n)=>{t&&$e.postRender(()=>t(e,n))};class X2 extends Ur{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(e){this.session=new cb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vb(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:Tv(e),onStart:Tv(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&$e.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Ro(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ll={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const yo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(me.test(t))t=parseFloat(t);else return t;const n=Pv(t,e.target.x),i=Pv(t,e.target.y);return`${n}% ${i}%`}},J2={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,a=Fr.parse(t);if(a.length>5)return i;const l=Fr.createTransformer(t),u=typeof a[0]!="number"?1:0,d=n.x.scale*e.x,h=n.y.scale*e.y;a[0+u]/=d,a[1+u]/=h;const p=Ke(d,h,.5);return typeof a[2+u]=="number"&&(a[2+u]/=p),typeof a[3+u]=="number"&&(a[3+u]/=p),l(a)}};class Z2 extends F.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;wA(eO),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Ll.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,u=i.projection;return u&&(u.isPresent=l,a||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||$e.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Jf.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function wb(t){const[e,n]=ex(),i=F.useContext(Wf);return v.jsx(Z2,{...t,layoutGroup:i,switchLayoutGroup:F.useContext(ux),isPresent:e,safeToRemove:n})}const eO={borderRadius:{...yo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yo,borderTopRightRadius:yo,borderBottomLeftRadius:yo,borderBottomRightRadius:yo,boxShadow:J2};function tO(t,e,n){const i=Ct(t)?t:Io(t);return i.start(Eh("",i,e,n)),i.animation}function nO(t){return t instanceof SVGElement&&t.tagName!=="svg"}const rO=(t,e)=>t.depth-e.depth;class sO{constructor(){this.children=[],this.isDirty=!1}add(e){fh(this.children,e),this.isDirty=!0}remove(e){hh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rO),this.isDirty=!1,this.children.forEach(e)}}function iO(t,e){const n=jn.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(Ir(i),t(l-e))};return $e.read(i,!0),()=>Ir(i)}const xb=["TopLeft","TopRight","BottomLeft","BottomRight"],oO=xb.length,Rv=t=>typeof t=="string"?parseFloat(t):t,Av=t=>typeof t=="number"||me.test(t);function aO(t,e,n,i,a,l){a?(t.opacity=Ke(0,n.opacity!==void 0?n.opacity:1,lO(i)),t.opacityExit=Ke(e.opacity!==void 0?e.opacity:1,0,uO(i))):l&&(t.opacity=Ke(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let u=0;u<oO;u++){const d=`border${xb[u]}Radius`;let h=Nv(e,d),p=Nv(n,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Av(h)===Av(p)?(t[d]=Math.max(Ke(Rv(h),Rv(p),i),0),(On.test(p)||On.test(h))&&(t[d]+="%")):t[d]=p}(e.rotate||n.rotate)&&(t.rotate=Ke(e.rotate||0,n.rotate||0,i))}function Nv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const lO=bb(0,.5,Vx),uO=bb(.5,.95,qt);function bb(t,e,n){return i=>i<t?0:i>e?1:n(wi(t,e,i))}function Ov(t,e){t.min=e.min,t.max=e.max}function nn(t,e){Ov(t.x,e.x),Ov(t.y,e.y)}function jv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Lv(t,e,n,i,a){return t-=e,t=Gl(t,1/n,i),a!==void 0&&(t=Gl(t,1/a,i)),t}function cO(t,e=0,n=1,i=.5,a,l=t,u=t){if(On.test(e)&&(e=parseFloat(e),e=Ke(u.min,u.max,e/100)-u.min),typeof e!="number")return;let d=Ke(l.min,l.max,i);t===l&&(d-=e),t.min=Lv(t.min,e,n,d,a),t.max=Lv(t.max,e,n,d,a)}function Dv(t,e,[n,i,a],l,u){cO(t,e[n],e[i],e[a],e.scale,l,u)}const dO=["x","scaleX","originX"],fO=["y","scaleY","originY"];function Mv(t,e,n,i){Dv(t.x,e,dO,n?n.x:void 0,i?i.x:void 0),Dv(t.y,e,fO,n?n.y:void 0,i?i.y:void 0)}function Iv(t){return t.translate===0&&t.scale===1}function Sb(t){return Iv(t.x)&&Iv(t.y)}function Fv(t,e){return t.min===e.min&&t.max===e.max}function hO(t,e){return Fv(t.x,e.x)&&Fv(t.y,e.y)}function Vv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Eb(t,e){return Vv(t.x,e.x)&&Vv(t.y,e.y)}function Uv(t){return Ht(t.x)/Ht(t.y)}function Bv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class pO{constructor(){this.members=[]}add(e){fh(this.members,e),e.scheduleRender()}remove(e){if(hh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(a=>e===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function mO(t,e,n){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((a||l||u)&&(i=`translate3d(${a}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:w,skewX:b,skewY:C}=n;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),w&&(i+=`rotateY(${w}deg) `),b&&(i+=`skewX(${b}deg) `),C&&(i+=`skewY(${C}deg) `)}const d=t.x.scale*e.x,h=t.y.scale*e.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const is={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ko=typeof window<"u"&&window.MotionDebug!==void 0,Td=["","X","Y","Z"],gO={visibility:"hidden"},zv=1e3;let yO=0;function Pd(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function _b(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ox(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",$e,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&_b(i)}function kb({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},d=e==null?void 0:e()){this.id=yO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ko&&(is.totalNodes=is.resolvedTargetDeltas=is.recalculatedProjection=0),this.nodes.forEach(xO),this.nodes.forEach(kO),this.nodes.forEach(CO),this.nodes.forEach(bO),ko&&window.MotionDebug.record(is)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,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 h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new sO)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new ph),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const h=this.eventHandlers.get(u);h&&h.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=nO(u),this.instance=u;const{layoutId:h,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(p||h)&&(this.isLayoutDirty=!0),t){let y;const w=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=iO(w,250),Ll.hasAnimatedSinceResize&&(Ll.hasAnimatedSinceResize=!1,this.nodes.forEach(Wv))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeTargetChanged:b,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||g.getDefaultTransition()||NO,{onLayoutAnimationStart:E,onLayoutAnimationComplete:S}=g.getProps(),A=!this.targetLayout||!Eb(this.targetLayout,C)||b,P=!w&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||w&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,P);const O={...lh(_,"layout"),onPlay:E,onComplete:S};(g.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else w||Wv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ir(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(TO),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_b(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($v);return}this.isUpdating||this.nodes.forEach(EO),this.isUpdating=!1,this.nodes.forEach(_O),this.nodes.forEach(vO),this.nodes.forEach(wO),this.clearAllSnapshots();const d=jn.now();gt.delta=Jn(0,1e3/60,d-gt.timestamp),gt.timestamp=d,gt.isProcessing=!0,vd.update.process(gt),vd.preRender.process(gt),vd.render.process(gt),gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(SO),this.sharedNodes.forEach(PO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ze(),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,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Sb(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&(d||ss(this.latestValues)||g)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return u&&(h=this.removeTransform(h)),OO(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:d}=this.options;if(!d)return Ze();const h=d.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(jO))){const{scroll:g}=this.root;g&&(ni(h.x,g.offset.x),ni(h.y,g.offset.y))}return h}removeElementScroll(u){var d;const h=Ze();if(nn(h,u),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:y,options:w}=g;g!==this.root&&y&&w.layoutScroll&&(y.wasRoot&&nn(h,u),ni(h.x,y.offset.x),ni(h.y,y.offset.y))}return h}applyTransform(u,d=!1){const h=Ze();nn(h,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&ri(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ss(g.latestValues)&&ri(h,g.latestValues)}return ss(this.latestValues)&&ri(h,this.latestValues),h}removeTransform(u){const d=Ze();nn(d,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!ss(p.latestValues))continue;vf(p.latestValues)&&p.updateSnapshot();const g=Ze(),y=p.measurePageBox();nn(g,y),Mv(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return ss(this.latestValues)&&Mv(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!(!this.layout||!(y||w))){if(this.resolvedRelativeTargetAt=gt.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),No(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),M2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),gb(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),No(this.relativeTargetOrigin,this.target,b.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ko&&is.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||vf(this.parent.latestValues)||mb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===gt.timestamp&&(p=!1),p)return;const{layout:g,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||!(g||y))return;nn(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,b=this.treeScale.y;q2(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ze());const{target:C}=d;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jv(this.prevProjectionDelta.x,this.projectionDelta.x),jv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ao(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==b||!Bv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C)),ko&&is.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ti(),this.projectionDelta=ti(),this.projectionDeltaWithTransform=ti()}setAnimationOrigin(u,d=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},y=ti();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const w=Ze(),b=h?h.source:void 0,C=this.layout?this.layout.source:void 0,_=b!==C,E=this.getStack(),S=!E||E.members.length<=1,A=!!(_&&!S&&this.options.crossfade===!0&&!this.path.some(AO));this.animationProgress=0;let P;this.mixTargetDelta=O=>{const M=O/1e3;qv(y.x,u.x,M),qv(y.y,u.y,M),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(No(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),RO(this.relativeTarget,this.relativeTargetOrigin,w,M),P&&hO(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=Ze()),nn(P,this.relativeTarget)),_&&(this.animationValues=g,aO(g,p,this.latestValues,M,A,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ir(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$e.update(()=>{Ll.hasAnimatedSinceResize=!0,this.currentAnimation=tO(0,zv,{...u,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:g}=u;if(!(!d||!h||!p)){if(this!==u&&this.layout&&p&&Cb(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||Ze();const y=Ht(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const w=Ht(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+w}nn(d,h),ri(d,g),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new pO),this.sharedNodes.get(u).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 u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:d}=this.options;return d?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:d}=this.options;return d?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&Pd("z",u,p,this.animationValues);for(let g=0;g<Td.length;g++)Pd(`rotate${Td[g]}`,u,p,this.animationValues),Pd(`skew${Td[g]}`,u,p,this.animationValues);u.render();for(const g in p)u.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);u.scheduleRender()}getProjectionStyles(u){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return gO;const p={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Ol(u==null?void 0:u.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const _={};return this.options.layoutId&&(_.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,_.pointerEvents=Ol(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ss(this.latestValues)&&(_.transform=g?g({},""):"none",this.hasProjected=!1),_}const w=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=mO(this.projectionDeltaWithTransform,this.treeScale,w),g&&(p.transform=g(w,p.transform));const{x:b,y:C}=this.projectionDelta;p.transformOrigin=`${b.origin*100}% ${C.origin*100}% 0`,y.animationValues?p.opacity=y===this?(h=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:p.opacity=y===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const _ in Wl){if(w[_]===void 0)continue;const{correct:E,applyTo:S}=Wl[_],A=p.transform==="none"?w[_]:E(w[_],y);if(S){const P=S.length;for(let O=0;O<P;O++)p[S[O]]=A}else p[_]=A}return this.options.layoutId&&(p.pointerEvents=y===this?Ol(u==null?void 0:u.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach($v),this.root.sharedNodes.clear()}}}function vO(t){t.updateLayout()}function wO(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,u=n.source!==t.layout.source;l==="size"?rn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],b=Ht(w);w.min=i[y].min,w.max=w.min+b}):Cb(l,n.layoutBox,i)&&rn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],b=Ht(i[y]);w.max=w.min+b,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+b)});const d=ti();Ao(d,i,n.layoutBox);const h=ti();u?Ao(h,t.applyTransform(a,!0),n.measuredBox):Ao(h,i,n.layoutBox);const p=!Sb(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:b}=y;if(w&&b){const C=Ze();No(C,n.layoutBox,w.layoutBox);const _=Ze();No(_,i,b.layoutBox),Eb(C,_)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=_,t.relativeTargetOrigin=C,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function xO(t){ko&&is.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function bO(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function SO(t){t.clearSnapshot()}function $v(t){t.clearMeasurements()}function EO(t){t.isLayoutDirty=!1}function _O(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Wv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function kO(t){t.resolveTargetDelta()}function CO(t){t.calcProjection()}
vendor: 9,379 bytes, line 174
174function TO(t){t.resetSkewAndRotation()}function PO(t){t.removeLeadSnapshot()}function qv(t,e,n){t.translate=Ke(e.translate,0,n),t.scale=Ke(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Hv(t,e,n,i){t.min=Ke(e.min,n.min,i),t.max=Ke(e.max,n.max,i)}function RO(t,e,n,i){Hv(t.x,e.x,n.x,i),Hv(t.y,e.y,n.y,i)}function AO(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const NO={duration:.45,ease:[.4,0,.1,1]},Kv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Qv=Kv("applewebkit/")&&!Kv("chrome/")?Math.round:qt;function Gv(t){t.min=Qv(t.min),t.max=Qv(t.max)}function OO(t){Gv(t.x),Gv(t.y)}function Cb(t,e,n){return t==="position"||t==="preserve-aspect"&&!D2(Uv(e),Uv(n),.2)}function jO(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const LO=kb({attachResizeListener:(t,e)=>Vo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rd={current:void 0},Tb=kb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Rd.current){const t=new LO({});t.mount(window),t.setOptions({layoutScroll:!0}),Rd.current=t}return Rd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),DO={pan:{Feature:X2},drag:{Feature:Y2,ProjectionNode:Tb,MeasureLayout:wb}};function Yv(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=i[a];l&&$e.postRender(()=>l(e,ea(e)))}class MO extends Ur{mount(){const{current:e}=this.node;e&&(this.unmount=DA(e,n=>(Yv(this.node,n,"Start"),i=>Yv(this.node,i,"End"))))}unmount(){}}class IO extends Ur{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Zo(Vo(this.node.current,"focus",()=>this.onFocus()),Vo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xv(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=i[a];l&&$e.postRender(()=>l(e,ea(e)))}class FO extends Ur{mount(){const{current:e}=this.node;e&&(this.unmount=VA(e,n=>(Xv(this.node,n,"Start"),(i,{success:a})=>Xv(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xf=new WeakMap,Ad=new WeakMap,VO=t=>{const e=xf.get(t.target);e&&e(t)},UO=t=>{t.forEach(VO)};function BO({root:t,...e}){const n=t||document;Ad.has(n)||Ad.set(n,{});const i=Ad.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(UO,{root:t,...e})),i[a]}function zO(t,e,n){const i=BO(e);return xf.set(t,n),i.observe(t),()=>{xf.delete(t),i.unobserve(t)}}const $O={some:0,all:1};class WO extends Ur{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:$O[a]},d=h=>{const{isIntersecting:p}=h;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:g,onViewportLeave:y}=this.node.getProps(),w=p?g:y;w&&w(h)};return zO(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(qO(e,n))&&this.startObserver()}unmount(){}}function qO({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const HO={inView:{Feature:WO},tap:{Feature:FO},focus:{Feature:IO},hover:{Feature:MO}},KO={layout:{ProjectionNode:Tb,MeasureLayout:wb}},bf={current:null},Pb={current:!1};function QO(){if(Pb.current=!0,!!Kf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>bf.current=t.matches;t.addListener(e),e()}else bf.current=!1}const GO=[...Zx,kt,Fr],YO=t=>GO.find(Jx(t)),Jv=new WeakMap;function XO(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Ct(a))t.addValue(i,a);else if(Ct(l))t.addValue(i,Io(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=t.getStaticValue(i);t.addValue(i,Io(u!==void 0?u:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Zv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class JO{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=jn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,$e.render(this.render,!1,!0))};const{latestValues:h,renderState:p,onUpdate:g}=u;this.onUpdate=g,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=lu(n),this.isVariantNode=ax(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...w}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in w){const C=w[b];h[b]!==void 0&&Ct(C)&&C.set(h[b],!1)}}mount(e){this.current=e,Jv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Pb.current||QO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Jv.delete(this.current),this.projection&&this.projection.unmount(),Ir(this.notifyUpdate),Ir(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=_s.has(e),a=n.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&$e.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{a(),l(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in xi){const n=xi[e];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];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):Ze()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Zv.length;i++){const a=Zv[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=e[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=XO(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
174addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Io(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(Yx(a)||Bx(a))?a=parseFloat(a):!YO(a)&&Fr.test(n)&&(a=Kx(e,n)),this.setBaseTarget(e,Ct(a)?a.get():a)),Ct(a)?a.get():a}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const u=eh(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(a=u[e])}if(i&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Ct(l)?l:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ph),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Rb extends JO{constructor(){super(...arguments),this.KeyframeResolver=eb}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ct(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ZO(t){return window.getComputedStyle(t)}class ej extends Rb{constructor(){super(...arguments),this.type="html",this.renderInstance=gx}readValueFromInstance(e,n){if(_s.has(n)){const i=wh(n);return i&&i.default||0}else{const i=ZO(e),a=(hx(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:n}){return yb(e,n)}build(e,n,i){rh(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ah(e,n,i)}}class tj extends Rb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_s.has(n)){const i=wh(n);return i&&i.default||0}return n=yx.has(n)?n:Xf(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return xx(e,n,i)}build(e,n,i){sh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,a){vx(e,n,i,a)}mount(e){this.isSVGTag=oh(e.tagName),super.mount(e)}}const nj=(t,e)=>Zf(t)?new tj(e):new ej(e,{allowProjection:t!==F.Fragment}),rj=PA({...C2,...HO,...DO,...KO},nj),ge=$R(rj),e0=[{label:"Services",href:"/#services"},{label:"Clients",href:"/#results"},{label:"About",href:"/#about"},{label:"Leadership",href:"/#team"},{label:"Contact",href:"/#contact"}];function sj(t){if(!t)return 0;const e=t.match(/\d+/g);if(!e)return 0;const[n,i,a]=e.map(Number);return(.299*n+.587*i+.114*a)/255}function _h(){const[t,e]=F.useState("top"),[n,i]=F.useState(!1);F.useEffect(()=>{const h=()=>{if(window.scrollY<=40){e("top");return}const g=document.querySelectorAll("section");let y=null;for(const b of g){const C=b.getBoundingClientRect();if(C.top<=80&&C.bottom>80){y=b;break}}if(!y){e("dark");return}const w=window.getComputedStyle(y).backgroundColor;e(sj(w)>.5?"light":"dark")};return h(),window.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h),window.removeEventListener("resize",h)}},[]);const a=t==="light",l=t==="top"?"bg-transparent":a?"bg-arch-grey/95 backdrop-blur-[10px] border-b border-umber/20":"bg-navy/95 backdrop-blur-[10px] border-b border-umber/20",u=a?"text-navy/70 hover:text-navy":"text-white/70 hover:text-white",d=a?"text-navy":"text-white";return v.jsxs("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ease-out ${l}`,children:[v.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:v.jsxs("div",{className:"flex items-center justify-between h-20",children:[v.jsx("a",{href:"#",className:"flex items-center",children:v.jsx("div",{className:"bg-umber px-3",children:v.jsx("img",{src:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/bd759d404_Les_Nimoises_logo_FINAL_white-black.png",alt:"Les Nîmoise
174s",className:"h-20 w-auto",style:{mixBlendMode:"screen"}})})}),v.jsxs("div",{className:"hidden md:flex items-center gap-5 md:gap-6 lg:gap-10 ml-auto pl-8",children:[e0.map(h=>v.jsx("a",{href:h.href,className:`${u} text-sm font-body tracking-wide transition-colors duration-300`,children:h.label},h.label)),v.jsx("a",{href:"mailto:[email protected]",className:"bg-umber text-white px-6 py-2.5 text-sm font-heading font-semibold tracking-wide hover:bg-umber/90 transition-colors duration-300",children:"Get in Touch"})]}),v.jsx("button",{className:`md:hidden ${d}`,onClick:()=>i(!n),children:n?v.jsx(_f,{size:24}):v.jsx(lE,{size:24})})]})}),n&&v.jsx(ge.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:`md:hidden backdrop-blur-lg border-t border-umber/20 px-6 py-8 ${a?"bg-arch-grey/98":"bg-navy/98"}`,children:v.jsxs("div",{className:"flex flex-col gap-6",children:[e0.map(h=>v.jsx("a",{href:h.href,onClick:()=>i(!1),className:`${a?"text-navy/80 hover:text-navy":"text-white/80 hover:text-white"} text-lg font-heading tracking-wide`,children:h.label},h.label)),v.jsx("a",{href:"mailto:[email protected]",onClick:()=>i(!1),className:"bg-umber text-white px-6 py-3 text-center font-heading font-semibold tracking-wide mt-2",children:"Get in Touch"})]})})]})}const qn=[{brand:"Audi",id:"182786794",start:45,scale:1.35,duration:12e3},{brand:"Porsche",id:"749104725",start:5,scale:1,duration:1e4},{brand:"Big Green Egg",id:"519966607",start:2,scale:1,duration:1e4},{brand:"Vanquish Yachts",id:"1145680522",start:3,scale:1,duration:1e4},{brand:"GP Elite",id:"1131325512",start:2,scale:1.35,duration:1e4}],t0=1500;function ij(){const[t,e]=F.useState(0),n=F.useRef({}),i=F.useRef(null),a=F.useRef(0),l=F.useRef(!1);return F.useEffect(()=>{function u(y){const w=y.parentElement;if(!w)return;const b=w.clientWidth,C=w.clientHeight;if(!b||!C)return;const _=16/9;let E,S;b/C>_?(E=b,S=b/_):(S=C,E=C*_),y.style.width=`${E}px`,y.style.height=`${S}px`,y.style.transform="translate(-50%, -50%)"}function d(){Object.values(n.current).forEach(y=>{const w=y.element;w&&u(w)})}function h(y){if(n.current[y])return;const w=qn[y],b=document.createElement("iframe");b.src=`https://player.vimeo.com/video/${w.id}?background=1&autoplay=1&muted=1&loop=0&controls=0`,b.allow="autoplay; fullscreen; encrypted-media",b.loading=y===0?"eager":"lazy",b.style.cssText=`
175        position: absolute;
176        top: 50%; left: 50%;
177        border: none; pointer-events: none;
178      `;const C=document.getElementById(`vslot-${y}`);C&&C.appendChild(b),u(b);const _=new window.Vimeo.Player(b);n.current[y]=_,_.ready().then(()=>{_.setVolume(0),_.setCurrentTime(w.start)}),_.on("timeupdate",({seconds:E})=>{E>=w.start+w.duration/1e3-.5&&_.setCurrentTime(w.start)})}function p(){if(l.current)return;l.current=!0,h(0);const y=()=>{for(let w=1;w<qn.length;w++)h(w)};"requestIdleCallback"in window?window.requestIdleCallback(y,{timeout:4e3}):setTimeout(y,3e3),g(0)}function g(y){clearTimeout(i.current),i.current=setTimeout(()=>{const w=(y+1)%qn.length;a.current=w,e(w);const b=n.current[w];b&&b.setCurrentTime(qn[w].start).catch(()=>{}),setTimeout(()=>{const C=n.current[y];C&&C.setCurrentTime(qn[y].start).catch(()=>{})},t0+500),g(w)},qn[y].duration)}if(window.Vimeo)p();else{const y=document.createElement("script");y.src="https://player.vimeo.com/api/player.js",y.async=!0,y.onload=p,document.head.appendChild(y)}return window.addEventListener("resize",d),()=>{clearTimeout(i.current),window.removeEventListener("resize",d)}},[]),v.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:56,overflow:"hidden"},children:[qn.map((u,d)=>v.jsx("div",{style:{position:"absolute",inset:0,overflow:"hidden",opacity:d===t?1:0,transition:`opacity ${t0}ms ease-in-out`,zIndex:d===t?1:0,transform:u.scale!==1?`scale(${u.scale})`:void 0},children:v.jsx("div",{id:`vslot-${d}`,style:{position:"absolute",inset:0}})},u.id)),v.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(10,25,47,0.60)",zIndex:10,pointerEvents:"none"}}),v.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"30%",zIndex:11,pointerEvents:"none",background:"linear-gradient(to top, rgba(10,25,47,0.95) 0%, rgba(10,25,47,0.6) 40%, transparent 100%)"}}),v.jsx("div",{style:{position:"absolute",bottom:32,left:32,zIndex:12,pointerEvents:"none"},children:v.jsx("p",{style:{color:"rgba(255,255,255,0.25)",fontFamily:"var(--font-body)",fontSize:11,letterSpacing:"0.3em",textTransform:"uppercase"},children:qn[t].brand})}),v.jsx("div",{style:{position:"absolute",bottom:32,right:32,zIndex:12,display:"flex",gap:8,pointerEvents:"none"},children:qn.map((u,d)=>v.jsx("div",{style:{width:4,height:4,borderRadius:"50%",backgroundColor:d===t?"rgba(155,87,39,0.8)":"rgba(255,255,255,0.2)",transition:"background-color 700ms ease"}},d))})]})}function oj(){return v.jsxs("section",{className:"relative min-h-screen flex items-center justify-center bg-navy overflow-hidden pt-20 pb-44",children:[v.jsx("div",{className:"absolute inset-0 pointer-events-none",children:v.jsxs("svg",{className:"w-full h-full opacity-[0.04]",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("pattern",{id:"grid",width:"80",height:"80",patternUnits:"userSpaceOnUse",children:v.jsx("path",{d:"M 80 0 L 0 0 0 80",fill:"none",stroke:"#9B5727",strokeWidth:"0.5"})})}),v.jsx("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})}),v.jsx(ij,{}),v.jsx("div",{className:"absolute inset-0 bg-gradient-radial pointer-events-none",style:{background:"radial-gradient(ellipse at 50% 40%, rgba(155, 87, 39, 0.06) 0%, transparent 70%)"}}),v.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto px-6 text-center",children:[v.jsx(ge.div,{initial:{opacity:0,y:40}
178,animate:{opacity:1,y:0},transition:{duration:1,ease:[.22,1,.36,1]},children:v.jsx("p",{className:"text-umber font-body text-sm tracking-[0.25em] uppercase mb-8 mt-4 md:mt-0",children:"Interim Management & Consultancy"})}),v.jsxs(ge.h1,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1.2,delay:.15,ease:[.22,1,.36,1]},className:"font-heading text-white text-4xl sm:text-5xl md:text-6xl lg:text-[5rem] font-bold leading-[1.1] tracking-[-0.02em]",children:["Purposeful, manageable",v.jsx("br",{}),v.jsx("span",{className:"text-white/90",children:"and future-focused"})]}),v.jsx(ge.p,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:1,delay:.45,ease:[.22,1,.36,1]},className:"mt-8 text-white/50 font-body text-lg md:text-xl max-w-2xl mx-auto leading-relaxed tracking-wide",children:"(Fractional) interim management, organisational consultancy and board advisory for premium and luxury brands — helping leadership teams build fit-for-the-future organisations through clear strategy and structured, sustainable change."}),v.jsxs(ge.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,delay:.55,ease:[.22,1,.36,1]},className:"mt-12 flex flex-col items-center justify-center gap-4",children:[v.jsx("a",{href:"mailto:[email protected]",className:"bg-umber text-white px-10 py-4 font-heading font-semibold text-sm tracking-wide hover:bg-umber/90 transition-all duration-300 w-full sm:w-auto text-center",children:"Get in Touch"}),v.jsxs("a",{href:"https://www.linkedin.com/company/les-nîmoises",target:"_blank",rel:"noopener noreferrer",className:"text-white/40 hover:text-white/70 font-body text-sm transition-colors duration-300 inline-flex items-center gap-2",children:[v.jsx(Yl,{size:16}),"LinkedIn Page"]})]})]}),v.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-umber/30 to-transparent"})]})}const aj=["Marketing, Communication & PR","CRM & Customer Experience","Digital & Innovation","Sales & Business Development","Organisational Development","Strategy & Change Management"];function lj(){return v.jsx("section",{id:"experience",className:"bg-arch-grey py-20 md:py-28",children:v.jsx("div",{className:"max-w-7xl mx-auto px-6",children:v.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 lg:gap-16 items-start",children:[v.jsxs("div",{className:"lg:col-span-5",children:[v.jsx(ge.p,{initial:{opacity:0}
178,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-8",children:"Experience"}),v.jsx(ge.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"font-heading text-navy text-3xl md:text-5xl font-bold tracking-tight mb-8",children:"Real diversity in companies will develop growth rarely seen before."}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.15,ease:[.22,1,.36,1]},className:"text-navy/50 font-body text-base leading-relaxed mb-8",children:"Do you need a pragmatic interim or consultancy approach to ideation, strategy, marketing impact and organisational structure? With over 20 years of experience across super-premium and luxury brand formulas, we can help."}),v.jsx(ge.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2,ease:[.22,1,.36,1]},className:"border-l-2 border-umber pl-6 py-2",children:v.jsx("p",{className:"text-navy font-heading font-semibold text-base md:text-lg leading-snug",children:"Creating high-performing, efficient and effective teams that enjoy going purposeful and empowered to work — every day."})})]}),v.jsxs("div",{className:"lg:col-span-7",children:[v.jsx(ge.p,{initial:{opacity:0}
178,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.2},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-8",children:"+20 Years of Experience In"}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-px bg-navy/10",children:aj.map((t,e)=>v.jsxs(ge.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.05*e,duration:.5},className:"bg-arch-grey px-4 sm:px-6 py-4 sm:py-5",children:[v.jsx("span",{className:"text-umber font-body text-xs tracking-[0.2em] block mb-1",children:String(e+1).padStart(2,"0")}),v.jsx("span",{className:"text-navy font-heading font-semibold text-sm leading-snug",children:t})]},t))})]})]})})})}const n0=[{id:"consulting",label:"Consulting",pillars:[{title:"Analysis",desc:"Deep-dive assessments of organizational structure, culture, and performance to identify strategic gaps and opportunities."},{title:"Execution",desc:"Hands-on implementation of tailored strategies with embedded teams ensuring seamless operational integration."},{title:"Governance",desc:"Establishing robust frameworks for decision-making, accountability, and sustainable organizational oversight."}]},{id:"strategy",label:"Strategy",pillars:[{title:"Vision",desc:"Crafting long-term strategic roadmaps that align organizational purpose with market positioning."},{title:"Planning",desc:"Translating vision into actionable plans with clear milestones, KPIs, and resource allocation."},{title:"Alignment",desc:"Ensuring cross-functional coherence so every department drives toward a unified strategic objective."}]},{id:"development",label:"Development",pillars:[{title:"Talent",desc:"Building leadership pipelines and high-performance teams through structured development programs."},{title:"Culture",desc:`Shaping organizational culture to attract,
179retain and empower top-tier professionals.`},{title:"Innovation",desc:"Fostering environments where creative problem-solving and continuous improvement become institutional DNA."}]},{id:"sprint",label:"Getting Acquainted",special:!0,products:[{title:"Marketing Scan",text:"Let's start with a Marketing Scan. You get all the experience during a 1-day Maturity Scan on Marketing (Operations). A broader scope is possible, but this will increase the time spent on a scan. After that we can decide to take things further or not."},{title:"Strategy Sprint",text:"Are you looking for a Strategy Sprint on Executive level? During 1 day we drill down your current goals into a draft OGSM focussing on the next years of growth. Once you feel the added value, we can decide to go into the next phase."},{title:"Inspirational Talks",text:"Do you want to inspire your (leadership) team on real experience within the premium and luxury business? 20 years of experience brought to you in a fun and engaging way. The foundation is there, but we transform it into something specific to you and your teams."}]}];function uj(){const t=new URLSearchParams(window.location.search).get("service")||"consulting",[e,n]=F.useState(t),i=n0.find(a=>a.id===e);return v.jsx("section",{id:"services",className:"bg-navy py-14 md:py-20 scroll-mt-20",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-4",children:"Our Services"}),v.jsx(ge.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"font-heading text-white text-3xl md:text-5xl font-bold tracking-tight mb-8 md:mb-12",children:"The Service Blueprint"}),v.jsxs("div",{className:"grid md:grid-cols-12 gap-8 md:gap-0",children:[v.jsx("div",{className:"md:col-span-4 md:border-r border-umber/20 md:pr-12",children:v.jsx("div",{className:"flex md:flex-col gap-2 flex-wrap pb-1 md:pb-0",role:"tablist",children:n0.map(a=>v.jsx("button",{role:"tab","aria-selected":e===a.id,onClick:()=>n(a.id),className:`text-left px-4 py-3 md:py-4 font-heading text-base md:text-2xl font-bold tracking-tight transition-all duration-500 border-l-2 whitespace-nowrap md:whitespace-normal focus:outline-none focus:ring-2 focus:ring-umber focus:ring-offset-2 focus:ring-offset-navy ${a.special?"md:mt-10 md:pt-8 md:border-t md:border-umber/25":""} ${e===a.id?"text-umber border-umber bg-umber/5":"text-white/30 border-transparent hover:text-white/60 hover:border-white/10"}`,children:a.label},a.id))})}),v.jsx("div",{className:"md:col-span-8 md:pl-12",children:v.jsx(nx,{mode:"wait",children:i!=null&&i.special?v.jsx(ge.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.5,ease:[.22,1,.36,1]},className:"grid sm:grid-cols-3 gap-6",role:"tabpanel",children:i.products.map((a,l)=>v.jsxs(ge.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:l*.1,duration:.5,ease:[.22,1,.36,1]},className:"border-t border-umber/20 pt-5",children:[v.jsxs("span",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:["0",l+1]}),v.jsx("h3",{className:"font-heading text-white text-lg font-bold mt-3 mb-3",children:a.title}),v.jsx("p",{className:"text-white/50 font-body text-sm leading-relaxed pr-4",children:a.text})]},a.title))},e):v.jsx(ge.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.5,ease:[.22,1,.36,1]},className:"grid sm:grid-cols-3 gap-6",role:"tabpanel",children:i==null?void 0:i.pillars.map((a,l)=>v.jsxs(ge.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:l*.1,duration:.5,ease:[.22,1,.36,1]},className:"border-t border-umber/20 pt-5",children:[v.jsxs("span",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:["0",l+1]}),v.jsx("h3",{className:"font-heading text-white text-lg font-bold mt-3 mb-3",children:a.title}),v.jsx("p",{className:"text-white/50 font-body text-sm leading-relaxed pr-4",children:a.desc})]},a.title))},e)})})]})]})})}const cj=[{symbol:"Crocodile",meaning:"Depicts subjugated Egypt and the Nile",principle:"Strategy conquers",detail:"Focus and a clear plan (OGSM)",number:"01"},{symbol:"Palm Tree",meaning:"A classic symbol of victory (Victoria)",principle:"Tactics get the result",detail:"Lose a battle, win the war",number:"02"},{symbol:"Chain",meaning:"Symbolizing total Roman dominance",principle:"Culture eats strategy",detail:"A team effort brings success",number:"03"}];function dj(){return v.jsxs("section",{className:"bg-arch-grey py-20 md:py-28 relative",children:[v.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-4",children:"Our Philosophy"}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.1,ease:[.22,1,.36,1]},className:"text-navy font-body text-2xl md:text-3xl leading-relaxed mb-6 font-semibold",children:"Les Nîmoises are Women from Nîmes, France."}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2,ease:[.22,1,.36,1]},className:"text-navy/50 font-body text-sm max-w-2xl leading-relaxed mb-12 md:mb-20",children:"A City Whose Symbol Has Its Origins In Roman Antiquity. After Octavian's victory at the Battle of Actium (31 BC) over Mark Antony and Cleopatra, Roman veterans who had fought in Egypt were granted land in Nîmes — then Colonia Nemausensis. The city's emblem commemorates this conquest: a crocodile chained to a palm tree."}),v.jsx("div",{className:"grid md:grid-cols-3 gap-0 md:divide-x md:divide-umber/20",children:cj.map((t,e)=>v.jsxs(ge.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.15,duration:.8,ease:[.22,1,.36,1]},className:"md:px-10 first:pl-0 last:pr-0 py-10 md:py-0 border-t border-umber/20 md:border-t-0 first:border-t-0",children:[v.jsx("span",{className:"text-umber font-body text-xs tracking-[0.3em]",children:t.number}),v.jsx("h3",{className:"font-heading text-navy text-2xl md:text-3xl font-bold mt-4 mb-3",children:t.symbol}),v.jsx("p",{className:"text-navy/40 font-body text-sm leading-relaxed mb-6 italic",children:t.meaning}),v.jsxs("div",{className:"border-t border-umber/20 pt-6",children:[v.jsx("p",{className:"text-umber font-heading font-semibold text-base mb-1",children:t.principle}),v.jsx("p",{className:"text-navy/50 font-body text-sm leading-relaxed",children:t.detail})]})]},t.symbol))})]}),v.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-umber/30 to-transparent"})]})}function fj(){return v.jsx("section",{id:"about",className:"bg-navy pt-20 md:pt-28 pb-24 md:pb-32 relative",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-4",children:"About Us"}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.1,ease:[.22,1,.36,1]},className:"text-white font-body text-2xl md:text-3xl leading-relaxed mb-6 font-semibold",children:"Our Roots"}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2,ease:[.22,1,.36,1]},className:"text-white/50 font-body text-sm max-w-2xl leading-relaxed mb-6",children:"Les Nîmoises is an Amsterdam-based consultancy specialising in (fractional) interim management, organisational consultancy, and board advisory for premium and luxury brands. Founded on two decades of hands-on leadership experience across the automotive, yachting, and lifestyle sectors, the firm helps executive teams build organisations that are purposeful, manageable, and future-focused."}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.3,ease:[.22,1,.36,1]},className:"text-white/50 font-body text-sm max-w-2xl leading-relaxed mb-6",children:"Our practice is built around a structured five-pillar methodology that addresses strategy, structure, people, skills, and team energy. We work closely with leadership teams to diagnose organisational challenges, craft actionable strategic roadmaps, and implement sustainable change that aligns operational execution with long-term vision. Whether guiding a marketing maturity scan, facilitating an executive strategy sprint, or delivering inspirational talks grounded in real-world experience, every engagement is tailored to the unique dynamics of the premium and luxury market."}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.4,ease:[.22,1,.36,1]},className:"text-white/50 font-body text-sm max-w-2xl leading-relaxed mb-6",children:"Les Nîmoises was founded by Ruurd Neurink, an interim executive and consultant whose career spans leadership roles at Nestlé Nespresso, Lakrids by Bülow, Porsche, and Pon before starting Les Nîmoises. He has since partnered with brands including Audi, Porsche, Vanquish Yachts, Big Green Egg, and GP Elite. The firm serves organisations that recognise the need for structured transformation — those seeking not incremental improvement, but purposeful evolution of their culture, capabilities, and commercial performance."}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.5,ease:[.22,1,.36,1]},className:"text-white/50 font-body text-sm max-w-2xl leading-relaxed",children:"For leadership teams navigating complexity, growth, or transformation, Les Nîmoises provides the clarity, structure, and hands-on expertise needed to move from intention to outcome."})]})})}const r0=[{label:"Strategy & Focus"},{label:"Structure & Transparency"},{label:"People & Attitude"},{label:"Competencies & Skills"},{label:"Team & Energy"}];function hj(){return v.jsxs("section",{className:"bg-arch-grey py-20 md:py-28 relative overflow-hidden",children:[v.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-umber/30 to-transparent"}),v.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.03]",children:v.jsxs("svg",{className:"w-full h-full",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("defs",{children:v.jsx("pattern",{id:"pillars-grid",width:"60",height:"60",patternUnits:"userSpaceOnUse",children:v.jsx("path",{d:"M 60 0 L 0 0 0 60",fill:"none",stroke:"#9B5727",strokeWidth:"0.5"})})}),v.jsx("rect",{width:"100%",height:"100%",fill:"url(#pillars-grid)"})]})}),v.jsxs("div",{className:"max-w-7xl mx-auto px-6 relative z-10",children:[v.jsx(ge.p,{initial:{opacity:0}
179,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-4 text-center",children:"The Framework"}),v.jsxs(ge.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"text-center mb-12 md:mb-20",children:[v.jsx("h2",{className:"font-heading text-navy text-3xl md:text-5xl font-bold tracking-tight",children:"Know Your Purpose"}),v.jsx("div",{className:"mt-4 w-16 h-px bg-umber mx-auto"})]}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-px bg-umber/20 mb-px",children:r0.slice(0,3).map((t,e)=>v.jsxs(ge.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1,duration:.6,ease:[.22,1,.36,1]},className:"bg-arch-grey px-8 py-10",children:[v.jsx("span",{className:"text-umber font-body text-xs tracking-[0.3em] block mb-4",children:String(e+1).padStart(2,"0")}),v.jsx("h3",{className:"font-heading text-navy text-xl md:text-2xl font-bold tracking-tight",children:t.label})]},t.label))}),v.jsx("div",{className:"h-px bg-umber/20"}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-px bg-umber/20 mb-px sm:w-2/3 mx-auto",children:r0.slice(3).map((t,e)=>v.jsxs(ge.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:(e+3)*.1,duration:.6,ease:[.22,1,.36,1]},className:"bg-arch-grey px-8 py-10",children:[v.jsx("span",{className:"text-umber font-body text-xs tracking-[0.3em] block mb-4",children:String(e+4).padStart(2,"0")}),v.jsx("h3",{className:"font-heading text-navy text-xl md:text-2xl font-bold tracking-tight",children:t.label})]},t.label))}),v.jsxs(ge.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.4,ease:[.22,1,.36,1]},className:"grid md:grid-cols-2 gap-px bg-umber/20 mt-px",children:[v.jsx("div",{className:"bg-arch-grey px-8 py-10 border-t border-umber/20",children:v.jsxs("p",{className:"font-heading text-navy text-xl md:text-2xl font-bold leading-snug",children:["Say yes,",v.jsx("br",{}),v.jsx("span",{className:"text-umber",children:"in a room full of no's"})]})}),v.jsx("div",{className:"bg-arch-grey px-8 py-10 border-t border-umber/20 md:text-right",children:v.jsxs("p",{className:"font-heading text-navy text-xl md:text-2xl font-bold leading-snug",children:["Have patience",v.jsx("br",{}),v.jsx("span",{className:"text-umber",children:"and take your time"})]})})]})]}),v.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-umber/30 to-transparent"})]})}const Sl=[{name:"Ruurd Neurink",role:"Owner & Managing Director",bio:"With over 20 years experience, Ruurd leads Les Nîmoises with a commitment to purposeful transformation and sustainable growth across premium and luxury industries.",image:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/de3a0f6d8_generated_image.png",linkedin:"https://www.linkedin.com/company/les-nîmoises"}];function pj(){const[t,e]=F.useState(0),n=()=>e(l=>l===0?Sl.length-1:l-1),i=()=>e(l=>l===Sl.length-1?0:l+1),a=Sl[t];return v.jsx("section",{id:"team",className:"bg-arch-grey pt-20 md:pt-28 pb-12 md:pb-16",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-4",children:"Leadership"}),v.jsx(ge.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"font-heading text-navy text-3xl md:text-5xl font-bold tracking-tight mb-12 md:mb-20",children:"Enjoy Going to Work - Every Day"}),v.jsxs("div",{className:"max-w-4xl mx-auto",children:[v.jsx(nx,{mode:"wait",children:v.jsxs(ge.div,{initial:{opacity:0,x:60},animate:{opacity:1,x:0},exit:{opacity:0,x:-60},transition:{duration:.6,ease:[.22,1,.36,1]},className:"grid md:grid-cols-5 gap-8 md:gap-12 items-center",children:[v.jsx("div",{className:"md:col-span-2",children:v.jsxs("div",{className:"aspect-square overflow-hidden bg-navy/10 relative rounded-2xl",children:[v.jsx("img",{src:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/07dea1340_a4a8b611-8536-46dd-9804-9e3e190b57ab.jpg",alt:`Portrait of ${a.name}`,className:"w-full h-full object-cover grayscale contrast-125 rounded-2xl",style:{objectPosition:"center 25%",transform:"scale(1.15)",transformOrigin:"center 25%"}}),v.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-2xl",style:{boxShadow:"inset 0 0 60px 20px rgba(10,25,47,0.35)"}})]})}),v.jsxs("div",{className:"md:col-span-3",children:[v.jsx("span",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:a.role}),v.jsx("h3",{className:"font-heading text-navy text-2xl md:text-4xl font-bold mt-3 mb-6",children:a.name}),v.jsx("p",{className:"text-navy/60 font-body text-base md:text-lg leading-relaxed mb-8",children:a.bio}),v.jsxs("a",{href:a.linkedin,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-umber hover:text-umber/80 font-body text-sm tracking-wide transition-colors duration-300",children:[v.jsx(Yl,{size:18}),"Connect on LinkedIn"]})]})]},t)}),v.jsxs("div",{className:"flex items-center justify-center gap-6 mt-16",children:[v.jsx("button",{onClick:n,className:"w-12 h-12 border border-navy/20 flex items-center justify-center text-navy/60 hover:text-navy hover:border-umber transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-umber","aria-label":"Previous team member",children:v.jsx(ZS,{size:20})}),v.jsxs("span",{className:"font-body text-navy/40 text-sm tracking-wide",children:[t+1," / ",Sl.length]}),v.jsx("button",{onClick:i,className:"w-12 h-12 border border-navy/20 flex items-center justify-center text-navy/60 hover:text-navy hover:border-umber transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-umber","aria-label":"Next team member",children:v.jsx(tE,{size:20})})]})]})]})})}function mj(){const[t,e]=F.useState({name:"",email:"",company:"",message:"",website:""}),[n,i]=F.useState("idle"),[a,l]=F.useState(""),u=h=>e({...t,[h.target.name]:h.target.value}),d=async h=>{var p;h.preventDefault(),i("submitting"),l("");try{const g=await Js.functions.invoke("submitContactForm",{name:t.name,email:t.email,company:t.company,message:t.message,website:t.website});if(g.status>=400)throw new Error(((p=g.data)==null?void 0:p.error)||"Something went wrong. Please try again.");i("success"),e({name:"",email:"",company:"",message:"",website:""})}catch(g){i("error"),l(g.message||"Something went wrong. Please try again.")}};return n==="success"?v.jsxs(ge.div,{initial:{opacity:0}
179,animate:{opacity:1},className:"bg-navy p-8 md:p-10 flex flex-col items-center justify-center text-center min-h-[300px]",children:[v.jsx("div",{className:"w-14 h-14 border border-umber flex items-center justify-center mb-6",children:v.jsx(XS,{size:24,className:"text-umber"})}),v.jsx("h3",{className:"font-heading text-white text-xl font-bold mb-3",children:"Thank you"}),v.jsx("p",{className:"text-white/50 font-body text-sm leading-relaxed max-w-xs",children:"Your message has been received. We'll be in touch within one business day."}),v.jsx("button",{onClick:()=>i("idle"),className:"mt-8 text-umber font-body text-xs tracking-[0.2em] uppercase hover:text-white/70 transition-colors",children:"Send another message"})]}):v.jsxs("form",{onSubmit:d,className:"bg-navy p-8 md:p-10 space-y-6",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-2",children:"Enquiry"}),v.jsx("h3",{className:"font-heading text-white text-xl font-bold",children:"Send a message"})]}),v.jsx("input",{type:"text",name:"website",value:t.website,onChange:u,tabIndex:-1,autoComplete:"off",className:"hidden","aria-hidden":"true"}),v.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[v.jsxs("div",{children:[v.jsx("label",{className:"text-white/40 font-body text-xs tracking-[0.2em] uppercase block mb-2",children:"Name *"}),v.jsx("input",{name:"name",value:t.name,onChange:u,required:!0,className:"w-full bg-transparent border-b border-white/20 text-white placeholder-white/30 py-2 focus:border-umber focus:outline-none transition-colors",placeholder:"Your name"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-white/40 font-body text-xs tracking-[0.2em] uppercase block mb-2",children:"Company"}),v.jsx("input",{name:"company",value:t.company,onChange:u,className:"w-full bg-transparent border-b border-white/20 text-white placeholder-white/30 py-2 focus:border-umber focus:outline-none transition-colors",placeholder:"Company (optional)"})]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-white/40 font-body text-xs tracking-[0.2em] uppercase block mb-2",children:"Email *"}),v.jsx("input",{type:"email",name:"email",value:t.email,onChange:u,required:!0,className:"w-full bg-transparent border-b border-white/20 text-white placeholder-white/30 py-2 focus:border-umber focus:outline-none transition-colors",placeholder:"[email protected]"})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-white/40 font-body text-xs tracking-[0.2em] uppercase block mb-2",children:"Message *"}),v.jsx("textarea",{name:"message",value:t.message,onChange:u,required:!0,rows:4,className:"w-full bg-transparent border-b border-white/20 text-white placeholder-white/30 py-2 focus:border-umber focus:outline-none transition-colors resize-none",placeholder:"How can we help?"})]}),n==="error"&&v.jsx("p",{className:"text-red-400 font-body text-sm",children:a}),v.jsx("button",{type:"submit",disabled:n==="submitting",className:"w-full bg-umber text-white px-8 py-4 font-heading font-semibold text-sm tracking-wide hover:bg-umber/90 transition-all duration-300 disabled:opacity-60 flex items-center justify-center gap-2",children:n==="submitting"?v.jsxs(v.Fragment,{children:[v.jsx(sE,{size:16,className:"animate-spin"})," Sending..."]}):"Send Enquiry"})]})}function gj(){return v.jsx("section",{id:"contact",className:"bg-arch-grey pt-12 md:pt-16 pb-20 md:pb-28 scroll-mt-8 md:scroll-mt-12",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-6",children:"Contact"}),v.jsx(ge.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"font-heading text-navy text-4xl md:text-5xl font-bold tracking-tight mb-10",children:"Get in Touch"}),v.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-start",children:[v.jsxs(ge.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.15,ease:[.22,1,.36,1]},className:"space-y-8",children:[v.jsx("p",{className:"text-navy/50 font-body text-lg leading-relaxed",children:"Whether you are exploring a marketing maturity scan, planning an executive strategy sprint, or seeking (fractional) interim management and board advisory, we would be glad to discuss how Les Nîmoises can support your organisation."}),v.jsxs("div",{className:"space-y-6",children:[v.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-4 group",children:[v.jsx("div",{className:"w-12 h-12 border border-umber/30 flex items-center justify-center",children:v.jsx(x0,{size:20,className:"text-umber"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:"Email"}),v.jsx("p",{className:"text-navy/80 font-body text-base group-hover:text-navy transition-colors duration-300",children:"[email protected]"})]})]}),v.jsxs("a",{href:"https://www.linkedin.com/company/les-nîmoises",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 group",children:[v.jsx("div",{className:"w-12 h-12 border border-umber/30 flex items-center justify-center",children:v.jsx(Yl,{size:20,className:"text-umber"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:"LinkedIn"}),v.jsx("p",{className:"text-navy/80 font-body text-base group-hover:text-navy transition-colors duration-300",children:"Connect on LinkedIn"})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"w-12 h-12 border border-umber/30 flex items-center justify-center",children:v.jsx(b0,{size:20,className:"text-umber"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:"Location"}),v.jsx("p",{className:"text-navy/80 font-body text-base",children:"Amsterdam, The Netherlands"})]})]})]})]}),v.jsx(mj,{})]})]})})}const yj=[{name:"GP Elite",logo:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/555e7cbef_gp_elite_logo_Update_Diap.png",href:"https://gp-elite.nl"},{name:"Audi",logo:"https://upload.wikimedia.org/wikipedia/commons/9/92/Audi-Logo_2016.svg",href:"https://www.audi.nl/nl/"},{name:"Vanquish Yachts",logo:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/0b06d9f3b_Afbeelding1.svg",href:"https://www.vanquish-yachts.com"},{name:"Porsche",logo:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/100a5545a_Afbeelding1.png",sizeClass:"h-8 w-auto",href:"https://www.porsche.com/netherlands/nl/"},{name:"Big Green Egg",logo:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/4fd885b46_biggreenegg-primary-logo87c75441.svg",noFilter:!0,href:"https://www.biggreenegg.eu/nl/"}],Nd={name:"Les Nîmoises",logo:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/bebaee2c1_Les_Nimoises_monogram_v6.jpg",sizeClass:"max-h-20 max-w-[260px]"};function vj(){return v.jsx("section",{id:"results",className:"bg-navy py-20 md:py-28",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,whileInView:{opacity:1},viewport:{once:!0},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-4",children:"Clients"}),v.jsx(ge.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"font-heading text-white text-3xl md:text-5xl font-bold tracking-tight mb-4",children:"Trusted by Leading Brands"}),v.jsx(ge.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.1,ease:[.22,1,.36,1]},className:"text-white/40 font-body text-base md:text-lg leading-relaxed mb-12 md:mb-20 max-w-xl",children:"A selection of organisations we have partnered with to drive purposeful transformation, develop aligned strategies, deliver high-impact marketing plans and inspire leadership teams across the premium and luxury sectors."}),v.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-px bg-umber/10",children:[yj.map((t,e)=>v.jsx(ge.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.08,duration:.5,ease:[.22,1,.36,1]},className:"bg-navy flex flex-col items-center justify-center px-8 py-10 group",children:v.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",children:v.jsx("img",{src:t.logo,alt:t.name,className:`${t.sizeClass||"max-h-10 max-w-[130px]"} object-contain transition-opacity duration-300 ${t.noFilter?"opacity-60 group-hover:opacity-90":"filter brightness-0 invert opacity-40 group-hover:opacity-80"}`})})},t.name)),v.jsx("div",{className:"hidden md:block bg-navy"}),v.jsx("div",{className:"hidden md:block bg-navy"}),v.jsx(ge.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4,duration:.5,ease:[.22,1,.36,1]},className:"bg-navy flex flex-col items-center justify-center px-8 py-10 group",children:v.jsx("a",{href:"https://www.lesnimoises.com",target:"_blank",rel:"noopener noreferrer",children:v.jsx("img",{src:Nd.logo,alt:Nd.name,className:`${Nd.sizeClass} object-contain transition-opacity duration-300 filter invert mix-blend-screen opacity-50 group-hover:opacity-80`})})}),v.jsx("div",{className:"hidden md:block bg-navy"}),v.jsx("div",{className:"hidden md:block bg-navy"})]})]})})}function wj({isOpen:t,onClose:e}){return t?v.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",children:v.jsxs("div",{className:"bg-card rounded-lg max-w-2xl w-full max-h-[80vh] overflow-y-auto",children:[v.jsxs("div",{className:"sticky top-0 bg-card border-b border-border flex items-center justify-between p-6",children:[v.jsx("h2",{className:"font-heading text-2xl font-bold text-foreground",children:"Privacy Statement"}),v.jsx("button",{onClick:e,className:"text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close",children:v.jsx(_f,{size:24})})]}),v.jsxs("div",{className:"p-8 space-y-8",children:[v.jsxs("div",{className:"space-y-3",children:[v.jsx("h3",{className:"font-heading text-lg font-bold text-foreground",children:"1. Introduction"}),v.jsx("p",{className:"text-foreground/70 font-body text-base leading-relaxed",children:"We use Google Analytics to gain insight into how visitors use our website. This helps us make the website more user-friendly."})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h3",{className:"font-heading text-lg font-bold text-foreground",children:"2. What data do we process?"}),v.jsx("p",{className:"text-foreground/70 font-body text-base leading-relaxed",children:"Google Analytics places cookies on our website. We process the following anonymised or limited data:"}),v.jsxs("ul",{className:"text-foreground/70 font-body text-base leading-relaxed space-y-2 ml-4",children:[v.jsx("li",{className:"list-disc",children:"Your IP address (with the last octet masked/anonymised)."}),v.jsx("li",{className:"list-disc",children:"Data about your device (type, browser) and screen resolution."}),v.jsx("li",{className:"list-disc",children:"Your location data (at a high level, such as country or region)."}),v.jsx("li",{className:"list-disc",children:"Information about your browsing behaviour on the website (which pages you visit, how long you stay, and so on)."})]})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h3",{className:"font-heading text-lg font-bold text-foreground",children:"3. Legal Basis and Purpose"}
179),v.jsx("p",{className:"text-foreground/70 font-body text-base leading-relaxed",children:"We collect these statistics on the basis of your consent (via our cookie notice), or on the basis of our legitimate interest in optimising our platform. We do not use this data to build personal profiles."})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h3",{className:"font-heading text-lg font-bold text-foreground",children:"4. Sharing with third parties"}),v.jsx("p",{className:"text-foreground/70 font-body text-base leading-relaxed",children:"Google acts as a data processor. The collected data is stored and processed in accordance with Google's privacy policy."})]})]})]})}):null}const xj=[{title:"Company",links:[{label:"About Us",href:"/#about"},{label:"Leadership",href:"/#team"},{label:"Contact",href:"/#contact"}]},{title:"Solutions",links:[{label:"Consulting",href:"/#services"},{label:"Strategy",href:"/?service=strategy#services"},{label:"Development",href:"/?service=development#services"},{label:"Getting Acquainted",href:"/?service=sprint#services"}]},{title:"Resources",links:[{label:"Clients",href:"/#results"}]},{title:"Legal",links:[{label:"Privacy",href:"#"}]}];function kh(){const[t,e]=F.useState(!1);return v.jsxs("footer",{id:"contact",className:"bg-navy border-t border-umber/20",children:[v.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-14 md:py-20",children:[v.jsxs("div",{className:"grid md:grid-cols-12 gap-12 md:gap-8 mb-20",children:[v.jsxs("div",{className:"md:col-span-4",children:[v.jsx("div",{className:"bg-umber inline-block px-3",children:v.jsx("img",{src:"https://media.base44.com/images/public/69e729a2e1f1532472b3b1e9/bd759d404_Les_Nimoises_logo_FINAL_white-black.png",alt:"Les Nîmoises",className:"h-20 w-auto",style:{mixBlendMode:"screen"}})}),v.jsx("p",{className:"text-white/40 font-body text-base leading-relaxed mt-6 max-w-xs",children:"Purposeful, manageable and future-focused organizational development."})]}),v.jsx("div",{className:"md:col-span-8 grid grid-cols-2 lg:grid-cols-4 gap-8",children:xj.map(n=>v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading text-white text-sm font-semibold tracking-wide mb-6",children:n.title}),v.jsx("ul",{className:"space-y-3",children:n.links.map(i=>v.jsx("li",{children:i.label==="Privacy"?v.jsx("button",{onClick:()=>e(!0),className:"text-white/40 hover:text-white/70 font-body text-sm transition-colors duration-300 cursor-pointer",children:i.label}):v.jsx("a",{href:i.href,className:"text-white/40 hover:text-white/70 font-body text-sm transition-colors duration-300",children:i.label})},i.label))})]},n.title))})]}),v.jsxs("div",{className:"border-t border-umber/10 pt-8 flex flex-col md:flex-row items-center justify-between gap-4",children:[v.jsxs("p",{className:"text-white/30 font-body text-sm",children:["© ",new Date().getFullYear()," Les Nîmoises B.V. All rights reserved."]}),v.jsxs("div",{className:"text-white/20 font-body text-xs tracking-wide space-y-1",children:[v.jsx("p",{children:"KvK: 97547808"}),v.jsx("p",{children:"VAT: NL868103342B01"}),v.jsx("p",{children:"Amsterdam, The Netherlands"})]})]})]}),v.jsx(wj,{isOpen:t,onClose:()=>e(!1)})]})}function bj(){return v.jsxs("div",{className:"min-h-screen",children:[v.jsx(_h,{}),v.jsx(oj,{}),v.jsx(lj,{}),v.jsx(uj,{}),v.jsx(hj,{}),v.jsx(fj,{}),v.jsx(dj,{}),v.jsx(vj,{}),v.jsx(pj,{}),v.jsx(gj,{}),v.jsx(kh,{})]})}function Sj(){return v.jsxs("div",{className:"bg-navy min-h-screen",children:[v.jsx(_h,{}),v.jsx("section",{className:"pt-32 pb-20 md:pt-40 md:pb-28",children:v.jsxs("div",{className:"max-w-3xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,animate:{opacity:1},transition:{duration:.8},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-6",children:"About Us"}),v.jsx(ge.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"font-heading text-white text-4xl md:text-5xl font-bold tracking-tight mb-10",children:"Our Roots"}),v.jsxs(ge.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.15,ease:[.22,1,.36,1]},className:"space-y-6 text-white/60 font-body text-lg leading-relaxed",children:[v.jsx("p",{children:"Les Nîmoises is an Amsterdam-based consultancy specialising in (fractional) interim management, organisational consultancy, and board advisory for premium and luxury brands. Founded on two decades of hands-on leadership experience across the automotive, yachting, and lifestyle sectors, the firm helps executive teams build organisations that are purposeful, manageable, and future-focused."}),v.jsx("p",{children:"Our practice is built around a structured five-pillar methodology that addresses strategy, structure, people, skills, and team energy. We work closely with leadership teams to diagnose organisational challenges, craft actionable strategic roadmaps, and implement sustainable change that aligns operational execution with long-term vision. Whether guiding a marketing maturity scan, facilitating an executive strategy sprint, or delivering inspirational talks grounded in real-world experience, every engagement is tailored to the unique dynamics of the premium and luxury market."}),v.jsx("p",{children:"Les Nîmoises was founded by Ruurd Neurink, an interim executive and consultant who has partnered with brands including Audi, Porsche, Vanquish Yachts, Big Green Egg, and GP Elite. The firm serves organisations that recognise the need for structured transformation — those seeking not incremental improvement, but purposeful evolution of their culture, capabilities, and commercial performance."}),v.jsx("p",{children:"For leadership teams navigating complexity, growth, or transformation, Les Nîmoises provides the clarity, structure, and hands-on expertise needed to move from intention to outcome."})]})]})}),v.jsx(kh,{})]})}function Ej(){return v.jsxs("div",{className:"bg-navy min-h-screen",children:[v.jsx(_h,{}),v.jsx("section",{className:"pt-32 pb-20 md:pt-40 md:pb-28",children:v.jsxs("div",{className:"max-w-3xl mx-auto px-6",children:[v.jsx(ge.p,{initial:{opacity:0}
179,animate:{opacity:1},transition:{duration:.8},className:"text-umber font-body text-xs tracking-[0.3em] uppercase mb-6",children:"Contact"}),v.jsx(ge.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"font-heading text-white text-4xl md:text-5xl font-bold tracking-tight mb-10",children:"Get in Touch"}),v.jsxs(ge.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.15,ease:[.22,1,.36,1]},className:"space-y-8",children:[v.jsx("p",{className:"text-white/50 font-body text-lg leading-relaxed",children:"Whether you are exploring a marketing maturity scan, planning an executive strategy sprint, or seeking (fractional) interim management and board advisory, we would be glad to discuss how Les Nîmoises can support your organisation."}),v.jsxs("div",{className:"space-y-6",children:[v.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-4 group",children:[v.jsx("div",{className:"w-12 h-12 border border-umber/30 flex items-center justify-center",children:v.jsx(x0,{size:20,className:"text-umber"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:"Email"}),v.jsx("p",{className:"text-white/80 font-body text-base group-hover:text-white transition-colors duration-300",children:"[email protected]"})]})]}),v.jsxs("a",{href:"https://linkedin.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 group",children:[v.jsx("div",{className:"w-12 h-12 border border-umber/30 flex items-center justify-center",children:v.jsx(Yl,{size:20,className:"text-umber"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:"LinkedIn"}),v.jsx("p",{className:"text-white/80 font-body text-base group-hover:text-white transition-colors duration-300",children:"Connect on LinkedIn"})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"w-12 h-12 border border-umber/30 flex items-center justify-center",children:v.jsx(b0,{size:20,className:"text-umber"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-umber font-body text-xs tracking-[0.2em] uppercase",children:"Location"}),v.jsx("p",{className:"text-white/80 font-body text-base",children:"Amsterdam, The Netherlands"})]})]})]})]})]})}),v.jsx(kh,{})]})}const _j=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:n,navigateToLogin:i}=AR();if(e||t)return v.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:v.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return v.jsx(NR,{});if(n.type==="auth_required")return i(),null}return v.jsxs(_k,{children:[v.jsx(wo,{path:"/",element:v.jsx(bj,{})}),v.jsx(wo,{path:"/about",element:v.jsx(Sj,{})}),v.jsx(wo,{path:"/contact",element:v.jsx(Ej,{})}),v.jsx(wo,{path:"*",element:v.jsx(PR,{})})]})};function kj(){return v.jsx(RR,{children:v.jsxs(T_,{client:U_,children:[v.jsx(Tk,{children:v.jsx(_j,{})}),v.jsx(t_,{})]})})}VS.createRoot(document.getElementById("root")).render(v.jsx(kj,{}));

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.