PageSourceSearch

https://fresh-corner.ch/assets/index-C__uY9Go.js

js fresh-corner.ch collected 2026-10-08 04:05:14 UTC 538,196 bytes, 216 lines download raw bytes

vendor: 6,401 bytes, lines 1-9
1var zb=Object.defineProperty;var kg=t=>{throw TypeError(t)};var $b=(t,e,n)=>e in t?zb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Be=(t,e,n)=>$b(t,typeof e!="symbol"?e+"":e,n),ud=(t,e,n)=>e.has(t)||kg("Cannot "+n);var R=(t,e,n)=>(ud(t,e,"read from private field"),n?n.call(t):e.get(t)),pe=(t,e,n)=>e.has(t)?kg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Z=(t,e,n,i)=>(ud(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Te=(t,e,n)=>(ud(t,e,"access private method"),n);var bl=(t,e,n,i)=>({set _(a){Z(t,e,a,n)},get _(){return R(t,e,i)}});function qb(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 _0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cd={exports:{}},xo={},dd={exports:{}},_e={};/**
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 Cg;function Wb(){if(Cg)return _e;Cg=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 x(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,$,ge){this.props=j,this.context=$,this.refs=_,this.updater=ge||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,$,ge){this.props=j,this.context=$,this.refs=_,this.updater=ge||b}var P=A.prototype=new S;P.constructor=A,C(P,E.prototype),P.isPureReactComponent=!0;var L=Array.isArray,I=Object.prototype.hasOwnProperty,z={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function U(j,$,ge){var ye,he={},G=null,xe=null;if($!=null)for(ye in $.ref!==void 0&&(xe=$.ref),$.key!==void 0&&(G=""+$.key),$)I.call($,ye)&&!Y.hasOwnProperty(ye)&&(he[ye]=$[ye]);var ke=arguments.length-2;if(ke===1)he.children=ge;else if(1<ke){for(var we=Array(ke),lt=0;lt<ke;lt++)we[lt]=arguments[lt+2];he.children=we}if(j&&j.defaultProps)for(ye in ke=j.defaultProps,ke)he[ye]===void 0&&(he[ye]=ke[ye]);return{$$typeof:t,type:j,key:G,ref:xe,props:he,_owner:z.current}}function ee(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 be(j){var $={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(ge){return $[ge]})}var Ae=/\/+/g;function Oe(j,$){return typeof j=="object"&&j!==null&&j.key!=null?be(""+j.key):$.toString(36)}function Ce(j,$,ge,ye,he){var G=typeof j;(G==="undefined"||G==="boolean")&&(j=null);var xe=!1;if(j===null)xe=!0;else switch(G){case"string":case"number":xe=!0;break;case"object":switch(j.$$typeof){case t:case e:xe=!0}}if(xe)return xe=j,he=he(xe),j=ye===""?"."+Oe(xe,0):ye,L(he)?(ge="",j!=null&&(ge=j.replace(Ae,"$&/")+"/"),Ce(he,$,ge,"",function(lt){return lt})):he!=null&&(ue(he)&&(he=ee(he,ge+(!he.key||xe&&xe.key===he.key?"":(""+he.key).replace(Ae,"$&/")+"/")+j)),$.push(he)),1;if(xe=0,ye=ye===""?".":ye+":",L(j))for(var ke=0;ke<j.length;ke++){G=j[ke];var we=ye+Oe(G,ke);xe+=Ce(G,$,ge,we,he)}else if(we=x(j),typeof we=="function")for(j=we.call(j),ke=0;!(G=j.next()).done;)G=G.value,we=ye+Oe(G,ke++),xe+=Ce(G,$,ge,we,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 xe}function Me(j,$,ge){if(j==null)return j;var ye=[],he=0;return Ce(j,ye,"","",function(G){return $.call(ge,G,he++)}),ye}function fe(j){if(j._status===-1){var $=j._result;$=$(),$.then(function(ge){(j._status===0||j._status===-1)&&(j._status=1,j._result=ge)},function(ge){(j._status===0||j._status===-1)&&(j._status=2,j._result=ge)}),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 V(){throw Error("act(...) is not supported in production builds of React.")}return _e.Children={map:Me,forEach:function(j,$,ge){Me(j,function(){$.apply(this,arguments)},ge)},count:function(j){var $=0;return Me(j,function(){$++}),$},toArray:function(j){return Me(j,function($){return $})||[]},only:function(j){if(!ue(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},_e.Component=E,_e.Fragment=n,_e.Profiler=a,_e.PureComponent=A,_e.StrictMode=i,_e.Suspense=h,_e.__SECRET_INT
vendor: 2,337 bytes, line 9
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,_e.act=V,_e.cloneElement=function(j,$,ge){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ye=C({},j.props),he=j.key,G=j.ref,xe=j._owner;if($!=null){if($.ref!==void 0&&(G=$.ref,xe=z.current),$.key!==void 0&&(he=""+$.key),j.type&&j.type.defaultProps)var ke=j.type.defaultProps;for(we in $)I.call($,we)&&!Y.hasOwnProperty(we)&&(ye[we]=$[we]===void 0&&ke!==void 0?ke[we]:$[we])}var we=arguments.length-2;if(we===1)ye.children=ge;else if(1<we){ke=Array(we);for(var lt=0;lt<we;lt++)ke[lt]=arguments[lt+2];ye.children=ke}return{$$typeof:t,type:j.type,key:he,ref:G,props:ye,_owner:xe}},_e.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},_e.createElement=U,_e.createFactory=function(j){var $=U.bind(null,j);return $.type=j,$},_e.createRef=function(){return{current:null}},_e.forwardRef=function(j){return{$$typeof:d,render:j}},_e.isValidElement=ue,_e.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:fe}},_e.memo=function(j,$){return{$$typeof:p,type:j,compare:$===void 0?null:$}},_e.startTransition=function(j){var $=K.transition;K.transition={};try{j()}finally{K.transition=$}},_e.unstable_act=V,_e.useCallback=function(j,$){return le.current.useCallback(j,$)},_e.useContext=function(j){return le.current.useContext(j)},_e.useDebugValue=function(){},_e.useDeferredValue=function(j){return le.current.useDeferredValue(j)},_e.useEffect=function(j,$){return le.current.useEffect(j,$)},_e.useId=function(){return le.current.useId()},_e.useImperativeHandle=function(j,$,ge){return le.current.useImperativeHandle(j,$,ge)},_e.useInsertionEffect=function(j,$){return le.current.useInsertionEffect(j,$)},_e.useLayoutEffect=function(j,$){return le.current.useLayoutEffect(j,$)},_e.useMemo=function(j,$){return le.current.useMemo(j,$)},_e.useReducer=function(j,$,ge){return le.current.useReducer(j,$,ge)},_e.useRef=function(j){return le.current.useRef(j)},_e.useState=function(j){return le.current.useState(j)},_e.useSyncExternalStore=function(j,$,ge){return le.current.useSyncExternalStore(j,$,ge)},_e.useTransition=function(){return le.current.useTransition()}
vendor: 7,001 bytes, lines 9-33
9,_e.version="18.3.1",_e}var Tg;function Lf(){return Tg||(Tg=1,dd.exports=Wb()),dd.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 Pg;function Hb(){if(Pg)return xo;Pg=1;var t=Lf(),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={},x=null,b=null;p!==void 0&&(x=""+p),h.key!==void 0&&(x=""+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:x,ref:b,props:y,_owner:a.current}}return xo.Fragment=n,xo.jsx=u,xo.jsxs=u,xo}var Rg;function Kb(){return Rg||(Rg=1,cd.exports=Hb()),cd.exports}var v=Kb(),M=Lf();const Qb=_0(M),Gb=qb({__proto__:null,default:Qb},[M]);var El={},fd={exports:{}},Bt={},hd={exports:{}},pd={};/**
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 Ag;function Xb(){return Ag||(Ag=1,(function(t){function e(K,se){var V=K.length;K.push(se);e:for(;0<V;){var j=V-1>>>1,$=K[j];if(0<a($,se))K[j]=se,K[V]=$,V=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],V=K.pop();if(V!==se){K[0]=V;e:for(var j=0,$=K.length,ge=$>>>1;j<ge;){var ye=2*(j+1)-1,he=K[ye],G=ye+1,xe=K[G];if(0>a(he,V))G<$&&0>a(xe,he)?(K[j]=xe,K[G]=V,j=G):(K[j]=he,K[ye]=V,j=ye);else if(G<$&&0>a(xe,V))K[j]=xe,K[G]=V,j=G;else break e}}return se}function a(K,se){var V=K.sortIndex-se.sortIndex;return V!==0?V: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,x=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 L(K){if(_=!1,P(K),!C)if(n(h)!==null)C=!0,fe(I);else{var se=n(p);se!==null&&le(L,se.startTime-K)}}function I(K,se){C=!1,_&&(_=!1,S(U),U=-1),b=!0;var V=x;try{for(P(se),y=n(h);y!==null&&(!(y.expirationTime>se)||K&&!be());){var j=y.callback;if(typeof j=="function"){y.callback=null,x=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 ge=!0;else{var ye=n(p);ye!==null&&le(L,ye.startTime-se),ge=!1}return ge}finally{y=null,x=V,b=!1}}var z=!1,Y=null,U=-1,ee=5,ue=-1;function be(){return!(t.unstable_now()-ue<ee)}function Ae(){if(Y!==null){var K=t.unstable_now();ue=K;var se=!0;try{se=Y(!0,K)}finally{se?Oe():(z=!1,Y=null)}}else z=!1}var Oe;if(typeof A=="function")Oe=function(){A(Ae)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Me=Ce.port2;Ce.port1.onmessage=Ae,Oe=function(){Me.postMessage(null)}}else Oe=function(){E(Ae,0)};function fe(K){Y=K,z||(z=!0,Oe())}function le(K,se){U=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(I))},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"):ee=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return n(h)},t.unstable_next=function(K){switch(x){case 1:case 2:case 3:var se=3;break;default:se=x}var V=x;x=se;try{return K()}finally{x=V}},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 V=x;x=K;try{return se()}finally{x=V}},t.unstable_scheduleCallback=function(K,se,V){var j=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?j+V:j):V=j,K){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=V+$,K={id:g++,callback:se,priorityLevel:K,startTime:V,expirationTime:$,sortIndex:-1},V>j?(K.sortIndex=V,e(p,K),n(h)===null&&K===n(p)&&(_?(S(U),U=-1):_=!0,le(L,V-j))):(K.sortIndex=$,e(h,K),C||b||(C=!0,fe(I))),K},t.unstable_shouldYield=be,t.unstable_wrapCallback=function(K){var se=x;return function(){var V=x;x=se;try{return K.apply(this,arguments)}finally{x=V}}}})(pd)),pd}var Ng;function Yb(){return Ng||(Ng=1,hd.exports=Xb()),hd.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 jg;function Jb(){if(jg)return Bt;jg=1;var t=Lf(),e=Yb();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 x(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: 45,266 bytes, lines 33-38
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,w){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=w}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?x(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 L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),z=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),be=Symbol.for("react.context"),Ae=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),Ce=Symbol.for("react.suspense_list"),Me=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 V=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 ge=!1;function ye(r,s){if(!r||ge)return"";ge=!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(B){var c=B}Reflect.construct(r,[],s)}else{try{s.call()}catch(B){c=B}r.call(s.prototype)}else{try{throw Error()}catch(B){c=B}r()}}catch(B){if(B&&c&&typeof B.stack=="string"){for(var f=B.stack.split(`
35`),m=c.stack.split(`
36`),w=f.length-1,k=m.length-1;1<=w&&0<=k&&f[w]!==m[k];)k--;for(;1<=w&&0<=k;w--,k--)if(f[w]!==m[k]){if(w!==1||k!==1)do if(w--,k--,0>k||f[w]!==m[k]){var T=`
37`+f[w].replace(" at new "," at ");return r.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",r.displayName)),T}while(1<=w&&0<=k);break}}}finally{ge=!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=ye(r.type,!1),r;case 11:return r=ye(r.type.render,!1),r;case 1:return r=ye(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 ee:return"Profiler";case U:return"StrictMode";case Oe:return"Suspense";case Ce:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case be:return(r.displayName||"Context")+".Consumer";case ue:return(r._context.displayName||"Context")+".Provider";case Ae:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Me: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 xe(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===U?"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 ke(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function we(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function lt(r){var s=we(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(w){c=""+w,m.call(this,w)}}),Object.defineProperty(r,s,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Xt(r){r._valueTracker||(r._valueTracker=lt(r))}function pt(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=we(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function dn(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 Yt(r,s){var o=s.checked;return V({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Jt(r,s){var o=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;o=ke(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 mt(r,s){Se(r,s);var o=ke(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")?hn(r,s.type,o):s.hasOwnProperty("defaultValue")&&hn(r,s.type,ke(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function fn(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 hn(r,s,o){(s!=="number"||dn(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var nr=Array.isArray;function rr(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=""+ke(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 In(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return V({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Dh(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(nr(o)){if(1<o.length)throw Error(n(93));o=o[0]}s=o}s==null&&(s=""),o=s}r._wrapperState={initialValue:ke(o)}}function Mh(r,s){var o=ke(s.value),c=ke(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 Fh(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function Ih(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 xu(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?Ih(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var pa,Bh=(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(pa=pa||document.createElement("div"),pa.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=pa.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Di(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var Mi={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},Hx=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(r){Hx.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Mi[s]=Mi[r]})});function Uh(r,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||Mi.hasOwnProperty(r)&&Mi[r]?(""+s).trim():s+"px"}function Vh(r,s){r=r.style;for(var o in s)if(s.hasOwnProperty(o)){var c=o.indexOf("--")===0,f=Uh(o,s[o],c);o==="float"&&(o="cssFloat"),c?r.setProperty(o,f):r[o]=f}}var Kx=V({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 Su(r,s){if(s){if(Kx[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 bu(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";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 Eu=null;function _u(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ku=null,js=null,Os=null;function zh(r){if(r=so(r)){if(typeof ku!="function")throw Error(n(280));var s=r.stateNode;s&&(s=Fa(s),ku(r.stateNode,r.type,s))}}function $h(r){js?Os?Os.push(r):Os=[r]:js=r}function qh(){if(js){var r=js,s=Os;if(Os=js=null,zh(r),s)for(r=0;r<s.length;r++)zh(s[r])}}function Wh(r,s){return r(s)}function Hh(){}var Cu=!1;function Kh(r,s,o){if(Cu)return r(s,o);Cu=!0;try{return Wh(r,s,o)}finally{Cu=!1,(js!==null||Os!==null)&&(Hh(),qh())}}function Fi(r,s){var o=r.stateNode;if(o===null)return null;var c=Fa(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 Tu=!1;if(d)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{Tu=!1}function Qx(r,s,o,c,f,m,w,k,T){var B=Array.prototype.slice.call(arguments,3);try{s.apply(o,B)}catch(W){this.onError(W)}}var Bi=!1,ma=null,ga=!1,Pu=null,Gx={onError:function(r){Bi=!0,ma=r}};function Xx(r,s,o,c,f,m,w,k,T){Bi=!1,ma=null,Qx.apply(Gx,arguments)}function Yx(r,s,o,c,f,m,w,k,T){if(Xx.apply(this,arguments),Bi){if(Bi){var B=ma;Bi=!1,ma=null}else throw Error(n(198));ga||(ga=!0,Pu=B)}}function qr(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 Qh(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 Gh(r){if(qr(r)!==r)throw Error(n(188))}function Jx(r){var s=r.alternate;if(!s){if(s=qr(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 Gh(f),r;if(m===c)return Gh(f),s;m=m.sibling}throw Error(n(188))}if(o.return!==c.return)o=f,c=m;else{for(var w=!1,k=f.child;k;){if(k===o){w=!0,o=f,c=m;break}if(k===c){w=!0,c=f,o=m;break}k=k.sibling}if(!w){for(k=m.child;k;){if(k===o){w=!0,o=m,c=f;break}if(k===c){w=!0,c=m,o=f;break}k=k.sibling}if(!w)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 Xh(r){return r=Jx(r),r!==null?Yh(r):null}function Yh(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=Yh(r);if(s!==null)return s;r=r.sibling}return null}var Jh=e.unstable_scheduleCallback,Zh=e.unstable_cancelCallback,Zx=e.unstable_shouldYield,eS=e.unstable_requestPaint,Ye=e.unstable_now,tS=e.unstable_getCurrentPriorityLevel,Ru=e.unstable_ImmediatePriority,ep=e.unstable_UserBlockingPriority,ya=e.unstable_NormalPriority,nS=e.unstable_LowPriority,tp=e.unstable_IdlePriority,va=null,Cn=null;function rS(r){if(Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(va,r,void 0,(r.current.flags&128)===128)}catch{}}var pn=Math.clz32?Math.clz32:oS,sS=Math.log,iS=Math.LN2;function oS(r){return r>>>=0,r===0?32:31-(sS(r)/iS|0)|0}var wa=64,xa=4194304;function Ui(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 Sa(r,s){var o=r.pendingLanes;if(o===0)return 0;var c=0,f=r.suspendedLanes,m=r.pingedLanes,w=o&268435455;if(w!==0){var k=w&~f;k!==0?c=Ui(k):(m&=w,m!==0&&(c=Ui(m)))}else w=o&~f,w!==0?c=Ui(w):m!==0&&(c=Ui(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-pn(s),f=1<<o,c|=r[o],s&=~f;return c}function aS(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 lS(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes;0<m;){var w=31-pn(m),k=1<<w,T=f[w];T===-1?((k&o)===0||(k&c)!==0)&&(f[w]=aS(k,s)):T<=s&&(r.expiredLanes|=k),m&=~k}}function Au(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function np(){var r=wa;return wa<<=1,(wa&4194240)===0&&(wa=64),r}function Nu(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function Vi(r,s,o){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-pn(s),r[s]=o}function uS(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-pn(o),m=1<<f;s[f]=0,c[f]=-1,r[f]=-1,o&=~m}}function ju(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-pn(o),f=1<<c;f&s|r[c]&s&&(r[c]|=s),o&=~f}}var Fe=0;function rp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var sp,Ou,ip,op,ap,Lu=!1,ba=[],sr=null,ir=null,or=null,zi=new Map,$i=new Map,ar=[],cS="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 lp(r,s){switch(r){case"focusin":case"focusout":sr=null;break;case"dragenter":case"dragleave":ir=null;break;case"mouseover":case"mouseout":or=null;break;case"pointerover":case"pointerout":zi.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":$i.delete(s.pointerId)}}function qi(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=so(s),s!==null&&Ou(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),r)}function dS(r,s,o,c,f){switch(s){case"focusin":return sr=qi(sr,r,s,o,c,f),!0;case"dragenter":return ir=qi(ir,r,s,o,c,f),!0;case"mouseover":return or=qi(or,r,s,o,c,f),!0;case"pointerover":var m=f.pointerId;return zi.set(m,qi(zi.get(m)||null,r,s,o,c,f)),!0;case"gotpointercapture":return m=f.pointerId,$i.set(m,qi($i.get(m)||null,r,s,o,c,f)),!0}return!1}function up(r){var s=Wr(r.target);if(s!==null){var o=qr(s);if(o!==null){if(s=o.tag,s===13){if(s=Qh(o),s!==null){r.blockedOn=s,ap(r.priority,function(){ip(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 Ea(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=Mu(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);Eu=c,o.target.dispatchEvent(c),Eu=null}else return s=so(o),s!==null&&Ou(s),r.blockedOn=o,!1;s.shift()}return!0}function cp(r,s,o){Ea(r)&&o.delete(s)}function fS(){Lu=!1,sr!==null&&Ea(sr)&&(sr=null),ir!==null&&Ea(ir)&&(ir=null),or!==null&&Ea(or)&&(or=null),zi.forEach(cp),$i.forEach(cp)}function Wi(r,s){r.blockedOn===s&&(r.blockedOn=null,Lu||(Lu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fS)))}function Hi(r){function s(f){return Wi(f,r)}if(0<ba.length){Wi(ba[0],r);for(var o=1;o<ba.length;o++){var c=ba[o];c.blockedOn===r&&(c.blockedOn=null)}}for(sr!==null&&Wi(sr,r),ir!==null&&Wi(ir,r),or!==null&&Wi(or,r),zi.forEach(s),$i.forEach(s),o=0;o<ar.length;o++)c=ar[o],c.blockedOn===r&&(c.blockedOn=null);for(;0<ar.length&&(o=ar[0],o.blockedOn===null);)up(o),o.blockedOn===null&&ar.shift()}var Ls=L.ReactCurrentBatchConfig,_a=!0;function hS(r,s,o,c){var f=Fe,m=Ls.transition;Ls.transition=null;try{Fe=1,Du(r,s,o,c)}finally{Fe=f,Ls.transition=m}}function pS(r,s,o,c){var f=Fe,m=Ls.transition;Ls.transition=null;try{Fe=4,Du(r,s,o,c)}finally{Fe=f,Ls.transition=m}}function Du(r,s,o,c){if(_a){var f=Mu(r,s,o,c);if(f===null)Zu(r,s,c,ka,o),lp(r,c);else if(dS(f,r,s,o,c))c.stopPropagation();else if(lp(r,c),s&4&&-1<cS.indexOf(r)){for(;f!==null;){var m=so(f);if(m!==null&&sp(m),m=Mu(r,s,o,c),m===null&&Zu(r,s,c,ka,o),m===f)break;f=m}f!==null&&c.stopPropagation()}else Zu(r,s,c,null,o)}}var ka=null;function Mu(r,s,o,c){if(ka=null,r=_u(c),r=Wr(r),r!==null)if(s=qr(r),s===null)r=null;else if(o=s.tag,o===13){if(r=Qh(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 ka=r,null}function dp(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(tS()){case Ru:return 1;case ep:return 4;case ya:case nS:return 16;case tp:return 536870912;default:return 16}default:return 16}}var lr=null,Fu=null,Ca=null;function fp(){if(Ca)return Ca;var r,s=Fu,o=s.length,c,f="value"in lr?lr.value:lr.textContent,m=f.length;for(r=0;r<o&&s[r]===f[r];r++);var w=o-r;for(c=1;c<=w&&s[o-c]===f[m-c];c++);return Ca=f.slice(r,1<c?1-c:void 0)}function Ta(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 Pa(){return!0}function hp(){return!1}function qt(r){function s(o,c,f,m,w){this._reactName=o,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=w,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)?Pa:hp,this.isPropagationStopped=hp,this}return V(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=Pa)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Pa)},persist:function(){},isPersistent:Pa}),s}var Ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Iu=qt(Ds),Ki=V({},Ds,{view:0,detail:0}),mS=qt(Ki),Bu,Uu,Qi,Ra=V({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,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!==Qi&&(Qi&&r.type==="mousemove"?(Bu=r.screenX-Qi.screenX,Uu=r.screenY-Qi.screenY):Uu=Bu=0,Qi=r),Bu)},movementY:function(r){return"movementY"in r?r.movementY:Uu}}),pp=qt(Ra),gS=V({},Ra,{dataTransfer:0}),yS=qt(gS),vS=V({},Ki,{relatedTarget:0}),Vu=qt(vS),wS=V({},Ds,{animationName:0,elapsedTime:0,pseudoElement:0}),xS=qt(wS),SS=V({},Ds,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),bS=qt(SS),ES=V({},Ds,{data:0}),mp=qt(ES),_S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kS={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"},CS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TS(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=CS[r])?!!s[r]:!1}function zu(){return TS}var PS=V({},Ki,{key:function(r){if(r.key){var s=_S[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Ta(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?kS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(r){return r.type==="keypress"?Ta(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ta(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),RS=qt(PS),AS=V({},Ra,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gp=qt(AS),NS=V({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),jS=qt(NS),OS=V({},Ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),LS=qt(OS),DS=V({},Ra,{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}),MS=qt(DS),FS=[9,13,27,32],$u=d&&"CompositionEvent"in window,Gi=null;d&&"documentMode"in document&&(Gi=document.documentMode);var IS=d&&"TextEvent"in window&&!Gi,yp=d&&(!$u||Gi&&8<Gi&&11>=Gi),vp=" ",wp=!1;function xp(r,s){switch(r){case"keyup":return FS.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ms=!1;function BS(r,s){switch(r){case"compositionend":return Sp(s);case"keypress":return s.which!==32?null:(wp=!0,vp);case"textInput":return r=s.data,r===vp&&wp?null:r;default:return null}}function US(r,s){if(Ms)return r==="compositionend"||!$u&&xp(r,s)?(r=fp(),Ca=Fu=lr=null,Ms=!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 yp&&s.locale!=="ko"?null:s.data;default:return null}}var VS={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 bp(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!VS[r.type]:s==="textarea"}function Ep(r,s,o,c){$h(c),s=La(s,"onChange"),0<s.length&&(o=new Iu("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var Xi=null,Yi=null;function zS(r){Vp(r,0)}function Aa(r){var s=Vs(r);if(pt(s))return r}function $S(r,s){if(r==="change")return s}var _p=!1;if(d){var qu;if(d){var Wu="oninput"in document;if(!Wu){var kp=document.createElement("div");kp.setAttribute("oninput","return;"),Wu=typeof kp.oninput=="function"}qu=Wu}else qu=!1;_p=qu&&(!document.documentMode||9<document.documentMode)}function Cp(){Xi&&(Xi.detachEvent("onpropertychange",Tp),Yi=Xi=null)}function Tp(r){if(r.propertyName==="value"&&Aa(Yi)){var s=[];Ep(s,Yi,r,_u(r)),Kh(zS,s)}}function qS(r,s,o){r==="focusin"?(Cp(),Xi=s,Yi=o,Xi.attachEvent("onpropertychange",Tp)):r==="focusout"&&Cp()}function WS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Aa(Yi)}function HS(r,s){if(r==="click")return Aa(s)}function KS(r,s){if(r==="input"||r==="change")return Aa(s)}function QS(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var mn=typeof Object.is=="function"?Object.is:QS;function Ji(r,s){if(mn(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)||!mn(r[f],s[f]))return!1}return!0}function Pp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Rp(r,s){var o=Pp(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=Pp(o)}}function Ap(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?Ap(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Np(){for(var r=window,s=dn();s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=dn(r.document)}return s}function Hu(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 GS(r){var s=Np(),o=r.focusedElem,c=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&Ap(o.ownerDocument.documentElement,o)){if(c!==null&&Hu(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=Rp(o,m);var w=Rp(o,c);f&&w&&(r.rangeCount!==1||r.anchorNode!==f.node||r.anchorOffset!==f.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(s=s.createRange(),s.setStart(f.node,f.offset),r.removeAllRanges(),m>c?(r.addRange(s),r.extend(w.node,w.offset)):(s.setEnd(w.node,w.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 XS=d&&"documentMode"in document&&11>=document.documentMode,Fs=null,Ku=null,Zi=null,Qu=!1;function jp(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qu||Fs==null||Fs!==dn(c)||(c=Fs,"selectionStart"in c&&Hu(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}),Zi&&Ji(Zi,c)||(Zi=c,c=La(Ku,"onSelect"),0<c.length&&(s=new Iu("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=Fs)))}function Na(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var Is={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionend:Na("Transition","TransitionEnd")},Gu={},Op={};d&&(Op=document.createElement("div").style,"AnimationEvent"in window||(delete Is.animationend.animation,delete Is.animationiteration.animation,delete Is.animationstart.animation),"TransitionEvent"in window||delete Is.transitionend.transition);function ja(r){if(Gu[r])return Gu[r];if(!Is[r])return r;var s=Is[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in Op)return Gu[r]=s[o];return r}var Lp=ja("animationend"),Dp=ja("animationiteration"),Mp=ja("animationstart"),Fp=ja("transitionend"),Ip=new Map,Bp="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 ur(r,s){Ip.set(r,s),l(s,[r])}for(var Xu=0;Xu<Bp.length;Xu++){var Yu=Bp[Xu],YS=Yu.toLowerCase(),JS=Yu[0].toUpperCase()+Yu.slice(1);ur(YS,"on"+JS)}ur(Lp,"onAnimationEnd"),ur(Dp,"onAnimationIteration"),ur(Mp,"onAnimationStart"),ur("dblclick","onDoubleClick"),ur("focusin","onFocus"),ur("focusout","onBlur"),ur(Fp,"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 eo="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(" "),ZS=new Set("cancel close invalid load scroll toggle".split(" ").concat(eo));function Up(r,s,o){var c=r.type||"unknown-event";r.currentTarget=o,Yx(c,s,void 0,r),r.currentTarget=null}function Vp(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 w=c.length-1;0<=w;w--){var k=c[w],T=k.instance,B=k.currentTarget;if(k=k.listener,T!==m&&f.isPropagationStopped())break e;Up(f,k,B),m=T}else for(w=0;w<c.length;w++){if(k=c[w],T=k.instance,B=k.currentTarget,k=k.listener,T!==m&&f.isPropagationStopped())break e;Up(f,k,B),m=T}}}if(ga)throw r=Pu,ga=!1,Pu=null,r}function Ue(r,s){var o=s[ic];o===void 0&&(o=s[ic]=new Set);var c=r+"__bubble";o.has(c)||(zp(s,r,2,!1),o.add(c))}function Ju(r,s,o){var c=0;s&&(c|=4),zp(o,r,c,s)}var Oa="_reactListening"+Math.random().toString(36).slice(2);function to(r){if(!r[Oa]){r[Oa]=!0,i.forEach(function(o){o!=="selectionchange"&&(ZS.has(o)||Ju(o,!1,r),Ju(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Oa]||(s[Oa]=!0,Ju("selectionchange",!1,s))}}function zp(r,s,o,c){switch(dp(s)){case 1:var f=hS;break;case 4:f=pS;break;default:f=Du}o=f.bind(null,s,o,r),f=void 0,!Tu||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 Zu(r,s,o,c,f){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var k=c.stateNode.containerInfo;if(k===f||k.nodeType===8&&k.parentNode===f)break;if(w===4)for(w=c.return;w!==null;){var T=w.tag;if((T===3||T===4)&&(T=w.stateNode.containerInfo,T===f||T.nodeType===8&&T.parentNode===f))return;w=w.return}for(;k!==null;){if(w=Wr(k),w===null)return;if(T=w.tag,T===5||T===6){c=m=w;continue e}k=k.parentNode}}c=c.return}Kh(function(){var B=m,W=_u(o),H=[];e:{var q=Ip.get(r);if(q!==void 0){var J=Iu,ne=r;switch(r){case"keypress":if(Ta(o)===0)break e;case"keydown":case"keyup":J=RS;break;case"focusin":ne="focus",J=Vu;break;case"focusout":ne="blur",J=Vu;break;case"beforeblur":case"afterblur":J=Vu;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=pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=yS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=jS;break;case Lp:case Dp:case Mp:J=xS;break;case Fp:J=LS;break;case"scroll":J=mS;break;case"wheel":J=MS;break;case"copy":case"cut":case"paste":J=bS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=gp}var oe=(s&4)!==0,Je=!oe&&r==="scroll",D=oe?q!==null?q+"Capture":null:q;oe=[];for(var N=B,F;N!==null;){F=N;var Q=F.stateNode;if(F.tag===5&&Q!==null&&(F=Q,D!==null&&(Q=Fi(N,D),Q!=null&&oe.push(no(N,Q,F)))),Je)break;N=N.return}0<oe.length&&(q=new J(q,ne,null,o,W),H.push({event:q,listeners:oe}))}}if((s&7)===0){e:{if(q=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",q&&o!==Eu&&(ne=o.relatedTarget||o.fromElement)&&(Wr(ne)||ne[Bn]))break e;if((J||q)&&(q=W.window===W?W:(q=W.ownerDocument)?q.defaultView||q.parentWindow:window,J?(ne=o.relatedTarget||o.toElement,J=B,ne=ne?Wr(ne):null,ne!==null&&(Je=qr(ne),ne!==Je||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(J=null,ne=B),J!==ne)){if(oe=pp,Q="onMouseLeave",D="onMouseEnter",N="mouse",(r==="pointerout"||r==="pointerover")&&(oe=gp,Q="onPointerLeave",D="onPointerEnter",N="pointer"),Je=J==null?q:Vs(J),F=ne==null?q:Vs(ne),q=new oe(Q,N+"leave",J,o,W),q.target=Je,q.relatedTarget=F,Q=null,Wr(W)===B&&(oe=new oe(D,N+"enter",ne,o,W),oe.target=F,oe.relatedTarget=Je,Q=oe),Je=Q,J&&ne)t:{for(oe=J,D=ne,N=0,F=oe;F;F=Bs(F))N++;for(F=0,Q=D;Q;Q=Bs(Q))F++;for(;0<N-F;)oe=Bs(oe),N--;for(;0<F-N;)D=Bs(D),F--;for(;N--;){if(oe===D||D!==null&&oe===D.alternate)break t;oe=Bs(oe),D=Bs(D)}oe=null}else oe=null;J!==null&&$p(H,q,J,oe,!1),ne!==null&&Je!==null&&$p(H,Je,ne,oe,!0)}}e:{if(q=B?Vs(B):window,J=q.nodeName&&q.nodeName.toLowerCase(),J==="select"||J==="input"&&q.type==="file")var ae=$S;else if(bp(q))if(_p)ae=KS;else{ae=WS;var ce=qS}else(J=q.nodeName)&&J.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(ae=HS);if(ae&&(ae=ae(r,B))){Ep(H,ae,o,W);break e}ce&&ce(r,q,B),r==="focusout"&&(ce=q._wrapperState)&&ce.controlled&&q.type==="number"&&hn(q,"number",q.value)}switch(ce=B?Vs(B):window,r){case"focusin":(bp(ce)||ce.contentEditable==="true")&&(Fs=ce,Ku=B,Zi=null);break;case"focusout":Zi=Ku=Fs=null;break;case"mousedown":Qu=!0;break;case"contextmenu":case"mouseup":case"dragend":Qu=!1,jp(H,o,W);break;case"selectionchange":if(XS)break;case"keydown":case"keyup":jp(H,o,W)}var de;if($u)e:{switch(r){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Ms?xp(r,o)&&(ve="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(ve="onCompositionStart");ve&&(yp&&o.locale!=="ko"&&(Ms||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Ms&&(de=fp()):(lr=W,Fu="value"in lr?lr.value:lr.textContent,Ms=!0)),ce=La(B,ve),0<ce.length&&(ve=new mp(ve,r,null,o,W),H.push({event:ve,listeners:ce}),de?ve.data=de:(de=Sp(o),de!==null&&(ve.data=de)))),(de=IS?BS(r,o):US(r,o))&&(B=La(B,"onBeforeInput"),0<B.length&&(W=new mp("onBeforeInput","beforeinput",null,o,W),H.push({event:W,listeners:B}),W.data=de))}Vp(H,s)})}function no(r,s,o){return{instance:r,listener:s,currentTarget:o}}function La(r,s){for(var o=s+"Capture",c=[];r!==null;){var f=r,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=Fi(r,o),m!=null&&c.unshift(no(r,m,f)),m=Fi(r,s),m!=null&&c.push(no(r,m,f))),r=r.return}return c}function Bs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function $p(r,s,o,c,f){for(var m=s._reactName,w=[];o!==null&&o!==c;){var k=o,T=k.alternate,B=k.stateNode;if(T!==null&&T===c)break;k.tag===5&&B!==null&&(k=B,f?(T=Fi(o,m),T!=null&&w.unshift(no(o,T,k))):f||(T=Fi(o,m),T!=null&&w.push(no(o,T,k)))),o=o.return}w.length!==0&&r.push({event:s,listeners:w})}var eb=/\r\n?/g,tb=/\u0000|\uFFFD/g;function qp(r){return(typeof r=="string"?r:""+r).replace(eb,`
38`).replace(tb,"")}function Da(r,s,o){if(s=qp(s),qp(r)!==s&&o)throw Error(n(425))}function Ma(){}var ec=null,tc=null;function nc(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 rc=typeof setTimeout=="function"?setTimeout:void 0,nb=typeof clearTimeout=="function"?clearTimeout:void 0,Wp=typeof Promise=="function"?Promise:void 0,rb=typeof queueMicrotask=="function"?queueMicrotask:typeof Wp<"u"?function(r){return Wp.resolve(null).then(r).catch(sb)}:rc;function sb(r){setTimeout(function(){throw r})}function sc(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),Hi(s);return}c--}else o!=="$"&&o!=="$?"&&o!=="$!"||c++;o=f}while(o);Hi(s)}function cr(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 Hp(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 Us=Math.random().toString(36).slice(2),Tn="__reactFiber$"+Us,ro="__reactProps$"+Us,Bn="__reactContainer$"+Us,ic="__reactEvents$"+Us,ib="__reactListeners$"+Us,ob="__reactHandles$"+Us;function Wr(r){var s=r[Tn];if(s)return s;for(var o=r.parentNode;o;){if(s=o[Bn]||o[Tn]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=Hp(r);r!==null;){if(o=r[Tn])return o;r=Hp(r)}return s}r=o,o=r.parentNode}return null}function so(r){return r=r[Tn]||r[Bn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Vs(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Fa(r){return r[ro]||null}var oc=[],zs=-1;function dr(r){return{current:r}}function Ve(r){0>zs||(r.current=oc[zs],oc[zs]=null,zs--)}function Ie(r,s){zs++,oc[zs]=r.current,r.current=s}var fr={},bt=dr(fr),Lt=dr(!1),Hr=fr;function $s(r,s){var o=r.type.contextTypes;if(!o)return fr;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 Dt(r){return r=r.childContextTypes,r!=null}function Ia(){Ve(Lt),Ve(bt)}function Kp(r,s,o){if(bt.current!==fr)throw Error(n(168));Ie(bt,s),Ie(Lt,o)}function Qp(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,xe(r)||"Unknown",f));return V({},o,c)}function Ba(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||fr,Hr=bt.current,Ie(bt,r),Ie(Lt,Lt.current),!0}function Gp(r,s,o){var c=r.stateNode;if(!c)throw Error(n(169));o?(r=Qp(r,s,Hr),c.__reactInternalMemoizedMergedChildContext=r,Ve(Lt),Ve(bt),Ie(bt,r)):Ve(Lt),Ie(Lt,o)}var Un=null,Ua=!1,ac=!1;function Xp(r){Un===null?Un=[r]:Un.push(r)}function ab(r){Ua=!0,Xp(r)}function hr(){if(!ac&&Un!==null){ac=!0;var r=0,s=Fe;try{var o=Un;for(Fe=1;r<o.length;r++){var c=o[r];do c=c(!0);while(c!==null)}Un=null,Ua=!1}catch(f){throw Un!==null&&(Un=Un.slice(r+1)),Jh(Ru,hr),f}finally{Fe=s,ac=!1}}return null}var qs=[],Ws=0,Va=null,za=0,Zt=[],en=0,Kr=null,Vn=1,zn="";function Qr(r,s){qs[Ws++]=za,qs[Ws++]=Va,Va=r,za=s}function Yp(r,s,o){Zt[en++]=Vn,Zt[en++]=zn,Zt[en++]=Kr,Kr=r;var c=Vn;r=zn;var f=32-pn(c)-1;c&=~(1<<f),o+=1;var m=32-pn(s)+f;if(30<m){var w=f-f%5;m=(c&(1<<w)-1).toString(32),c>>=w,f-=w,Vn=1<<32-pn(s)+f|o<<f|c,zn=m+r}else Vn=1<<m|o<<f|c,zn=r}function lc(r){r.return!==null&&(Qr(r,1),Yp(r,1,0))}function uc(r){for(;r===Va;)Va=qs[--Ws],qs[Ws]=null,za=qs[--Ws],qs[Ws]=null;for(;r===Kr;)Kr=Zt[--en],Zt[en]=null,zn=Zt[--en],Zt[en]=null,Vn=Zt[--en],Zt[en]=null}var Wt=null,Ht=null,$e=!1,gn=null;function Jp(r,s){var o=sn(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 Zp(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,Wt=r,Ht=cr(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,Wt=r,Ht=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=Kr!==null?{id:Vn,overflow:zn}:null,r.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=sn(18,null,null,0),o.stateNode=s,o.return=r,r.child=o,Wt=r,Ht=null,!0):!1;default:return!1}}function cc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function dc(r){if($e){var s=Ht;if(s){var o=s;if(!Zp(r,s)){if(cc(r))throw Error(n(418));s=cr(o.nextSibling);var c=Wt;s&&Zp(r,s)?Jp(c,o):(r.flags=r.flags&-4097|2,$e=!1,Wt=r)}}else{if(cc(r))throw Error(n(418));r.flags=r.flags&-4097|2,$e=!1,Wt=r}}}function em(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Wt=r}function $a(r){if(r!==Wt)return!1;if(!$e)return em(r),$e=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!nc(r.type,r.memoizedProps)),s&&(s=Ht)){if(cc(r))throw tm(),Error(n(418));for(;s;)Jp(r,s),s=cr(s.nextSibling)}if(em(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){Ht=cr(r.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}r=r.nextSibling}Ht=null}}else Ht=Wt?cr(r.stateNode.nextSibling):null;return!0}function tm(){for(var r=Ht;r;)r=cr(r.nextSibling)}function Hs(){Ht=Wt=null,$e=!1}function fc(r){gn===null?gn=[r]:gn.push(r)}var lb=L.ReactCurrentBatchConfig;function io(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(w){var k=f.refs;w===null?delete k[m]:k[m]=w},s._stringRef=m,s)}if(typeof r!="string")throw Error(n(284));if(!o._owner)throw Error(n(290,r))}return r}function qa(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function nm(r){var s=r._init;return s(r._payload)}
vendor: 7,700 bytes, line 38
38function rm(r){function s(D,N){if(r){var F=D.deletions;F===null?(D.deletions=[N],D.flags|=16):F.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=Sr(D,N),D.index=0,D.sibling=null,D}function m(D,N,F){return D.index=F,r?(F=D.alternate,F!==null?(F=F.index,F<N?(D.flags|=2,N):F):(D.flags|=2,N)):(D.flags|=1048576,N)}function w(D){return r&&D.alternate===null&&(D.flags|=2),D}function k(D,N,F,Q){return N===null||N.tag!==6?(N=rd(F,D.mode,Q),N.return=D,N):(N=f(N,F),N.return=D,N)}function T(D,N,F,Q){var ae=F.type;return ae===Y?W(D,N,F.props.children,Q,F.key):N!==null&&(N.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===fe&&nm(ae)===N.type)?(Q=f(N,F.props),Q.ref=io(D,N,F),Q.return=D,Q):(Q=pl(F.type,F.key,F.props,null,D.mode,Q),Q.ref=io(D,N,F),Q.return=D,Q)}function B(D,N,F,Q){return N===null||N.tag!==4||N.stateNode.containerInfo!==F.containerInfo||N.stateNode.implementation!==F.implementation?(N=sd(F,D.mode,Q),N.return=D,N):(N=f(N,F.children||[]),N.return=D,N)}function W(D,N,F,Q,ae){return N===null||N.tag!==7?(N=ns(F,D.mode,Q,ae),N.return=D,N):(N=f(N,F),N.return=D,N)}function H(D,N,F){if(typeof N=="string"&&N!==""||typeof N=="number")return N=rd(""+N,D.mode,F),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case I:return F=pl(N.type,N.key,N.props,null,D.mode,F),F.ref=io(D,null,N),F.return=D,F;case z:return N=sd(N,D.mode,F),N.return=D,N;case fe:var Q=N._init;return H(D,Q(N._payload),F)}if(nr(N)||se(N))return N=ns(N,D.mode,F,null),N.return=D,N;qa(D,N)}return null}function q(D,N,F,Q){var ae=N!==null?N.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ae!==null?null:k(D,N,""+F,Q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case I:return F.key===ae?T(D,N,F,Q):null;case z:return F.key===ae?B(D,N,F,Q):null;case fe:return ae=F._init,q(D,N,ae(F._payload),Q)}if(nr(F)||se(F))return ae!==null?null:W(D,N,F,Q,null);qa(D,F)}return null}function J(D,N,F,Q,ae){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return D=D.get(F)||null,k(N,D,""+Q,ae);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case I:return D=D.get(Q.key===null?F:Q.key)||null,T(N,D,Q,ae);case z:return D=D.get(Q.key===null?F:Q.key)||null,B(N,D,Q,ae);case fe:var ce=Q._init;return J(D,N,F,ce(Q._payload),ae)}if(nr(Q)||se(Q))return D=D.get(F)||null,W(N,D,Q,ae,null);qa(N,Q)}return null}function ne(D,N,F,Q){for(var ae=null,ce=null,de=N,ve=N=0,dt=null;de!==null&&ve<F.length;ve++){de.index>ve?(dt=de,de=null):dt=de.sibling;var je=q(D,de,F[ve],Q);if(je===null){de===null&&(de=dt);break}r&&de&&je.alternate===null&&s(D,de),N=m(je,N,ve),ce===null?ae=je:ce.sibling=je,ce=je,de=dt}if(ve===F.length)return o(D,de),$e&&Qr(D,ve),ae;if(de===null){for(;ve<F.length;ve++)de=H(D,F[ve],Q),de!==null&&(N=m(de,N,ve),ce===null?ae=de:ce.sibling=de,ce=de);return $e&&Qr(D,ve),ae}for(de=c(D,de);ve<F.length;ve++)dt=J(de,D,ve,F[ve],Q),dt!==null&&(r&&dt.alternate!==null&&de.delete(dt.key===null?ve:dt.key),N=m(dt,N,ve),ce===null?ae=dt:ce.sibling=dt,ce=dt);return r&&de.forEach(function(br){return s(D,br)}),$e&&Qr(D,ve),ae}function oe(D,N,F,Q){var ae=se(F);if(typeof ae!="function")throw Error(n(150));if(F=ae.call(F),F==null)throw Error(n(151));for(var ce=ae=null,de=N,ve=N=0,dt=null,je=F.next();de!==null&&!je.done;ve++,je=F.next()){de.index>ve?(dt=de,de=null):dt=de.sibling;var br=q(D,de,je.value,Q);if(br===null){de===null&&(de=dt);break}r&&de&&br.alternate===null&&s(D,de),N=m(br,N,ve),ce===null?ae=br:ce.sibling=br,ce=br,de=dt}if(je.done)return o(D,de),$e&&Qr(D,ve),ae;if(de===null){for(;!je.done;ve++,je=F.next())je=H(D,je.value,Q),je!==null&&(N=m(je,N,ve),ce===null?ae=je:ce.sibling=je,ce=je);return $e&&Qr(D,ve),ae}for(de=c(D,de);!je.done;ve++,je=F.next())je=J(de,D,ve,je.value,Q),je!==null&&(r&&je.alternate!==null&&de.delete(je.key===null?ve:je.key),N=m(je,N,ve),ce===null?ae=je:ce.sibling=je,ce=je);return r&&de.forEach(function(Vb){return s(D,Vb)}),$e&&Qr(D,ve),ae}function Je(D,N,F,Q){if(typeof F=="object"&&F!==null&&F.type===Y&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case I:e:{for(var ae=F.key,ce=N;ce!==null;){if(ce.key===ae){if(ae=F.type,ae===Y){if(ce.tag===7){o(D,ce.sibling),N=f(ce,F.props.children),N.return=D,D=N;break e}}else if(ce.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===fe&&nm(ae)===ce.type){o(D,ce.sibling),N=f(ce,F.props),N.ref=io(D,ce,F),N.return=D,D=N;break e}o(D,ce);break}else s(D,ce);ce=ce.sibling}F.type===Y?(N=ns(F.props.children,D.mode,Q,F.key),N.return=D,D=N):(Q=pl(F.type,F.key,F.props,null,D.mode,Q),Q.ref=io(D,N,F),Q.return=D,D=Q)}return w(D);case z:e:{for(ce=F.key;N!==null;){if(N.key===ce)if(N.tag===4&&N.stateNode.containerInfo===F.containerInfo&&N.stateNode.implementation===F.implementation){o(D,N.sibling),N=f(N,F.children||[]),N.return=D,D=N;break e}else{o(D,N);break}else s(D,N);N=N.sibling}N=sd(F,D.mode,Q),N.return=D,D=N}return w(D);case fe:return ce=F._init,Je(D,N,ce(F._payload),Q)}if(nr(F))return ne(D,N,F,Q);if(se(F))return oe(D,N,F,Q);qa(D,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,N!==null&&N.tag===6?(o(D,N.sibling),N=f(N,F),N.return=D,D=N):(o(D,N),N=rd(F,D.mode,Q),N.return=D,D=N),w(D)):o(D,N)}return Je}var Ks=rm(!0),sm=rm(!1),Wa=dr(null),Ha=null,Qs=null,hc=null;function pc(){hc=Qs=Ha=null}function mc(r){var s=Wa.current;Ve(Wa),r._currentValue=s}function gc(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 Gs(r,s){Ha=r,hc=Qs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(Mt=!0),r.firstContext=null)}function tn(r){var s=r._currentValue;if(hc!==r)if(r={context:r,memoizedValue:s,next:null},Qs===null){if(Ha===null)throw Error(n(308));Qs=r,Ha.dependencies={lanes:0,firstContext:r}}else Qs=Qs.next=r;return s}var Gr=null;function yc(r){Gr===null?Gr=[r]:Gr.push(r)}function im(r,s,o,c){var f=s.interleaved;return f===null?(o.next=o,yc(s)):(o.next=f.next,f.next=o),s.interleaved=o,$n(r,c)}function $n(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 pr=!1;function vc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function om(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 qn(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function mr(r,s,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Ne&2)!==0){var f=c.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s,$n(r,o)}return f=c.interleaved,f===null?(s.next=s,yc(c)):(s.next=f.next,f.next=s),c.interleaved=s,$n(r,o)}function Ka(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,ju(r,o)}}function am(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 w={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};m===null?f=m=w:m=m.next=w,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}
vendor: 9,724 bytes, line 38
38r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}function Qa(r,s,o,c){var f=r.updateQueue;pr=!1;var m=f.firstBaseUpdate,w=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var T=k,B=T.next;T.next=null,w===null?m=B:w.next=B,w=T;var W=r.alternate;W!==null&&(W=W.updateQueue,k=W.lastBaseUpdate,k!==w&&(k===null?W.firstBaseUpdate=B:k.next=B,W.lastBaseUpdate=T))}if(m!==null){var H=f.baseState;w=0,W=B=T=null,k=m;do{var q=k.lane,J=k.eventTime;if((c&q)===q){W!==null&&(W=W.next={eventTime:J,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ne=r,oe=k;switch(q=s,J=o,oe.tag){case 1:if(ne=oe.payload,typeof ne=="function"){H=ne.call(J,H,q);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=oe.payload,q=typeof ne=="function"?ne.call(J,H,q):ne,q==null)break e;H=V({},H,q);break e;case 2:pr=!0}}k.callback!==null&&k.lane!==0&&(r.flags|=64,q=f.effects,q===null?f.effects=[k]:q.push(k))}else J={eventTime:J,lane:q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},W===null?(B=W=J,T=H):W=W.next=J,w|=q;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;q=k,k=q.next,q.next=null,f.lastBaseUpdate=q,f.shared.pending=null}}while(!0);if(W===null&&(T=H),f.baseState=T,f.firstBaseUpdate=B,f.lastBaseUpdate=W,s=f.shared.interleaved,s!==null){f=s;do w|=f.lane,f=f.next;while(f!==s)}else m===null&&(f.shared.lanes=0);Jr|=w,r.lanes=w,r.memoizedState=H}}function lm(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 oo={},Pn=dr(oo),ao=dr(oo),lo=dr(oo);function Xr(r){if(r===oo)throw Error(n(174));return r}function wc(r,s){switch(Ie(lo,s),Ie(ao,r),Ie(Pn,oo),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:xu(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=xu(s,r)}Ve(Pn),Ie(Pn,s)}function Xs(){Ve(Pn),Ve(ao),Ve(lo)}function um(r){Xr(lo.current);var s=Xr(Pn.current),o=xu(s,r.type);s!==o&&(Ie(ao,r),Ie(Pn,o))}function xc(r){ao.current===r&&(Ve(Pn),Ve(ao))}var qe=dr(0);function Ga(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 Sc=[];function bc(){for(var r=0;r<Sc.length;r++)Sc[r]._workInProgressVersionPrimary=null;Sc.length=0}var Xa=L.ReactCurrentDispatcher,Ec=L.ReactCurrentBatchConfig,Yr=0,We=null,st=null,ut=null,Ya=!1,uo=!1,co=0,ub=0;function Et(){throw Error(n(321))}function _c(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!mn(r[o],s[o]))return!1;return!0}function kc(r,s,o,c,f,m){if(Yr=m,We=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Xa.current=r===null||r.memoizedState===null?hb:pb,r=o(c,f),uo){m=0;do{if(uo=!1,co=0,25<=m)throw Error(n(301));m+=1,ut=st=null,s.updateQueue=null,Xa.current=mb,r=o(c,f)}while(uo)}if(Xa.current=el,s=st!==null&&st.next!==null,Yr=0,ut=st=We=null,Ya=!1,s)throw Error(n(300));return r}function Cc(){var r=co!==0;return co=0,r}function Rn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?We.memoizedState=ut=r:ut=ut.next=r,ut}function nn(){if(st===null){var r=We.alternate;r=r!==null?r.memoizedState:null}else r=st.next;var s=ut===null?We.memoizedState:ut.next;if(s!==null)ut=s,st=r;else{if(r===null)throw Error(n(310));st=r,r={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},ut===null?We.memoizedState=ut=r:ut=ut.next=r}return ut}function fo(r,s){return typeof s=="function"?s(r):s}function Tc(r){var s=nn(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var c=st,f=c.baseQueue,m=o.pending;if(m!==null){if(f!==null){var w=f.next;f.next=m.next,m.next=w}c.baseQueue=f=m,o.pending=null}if(f!==null){m=f.next,c=c.baseState;var k=w=null,T=null,B=m;do{var W=B.lane;if((Yr&W)===W)T!==null&&(T=T.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),c=B.hasEagerState?B.eagerState:r(c,B.action);else{var H={lane:W,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};T===null?(k=T=H,w=c):T=T.next=H,We.lanes|=W,Jr|=W}B=B.next}while(B!==null&&B!==m);T===null?w=c:T.next=k,mn(c,s.memoizedState)||(Mt=!0),s.memoizedState=c,s.baseState=w,s.baseQueue=T,o.lastRenderedState=c}if(r=o.interleaved,r!==null){f=r;do m=f.lane,We.lanes|=m,Jr|=m,f=f.next;while(f!==r)}else f===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function Pc(r){var s=nn(),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 w=f=f.next;do m=r(m,w.action),w=w.next;while(w!==f);mn(m,s.memoizedState)||(Mt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),o.lastRenderedState=m}return[m,c]}function cm(){}function dm(r,s){var o=We,c=nn(),f=s(),m=!mn(c.memoizedState,f);if(m&&(c.memoizedState=f,Mt=!0),c=c.queue,Rc(pm.bind(null,o,c,r),[r]),c.getSnapshot!==s||m||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,ho(9,hm.bind(null,o,c,f,s),void 0,null),ct===null)throw Error(n(349));(Yr&30)!==0||fm(o,s,f)}return f}function fm(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=We.updateQueue,s===null?(s={lastEffect:null,stores:null},We.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function hm(r,s,o,c){s.value=o,s.getSnapshot=c,mm(s)&&gm(r)}function pm(r,s,o){return o(function(){mm(s)&&gm(r)})}function mm(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!mn(r,o)}catch{return!0}}function gm(r){var s=$n(r,1);s!==null&&xn(s,r,1,-1)}function ym(r){var s=Rn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:r},s.queue=r,r=r.dispatch=fb.bind(null,We,r),[s.memoizedState,r]}function ho(r,s,o,c){return r={tag:r,create:s,destroy:o,deps:c,next:null},s=We.updateQueue,s===null?(s={lastEffect:null,stores:null},We.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 vm(){return nn().memoizedState}function Ja(r,s,o,c){var f=Rn();We.flags|=r,f.memoizedState=ho(1|s,o,void 0,c===void 0?null:c)}function Za(r,s,o,c){var f=nn();c=c===void 0?null:c;var m=void 0;if(st!==null){var w=st.memoizedState;if(m=w.destroy,c!==null&&_c(c,w.deps)){f.memoizedState=ho(s,o,m,c);return}}We.flags|=r,f.memoizedState=ho(1|s,o,m,c)}function wm(r,s){return Ja(8390656,8,r,s)}function Rc(r,s){return Za(2048,8,r,s)}function xm(r,s){return Za(4,2,r,s)}function Sm(r,s){return Za(4,4,r,s)}function bm(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 Em(r,s,o){return o=o!=null?o.concat([r]):null,Za(4,4,bm.bind(null,s,r),o)}function Ac(){}function _m(r,s){var o=nn();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&_c(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function km(r,s){var o=nn();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&_c(s,c[1])?c[0]:(r=r(),o.memoizedState=[r,s],r)}function Cm(r,s,o){return(Yr&21)===0?(r.baseState&&(r.baseState=!1,Mt=!0),r.memoizedState=o):(mn(o,s)||(o=np(),We.lanes|=o,Jr|=o,r.baseState=!0),s)}function cb(r,s){var o=Fe;Fe=o!==0&&4>o?o:4,r(!0);var c=Ec.transition;Ec.transition={};try{r(!1),s()}finally{Fe=o,Ec.transition=c}}function Tm(){return nn().memoizedState}function db(r,s,o){var c=wr(r);if(o={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null},Pm(r))Rm(s,o);else if(o=im(r,s,o,c),o!==null){var f=jt();xn(o,r,c,f),Am(o,s,c)}}function fb(r,s,o){var c=wr(r),f={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null};if(Pm(r))Rm(s,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var w=s.lastRenderedState,k=m(w,o);if(f.hasEagerState=!0,f.eagerState=k,mn(k,w)){var T=s.interleaved;T===null?(f.next=f,yc(s)):(f.next=T.next,T.next=f),s.interleaved=f;return}}catch{}finally{}o=im(r,s,f,c),o!==null&&(f=jt(),xn(o,r,c,f),Am(o,s,c))}}function Pm(r){var s=r.alternate;return r===We||s!==null&&s===We}function Rm(r,s){uo=Ya=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function Am(r,s,o){if((o&4194240)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,ju(r,o)}}var el={readContext:tn,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useInsertionEffect:Et,useLayoutEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useMutableSource:Et,useSyncExternalStore:Et,useId:Et,unstable_isNewReconciler:!1},hb={readContext:tn,useCallback:function(r,s){return Rn().memoizedState=[r,s===void 0?null:s],r},useContext:tn,useEffect:wm,useImperativeHandle:function(r,s,o){return o=o!=null?o.concat([r]):null,Ja(4194308,4,bm.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Ja(4194308,4,r,s)},useInsertionEffect:function(r,s){return Ja(4,2,r,s)},useMemo:function(r,s){var o=Rn();return s=s===void 0?null:s,r=r(),o.memoizedState=[r,s],r},useReducer:function(r,s,o){var c=Rn();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=db.bind(null,We,r),[c.memoizedState,r]}
vendor: 5,350 bytes, lines 38-40
38,useRef:function(r){var s=Rn();return r={current:r},s.memoizedState=r},useState:ym,useDebugValue:Ac,useDeferredValue:function(r){return Rn().memoizedState=r},useTransition:function(){var r=ym(!1),s=r[0];return r=cb.bind(null,r[1]),Rn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,o){var c=We,f=Rn();if($e){if(o===void 0)throw Error(n(407));o=o()}else{if(o=s(),ct===null)throw Error(n(349));(Yr&30)!==0||fm(c,s,o)}f.memoizedState=o;var m={value:o,getSnapshot:s};return f.queue=m,wm(pm.bind(null,c,m,r),[r]),c.flags|=2048,ho(9,hm.bind(null,c,m,o,s),void 0,null),o},useId:function(){var r=Rn(),s=ct.identifierPrefix;if($e){var o=zn,c=Vn;o=(c&~(1<<32-pn(c)-1)).toString(32)+o,s=":"+s+"R"+o,o=co++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=ub++,s=":"+s+"r"+o.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},pb={readContext:tn,useCallback:_m,useContext:tn,useEffect:Rc,useImperativeHandle:Em,useInsertionEffect:xm,useLayoutEffect:Sm,useMemo:km,useReducer:Tc,useRef:vm,useState:function(){return Tc(fo)},useDebugValue:Ac,useDeferredValue:function(r){var s=nn();return Cm(s,st.memoizedState,r)},useTransition:function(){var r=Tc(fo)[0],s=nn().memoizedState;return[r,s]},useMutableSource:cm,useSyncExternalStore:dm,useId:Tm,unstable_isNewReconciler:!1},mb={readContext:tn,useCallback:_m,useContext:tn,useEffect:Rc,useImperativeHandle:Em,useInsertionEffect:xm,useLayoutEffect:Sm,useMemo:km,useReducer:Pc,useRef:vm,useState:function(){return Pc(fo)},useDebugValue:Ac,useDeferredValue:function(r){var s=nn();return st===null?s.memoizedState=r:Cm(s,st.memoizedState,r)},useTransition:function(){var r=Pc(fo)[0],s=nn().memoizedState;return[r,s]},useMutableSource:cm,useSyncExternalStore:dm,useId:Tm,unstable_isNewReconciler:!1};function yn(r,s){if(r&&r.defaultProps){s=V({},s),r=r.defaultProps;for(var o in r)s[o]===void 0&&(s[o]=r[o]);return s}return s}function Nc(r,s,o,c){s=r.memoizedState,o=o(c,s),o=o==null?s:V({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var tl={isMounted:function(r){return(r=r._reactInternals)?qr(r)===r:!1},enqueueSetState:function(r,s,o){r=r._reactInternals;var c=jt(),f=wr(r),m=qn(c,f);m.payload=s,o!=null&&(m.callback=o),s=mr(r,m,f),s!==null&&(xn(s,r,f,c),Ka(s,r,f))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=jt(),f=wr(r),m=qn(c,f);m.tag=1,m.payload=s,o!=null&&(m.callback=o),s=mr(r,m,f),s!==null&&(xn(s,r,f,c),Ka(s,r,f))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=jt(),c=wr(r),f=qn(o,c);f.tag=2,s!=null&&(f.callback=s),s=mr(r,f,c),s!==null&&(xn(s,r,c,o),Ka(s,r,c))}};function Nm(r,s,o,c,f,m,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,w):s.prototype&&s.prototype.isPureReactComponent?!Ji(o,c)||!Ji(f,m):!0}function jm(r,s,o){var c=!1,f=fr,m=s.contextType;return typeof m=="object"&&m!==null?m=tn(m):(f=Dt(s)?Hr:bt.current,c=s.contextTypes,m=(c=c!=null)?$s(r,f):fr),s=new s(o,m),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=tl,r.stateNode=s,s._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=f,r.__reactInternalMemoizedMaskedChildContext=m),s}function Om(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&&tl.enqueueReplaceState(s,s.state,null)}function jc(r,s,o,c){var f=r.stateNode;f.props=o,f.state=r.memoizedState,f.refs={},vc(r);var m=s.contextType;typeof m=="object"&&m!==null?f.context=tn(m):(m=Dt(s)?Hr:bt.current,f.context=$s(r,m)),f.state=r.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(Nc(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&&tl.enqueueReplaceState(f,f.state,null),Qa(r,o,f,c),f.state=r.memoizedState),typeof f.componentDidMount=="function"&&(r.flags|=4194308)}function Ys(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 Oc(r,s,o){return{value:r,source:null,stack:o??null,digest:s??null}}function Lc(r,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var gb=typeof WeakMap=="function"?WeakMap:Map;function Lm(r,s,o){o=qn(-1,o),o.tag=3,o.payload={element:null};var c=s.value;return o.callback=function(){ll||(ll=!0,Gc=c),Lc(r,s)},o}function Dm(r,s,o){o=qn(-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(){Lc(r,s)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(o.callback=function(){Lc(r,s),typeof c!="function"&&(yr===null?yr=new Set([this]):yr.add(this));var w=s.stack;this.componentDidCatch(s.value,{componentStack:w!==null?w:""})}),o}function Mm(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new gb;var f=new Set;c.set(s,f)}else f=c.get(s),f===void 0&&(f=new Set,c.set(s,f));
vendor: 15,802 bytes, line 40
40f.has(o)||(f.add(o),r=Ab.bind(null,r,s,o),s.then(r,r))}function Fm(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 Im(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=qn(-1,1),s.tag=2,mr(o,s,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=f,r)}var yb=L.ReactCurrentOwner,Mt=!1;function Nt(r,s,o,c){s.child=r===null?sm(s,null,o,c):Ks(s,r.child,o,c)}function Bm(r,s,o,c,f){o=o.render;var m=s.ref;return Gs(s,f),c=kc(r,s,o,c,m,f),o=Cc(),r!==null&&!Mt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,Wn(r,s,f)):($e&&o&&lc(s),s.flags|=1,Nt(r,s,c,f),s.child)}function Um(r,s,o,c,f){if(r===null){var m=o.type;return typeof m=="function"&&!nd(m)&&m.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=m,Vm(r,s,m,c,f)):(r=pl(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 w=m.memoizedProps;if(o=o.compare,o=o!==null?o:Ji,o(w,c)&&r.ref===s.ref)return Wn(r,s,f)}return s.flags|=1,r=Sr(m,c),r.ref=s.ref,r.return=s,s.child=r}function Vm(r,s,o,c,f){if(r!==null){var m=r.memoizedProps;if(Ji(m,c)&&r.ref===s.ref)if(Mt=!1,s.pendingProps=c=m,(r.lanes&f)!==0)(r.flags&131072)!==0&&(Mt=!0);else return s.lanes=r.lanes,Wn(r,s,f)}return Dc(r,s,o,c,f)}function zm(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},Ie(Zs,Kt),Kt|=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,Ie(Zs,Kt),Kt|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:o,Ie(Zs,Kt),Kt|=c}else m!==null?(c=m.baseLanes|o,s.memoizedState=null):c=o,Ie(Zs,Kt),Kt|=c;return Nt(r,s,f,o),s.child}function $m(r,s){var o=s.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function Dc(r,s,o,c,f){var m=Dt(o)?Hr:bt.current;return m=$s(s,m),Gs(s,f),o=kc(r,s,o,c,m,f),c=Cc(),r!==null&&!Mt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~f,Wn(r,s,f)):($e&&c&&lc(s),s.flags|=1,Nt(r,s,o,f),s.child)}function qm(r,s,o,c,f){if(Dt(o)){var m=!0;Ba(s)}else m=!1;if(Gs(s,f),s.stateNode===null)rl(r,s),jm(s,o,c),jc(s,o,c,f),c=!0;else if(r===null){var w=s.stateNode,k=s.memoizedProps;w.props=k;var T=w.context,B=o.contextType;typeof B=="object"&&B!==null?B=tn(B):(B=Dt(o)?Hr:bt.current,B=$s(s,B));var W=o.getDerivedStateFromProps,H=typeof W=="function"||typeof w.getSnapshotBeforeUpdate=="function";H||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(k!==c||T!==B)&&Om(s,w,c,B),pr=!1;var q=s.memoizedState;w.state=q,Qa(s,c,w,f),T=s.memoizedState,k!==c||q!==T||Lt.current||pr?(typeof W=="function"&&(Nc(s,o,W,c),T=s.memoizedState),(k=pr||Nm(s,o,k,c,q,T,B))?(H||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(s.flags|=4194308)):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=T),w.props=c,w.state=T,w.context=B,c=k):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{w=s.stateNode,om(r,s),k=s.memoizedProps,B=s.type===s.elementType?k:yn(s.type,k),w.props=B,H=s.pendingProps,q=w.context,T=o.contextType,typeof T=="object"&&T!==null?T=tn(T):(T=Dt(o)?Hr:bt.current,T=$s(s,T));var J=o.getDerivedStateFromProps;(W=typeof J=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(k!==H||q!==T)&&Om(s,w,c,T),pr=!1,q=s.memoizedState,w.state=q,Qa(s,c,w,f);var ne=s.memoizedState;k!==H||q!==ne||Lt.current||pr?(typeof J=="function"&&(Nc(s,o,J,c),ne=s.memoizedState),(B=pr||Nm(s,o,B,c,q,ne,T)||!1)?(W||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,ne,T),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,ne,T)),typeof w.componentDidUpdate=="function"&&(s.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof w.componentDidUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=ne),w.props=c,w.state=ne,w.context=T,c=B):(typeof w.componentDidUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&q===r.memoizedState||(s.flags|=1024),c=!1)}return Mc(r,s,o,c,m,f)}function Mc(r,s,o,c,f,m){$m(r,s);var w=(s.flags&128)!==0;if(!c&&!w)return f&&Gp(s,o,!1),Wn(r,s,m);c=s.stateNode,yb.current=s;var k=w&&typeof o.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,r!==null&&w?(s.child=Ks(s,r.child,null,m),s.child=Ks(s,null,k,m)):Nt(r,s,k,m),s.memoizedState=c.state,f&&Gp(s,o,!0),s.child}function Wm(r){var s=r.stateNode;s.pendingContext?Kp(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Kp(r,s.context,!1),wc(r,s.containerInfo)}function Hm(r,s,o,c,f){return Hs(),fc(f),s.flags|=256,Nt(r,s,o,c),s.child}var Fc={dehydrated:null,treeContext:null,retryLane:0};function Ic(r){return{baseLanes:r,cachePool:null,transitions:null}}function Km(r,s,o){var c=s.pendingProps,f=qe.current,m=!1,w=(s.flags&128)!==0,k;if((k=w)||(k=r!==null&&r.memoizedState===null?!1:(f&2)!==0),k?(m=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(f|=1),Ie(qe,f&1),r===null)return dc(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):(w=c.children,r=c.fallback,m?(c=s.mode,m=s.child,w={mode:"hidden",children:w},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=w):m=ml(w,c,0,null),r=ns(r,c,o,null),m.return=s,r.return=s,m.sibling=r,s.child=m,s.child.memoizedState=Ic(o),s.memoizedState=Fc,r):Bc(s,w));if(f=r.memoizedState,f!==null&&(k=f.dehydrated,k!==null))return vb(r,s,w,c,k,f,o);if(m){m=c.fallback,w=s.mode,f=r.child,k=f.sibling;var T={mode:"hidden",children:c.children};return(w&1)===0&&s.child!==f?(c=s.child,c.childLanes=0,c.pendingProps=T,s.deletions=null):(c=Sr(f,T),c.subtreeFlags=f.subtreeFlags&14680064),k!==null?m=Sr(k,m):(m=ns(m,w,o,null),m.flags|=2),m.return=s,c.return=s,c.sibling=m,s.child=c,c=m,m=s.child,w=r.child.memoizedState,w=w===null?Ic(o):{baseLanes:w.baseLanes|o,cachePool:null,transitions:w.transitions},m.memoizedState=w,m.childLanes=r.childLanes&~o,s.memoizedState=Fc,c}return m=r.child,r=m.sibling,c=Sr(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 Bc(r,s){return s=ml({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function nl(r,s,o,c){return c!==null&&fc(c),Ks(s,r.child,null,o),r=Bc(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function vb(r,s,o,c,f,m,w){if(o)return s.flags&256?(s.flags&=-257,c=Oc(Error(n(422))),nl(r,s,w,c)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(m=c.fallback,f=s.mode,c=ml({mode:"visible",children:c.children},f,0,null),m=ns(m,f,w,null),m.flags|=2,c.return=s,m.return=s,c.sibling=m,s.child=c,(s.mode&1)!==0&&Ks(s,r.child,null,w),s.child.memoizedState=Ic(w),s.memoizedState=Fc,m);if((s.mode&1)===0)return nl(r,s,w,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var k=c.dgst;return c=k,m=Error(n(419)),c=Oc(m,c,void 0),nl(r,s,w,c)}if(k=(w&r.childLanes)!==0,Mt||k){if(c=ct,c!==null){switch(w&-w){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|w))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,$n(r,f),xn(c,r,f,-1))}return td(),c=Oc(Error(n(421))),nl(r,s,w,c)}return f.data==="$?"?(s.flags|=128,s.child=r.child,s=Nb.bind(null,r),f._reactRetry=s,null):(r=m.treeContext,Ht=cr(f.nextSibling),Wt=s,$e=!0,gn=null,r!==null&&(Zt[en++]=Vn,Zt[en++]=zn,Zt[en++]=Kr,Vn=r.id,zn=r.overflow,Kr=s),s=Bc(s,c.children),s.flags|=4096,s)}function Qm(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),gc(r.return,s,o)}function Uc(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 Gm(r,s,o){var c=s.pendingProps,f=c.revealOrder,m=c.tail;if(Nt(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&&Qm(r,o,s);else if(r.tag===19)Qm(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(Ie(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&&Ga(r)===null&&(f=o),o=o.sibling;o=f,o===null?(f=s.child,s.child=null):(f=o.sibling,o.sibling=null),Uc(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&&Ga(r)===null){s.child=f;break}r=f.sibling,f.sibling=o,o=f,f=r}Uc(s,!0,o,null,m);break;case"together":Uc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function rl(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function Wn(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Jr|=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=Sr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=Sr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function wb(r,s,o){switch(s.tag){case 3:Wm(s),Hs();break;case 5:um(s);break;case 1:Dt(s.type)&&Ba(s);break;case 4:wc(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,f=s.memoizedProps.value;Ie(Wa,c._currentValue),c._currentValue=f;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Ie(qe,qe.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?Km(r,s,o):(Ie(qe,qe.current&1),r=Wn(r,s,o),r!==null?r.sibling:null);Ie(qe,qe.current&1);break;case 19:if(c=(o&s.childLanes)!==0,(r.flags&128)!==0){if(c)return Gm(r,s,o);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Ie(qe,qe.current),c)break;return null;case 22:case 23:return s.lanes=0,zm(r,s,o)}return Wn(r,s,o)}var Xm,Vc,Ym,Jm;Xm=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}},Vc=function(){},Ym=function(r,s,o,c){var f=r.memoizedProps;if(f!==c){r=s.stateNode,Xr(Pn.current);var m=null;switch(o){case"input":f=Yt(r,f),c=Yt(r,c),m=[];break;case"select":f=V({},f,{value:void 0}),c=V({},c,{value:void 0}),m=[];break;case"textarea":f=In(r,f),c=In(r,c),m=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Ma)}Su(o,c);var w;o=null;for(B in f)if(!c.hasOwnProperty(B)&&f.hasOwnProperty(B)&&f[B]!=null)if(B==="style"){var k=f[B];for(w in k)k.hasOwnProperty(w)&&(o||(o={}),o[w]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(a.hasOwnProperty(B)?m||(m=[]):(m=m||[]).push(B,null));for(B in c){var T=c[B];if(k=f!=null?f[B]:void 0,c.hasOwnProperty(B)&&T!==k&&(T!=null||k!=null))if(B==="style")if(k){for(w in k)!k.hasOwnProperty(w)||T&&T.hasOwnProperty(w)||(o||(o={}),o[w]="");for(w in T)T.hasOwnProperty(w)&&k[w]!==T[w]&&(o||(o={}),o[w]=T[w])}else o||(m||(m=[]),m.push(B,o)),o=T;else B==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,k=k?k.__html:void 0,T!=null&&k!==T&&(m=m||[]).push(B,T)):B==="children"?typeof T!="string"&&typeof T!="number"||(m=m||[]).push(B,""+T):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(a.hasOwnProperty(B)?(T!=null&&B==="onScroll"&&Ue("scroll",r),m||k===T||(m=[])):(m=m||[]).push(B,T))}o&&(m=m||[]).push("style",o);var B=m;(s.updateQueue=B)&&(s.flags|=4)}},Jm=function(r,s,o,c){o!==c&&(s.flags|=4)};function po(r,s){if(!$e)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 _t(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 xb(r,s,o){var c=s.pendingProps;switch(uc(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(s),null;case 1:return Dt(s.type)&&Ia(),_t(s),null;case 3:return c=s.stateNode,Xs(),Ve(Lt),Ve(bt),bc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&($a(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,gn!==null&&(Jc(gn),gn=null))),Vc(r,s),_t(s),null;case 5:xc(s);var f=Xr(lo.current);if(o=s.type,r!==null&&s.stateNode!=null)Ym(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 _t(s),null}if(r=Xr(Pn.current),$a(s)){c=s.stateNode,o=s.type;var m=s.memoizedProps;switch(c[Tn]=s,c[ro]=m,r=(s.mode&1)!==0,o){case"dialog":Ue("cancel",c),Ue("close",c);break;case"iframe":case"object":case"embed":Ue("load",c);break;case"video":case"audio":for(f=0;f<eo.length;f++)Ue(eo[f],c);break;case"source":Ue("error",c);break;case"img":case"image":case"link":Ue("error",c),Ue("load",c);break;case"details":Ue("toggle",c);break;case"input":Jt(c,m),Ue("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Ue("invalid",c);break;case"textarea":Dh(c,m),Ue("invalid",c)}Su(o,m),f=null;for(var w in m)if(m.hasOwnProperty(w)){var k=m[w];w==="children"?typeof k=="string"?c.textContent!==k&&(m.suppressHydrationWarning!==!0&&Da(c.textContent,k,r),f=["children",k]):typeof k=="number"&&c.textContent!==""+k&&(m.suppressHydrationWarning!==!0&&Da(c.textContent,k,r),f=["children",""+k]):a.hasOwnProperty(w)&&k!=null&&w==="onScroll"&&Ue("scroll",c)}switch(o){case"input":Xt(c),fn(c,m,!0);break;case"textarea":Xt(c),Fh(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Ma)}c=f,s.updateQueue=c,c!==null&&(s.flags|=4)}else{w=f.nodeType===9?f:f.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Ih(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>
40",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=w.createElement(o,{is:c.is}):(r=w.createElement(o),o==="select"&&(w=r,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):r=w.createElementNS(r,o),r[Tn]=s,r[ro]=c,Xm(r,s,!1,!1),s.stateNode=r;e:{switch(w=bu(o,c),o){case"dialog":Ue("cancel",r),Ue("close",r),f=c;break;case"iframe":case"object":case"embed":Ue("load",r),f=c;break;case"video":case"audio":for(f=0;f<eo.length;f++)Ue(eo[f],r);f=c;break;case"source":Ue("error",r),f=c;break;case"img":case"image":case"link":Ue("error",r),Ue("load",r),f=c;break;case"details":Ue("toggle",r),f=c;break;case"input":Jt(r,c),f=Yt(r,c),Ue("invalid",r);break;case"option":f=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},f=V({},c,{value:void 0}),Ue("invalid",r);break;case"textarea":Dh(r,c),f=In(r,c),Ue("invalid",r);break;default:f=c}Su(o,f),k=f;for(m in k)if(k.hasOwnProperty(m)){var T=k[m];m==="style"?Vh(r,T):m==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&Bh(r,T)):m==="children"?typeof T=="string"?(o!=="textarea"||T!=="")&&Di(r,T):typeof T=="number"&&Di(r,""+T):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?T!=null&&m==="onScroll"&&Ue("scroll",r):T!=null&&P(r,m,T,w))}switch(o){case"input":Xt(r),fn(r,c,!1);break;case"textarea":Xt(r),Fh(r);break;case"option":c.value!=null&&r.setAttribute("value",""+ke(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?rr(r,!!c.multiple,m,!1):c.defaultValue!=null&&rr(r,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(r.onclick=Ma)}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 _t(s),null;case 6:if(r&&s.stateNode!=null)Jm(r,s,r.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(o=Xr(lo.current),Xr(Pn.current),$a(s)){if(c=s.stateNode,o=s.memoizedProps,c[Tn]=s,(m=c.nodeValue!==o)&&(r=Wt,r!==null))switch(r.tag){case 3:Da(c.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Da(c.nodeValue,o,(r.mode&1)!==0)}m&&(s.flags|=4)}else c=(o.nodeType===9?o:o.ownerDocument).createTextNode(c),c[Tn]=s,s.stateNode=c}return _t(s),null;case 13:if(Ve(qe),c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if($e&&Ht!==null&&(s.mode&1)!==0&&(s.flags&128)===0)tm(),Hs(),s.flags|=98560,m=!1;else if(m=$a(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[Tn]=s}else Hs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;_t(s),m=!1}else gn!==null&&(Jc(gn),gn=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?it===0&&(it=3):td())),s.updateQueue!==null&&(s.flags|=4),_t(s),null);case 4:return Xs(),Vc(r,s),r===null&&to(s.stateNode.containerInfo),_t(s),null;case 10:return mc(s.type._context),_t(s),null;case 17:return Dt(s.type)&&Ia(),_t(s),null;case 19:if(Ve(qe),m=s.memoizedState,m===null)return _t(s),null;if(c=(s.flags&128)!==0,w=m.rendering,w===null)if(c)po(m,!1);else{if(it!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(w=Ga(r),w!==null){for(s.flags|=128,po(m,!1),c=w.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,w=m.alternate,w===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=w.childLanes,m.lanes=w.lanes,m.child=w.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=w.memoizedProps,m.memoizedState=w.memoizedState,m.updateQueue=w.updateQueue,m.type=w.type,r=w.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),o=o.sibling;return Ie(qe,qe.current&1|2),s.child}r=r.sibling}m.tail!==null&&Ye()>ei&&(s.flags|=128,c=!0,po(m,!1),s.lanes=4194304)}else{if(!c)if(r=Ga(w),r!==null){if(s.flags|=128,c=!0,o=r.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),po(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!$e)return _t(s),null}else 2*Ye()-m.renderingStartTime>ei&&o!==1073741824&&(s.flags|=128,c=!0,po(m,!1),s.lanes=4194304);m.isBackwards?(w.sibling=s.child,s.child=w):(o=m.last,o!==null?o.sibling=w:s.child=w,m.last=w)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=Ye(),s.sibling=null,o=qe.current,Ie(qe,c?o&1|2:o&1),s):(_t(s),null);case 22:case 23:return ed(),c=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Kt&1073741824)!==0&&(_t(s),s.subtreeFlags&6&&(s.flags|=8192)):_t(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function Sb(r,s){switch(uc(s),s.tag){case 1:return Dt(s.type)&&Ia(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Xs(),Ve(Lt),Ve(bt),bc(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return xc(s),null;case 13:if(Ve(qe),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Hs()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return Ve(qe),null;case 4:return Xs(),null;case 10:return mc(s.type._context),null;case 22:case 23:return ed(),null;case 24:return null;default:return null}}var sl=!1,kt=!1,bb=typeof WeakSet=="function"?WeakSet:Set,te=null;function Js(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 zc(r,s,o){try{o()}catch(c){Qe(r,s,c)}}var Zm=!1;function Eb(r,s){if(ec=_a,r=Np(),Hu(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();
vendor: 15,960 bytes, line 40
40if(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 w=0,k=-1,T=-1,B=0,W=0,H=r,q=null;t:for(;;){for(var J;H!==o||f!==0&&H.nodeType!==3||(k=w+f),H!==m||c!==0&&H.nodeType!==3||(T=w+c),H.nodeType===3&&(w+=H.nodeValue.length),(J=H.firstChild)!==null;)q=H,H=J;for(;;){if(H===r)break t;if(q===o&&++B===f&&(k=w),q===m&&++W===c&&(T=w),(J=H.nextSibling)!==null)break;H=q,q=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(tc={focusedElem:r,selectionRange:o},_a=!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:yn(s.type,oe),Je);D.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var F=s.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.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=Zm,Zm=!1,ne}function mo(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&&zc(s,o,m)}f=f.next}while(f!==c)}}function il(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 $c(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 eg(r){var s=r.alternate;s!==null&&(r.alternate=null,eg(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[Tn],delete s[ro],delete s[ic],delete s[ib],delete s[ob])),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 tg(r){return r.tag===5||r.tag===3||r.tag===4}function ng(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||tg(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 qc(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=Ma));else if(c!==4&&(r=r.child,r!==null))for(qc(r,s,o),r=r.sibling;r!==null;)qc(r,s,o),r=r.sibling}function Wc(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(Wc(r,s,o),r=r.sibling;r!==null;)Wc(r,s,o),r=r.sibling}var gt=null,vn=!1;function gr(r,s,o){for(o=o.child;o!==null;)rg(r,s,o),o=o.sibling}function rg(r,s,o){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(va,o)}catch{}switch(o.tag){case 5:kt||Js(o,s);case 6:var c=gt,f=vn;gt=null,gr(r,s,o),gt=c,vn=f,gt!==null&&(vn?(r=gt,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):gt.removeChild(o.stateNode));break;case 18:gt!==null&&(vn?(r=gt,o=o.stateNode,r.nodeType===8?sc(r.parentNode,o):r.nodeType===1&&sc(r,o),Hi(r)):sc(gt,o.stateNode));break;case 4:c=gt,f=vn,gt=o.stateNode.containerInfo,vn=!0,gr(r,s,o),gt=c,vn=f;break;case 0:case 11:case 14:case 15:if(!kt&&(c=o.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var m=f,w=m.destroy;m=m.tag,w!==void 0&&((m&2)!==0||(m&4)!==0)&&zc(o,s,w),f=f.next}while(f!==c)}gr(r,s,o);break;case 1:if(!kt&&(Js(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)}gr(r,s,o);break;case 21:gr(r,s,o);break;case 22:o.mode&1?(kt=(c=kt)||o.memoizedState!==null,gr(r,s,o),kt=c):gr(r,s,o);break;default:gr(r,s,o)}}function sg(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new bb),s.forEach(function(c){var f=jb.bind(null,r,c);o.has(c)||(o.add(c),c.then(f,f))})}}function wn(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,w=s,k=w;e:for(;k!==null;){switch(k.tag){case 5:gt=k.stateNode,vn=!1;break e;case 3:gt=k.stateNode.containerInfo,vn=!0;break e;case 4:gt=k.stateNode.containerInfo,vn=!0;break e}k=k.return}if(gt===null)throw Error(n(160));rg(m,w,f),gt=null,vn=!1;var T=f.alternate;T!==null&&(T.return=null),f.return=null}catch(B){Qe(f,s,B)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)ig(s,r),s=s.sibling}function ig(r,s){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(wn(s,r),An(r),c&4){try{mo(3,r,r.return),il(3,r)}catch(oe){Qe(r,r.return,oe)}try{mo(5,r,r.return)}catch(oe){Qe(r,r.return,oe)}}break;case 1:wn(s,r),An(r),c&512&&o!==null&&Js(o,o.return);break;case 5:if(wn(s,r),An(r),c&512&&o!==null&&Js(o,o.return),r.flags&32){var f=r.stateNode;try{Di(f,"")}catch(oe){Qe(r,r.return,oe)}}if(c&4&&(f=r.stateNode,f!=null)){var m=r.memoizedProps,w=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),bu(k,w);var B=bu(k,m);for(w=0;w<T.length;w+=2){var W=T[w],H=T[w+1];W==="style"?Vh(f,H):W==="dangerouslySetInnerHTML"?Bh(f,H):W==="children"?Di(f,H):P(f,W,H,B)}switch(k){case"input":mt(f,m);break;case"textarea":Mh(f,m);break;case"select":var q=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var J=m.value;J!=null?rr(f,!!m.multiple,J,!1):q!==!!m.multiple&&(m.defaultValue!=null?rr(f,!!m.multiple,m.defaultValue,!0):rr(f,!!m.multiple,m.multiple?[]:"",!1))}f[ro]=m}catch(oe){Qe(r,r.return,oe)}}break;case 6:if(wn(s,r),An(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(wn(s,r),An(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Hi(s.containerInfo)}catch(oe){Qe(r,r.return,oe)}break;case 4:wn(s,r),An(r);break;case 13:wn(s,r),An(r),f=r.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(Qc=Ye())),c&4&&sg(r);break;case 22:if(W=o!==null&&o.memoizedState!==null,r.mode&1?(kt=(B=kt)||W,wn(s,r),kt=B):wn(s,r),An(r),c&8192){if(B=r.memoizedState!==null,(r.stateNode.isHidden=B)&&!W&&(r.mode&1)!==0)for(te=r,W=r.child;W!==null;){for(H=te=W;te!==null;){switch(q=te,J=q.child,q.tag){case 0:case 11:case 14:case 15:mo(4,q,q.return);break;case 1:Js(q,q.return);var ne=q.stateNode;if(typeof ne.componentWillUnmount=="function"){c=q,o=q.return;try{s=c,ne.props=s.memoizedProps,ne.state=s.memoizedState,ne.componentWillUnmount()}catch(oe){Qe(c,o,oe)}}break;case 5:Js(q,q.return);break;case 22:if(q.memoizedState!==null){lg(H);continue}}J!==null?(J.return=q,te=J):lg(H)}W=W.sibling}e:for(W=null,H=r;;){if(H.tag===5){if(W===null){W=H;try{f=H.stateNode,B?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(k=H.stateNode,T=H.memoizedProps.style,w=T!=null&&T.hasOwnProperty("display")?T.display:null,k.style.display=Uh("display",w))}catch(oe){Qe(r,r.return,oe)}}}else if(H.tag===6){if(W===null)try{H.stateNode.nodeValue=B?"":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;W===H&&(W=null),H=H.return}W===H&&(W=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:wn(s,r),An(r),c&4&&sg(r);break;case 21:break;default:wn(s,r),An(r)}}function An(r){var s=r.flags;if(s&2){try{e:{for(var o=r.return;o!==null;){if(tg(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&&(Di(f,""),c.flags&=-33);var m=ng(r);Wc(r,m,f);break;case 3:case 4:var w=c.stateNode.containerInfo,k=ng(r);qc(r,k,w);break;default:throw Error(n(161))}}catch(T){Qe(r,r.return,T)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function _b(r,s,o){te=r,og(r)}function og(r,s,o){for(var c=(r.mode&1)!==0;te!==null;){var f=te,m=f.child;if(f.tag===22&&c){var w=f.memoizedState!==null||sl;if(!w){var k=f.alternate,T=k!==null&&k.memoizedState!==null||kt;k=sl;var B=kt;if(sl=w,(kt=T)&&!B)for(te=f;te!==null;)w=te,T=w.child,w.tag===22&&w.memoizedState!==null?ug(f):T!==null?(T.return=w,te=T):ug(f);for(;m!==null;)te=m,og(m),m=m.sibling;te=f,sl=k,kt=B}ag(r)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,te=m):ag(r)}}function ag(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:kt||il(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!kt)if(o===null)c.componentDidMount();else{var f=s.elementType===s.type?o.memoizedProps:yn(s.type,o.memoizedProps);c.componentDidUpdate(f,o.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&lm(s,m,c);break;case 3:var w=s.updateQueue;if(w!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}lm(s,w,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 B=s.alternate;if(B!==null){var W=B.memoizedState;if(W!==null){var H=W.dehydrated;H!==null&&Hi(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}kt||s.flags&512&&$c(s)}catch(q){Qe(s,s.return,q)}}if(s===r){te=null;break}if(o=s.sibling,o!==null){o.return=s.return,te=o;break}te=s.return}}function lg(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 ug(r){for(;te!==null;){var s=te;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{il(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{$c(s)}catch(T){Qe(s,m,T)}break;case 5:var w=s.return;try{$c(s)}catch(T){Qe(s,w,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 kb=Math.ceil,ol=L.ReactCurrentDispatcher,Hc=L.ReactCurrentOwner,rn=L.ReactCurrentBatchConfig,Ne=0,ct=null,tt=null,yt=0,Kt=0,Zs=dr(0),it=0,go=null,Jr=0,al=0,Kc=0,yo=null,Ft=null,Qc=0,ei=1/0,Hn=null,ll=!1,Gc=null,yr=null,ul=!1,vr=null,cl=0,vo=0,Xc=null,dl=-1,fl=0;function jt(){return(Ne&6)!==0?Ye():dl!==-1?dl:dl=Ye()}function wr(r){return(r.mode&1)===0?1:(Ne&2)!==0&&yt!==0?yt&-yt:lb.transition!==null?(fl===0&&(fl=np()),fl):(r=Fe,r!==0||(r=window.event,r=r===void 0?16:dp(r.type)),r)}function xn(r,s,o,c){if(50<vo)throw vo=0,Xc=null,Error(n(185));Vi(r,o,c),((Ne&2)===0||r!==ct)&&(r===ct&&((Ne&2)===0&&(al|=o),it===4&&xr(r,yt)),It(r,c),o===1&&Ne===0&&(s.mode&1)===0&&(ei=Ye()+500,Ua&&hr()))}function It(r,s){var o=r.callbackNode;lS(r,s);var c=Sa(r,r===ct?yt:0);if(c===0)o!==null&&Zh(o),r.callbackNode=null,r.callbackPriority=0;else if(s=c&-c,r.callbackPriority!==s){if(o!=null&&Zh(o),s===1)r.tag===0?ab(dg.bind(null,r)):Xp(dg.bind(null,r)),rb(function(){(Ne&6)===0&&hr()}),o=null;else{switch(rp(c)){case 1:o=Ru;break;case 4:o=ep;break;case 16:o=ya;break;case 536870912:o=tp;break;default:o=ya}o=wg(o,cg.bind(null,r))}r.callbackPriority=s,r.callbackNode=o}}function cg(r,s){if(dl=-1,fl=0,(Ne&6)!==0)throw Error(n(327));var o=r.callbackNode;if(ti()&&r.callbackNode!==o)return null;var c=Sa(r,r===ct?yt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||s)s=hl(r,c);else{s=c;var f=Ne;Ne|=2;var m=hg();(ct!==r||yt!==s)&&(Hn=null,ei=Ye()+500,es(r,s));do try{Pb();break}catch(k){fg(r,k)}while(!0);pc(),ol.current=m,Ne=f,tt!==null?s=0:(ct=null,yt=0,s=it)}if(s!==0){if(s===2&&(f=Au(r),f!==0&&(c=f,s=Yc(r,f))),s===1)throw o=go,es(r,0),xr(r,c),It(r,Ye()),o;if(s===6)xr(r,c);else{if(f=r.current.alternate,(c&30)===0&&!Cb(f)&&(s=hl(r,c),s===2&&(m=Au(r),m!==0&&(c=m,s=Yc(r,m))),s===1))throw o=go,es(r,0),xr(r,c),It(r,Ye()),o;switch(r.finishedWork=f,r.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:ts(r,Ft,Hn);break;case 3:if(xr(r,c),(c&130023424)===c&&(s=Qc+500-Ye(),10<s)){if(Sa(r,0)!==0)break;if(f=r.suspendedLanes,(f&c)!==c){jt(),r.pingedLanes|=r.suspendedLanes&f;break}r.timeoutHandle=rc(ts.bind(null,r,Ft,Hn),s);break}ts(r,Ft,Hn);break;case 4:if(xr(r,c),(c&4194240)===c)break;for(s=r.eventTimes,f=-1;0<c;){var w=31-pn(c);m=1<<w,w=s[w],w>f&&(f=w),c&=~m}if(c=f,c=Ye()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*kb(c/1960))-c,10<c){r.timeoutHandle=rc(ts.bind(null,r,Ft,Hn),c);break}ts(r,Ft,Hn);break;case 5:ts(r,Ft,Hn);break;default:throw Error(n(329))}}}return It(r,Ye()),r.callbackNode===o?cg.bind(null,r):null}function Yc(r,s){var o=yo;return r.current.memoizedState.isDehydrated&&(es(r,s).flags|=256),r=hl(r,s),r!==2&&(s=Ft,Ft=o,s!==null&&Jc(s)),r}function Jc(r){Ft===null?Ft=r:Ft.push.apply(Ft,r)}function Cb(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(!mn(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 xr(r,s){for(s&=~Kc,s&=~al,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var o=31-pn(s),c=1<<o;r[o]=-1,s&=~c}}function dg(r){if((Ne&6)!==0)throw Error(n(327));ti();var s=Sa(r,0);if((s&1)===0)return It(r,Ye()),null;var o=hl(r,s);if(r.tag!==0&&o===2){var c=Au(r);c!==0&&(s=c,o=Yc(r,c))}if(o===1)throw o=go,es(r,0),xr(r,s),It(r,Ye()),o;if(o===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,ts(r,Ft,Hn),It(r,Ye()),null}function Zc(r,s){var o=Ne;Ne|=1;try{return r(s)}finally{Ne=o,Ne===0&&(ei=Ye()+500,Ua&&hr())}}function Zr(r){vr!==null&&vr.tag===0&&(Ne&6)===0&&ti();var s=Ne;Ne|=1;var o=rn.transition,c=Fe;try{if(rn.transition=null,Fe=1,r)return r()}finally{Fe=c,rn.transition=o,Ne=s,(Ne&6)===0&&hr()}}function ed(){Kt=Zs.current,Ve(Zs)}function es(r,s){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,nb(o)),tt!==null)for(o=tt.return;o!==null;){var c=o;switch(uc(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ia();break;case 3:Xs(),Ve(Lt),Ve(bt),bc();break;case 5:xc(c);break;case 4:Xs();break;case 13:Ve(qe);break;case 19:Ve(qe);break;case 10:mc(c.type._context);break;case 22:case 23:ed()}o=o.return}if(ct=r,tt=r=Sr(r.current,null),yt=Kt=s,it=0,go=null,Kc=al=Jr=0,Ft=yo=null,Gr!==null){for(s=0;s<Gr.length;s++)if(o=Gr[s],c=o.interleaved,c!==null){o.interleaved=null;var f=c.next,m=o.pending;if(m!==null){var w=m.next;m.next=f,c.next=w}o.pending=c}Gr=null}return r}function fg(r,s){do{var o=tt;try{if(pc(),Xa.current=el,Ya){for(var c=We.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}Ya=!1}if(Yr=0,ut=st=We=null,uo=!1,co=0,Hc.current=null,o===null||o.return===null){it=1,go=s,tt=null;break}e:{var m=r,w=o.return,k=o,T=s;if(s=yt,k.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=T,W=k,H=W.tag;if((W.mode&1)===0&&(H===0||H===11||H===15)){var q=W.alternate;q?(W.updateQueue=q.updateQueue,W.memoizedState=q.memoizedState,W.lanes=q.lanes):(W.updateQueue=null,W.memoizedState=null)}var J=Fm(w);
vendor: 5,696 bytes, line 40
40if(J!==null){J.flags&=-257,Im(J,w,k,m,s),J.mode&1&&Mm(m,B,s),s=J,T=B;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){Mm(m,B,s),td();break e}T=Error(n(426))}}else if($e&&k.mode&1){var Je=Fm(w);if(Je!==null){(Je.flags&65536)===0&&(Je.flags|=256),Im(Je,w,k,m,s),fc(Ys(T,k));break e}}m=T=Ys(T,k),it!==4&&(it=2),yo===null?yo=[m]:yo.push(m),m=w;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var D=Lm(m,T,s);am(m,D);break e;case 1:k=T;var N=m.type,F=m.stateNode;if((m.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(yr===null||!yr.has(F)))){m.flags|=65536,s&=-s,m.lanes|=s;var Q=Dm(m,k,s);am(m,Q);break e}}m=m.return}while(m!==null)}mg(o)}catch(ae){s=ae,tt===o&&o!==null&&(tt=o=o.return);continue}break}while(!0)}function hg(){var r=ol.current;return ol.current=el,r===null?el:r}function td(){(it===0||it===3||it===2)&&(it=4),ct===null||(Jr&268435455)===0&&(al&268435455)===0||xr(ct,yt)}function hl(r,s){var o=Ne;Ne|=2;var c=hg();(ct!==r||yt!==s)&&(Hn=null,es(r,s));do try{Tb();break}catch(f){fg(r,f)}while(!0);if(pc(),Ne=o,ol.current=c,tt!==null)throw Error(n(261));return ct=null,yt=0,it}function Tb(){for(;tt!==null;)pg(tt)}function Pb(){for(;tt!==null&&!Zx();)pg(tt)}function pg(r){var s=vg(r.alternate,r,Kt);r.memoizedProps=r.pendingProps,s===null?mg(r):tt=s,Hc.current=null}function mg(r){var s=r;do{var o=s.alternate;if(r=s.return,(s.flags&32768)===0){if(o=xb(o,s,Kt),o!==null){tt=o;return}}else{if(o=Sb(o,s),o!==null){o.flags&=32767,tt=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{it=6,tt=null;return}}if(s=s.sibling,s!==null){tt=s;return}tt=s=r}while(s!==null);it===0&&(it=5)}function ts(r,s,o){var c=Fe,f=rn.transition;try{rn.transition=null,Fe=1,Rb(r,s,o,c)}finally{rn.transition=f,Fe=c}return null}function Rb(r,s,o,c){do ti();while(vr!==null);if((Ne&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(uS(r,m),r===ct&&(tt=ct=null,yt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||ul||(ul=!0,wg(ya,function(){return ti(),null})),m=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||m){m=rn.transition,rn.transition=null;var w=Fe;Fe=1;var k=Ne;Ne|=4,Hc.current=null,Eb(r,o),ig(o,r),GS(tc),_a=!!ec,tc=ec=null,r.current=o,_b(o),eS(),Ne=k,Fe=w,rn.transition=m}else r.current=o;if(ul&&(ul=!1,vr=r,cl=f),m=r.pendingLanes,m===0&&(yr=null),rS(o.stateNode),It(r,Ye()),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(ll)throw ll=!1,r=Gc,Gc=null,r;return(cl&1)!==0&&r.tag!==0&&ti(),m=r.pendingLanes,(m&1)!==0?r===Xc?vo++:(vo=0,Xc=r):vo=0,hr(),null}function ti(){if(vr!==null){var r=rp(cl),s=rn.transition,o=Fe;try{if(rn.transition=null,Fe=16>r?16:r,vr===null)var c=!1;else{if(r=vr,vr=null,cl=0,(Ne&6)!==0)throw Error(n(331));var f=Ne;for(Ne|=4,te=r.current;te!==null;){var m=te,w=m.child;if((te.flags&16)!==0){var k=m.deletions;if(k!==null){for(var T=0;T<k.length;T++){var B=k[T];for(te=B;te!==null;){var W=te;switch(W.tag){case 0:case 11:case 15:mo(8,W,m)}var H=W.child;if(H!==null)H.return=W,te=H;else for(;te!==null;){W=te;var q=W.sibling,J=W.return;if(eg(W),W===B){te=null;break}if(q!==null){q.return=J,te=q;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&&w!==null)w.return=m,te=w;else e:for(;te!==null;){if(m=te,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:mo(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;){w=te;var F=w.child;if((w.subtreeFlags&2064)!==0&&F!==null)F.return=w,te=F;else e:for(w=N;te!==null;){if(k=te,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:il(9,k)}}catch(ae){Qe(k,k.return,ae)}if(k===w){te=null;break e}var Q=k.sibling;if(Q!==null){Q.return=k.return,te=Q;break e}te=k.return}}if(Ne=f,hr(),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(va,r)}catch{}c=!0}return c}finally{Fe=o,rn.transition=s}}return!1}function gg(r,s,o){s=Ys(o,s),s=Lm(r,s,1),r=mr(r,s,1),s=jt(),r!==null&&(Vi(r,1,s),It(r,s))}function Qe(r,s,o){if(r.tag===3)gg(r,r,o);else for(;s!==null;){if(s.tag===3){gg(s,r,o);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(yr===null||!yr.has(c))){r=Ys(o,r),r=Dm(s,r,1),s=mr(s,r,1),r=jt(),s!==null&&(Vi(s,1,r),It(s,r));break}}s=s.return}}function Ab(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),s=jt(),r.pingedLanes|=r.suspendedLanes&o,ct===r&&(yt&o)===o&&(it===4||it===3&&(yt&130023424)===yt&&500>Ye()-Qc?es(r,0):Kc|=o),It(r,s)}function yg(r,s){s===0&&((r.mode&1)===0?s=1:(s=xa,xa<<=1,(xa&130023424)===0&&(xa=4194304)));var o=jt();r=$n(r,s),r!==null&&(Vi(r,s,o),It(r,o))}function Nb(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),yg(r,o)}function jb(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),yg(r,o)}var vg;vg=function(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps||Lt.current)Mt=!0;else{if((r.lanes&o)===0&&(s.flags&128)===0)return Mt=!1,wb(r,s,o);Mt=(r.flags&131072)!==0}else Mt=!1,$e&&(s.flags&1048576)!==0&&Yp(s,za,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;rl(r,s),r=s.pendingProps;var f=$s(s,bt.current);
vendor: 11,294 bytes, line 40
40Gs(s,o),f=kc(null,s,c,r,f,o);var m=Cc();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,Dt(c)?(m=!0,Ba(s)):m=!1,s.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,vc(s),f.updater=tl,s.stateNode=f,f._reactInternals=s,jc(s,c,r,o),s=Mc(null,s,c,!0,m,o)):(s.tag=0,$e&&m&&lc(s),Nt(null,s,f,o),s=s.child),s;case 16:c=s.elementType;e:{switch(rl(r,s),r=s.pendingProps,f=c._init,c=f(c._payload),s.type=c,f=s.tag=Lb(c),r=yn(c,r),f){case 0:s=Dc(null,s,c,r,o);break e;case 1:s=qm(null,s,c,r,o);break e;case 11:s=Bm(null,s,c,r,o);break e;case 14:s=Um(null,s,c,yn(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:yn(c,f),Dc(r,s,c,f,o);case 1:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:yn(c,f),qm(r,s,c,f,o);case 3:e:{if(Wm(s),r===null)throw Error(n(387));c=s.pendingProps,m=s.memoizedState,f=m.element,om(r,s),Qa(s,c,null,o);var w=s.memoizedState;if(c=w.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){f=Ys(Error(n(423)),s),s=Hm(r,s,c,o,f);break e}else if(c!==f){f=Ys(Error(n(424)),s),s=Hm(r,s,c,o,f);break e}else for(Ht=cr(s.stateNode.containerInfo.firstChild),Wt=s,$e=!0,gn=null,o=sm(s,null,c,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Hs(),c===f){s=Wn(r,s,o);break e}Nt(r,s,c,o)}s=s.child}return s;case 5:return um(s),r===null&&dc(s),c=s.type,f=s.pendingProps,m=r!==null?r.memoizedProps:null,w=f.children,nc(c,f)?w=null:m!==null&&nc(c,m)&&(s.flags|=32),$m(r,s),Nt(r,s,w,o),s.child;case 6:return r===null&&dc(s),null;case 13:return Km(r,s,o);case 4:return wc(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=Ks(s,null,c,o):Nt(r,s,c,o),s.child;case 11:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:yn(c,f),Bm(r,s,c,f,o);case 7:return Nt(r,s,s.pendingProps,o),s.child;case 8:return Nt(r,s,s.pendingProps.children,o),s.child;case 12:return Nt(r,s,s.pendingProps.children,o),s.child;case 10:e:{if(c=s.type._context,f=s.pendingProps,m=s.memoizedProps,w=f.value,Ie(Wa,c._currentValue),c._currentValue=w,m!==null)if(mn(m.value,w)){if(m.children===f.children&&!Lt.current){s=Wn(r,s,o);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var k=m.dependencies;if(k!==null){w=m.child;for(var T=k.firstContext;T!==null;){if(T.context===c){if(m.tag===1){T=qn(-1,o&-o),T.tag=2;var B=m.updateQueue;if(B!==null){B=B.shared;var W=B.pending;W===null?T.next=T:(T.next=W.next,W.next=T),B.pending=T}}m.lanes|=o,T=m.alternate,T!==null&&(T.lanes|=o),gc(m.return,o,s),k.lanes|=o;break}T=T.next}}else if(m.tag===10)w=m.type===s.type?null:m.child;else if(m.tag===18){if(w=m.return,w===null)throw Error(n(341));w.lanes|=o,k=w.alternate,k!==null&&(k.lanes|=o),gc(w,o,s),w=m.sibling}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===s){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}Nt(r,s,f.children,o),s=s.child}return s;case 9:return f=s.type,c=s.pendingProps.children,Gs(s,o),f=tn(f),c=c(f),s.flags|=1,Nt(r,s,c,o),s.child;case 14:return c=s.type,f=yn(c,s.pendingProps),f=yn(c.type,f),Um(r,s,c,f,o);case 15:return Vm(r,s,s.type,s.pendingProps,o);case 17:return c=s.type,f=s.pendingProps,f=s.elementType===c?f:yn(c,f),rl(r,s),s.tag=1,Dt(c)?(r=!0,Ba(s)):r=!1,Gs(s,o),jm(s,c,f),jc(s,c,f,o),Mc(null,s,c,!0,r,o);case 19:return Gm(r,s,o);case 22:return zm(r,s,o)}throw Error(n(156,s.tag))};function wg(r,s){return Jh(r,s)}function Ob(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 sn(r,s,o,c){return new Ob(r,s,o,c)}function nd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Lb(r){if(typeof r=="function")return nd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ae)return 11;if(r===Me)return 14}return 2}function Sr(r,s){var o=r.alternate;return o===null?(o=sn(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 pl(r,s,o,c,f,m){var w=2;if(c=r,typeof r=="function")nd(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case Y:return ns(o.children,f,m,s);case U:w=8,f|=8;break;case ee:return r=sn(12,o,s,f|2),r.elementType=ee,r.lanes=m,r;case Oe:return r=sn(13,o,s,f),r.elementType=Oe,r.lanes=m,r;case Ce:return r=sn(19,o,s,f),r.elementType=Ce,r.lanes=m,r;case le:return ml(o,f,m,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ue:w=10;break e;case be:w=9;break e;case Ae:w=11;break e;case Me:w=14;break e;case fe:w=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=sn(w,o,s,f),s.elementType=r,s.type=c,s.lanes=m,s}function ns(r,s,o,c){return r=sn(7,r,c,s),r.lanes=o,r}function ml(r,s,o,c){return r=sn(22,r,c,s),r.elementType=le,r.lanes=o,r.stateNode={isHidden:!1},r}function rd(r,s,o){return r=sn(6,r,null,s),r.lanes=o,r}function sd(r,s,o){return s=sn(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function Db(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=Nu(0),this.expirationTimes=Nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function id(r,s,o,c,f,m,w,k,T){return r=new Db(r,s,o,k,T),s===1?(s=1,m===!0&&(s|=8)):s=0,m=sn(3,null,null,s),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},vc(m),r}function Mb(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 xg(r){if(!r)return fr;r=r._reactInternals;e:{if(qr(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(Dt(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(Dt(o))return Qp(r,o,s)}return s}function Sg(r,s,o,c,f,m,w,k,T){return r=id(o,c,!0,r,f,m,w,k,T),r.context=xg(null),o=r.current,c=jt(),f=wr(o),m=qn(c,f),m.callback=s??null,mr(o,m,f),r.current.lanes=f,Vi(r,f,c),It(r,c),r}function gl(r,s,o,c){var f=s.current,m=jt(),w=wr(f);return o=xg(o),s.context===null?s.context=o:s.pendingContext=o,s=qn(m,w),s.payload={element:r},c=c===void 0?null:c,c!==null&&(s.callback=c),r=mr(f,s,w),r!==null&&(xn(r,f,w,m),Ka(r,f,w)),w}function yl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function bg(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function od(r,s){bg(r,s),(r=r.alternate)&&bg(r,s)}function Fb(){return null}var Eg=typeof reportError=="function"?reportError:function(r){console.error(r)};function ad(r){this._internalRoot=r}vl.prototype.render=ad.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));gl(r,s,null,null)},vl.prototype.unmount=ad.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Zr(function(){gl(null,r,null,null)}),s[Bn]=null}};function vl(r){this._internalRoot=r}vl.prototype.unstable_scheduleHydration=function(r){if(r){var s=op();r={blockedOn:null,target:r,priority:s};for(var o=0;o<ar.length&&s!==0&&s<ar[o].priority;o++);ar.splice(o,0,r),o===0&&up(r)}};function ld(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function wl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function _g(){}function Ib(r,s,o,c,f){if(f){if(typeof c=="function"){var m=c;c=function(){var B=yl(w);m.call(B)}}var w=Sg(s,c,r,0,null,!1,!1,"",_g);return r._reactRootContainer=w,r[Bn]=w.current,to(r.nodeType===8?r.parentNode:r),Zr(),w}for(;f=r.lastChild;)r.removeChild(f);if(typeof c=="function"){var k=c;c=function(){var B=yl(T);k.call(B)}}var T=id(r,0,!1,null,null,!1,!1,"",_g);return r._reactRootContainer=T,r[Bn]=T.current,to(r.nodeType===8?r.parentNode:r),Zr(function(){gl(s,T,o,c)}),T}function xl(r,s,o,c,f){var m=o._reactRootContainer;if(m){var w=m;if(typeof f=="function"){var k=f;f=function(){var T=yl(w);k.call(T)}}gl(s,w,r,f)}else w=Ib(o,s,r,f,c);return yl(w)}sp=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var o=Ui(s.pendingLanes);o!==0&&(ju(s,o|1),It(s,Ye()),(Ne&6)===0&&(ei=Ye()+500,hr()))}break;case 13:Zr(function(){var c=$n(r,1);if(c!==null){var f=jt();xn(c,r,1,f)}}),od(r,1)}},Ou=function(r){if(r.tag===13){var s=$n(r,134217728);if(s!==null){var o=jt();xn(s,r,134217728,o)}od(r,134217728)}},ip=function(r){if(r.tag===13){var s=wr(r),o=$n(r,s);if(o!==null){var c=jt();xn(o,r,s,c)}od(r,s)}},op=function(){return Fe},ap=function(r,s){var o=Fe;try{return Fe=r,s()}finally{Fe=o}},ku=function(r,s,o){switch(s){case"input":if(mt(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=Fa(c);if(!f)throw Error(n(90));pt(c),mt(c,f)}}}break;case"textarea":Mh(r,o);break;case"select":s=o.value,s!=null&&rr(r,!!o.multiple,s,!1)}},Wh=Zc,Hh=Zr;var Bb={usingClientEntryPoint:!1,Events:[so,Vs,Fa,$h,qh,Zc]},wo={findFiberByHostInstance:Wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ub={bundleType:wo.bundleType,version:wo.version,rendererPackageName:wo.rendererPackageName,rendererConfig:wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Xh(r),r===null?null:r.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||Fb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sl.isDisabled&&Sl.supportsFiber)try{va=Sl.inject(Ub),Cn=Sl}catch{}}return Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bb,Bt.createPortal=function(r,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ld(s))throw Error(n(200));return Mb(r,s,null,o)},Bt.createRoot=function(r,s){if(!ld(r))throw Error(n(299));var o=!1,c="",f=Eg;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(f=s.onRecoverableError)),s=id(r,1,!1,null,null,o,!1,c,f),r[Bn]=s.current,to(r.nodeType===8?r.parentNode:r),new ad(s)},Bt.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=Xh(s),r=r===null?null:r.stateNode,r},Bt.flushSync=function(r){return Zr(r)},Bt.hydrate=function(r,s,o){if(!wl(s))throw Error(n(200));return xl(null,r,s,!0,o)},Bt.hydrateRoot=function(r,s,o){if(!ld(r))throw Error(n(405));var c=o!=null&&o.hydratedSources||null,f=!1,m="",w=Eg;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(w=o.onRecoverableError)),s=Sg(s,null,r,1,o??null,f,!1,m,w),r[Bn]=s.current,to(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 vl(s)},Bt.render=function(r,s,o){if(!wl(s))throw Error(n(200));return xl(null,r,s,!1,o)},Bt.unmountComponentAtNode=function(r){if(!wl(r))throw Error(n(40));return r._reactRootContainer?(Zr(function(){xl(null,null,r,!1,function(){r._reactRootContainer=null,r[Bn]=null})}),!0):!1},Bt.unstable_batchedUpdates=Zc,Bt.unstable_renderSubtreeIntoContainer=function(r,s,o,c){if(!wl(o))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return xl(r,s,o,!1,c)},Bt.version="18.3.1-next-f1338f8080-20240426",Bt}var Og;function k0(){if(Og)return fd.exports;Og=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(),fd.exports=Jb(),fd.exports}var Lg;function Zb(){if(Lg)return El;Lg=1;var t=k0();return El.createRoot=t.createRoot,El.hydrateRoot=t.hydrateRoot,El}var eE=Zb();const tE=_0(eE),nE=20,rE=1e6,Yn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let md=0;function sE(){return md=(md+1)%Number.MAX_VALUE,md.toString()}const gd=new Map,Dg=t=>{if(gd.has(t))return;const e=setTimeout(()=>{gd.delete(t),Do({type:Yn.REMOVE_TOAST,toastId:t})},rE);gd.set(t,e)},iE=(t,e)=>{switch(e.type){case Yn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,nE)};case Yn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case Yn.DISMISS_TOAST:{const{toastId:n}=e;return n?Dg(n):t.toasts.forEach(i=>{Dg(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case Yn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Ml=[];let Fl={toasts:[]};function Do(t){Fl=iE(Fl,t),Ml.forEach(e=>{e(Fl)})}function oE({...t}){const e=sE(),n=a=>Do({type:Yn.UPDATE_TOAST,toast:{...a,id:e}}),i=()=>Do({type:Yn.DISMISS_TOAST,toastId:e});return Do({type:Yn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:a=>{a||i()}}}),{id:e,dismiss:i,update:n}}function aE(){const[t,e]=M.useState(Fl);return M.useEffect(()=>(Ml.push(e),()=>{const n=Ml.indexOf(e);n>-1&&Ml.splice(n,1)}),[t]),{...t,toast:oE,dismiss:n=>Do({type:Yn.DISMISS_TOAST,toastId:n})}}function C0(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=C0(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function T0(){for(var t,e,n=0,i="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=C0(t))&&(i&&(i+=" "),i+=e);return i}const Mg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Fg=T0,lE=(t,e)=>n=>{var i;if((e==null?void 0:e.variants)==null)return Fg(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 x=Mg(g)||Mg(y);return a[p][x]}),d=n&&Object.entries(n).reduce((p,g)=>{let[y,x]=g;return x===void 0||(p[y]=x),p},{}),h=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((p,g)=>{let{class:y,className:x,...b}=g;return Object.entries(b).every(C=>{let[_,E]=C;return Array.isArray(E)?E.includes({...l,...d}[_]):{...l,...d}[_]===E})?[...p,y,x]:p},[]);return Fg(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 uE=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P0=(...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 cE={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 dE=M.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},h)=>M.createElement("svg",{ref:h,...cE,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:P0("lucide",a),...d},[...u.map(([p,g])=>M.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 at=(t,e)=>{const n=M.forwardRef(({className:i,...a},l)=>M.createElement(dE,{ref:l,iconNode:e,className:P0(`lucide-${uE(t)}`,i),...a}
60));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 fE=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],hE=at("ArrowLeft",fE);/**
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 pE=[["path",{d:"M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46",key:"rfqxbe"}],["path",{d:"M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z",key:"6b25w4"}],["path",{d:"M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z",key:"fn65lo"}]],mE=at("Carrot",pE);/**
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 gE=[["path",{d:"M21.66 17.67a1.08 1.08 0 0 1-.04 1.6A12 12 0 0 1 4.73 2.38a1.1 1.1 0 0 1 1.61-.04z",key:"4ite01"}],["path",{d:"M19.65 15.66A8 8 0 0 1 8.35 4.34",key:"1gxipu"}],["path",{d:"m14 10-5.5 5.5",key:"92pfem"}],["path",{d:"M14 17.85V10H6.15",key:"xqmtsk"}]],yE=at("Citrus",gE);/**
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 vE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],wE=at("Clock",vE);/**
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 xE=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],SE=at("Coffee",xE);/**
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 bE=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],EE=at("Cookie",bE);/**
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 _E=[["path",{d:"m4.6 13.11 5.79-3.21c1.89-1.05 4.79 1.78 3.71 3.71l-3.22 5.81C8.8 23.16.79 15.23 4.6 13.11Z",key:"1ozxlb"}],["path",{d:"m10.5 9.5-1-2.29C9.2 6.48 8.8 6 8 6H4.5C2.79 6 2 6.5 2 8.5a7.71 7.71 0 0 0 2 4.83",key:"ffuyb5"}],["path",{d:"M8 6c0-1.55.24-4-2-4-2 0-2.5 2.17-2.5 4",key:"osnpzi"}],["path",{d:"m14.5 13.5 2.29 1c.73.3 1.21.7 1.21 1.5v3.5c0 1.71-.5 2.5-2.5 2.5a7.71 7.71 0 0 1-4.83-2",key:"1vubaw"}],["path",{d:"M18 16c1.55 0 4-.24 4 2 0 2-2.17 2.5-4 2.5",key:"wxr772"}]],kE=at("Croissant",_E);/**
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 CE=[["path",{d:"m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8",key:"8166m8"}],["path",{d:"M5 8h14",key:"pcz4l3"}],["path",{d:"M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0",key:"yjz344"}],["path",{d:"m12 8 1-6h2",key:"3ybfa4"}]],TE=at("CupSoda",CE);/**
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 PE=[["path",{d:"M15.4 15.63a7.875 6 135 1 1 6.23-6.23 4.5 3.43 135 0 0-6.23 6.23",key:"1dtqwm"}],["path",{d:"m8.29 12.71-2.6 2.6a2.5 2.5 0 1 0-1.65 4.65A2.5 2.5 0 1 0 8.7 18.3l2.59-2.59",key:"1oq1fw"}]],RE=at("Drumstick",PE);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const AE=[["path",{d:"m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11",key:"1v6356"}],["path",{d:"M17 7A5 5 0 0 0 7 7",key:"151p3v"}],["path",{d:"M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4",key:"1sdaij"}]],NE=at("IceCreamCone",AE);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const jE=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],R0=at("Leaf",jE);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const OE=[["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"}]],LE=at("Mail",OE);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const DE=[["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"}]],ME=at("MapPin",DE);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const FE=[["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"}]],IE=at("Menu",FE);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const BE=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],UE=at("Phone",BE);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const VE=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],zE=at("Salad",VE);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const $E=[["path",{d:"m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777",key:"f1wd0e"}],["path",{d:"M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25",key:"1pfu07"}],["path",{d:"M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9",key:"1oq9qw"}],["path",{d:"m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2",key:"1fnwu5"}],["rect",{width:"20",height:"4",x:"2",y:"11",rx:"1",key:"itshg"}]],qE=at("Sandwich",$E);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const WE=[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]],HE=at("Wheat",WE);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const KE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 7,338 bytes, line 155
155],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],A0=at("X",KE),QE=(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},GE=(t,e)=>({classGroupId:t,validator:e}),N0=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Ql="-",Ig=[],XE="arbitrary..",YE=t=>{const e=ZE(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return JE(u);const d=u.split(Ql),h=d[0]===""&&d.length>1?1:0;return j0(d,h,e)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=i[u],p=n[u];return h?p?QE(p,h):h:p||Ig}return n[u]||Ig}}},j0=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const p=j0(t,e+1,l);if(p)return p}const u=n.validators;if(u===null)return;const d=e===0?t.join(Ql):t.slice(e).join(Ql),h=u.length;for(let p=0;p<h;p++){const g=u[p];if(g.validator(d))return g.classGroupId}},JE=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?XE+i:void 0})(),ZE=t=>{const{theme:e,classGroups:n}=t;return e_(n,e)},e_=(t,e)=>{const n=N0();for(const i in t){const a=t[i];Df(a,n,i,e)}return n},Df=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const u=t[l];t_(u,e,n,i)}},t_=(t,e,n,i)=>{if(typeof t=="string"){n_(t,e,n);return}if(typeof t=="function"){r_(t,e,n,i);return}s_(t,e,n,i)},n_=(t,e,n)=>{const i=t===""?e:O0(e,t);i.classGroupId=n},r_=(t,e,n,i)=>{if(i_(t)){Df(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(GE(n,t))},s_=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let u=0;u<l;u++){const[d,h]=a[u];Df(h,O0(e,d),n,i)}},O0=(t,e)=>{let n=t;const i=e.split(Ql),a=i.length;for(let l=0;l<a;l++){const u=i[l];let d=n.nextPart.get(u);d||(d=N0(),n.nextPart.set(u,d)),n=d}return n},i_=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,o_=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)}}},Vd="!",Bg=":",a_=[],Ug=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),l_=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===Bg){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 x=y,b=!1;y.endsWith(Vd)?(x=y.slice(0,-1),b=!0):y.startsWith(Vd)&&(x=y.slice(1),b=!0);const C=p&&p>h?p-h:void 0;return Ug(l,b,x,C)};if(e){const a=e+Bg,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):Ug(a_,!1,u,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},u_=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}},c_=t=>({cache:o_(t.cacheSize),parseClassName:l_(t),sortModifiers:u_(t),...YE(t)}),d_=/\s+/,f_=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,u=[],d=t.trim().split(d_);let h="";for(let p=d.length-1;p>=0;p-=1){const g=d[p],{isExternal:y,modifiers:x,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=x.length===0?"":x.length===1?x[0]:l(x).join(":"),P=b?A+Vd:A,L=P+S;if(u.indexOf(L)>-1)continue;u.push(L);const I=a(S,E);for(let z=0;z<I.length;++z){const Y=I[z];u.push(P+Y)}h=g+(h.length>0?" "+h:h)}return h},h_=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=L0(n))&&(a&&(a+=" "),a+=i);return a},L0=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=L0(t[i]))&&(n&&(n+=" "),n+=e);return n},p_=(t,...e)=>{let n,i,a,l;const u=h=>{const p=e.reduce((g,y)=>y(g),t());return n=c_(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=f_(h,n);return a(h,g),g};return l=u,(...h)=>l(h_(...h))},m_=[],ot=t=>{const e=n=>n[t]||m_;return e.isThemeGetter=!0,e},D0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,M0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,g_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,y_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v_=/\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$/,w_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Er=t=>g_.test(t),Ee=t=>!!t&&!Number.isNaN(Number(t)),_r=t=>!!t&&Number.isInteger(Number(t)),yd=t=>t.endsWith("%")&&Ee(t.slice(0,-1)),Kn=t=>y_.test(t),F0=()=>!0,b_=t=>v_.test(t)&&!w_.test(t),Mf=()=>!1,E_=t=>x_.test(t),__=t=>S_.test(t),k_=t=>!re(t)&&!ie(t),C_=t=>zr(t,U0,Mf),re=t=>D0.test(t),rs=t=>zr(t,V0,b_),Vg=t=>zr(t,L_,Ee),T_=t=>zr(t,$0,F0),P_=t=>zr(t,z0,Mf),zg=t=>zr(t,I0,Mf),R_=t=>zr(t,B0,__),_l=t=>zr(t,q0,E_),ie=t=>M0.test(t),So=t=>Ts(t,V0),A_=t=>Ts(t,z0),$g=t=>Ts(t,I0),N_=t=>Ts(t,U0),j_=t=>Ts(t,B0),kl=t=>Ts(t,q0,!0),O_=t=>Ts(t,$0,!0),zr=(t,e,n)=>{const i=D0.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},Ts=(t,e,n=!1)=>{const i=M0.exec(t);return i?i[1]?e(i[1]):n:!1},I0=t=>t==="position"||t==="percentage",B0=t=>t==="image"||t==="url",U0=t=>t==="length"||t==="size"||t==="bg-size",V0=t=>t==="length",L_=t=>t==="number",z0=t=>t==="family-name",$0=t=>t==="number"||t==="weight",q0=t=>t==="shadow",D_=()=>{const t=ot("color"),e=ot("font"),n=ot("text"),i=ot("font-weight"),a=ot("tracking"),l=ot("leading"),u=ot("breakpoint"),d=ot("container"),h=ot("spacing"),p=ot("radius"),g=ot("shadow"),y=ot("inset-shadow"),x=ot("text-shadow"),b=ot("drop-shadow"),C=ot("blur"),_=ot("perspective"),E=ot("aspect"),S=ot("ease"),A=ot("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...L(),ie,re],z=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],U=()=>[ie,re,h],ee=()=>[Er,"full","auto",...U()],ue=()=>[_r,"none","subgrid",ie,re],be=()=>["auto",{span:["full",_r,ie,re]},_r,ie,re],Ae=()=>[_r,"auto",ie,re],Oe=()=>["auto","min","max","fr",ie,re],Ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Me=()=>["start","end","center","stretch","center-safe","end-safe"],fe=()=>["auto",...U()],le=()=>[Er,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],K=()=>[Er,"screen","full","dvw","lvw","svw","min","max","fit",...U()],se=()=>[Er,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],V=()=>[t,ie,re],j=()=>[...L(),$g,zg,{position:[ie,re]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",N_,C_,{size:[ie,re]}],ye=()=>
vendor: 7,216 bytes, line 155
155[yd,So,rs],he=()=>["","none","full",p,ie,re],G=()=>["",Ee,So,rs],xe=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Ee,yd,$g,zg],lt=()=>["","none",C,ie,re],Xt=()=>["none",Ee,ie,re],pt=()=>["none",Ee,ie,re],dn=()=>[Ee,ie,re],Yt=()=>[Er,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kn],breakpoint:[Kn],color:[F0],container:[Kn],"drop-shadow":[Kn],ease:["in","out","in-out"],font:[k_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kn],shadow:[Kn],spacing:["px",Ee],text:[Kn],"text-shadow":[Kn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Er,re,ie,E]}],container:["container"],columns:[{columns:[Ee,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:I()}],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:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[_r,"auto",ie,re]}],basis:[{basis:[Er,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,Er,"auto","initial","none",re]}],grow:[{grow:["",Ee,ie,re]}],shrink:[{shrink:["",Ee,ie,re]}],order:[{order:[_r,"first","last","none",ie,re]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":Ae()}],"col-end":[{"col-end":Ae()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":Ae()}],"row-end":[{"row-end":Ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Oe()}],"auto-rows":[{"auto-rows":Oe()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Ce(),"normal"]}],"justify-items":[{"justify-items":[...Me(),"normal"]}],"justify-self":[{"justify-self":["auto",...Me()]}],"align-content":[{content:["normal",...Ce()]}],"align-items":[{items:[...Me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Me(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ce()}],"place-items":[{"place-items":[...Me(),"baseline"]}],"place-self":[{"place-self":["auto",...Me()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],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":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"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,So,rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,O_,T_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yd,re]}],"font-family":[{font:[A_,P_,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":[Ee,"none",ie,Vg]}],leading:[{leading:[l,...U()]}],"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:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",ie,rs]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Ee,"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:U()}],"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:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_r,ie,re],radial:["",ie,re],conic:[_r,ie,re]},j_,R_]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ye()}
vendor: 6,831 bytes, line 155
155],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],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:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,ie,re]}],"outline-w":[{outline:["",Ee,So,rs]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",g,kl,_l]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,kl,_l]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Ee,rs]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",x,kl,_l]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Ee,ie,re]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"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":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[ie,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":L()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"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:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,re]}],filter:[{filter:["","none",ie,re]}],blur:[{blur:lt()}],brightness:[{brightness:[Ee,ie,re]}],contrast:[{contrast:[Ee,ie,re]}],"drop-shadow":[{"drop-shadow":["","none",b,kl,_l]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Ee,ie,re]}],"hue-rotate":[{"hue-rotate":[Ee,ie,re]}],invert:[{invert:["",Ee,ie,re]}],saturate:[{saturate:[Ee,ie,re]}],sepia:[{sepia:["",Ee,ie,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,re]}],"backdrop-blur":[{"backdrop-blur":lt()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,ie,re]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,ie,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,ie,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,ie,re]}],"backdrop-invert":[{"backdrop-invert":["",Ee,ie,re]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,ie,re]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,ie,re]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,ie,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"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:[Ee,"initial",ie,re]}],ease:[{ease:["linear","initial",S,ie,re]}],delay:[{delay:[Ee,ie,re]}],animate:[{animate:["none",A,ie,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ie,re]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Xt()}],"rotate-x":[{"rotate-x":Xt()}],"rotate-y":[{"rotate-y":Xt()}],"rotate-z":[{"rotate-z":Xt()}],scale:[{scale:pt()}],"scale-x":[{"scale-x":pt()}
vendor: 7,512 bytes, line 155
155],"scale-y":[{"scale-y":pt()}],"scale-z":[{"scale-z":pt()}],"scale-3d":["scale-3d"],skew:[{skew:dn()}],"skew-x":[{"skew-x":dn()}],"skew-y":[{"skew-y":dn()}],transform:[{transform:[ie,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Yt()}],"translate-x":[{"translate-x":Yt()}],"translate-y":[{"translate-y":Yt()}],"translate-z":[{"translate-z":Yt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",...V()]}],"stroke-w":[{stroke:[Ee,So,rs,Vg]}],stroke:[{stroke:["none",...V()]}],"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"]}},M_=p_(D_);function Ps(...t){return M_(T0(t))}const W0=M.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}));W0.displayName="ToastProvider";const H0=M.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}));H0.displayName="ToastViewport";const F_=lE("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"}}),K0=M.forwardRef(({className:t,variant:e,...n},i)=>v.jsx("div",{ref:i,className:Ps(F_({variant:e}),t),...n}));K0.displayName="Toast";const I_=M.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:Ps("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}));I_.displayName="ToastAction";const Q0=M.forwardRef(({className:t,...e},n)=>v.jsx("button",{ref:n,className:Ps("absolute right-2 top-2 rounded-md p-1 text-foreground
155/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(A0,{className:"h-4 w-4"})}));Q0.displayName="ToastClose";const G0=M.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:Ps("text-sm font-semibold",t),...e}));G0.displayName="ToastTitle";const X0=M.forwardRef(({className:t,...e},n)=>v.jsx("div",{ref:n,className:Ps("text-sm opacity-90",t),...e}));X0.displayName="ToastDescription";function B_(){const{toasts:t}=aE();return v.jsxs(W0,{children:[t.map(function({id:e,title:n,description:i,action:a,...l}){return v.jsxs(K0,{...l,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(G0,{children:n}),i&&v.jsx(X0,{children:i})]}),a,v.jsx(Q0,{})]},e)}),v.jsx(H0,{})]})}var na=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(){}},U_={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Tr,Of,h0,V_=(h0=class{constructor(){pe(this,Tr,U_);pe(this,Of,!1)}setTimeoutProvider(t){Z(this,Tr,t)}setTimeout(t,e){return R(this,Tr).setTimeout(t,e)}clearTimeout(t){R(this,Tr).clearTimeout(t)}setInterval(t,e){return R(this,Tr).setInterval(t,e)}clearInterval(t){R(this,Tr).clearInterval(t)}},Tr=new WeakMap,Of=new WeakMap,h0),us=new V_;function z_(t){setTimeout(t,0)}var _s=typeof window>"u"||"Deno"in globalThis;function Vt(){}function $_(t,e){return typeof t=="function"?t(e):t}function zd(t){return typeof t=="number"&&t>=0&&t!==1/0}function Y0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Fr(t,e){return typeof t=="function"?t(e):t}function un(t,e){return typeof t=="function"?t(e):t}function qg(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:u,stale:d}=t;if(u){if(i){if(e.queryHash!==Ff(u,e.options))return!1}else if(!zo(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 Wg(t,e){const{exact:n,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Vo(e.options.mutationKey)!==Vo(l))return!1}else if(!zo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function Ff(t,e){return((e==null?void 0:e.queryKeyHashFn)||Vo)(t)}function Vo(t){return JSON.stringify(t,(e,n)=>qd(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function zo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>zo(t[n],e[n])):!1}var q_=Object.prototype.hasOwnProperty;function J0(t,e,n=0){if(t===e)return t;if(n>500)return e;const i=Hg(t)&&Hg(e);if(!i&&!(qd(t)&&qd(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],x=t[y],b=e[y];if(x===b){h[y]=x,(i?g<l:q_.call(t,y))&&p++;continue}if(x===null||b===null||typeof x!="object"||typeof b!="object"){h[y]=b;continue}const C=J0(x,b,n+1);h[y]=C,C===x&&p++}return l===d&&p===l?t:h}function $d(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 Hg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function qd(t){if(!Kg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Kg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Kg(t){return Object.prototype.toString.call(t)==="[object Object]"}function W_(t){return new Promise(e=>{us.setTimeout(e,t)})}function Wd(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?J0(t,e):e}function H_(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function K_(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var If=Symbol();function Z0(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===If?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ew(t,e){return typeof t=="function"?t(...e):!!t}function Q_(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 hs,Pr,ci,p0,G_=(p0=class extends na{constructor(){super();pe(this,hs);pe(this,Pr);pe(this,ci);Z(this,ci,e=>{if(!_s&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Pr)||this.setEventListener(R(this,ci))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Pr))==null||e.call(this),Z(this,Pr,void 0))}setEventListener(e){var n;Z(this,ci,e),(n=R(this,Pr))==null||n.call(this),Z(this,Pr,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){R(this,hs)!==e&&(Z(this,hs,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,992 bytes, line 155
155this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof R(this,hs)=="boolean"?R(this,hs):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},hs=new WeakMap,Pr=new WeakMap,ci=new WeakMap,p0),Bf=new G_;function Hd(){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 X_=z_;function Y_(){let t=[],e=0,n=d=>{d()},i=d=>{d()},a=X_;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 xt=Y_(),di,Rr,fi,m0,J_=(m0=class extends na{constructor(){super();pe(this,di,!0);pe(this,Rr);pe(this,fi);Z(this,fi,e=>{if(!_s&&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,Rr)||this.setEventListener(R(this,fi))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Rr))==null||e.call(this),Z(this,Rr,void 0))}setEventListener(e){var n;Z(this,fi,e),(n=R(this,Rr))==null||n.call(this),Z(this,Rr,e(this.setOnline.bind(this)))}setOnline(e){R(this,di)!==e&&(Z(this,di,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return R(this,di)}},di=new WeakMap,Rr=new WeakMap,fi=new WeakMap,m0),Gl=new J_;function Z_(t){return Math.min(1e3*2**t,3e4)}function tw(t){return(t??"online")==="online"?Gl.isOnline():!0}var Kd=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function nw(t){let e=!1,n=0,i;const a=Hd(),l=()=>a.status!=="pending",u=_=>{var E;if(!l()){const S=new Kd(_);x(S),(E=t.onCancel)==null||E.call(t,S)}},d=()=>{e=!0},h=()=>{e=!1},p=()=>Bf.isFocused()&&(t.networkMode==="always"||Gl.isOnline())&&t.canRun(),g=()=>tw(t.networkMode)&&t.canRun(),y=_=>{l()||(i==null||i(),a.resolve(_))},x=_=>{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??(_s?0:3),P=t.retryDelay??Z_,L=typeof P=="function"?P(n,S):P,I=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,S);if(e||!I){x(S);return}n++,(z=t.onFail)==null||z.call(t,n,S),W_(L).then(()=>p()?void 0:b()).then(()=>{e?x(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 ps,g0,rw=(g0=class{constructor(){pe(this,ps)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zd(this.gcTime)&&Z(this,ps,us.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(_s?1/0:300*1e3))}clearGcTimeout(){R(this,ps)&&(us.clearTimeout(R(this,ps)),Z(this,ps,void 0))}},ps=new WeakMap,g0),ms,hi,ln,gs,ft,Yo,ys,bn,Qn,y0,ek=(y0=class extends rw{constructor(e){super();pe(this,bn);pe(this,ms);pe(this,hi);pe(this,ln);pe(this,gs);pe(this,ft);pe(this,Yo);pe(this,ys);Z(this,ys,!1),Z(this,Yo,e.defaultOptions),this.setOptions(e.options),this.observers=[],Z(this,gs,e.client),Z(this,ln,R(this,gs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Z(this,ms,Gg(this.options)),this.state=e.state??R(this,ms),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ft))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,Yo),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Gg(this.options);n.data!==void 0&&(this.setState(Qg(n.data,n.dataUpdatedAt)),Z(this,ms,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,ln).remove(this)}setData(e,n){const i=Wd(this.state.data,e,this.options);return Te(this,bn,Qn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){Te(this,bn,Qn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=R(this,ft))==null?void 0:i.promise;return(a=R(this,ft))==null||a.cancel(e),n?n.then(Vt).catch(Vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,ms))}isActive(){return this.observers.some(e=>un(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===If||this.state.dataUpdateCount+this.state.errorUpdate
155Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Fr(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:!Y0(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ft))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ft))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,ln).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,ft)&&(R(this,ys)?R(this,ft).cancel({revert:!0}):R(this,ft).cancelRetry()),this.scheduleGc()),R(this,ln).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,bn,Qn).call(this,{type:"invalidate"})}async fetch(e,n){var h,p,g,y,x,b,C,_,E,S,A,P;if(this.state.fetchStatus!=="idle"&&((h=R(this,ft))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,ft))return R(this,ft).continueRetry(),R(this,ft).promise}if(e&&this.setOptions(e),!this.options.queryFn){const L=this.observers.find(I=>I.options.queryFn);L&&this.setOptions(L.options)}const i=new AbortController,a=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(Z(this,ys,!0),i.signal)})},l=()=>{const L=Z0(this.options,n),z=(()=>{const Y={client:R(this,gs),queryKey:this.queryKey,meta:this.meta};return a(Y),Y})();return Z(this,ys,!1),this.options.persister?this.options.persister(L,z,this):L(z)},d=(()=>{const L={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,gs),state:this.state,fetchFn:l};return a(L),L})();(p=this.options.behavior)==null||p.onFetch(d,this),Z(this,hi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&Te(this,bn,Qn).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),Z(this,ft,nw({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:L=>{L instanceof Kd&&L.revert&&this.setState({...R(this,hi),fetchStatus:"idle"}),i.abort()},onFail:(L,I)=>{Te(this,bn,Qn).call(this,{type:"failed",failureCount:L,error:I})},onPause:()=>{Te(this,bn,Qn).call(this,{type:"pause"})},onContinue:()=>{Te(this,bn,Qn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const L=await R(this,ft).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(b=(x=R(this,ln).config).onSuccess)==null||b.call(x,L,this),(_=(C=R(this,ln).config).onSettled)==null||_.call(C,L,this.state.error,this),L}catch(L){if(L instanceof Kd){if(L.silent)return R(this,ft).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw Te(this,bn,Qn).call(this,{type:"error",error:L}),(S=(E=R(this,ln).config).onError)==null||S.call(E,L,this),(P=(A=R(this,ln).config).onSettled)==null||P.call(A,this.state.data,L,this),L}finally{this.scheduleGc()}}},ms=new WeakMap,hi=new WeakMap,ln=new WeakMap,gs=new WeakMap,ft=new WeakMap,Yo=new WeakMap,ys=new WeakMap,bn=new WeakSet,Qn=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,...sw(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Qg(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Z(this,hi,e.manual?a:void 0),a;case"error":const l=e.error;
vendor: 9,603 bytes, line 155
155return{...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),xt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),R(this,ln).notify({query:this,type:"updated",action:e})})},y0);function sw(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tw(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Qg(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Gg(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 Ut,Pe,Jo,Ot,vs,pi,Gn,Ar,Zo,mi,gi,ws,xs,Nr,yi,De,Co,Qd,Gd,Xd,Yd,Jd,Zd,ef,iw,v0,tk=(v0=class extends na{constructor(e,n){super();pe(this,De);pe(this,Ut);pe(this,Pe);pe(this,Jo);pe(this,Ot);pe(this,vs);pe(this,pi);pe(this,Gn);pe(this,Ar);pe(this,Zo);pe(this,mi);pe(this,gi);pe(this,ws);pe(this,xs);pe(this,Nr);pe(this,yi,new Set);this.options=n,Z(this,Ut,e),Z(this,Ar,null),Z(this,Gn,Hd()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Pe).addObserver(this),Xg(R(this,Pe),this.options)?Te(this,De,Co).call(this):this.updateResult(),Te(this,De,Yd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tf(R(this,Pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tf(R(this,Pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,De,Jd).call(this),Te(this,De,Zd).call(this),R(this,Pe).removeObserver(this)}setOptions(e){const n=this.options,i=R(this,Pe);if(this.options=R(this,Ut).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof un(this.options.enabled,R(this,Pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,De,ef).call(this),R(this,Pe).setOptions(this.options),n._defaulted&&!$d(this.options,n)&&R(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Pe),observer:this});const a=this.hasListeners();a&&Yg(R(this,Pe),i,this.options,n)&&Te(this,De,Co).call(this),this.updateResult(),a&&(R(this,Pe)!==i||un(this.options.enabled,R(this,Pe))!==un(n.enabled,R(this,Pe))||Fr(this.options.staleTime,R(this,Pe))!==Fr(n.staleTime,R(this,Pe)))&&Te(this,De,Qd).call(this);const l=Te(this,De,Gd).call(this);a&&(R(this,Pe)!==i||un(this.options.enabled,R(this,Pe))!==un(n.enabled,R(this,Pe))||l!==R(this,Nr))&&Te(this,De,Xd).call(this,l)}getOptimisticResult(e){const n=R(this,Ut).getQueryCache().build(R(this,Ut),e),i=this.createResult(n,e);return rk(this,i)&&(Z(this,Ot,i),Z(this,pi,this.options),Z(this,vs,R(this,Pe).state)),i}getCurrentResult(){return R(this,Ot)}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,Gn).status==="pending"&&R(this,Gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){R(this,yi).add(e)}getCurrentQuery(){return R(this,Pe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=R(this,Ut).defaultQueryOptions(e),i=R(this,Ut).getQueryCache().build(R(this,Ut),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return Te(this,De,Co).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Ot)))}createResult(e,n){var ee;const i=R(this,Pe),a=this.options,l=R(this,Ot),u=R(this,vs),d=R(this,pi),p=e!==i?e.state:R(this,Jo),{state:g}=e;let y={...g},x=!1,b;if(n._optimisticResults){const ue=this.hasListeners(),be=!ue&&Xg(e,n),Ae=ue&&Yg(e,i,n,a);(be||Ae)&&(y={...y,...sw(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((ee=R(this,gi))==null?void 0:ee.state.data,R(this,gi)):n.placeholderData,ue!==void 0&&(E="success",b=Wd(l==null?void 0:l.data,ue,n),x=!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,mi);else try{Z(this,Zo,n.select),b=n.select(b),b=Wd(l==null?void 0:l.data,b,n),Z(this,mi,b),Z(this,Ar,null)}catch(ue){Z(this,Ar,ue)}R(this,Ar)&&(C=R(this,Ar),b=R(this,mi),_=Date.now(),E="error");const A=y.fetchStatus==="fetching",P=E==="pending",L=E==="error",I=P&&A,z=b!==void 0,U={status:E,fetchStatus:y.fetchStatus,isPending:P,isSuccess:E==="success",isError:L,isInitialLoading:I,isLoading:I,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:L&&!z,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:L&&z,isStale:Uf(e,n),refetch:this.refetch,promise:R(this,Gn),isEnabled:un(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ue=U.data!==void 0,be=U.status==="error"&&!ue,Ae=Me=>{be?Me.reject(U.error):ue&&Me.resolve(U.data)},Oe=()=>{const Me=Z(this,Gn,U.promise=Hd());Ae(Me)},Ce=R(this,Gn);switch(Ce.status){case"pending":e.queryHash===i.queryHash&&Ae(Ce);break;case"fulfilled":(be||U.data!==Ce.value)&&Oe();break;case"rejected":(!be||U.error!==Ce.reason)&&Oe();break}}return U}updateResult(){const e=R(this,Ot),n=this.createResult(R(this,Pe),this.options);if(Z(this,vs,R(this,Pe).state),Z(this,pi,this.options),R(this,vs).data!==void 0&&Z(this,gi,R(this,Pe)),$d(n,e))return;Z(this,Ot,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!R(this,yi).size)return!0;const u=new Set(l??R(this,yi));return this.options.throwOnError&&u.add("error"),Object.keys(R(this,Ot)).some(d=>{const h=d;return R(this,Ot)[h]!==e[h]&&u.has(h)})};Te(this,De,iw).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,De,Yd).call(this)}},Ut=new WeakMap,Pe=new WeakMap,Jo=new WeakMap,Ot=new WeakMap,vs=new WeakMap,pi=new WeakMap,Gn=new WeakMap,Ar=new WeakMap,Zo=new WeakMap,mi=new WeakMap,gi=new WeakMap,ws=new WeakMap,xs=new WeakMap,Nr=new WeakMap,yi=new WeakMap,De=new WeakSet,Co=function(e){Te(this,De,ef).call(this);let n=R(this,Pe).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Vt)),n},Qd=function(){Te(this,De,Jd).call(this);const e=Fr(this.options.staleTime,R(this,Pe));if(_s||R(this,Ot).isStale||!zd(e))return;const i=Y0(R(this,Ot).dataUpdatedAt,e)+1;Z(this,ws,us.setTimeout(()=>{R(this,Ot).isStale||this.updateResult()},i))},Gd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Pe)):this.options.refetchInterval)??!1},Xd=function(e){Te(this,De,Zd).call(this),Z(this,Nr,e),!(_s||un(this.options.enabled,R(this,Pe))===!1||!zd(R(this,Nr))||R(this,Nr)===0)&&Z(this,xs,us.setInterval(()=>{(this.options.refetchIntervalInBackground||Bf.isFocused())&&Te(this,De,Co).call(this)},R(this,Nr)))},Yd=function(){Te(this,De,Qd).call(this),Te(this,De,Xd).call(this,Te(this,De,Gd).call(this))},Jd=function(){R(this,ws)&&(us.clearTimeout(R(this,ws)),Z(this,ws,void 0))},Zd=function(){R(this,xs)&&(us.clearInterval(R(this,xs)),Z(this,xs,void 0))},ef=function(){const e=R(this,Ut).getQueryCache().build(R(this,Ut),this.options);if(e===R(this,Pe))return;const n=R(this,Pe);Z(this,Pe,e),Z(this,Jo,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},iw=function(e){xt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(R(this,Ot))}),R(this,Ut).getQueryCache().notify({query:R(this,Pe),type:"observerResultsUpdated"})})},v0);function nk(t,e){return un(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Xg(t,e){return nk(t,e)||t.state.data!==void 0&&tf(t,e,e.refetchOnMount)}function tf(t,e,n){if(un(e.enabled,t)!==!1&&Fr(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Uf(t,e)}return!1}function Yg(t,e,n,i){return(t!==e||un(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Uf(t,n)}function Uf(t,e){return un(e.enabled,t)!==!1&&t.isStaleByTime(Fr(e.staleTime,t))}function rk(t,e){return!$d(t.getCurrentResult(),e)}function Jg(t){return{onFetch:(e,n)=>{var g,y,x,b,C;const i=e.options,a=(x=(y=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:x.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=>{Q_(P,()=>e.signal,()=>_=!0)},S=Z0(e.options,e.fetchOptions),A=async(P,L,I)=>
vendor: 4,306 bytes, line 155
155{if(_)return Promise.reject();if(L==null&&P.pages.length)return Promise.resolve(P);const Y=(()=>{const be={client:e.client,queryKey:e.queryKey,pageParam:L,direction:I?"backward":"forward",meta:e.options.meta};return E(be),be})(),U=await S(Y),{maxPages:ee}=e.options,ue=I?K_:H_;return{pages:ue(P.pages,U,ee),pageParams:ue(P.pageParams,L,ee)}};if(a&&l.length){const P=a==="backward",L=P?sk:Zg,I={pages:l,pageParams:u},z=L(i,I);d=await A(I,z,P)}else{const P=t??l.length;do{const L=h===0?u[0]??i.initialPageParam:Zg(i,d);if(h>0&&L==null)break;d=await A(d,L),h++}while(h<P)}return d};e.options.persister?e.fetchFn=()=>{var _,E;return(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 Zg(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 sk(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 ea,Nn,Tt,Ss,jn,kr,w0,ik=(w0=class extends rw{constructor(e){super();pe(this,jn);pe(this,ea);pe(this,Nn);pe(this,Tt);pe(this,Ss);Z(this,ea,e.client),this.mutationId=e.mutationId,Z(this,Tt,e.mutationCache),Z(this,Nn,[]),this.state=e.state||ok(),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,Nn).includes(e)||(R(this,Nn).push(e),this.clearGcTimeout(),R(this,Tt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Z(this,Nn,R(this,Nn).filter(n=>n!==e)),this.scheduleGc(),R(this,Tt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,Nn).length||(this.state.status==="pending"?this.scheduleGc():R(this,Tt).remove(this))}continue(){var e;return((e=R(this,Ss))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,d,h,p,g,y,x,b,C,_,E,S,A,P,L,I,z,Y;const n=()=>{Te(this,jn,kr).call(this,{type:"continue"})},i={client:R(this,ea),meta:this.options.meta,mutationKey:this.options.mutationKey};Z(this,Ss,nw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(U,ee)=>{Te(this,jn,kr).call(this,{type:"failed",failureCount:U,error:ee})},onPause:()=>{Te(this,jn,kr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Tt).canRun(this)}));const a=this.state.status==="pending",l=!R(this,Ss).canStart();try{if(a)n();else{Te(this,jn,kr).call(this,{type:"pending",variables:e,isPaused:l}),R(this,Tt).config.onMutate&&await R(this,Tt).config.onMutate(e,this,i);const ee=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e,i));ee!==this.state.context&&Te(this,jn,kr).call(this,{type:"pending",context:ee,variables:e,isPaused:l})}const U=await R(this,Ss).start();return await((p=(h=R(this,Tt).config).onSuccess)==null?void 0:p.call(h,U,e,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,U,e,this.state.context,i)),await((b=(x=R(this,Tt).config).onSettled)==null?void 0:b.call(x,U,null,this.state.variables,this.state.context,this,i)),await((_=(C=this.options).onSettled)==null?void 0:_.call(C,U,null,e,this.state.context,i)),Te(this,jn,kr).call(this,{type:"success",data:U}),U}catch(U){try{await((S=(E=R(this,Tt).config).onError)==null?void 0:S.call(E,U,e,this.state.context,this,i))}catch(ee){Promise.reject(ee)}try{await((P=(A=this.options).onError)==null?void 0:P.call(A,U,e,this.state.context,i))}catch(ee){Promise.reject(ee)}try{await((I=(L=R(this,Tt).config).onSettled)==null?void 0:I.call(L,void 0,U,this.state.variables,this.state.context,this,i))}catch(ee){Promise.reject(ee)}try{await((Y=(z=this.options).onSettled)==null?void 0:Y.call(z,void 0,U,e,this.state.context,i))}catch(ee){Promise.reject(ee)}throw Te(this,jn,kr).call(this,{type:"error",error:U}),U}finally{R(this,Tt).runNext(this)}}},ea=new WeakMap,Nn=new WeakMap,Tt=new WeakMap,Ss=new WeakMap,jn=new WeakSet,kr=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};
vendor: 1,027 bytes, line 155
155case"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),xt.batch(()=>{R(this,Nn).forEach(i=>{i.onMutationUpdate(e)}),R(this,Tt).notify({mutation:this,type:"updated",action:e})})},w0);function ok(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xn,En,ta,x0,ak=(x0=class extends na{constructor(e={}){super();pe(this,Xn);pe(this,En);pe(this,ta);this.config=e,Z(this,Xn,new Set),Z(this,En,new Map),Z(this,ta,0)}build(e,n,i){const a=new ik({client:e,mutationCache:this,mutationId:++bl(this,ta)._,options:e.defaultMutationOptions(n),state:i}
155);return this.add(a),a}add(e){R(this,Xn).add(e);const n=Cl(e);if(typeof n=="string"){const i=R(this,En).get(n);i?i.push(e):R(this,En).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Xn).delete(e)){const n=Cl(e);if(typeof n=="string"){const i=R(this,En).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,En).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Cl(e);if(typeof n=="string"){const i=R(this,En).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=Cl(e);if(typeof n=="string"){const a=(i=R(this,En).get(n))==null?void 0:i.find(l=>l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{R(this,Xn).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Xn).clear(),R(this,En).clear()})}getAll(){return Array.from(R(this,Xn))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Wg(n,i))}findAll(e={}){return this.getAll().filter(n=>Wg(e,n))}notify(e){xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Vt))))}},Xn=new WeakMap,En=new WeakMap,ta=new WeakMap,x0);function Cl(t){var e;return(e=t.options.scope)==null?void 0:e.id}var On,S0,lk=(S0=class extends na{constructor(e={}){super();pe(this,On);this.config=e,Z(this,On,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??Ff(a,n);let u=this.get(l);return u||(u=new ek({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){R(this,On).has(e.queryHash)||(R(this,On).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=R(this,On).get(e.queryHash);n&&(e.destroy(),n===e&&R(this,On).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){xt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,On).get(e)}getAll(){return[...R(this,On).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>qg(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>qg(e,i)):n}notify(e){xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},On=new WeakMap,S0),Ge,jr,Or,vi,wi,Lr,xi,Si,b0,uk=(b0=class{constructor(t={}){pe(this,Ge);pe(this,jr);pe(this,Or);pe(this,vi);pe(this,wi);pe(this,Lr);pe(this,xi);pe(this,Si);Z(this,Ge,t.queryCache||new lk),Z(this,jr,t.mutationCache||new ak),Z(this,Or,t.defaultOptions||{}),Z(this,vi,new Map),Z(this,wi,new Map),Z(this,Lr,0)}mount(){bl(this,Lr)._++,R(this,Lr)===1&&(Z(this,xi,Bf.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Ge).onFocus())})),Z(this,Si,Gl.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Ge).onOnline())})))}unmount(){var t,e;bl(this,Lr)._--,R(this,Lr)===0&&((t=R(this,xi))==null||t.call(this),Z(this,xi,void 0),(e=R(this,Si))==null||e.call(this),Z(this,Si,void 0))}isFetching(t){return R(this,Ge).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return R(this,jr).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(Fr(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=$_(e,l);if(u!==void 0)return R(this,Ge).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return xt.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);xt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=R(this,Ge);return xt.batch(()=>(n.findAll(t).forEach(i=>
155{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=xt.batch(()=>R(this,Ge).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(Vt).catch(Vt)}invalidateQueries(t,e={}){return xt.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=xt.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(Vt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Vt)}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(Fr(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Vt).catch(Vt)}fetchInfiniteQuery(t){return t.behavior=Jg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Vt).catch(Vt)}ensureInfiniteQueryData(t){return t.behavior=Jg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Gl.isOnline()?R(this,jr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ge)}getMutationCache(){return R(this,jr)}getDefaultOptions(){return R(this,Or)}setDefaultOptions(t){Z(this,Or,t)}setQueryDefaults(t,e){R(this,vi).set(Vo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...R(this,vi).values()],n={};return e.forEach(i=>{zo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){R(this,wi).set(Vo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...R(this,wi).values()],n={};return e.forEach(i=>{zo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...R(this,Or).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Ff(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===If&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...R(this,Or).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){R(this,Ge).clear(),R(this,jr).clear()}},Ge=new WeakMap,jr=new WeakMap,Or=new WeakMap,vi=new WeakMap,wi=new WeakMap,Lr=new WeakMap,xi=new WeakMap,Si=new WeakMap,b0),ow=M.createContext(void 0),ck=t=>{const e=M.useContext(ow);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},dk=({client:t,children:e})=>(M.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(ow.Provider,{value:t,children:e})),aw=M.createContext(!1),fk=()=>M.useContext(aw);aw.Provider;function hk(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var pk=M.createContext(hk()),mk=()=>M.useContext(pk),gk=(t,e,n)=>{const i=n!=null&&n.state.error&&typeof t.throwOnError=="function"?ew(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},yk=t=>{M.useEffect(()=>{t.clearReset()},[t])},vk=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||ew(n,[t.error,i])),wk=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))}},xk=(t,e)=>t.isLoading&&t.isFetching&&!e,Sk=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ey=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function bk(t,e,n){var x,b,C,_;const i=fk(),a=mk(),l=ck(),u=l.defaultQueryOptions(t);(b=(x=l.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||b.call(x,u);const d=l.getQueryCache().get(u.queryHash);u._optimisticResults=i?"isRestoring":"optimistic",wk(u),gk(u,a,d),yk(a);const h=!l.getQueryCache().get(u.queryHash),[p]=M.useState(()=>new e(l,u)),g=p.getOptimisticResult(u),y=!i&&t.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(E=>{const S=y?p.subscribe(xt.batchCalls(E)):Vt;return p.updateResult(),S},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),M.useEffect(()=>{p.setOptions(u)},[u,p]),Sk(u,g))throw ey(u,p,a);if(vk({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&&!_s&&xk(g,i)){const E=h?ey(u,p,a):d==null?void 0:d.promise;E==null||E.catch(Vt).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?g:p.trackResult(g)}function Ek(t,e){return bk(t,tk)}const _k=new uk({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});k0();/**
156 * @remix-run/router v1.23.3
157 *
158 * Copyright (c) Remix Software Inc.
159 *
160 * This source code is licensed under the MIT license found in the
161 * LICENSE.md file in the root directory of this source tree.
162 *
163 * @license MIT
164 */function $o(){return $o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$o.apply(null,arguments)}var Dr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Dr||(Dr={}));const ty="popstate";function kk(t){t===void 0&&(t={});function e(i,a){let{pathname:l,search:u,hash:d}=i.location;return nf("",{pathname:l,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 11,632 bytes, lines 164-173
164function n(i,a){return typeof a=="string"?a:Xl(a)}return Tk(e,n,null,t)}function rt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Vf(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Ck(){return Math.random().toString(36).substr(2,8)}function ny(t,e){return{usr:t.state,key:t.key,idx:e}}function nf(t,e,n,i){return n===void 0&&(n=null),$o({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ti(e):e,{state:n,key:e&&e.key||i||Ck()})}function Xl(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 Ti(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 Tk(t,e,n,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,u=a.history,d=Dr.Pop,h=null,p=g();p==null&&(p=0,u.replaceState($o({},u.state,{idx:p}),""));function g(){return(u.state||{idx:null}).idx}function y(){d=Dr.Pop;let E=g(),S=E==null?null:E-p;p=E,h&&h({action:d,location:_.location,delta:S})}function x(E,S){d=Dr.Push;let A=nf(_.location,E,S);p=g()+1;let P=ny(A,p),L=_.createHref(A);try{u.pushState(P,"",L)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(L)}l&&h&&h({action:d,location:_.location,delta:1})}function b(E,S){d=Dr.Replace;let A=nf(_.location,E,S);p=g();let P=ny(A,p),L=_.createHref(A);u.replaceState(P,"",L),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:Xl(E);return A=A.replace(/ $/,"%20"),rt(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(ty,y),h=E,()=>{a.removeEventListener(ty,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:x,replace:b,go(E){return u.go(E)}};return _}var ry;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ry||(ry={}));function Pk(t,e,n){return n===void 0&&(n="/"),Rk(t,e,n)}function Rk(t,e,n,i){let a=typeof e=="string"?Ti(e):e,l=zf(a.pathname||"/",n);if(l==null)return null;let u=lw(t);Ak(u);let d=null,h=zk(l);for(let p=0;d==null&&p<u.length;++p)d=Bk(u[p],h);return d}function lw(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("/")&&(rt(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=Ir([i,h.relativePath]),g=n.concat(h);l.children&&l.children.length>0&&(rt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),lw(l.children,e,g,p)),!(l.path==null&&!l.index)&&e.push({path:p,score:Fk(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 uw(l.path))a(l,u,h)}),e}function uw(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=uw(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 Ak(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Ik(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const Nk=/^:[\w-]+$/,jk=3,Ok=2,Lk=1,Dk=10,Mk=-2,sy=t=>t==="*";function Fk(t,e){let n=t.split("/"),i=n.length;return n.some(sy)&&(i+=Mk),e&&(i+=Ok),n.filter(a=>!sy(a)).reduce((a,l)=>a+(Nk.test(l)?jk:l===""?Lk:Dk),i)}function Ik(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 Bk(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=Uk({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),x=h.route;if(!y)return null;Object.assign(a,y.params),u.push({params:a,pathname:Ir([l,y.pathname]),pathnameBase:Kk(Ir([l,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(l=Ir([l,y.pathnameBase]))}return u}function Uk(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=Vk(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:x,isOptional:b}=g;if(x==="*"){let _=d[y]||"";u=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const C=d[y];return b&&!C?p[x]=void 0:p[x]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:t}}function Vk(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Vf(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 zk(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Vf(!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 zf(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 $k=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qk=t=>$k.test(t);function Wk(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:a=""}=typeof t=="string"?Ti(t):t,l;if(n)if(qk(n))l=n;else{if(n.includes("//")){let u=n;n=fw(n),Vf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?l=iy(n.substring(1),"/"):l=iy(n,e)}else l=e;return{pathname:l,search:Qk(i),hash:Gk(a)}}function iy(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function vd(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Hk(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function cw(t,e){let n=Hk(t);return e?n.map((i,a)=>a===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function dw(t,e,n,i){i===void 0&&(i=!1);let a;typeof t=="string"?a=Ti(t):(a=$o({},t),rt(!a.pathname||!a.pathname.includes("?"),vd("?","pathname","search",a)),rt(!a.pathname||!a.pathname.includes("#"),vd("#","pathname","hash",a)),rt(!a.search||!a.search.includes("#"),vd("#","search","hash",a)));let l=t===""||a.pathname==="",u=l?"/":a.pathname,d;if(u==null)d=n;else{let y=e.length-1;if(!i&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),y-=1;a.pathname=x.join("/")}d=y>=0?e[y]:"/"}let h=Wk(a,d),p=u&&u!=="/"&&u.endsWith("/"),g=(l||u===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}const fw=t=>t.replace(/\/\/+/g,"/"),Ir=t=>fw(t.join("/")),Kk=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Qk=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Gk=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Xk(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const hw=["post","put","patch","delete"];new Set(hw);const Yk=["get",...hw];new Set(Yk);/**
165 * React Router v6.30.4
166 *
167 * Copyright (c) Remix Software Inc.
168 *
169 * This source code is licensed under the MIT license found in the
170 * LICENSE.md file in the root directory of this source tree.
171 *
172 * @license MIT
173 */function qo(){return qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qo.apply(null,arguments)}const $f=M.createContext(null),Jk=M.createContext(null),Rs=M.createContext(null),ra=M.createContext(null),As=M.createContext({outlet:null,matches:[],isDataRoute:!1}),pw=M.createContext(null);function Zk(t,e){let{relative:n}=e===void 0?{}:e;sa()||rt(!1);let{basename:i,navigator:a}=M.useContext(Rs),{hash:l,pathname:u,search:d}=gw(t,{relative:n}),h=u;return i!=="/"&&(h=u==="/"?i:Ir([i,u])),a.createHref({pathname:h,search:d,hash:l})}function sa(){return M.useContext(ra)!=null}function Pi(){return sa()||rt(!1),M.useContext(ra).location}function eC(){return M.useContext(ra).navigationType}function mw(t){M.useContext(Rs).static||M.useLayoutEffect(t)}function tC(){let{isDataRoute:t}=M.useContext(As);return t?pC():nC()}function nC(){sa()||rt(!1);let t=M.useContext($f),{basename:e,future:n,navigator:i}=M.useContext(Rs),{matches:a}=M.useContext(As),{pathname:l}=Pi(),u=JSON.stringify(cw(a,n.v7_relativeSplatPath)),d=M.useRef(!1);return mw(()=>{d.current=!0}),M.useCallback(function(p,g){if(g===void 0&&(g={}),!d.current)return;if(typeof p=="number"){i.go(p);return}let y=dw(p,JSON.parse(u),l,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Ir([e,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[e,i,u,l,t])}function gw(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=M.useContext(Rs),{matches:a}=M.useContext(As),{pathname:l}=Pi(),u=JSON.stringify(cw(a,i.v7_relativeSplatPath));return M.useMemo(()=>dw(t,JSON.parse(u),l,n==="path"),[t,u,l,n])}function rC(t,e){return sC(t,e)}function sC(t,e,n,i){sa()||rt(!1);let{navigator:a}=M.useContext(Rs),{matches:l}=M.useContext(As),u=l[l.length-1],d=u?u.params:{};u&&u.pathname;let h=u?u.pathnameBase:"/";u&&u.route;let p=Pi(),g;if(e){var y;let E=typeof e=="string"?Ti(e):e;h==="/"||(y=E.pathname)!=null&&y.startsWith(h)||rt(!1),g=E}else g=p;let x=g.pathname||"/",b=x;if(h!=="/"){let E=h.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let C=Pk(t,{pathname:b}),_=uC(C&&C.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:Ir([h,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:Ir([h,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),l,n,i);return e&&_?M.createElement(ra.Provider,{value:{location:qo({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Dr.Pop}},_):_}function iC(){let t=hC(),e=Xk(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 M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application 
173Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},e),n?M.createElement("pre",{style:a},n):null,null)}const oC=M.createElement(iC,null);class aC extends M.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?M.createElement(As.Provider,{value:this.props.routeContext},M.createElement(pw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lC(t){let{routeContext:e,match:n,children:i}=t,a=M.useContext($f);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(As.Provider,{value:e},i)}function uC(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||rt(!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:x,errors:b}=n,C=y.route.loader&&x[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,x)=>{let b,C=!1,_=null,E=null;n&&(b=d&&y.route.id?d[y.route.id]:void 0,_=y.route.errorElement||oC,h&&(p<0&&x===0?(mC("route-fallback"),C=!0,E=null):p===x&&(C=!0,E=y.route.hydrateFallbackElement||null)));let S=e.concat(u.slice(0,x+1)),A=()=>{let P;return b?P=_:C?P=E:y.route.Component?P=M.createElement(y.route.Component,null):y.route.element?P=y.route.element:P=g,M.createElement(lC,{match:y,routeContext:{outlet:g,matches:S,isDataRoute:n!=null},children:P})};return n&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?M.createElement(aC,{location:n.location,revalidation:n.revalidation,component:_,error:b,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):A()},null)}var yw=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(yw||{}),vw=(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})(vw||{});function cC(t){let e=M.useContext($f);return e||rt(!1),e}function dC(t){let e=M.useContext(Jk);return e||rt(!1),e}function fC(t){let e=M.useContext(As);return e||rt(!1),e}function ww(t){let e=fC(),n=e.matches[e.matches.length-1];return n.route.id||rt(!1),n.route.id}function hC(){var t;let e=M.useContext(pw),n=dC(),i=ww();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function pC(){let{router:t}=cC(yw.UseNavigateStable),e=ww(vw.UseNavigateStable),n=M.useRef(!1);return mw(()=>{n.current=!0}),M.useCallback(function(a,l){l===void 0&&(l={}),n.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,qo({fromRouteId:e},l)))},[t,e])}const oy={};function mC(t,e,n){oy[t]||(oy[t]=!0)}function gC(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function To(t){rt(!1)}function yC(t){let{basename:e="/",children:n=null,location:i,navigationType:a=Dr.Pop,navigator:l,static:u=!1,future:d}=t;sa()&&rt(!1);let h=e.replace(/^\/*/,"/"),p=M.useMemo(()=>({basename:h,navigator:l,static:u,future:qo({v7_relativeSplatPath:!1},d)}),[h,d,l,u]);typeof i=="string"&&(i=Ti(i));let{pathname:g="/",search:y="",hash:x="",state:b=null,key:C="default"}
173=i,_=M.useMemo(()=>{let E=zf(g,h);return E==null?null:{location:{pathname:E,search:y,hash:x,state:b,key:C},navigationType:a}},[h,g,y,x,b,C,a]);return _==null?null:M.createElement(Rs.Provider,{value:p},M.createElement(ra.Provider,{children:n,value:_}))}function vC(t){let{children:e,location:n}=t;return rC(rf(e),n)}new Promise(()=>{});function rf(t,e){e===void 0&&(e=[]);let n=[];return M.Children.forEach(t,(i,a)=>{if(!M.isValidElement(i))return;let l=[...e,a];if(i.type===M.Fragment){n.push.apply(n,rf(i.props.children,l));return}i.type!==To&&rt(!1),!i.props.index||!i.props.children||rt(!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=rf(i.props.children,l)),n.push(u)}),n}/**
174 * React Router DOM v6.30.4
175 *
176 * Copyright (c) Remix Software Inc.
177 *
178 * This source code is licensed under the MIT license found in the
179 * LICENSE.md file in the root directory of this source tree.
180 *
181 * @license MIT
182 */function sf(){return sf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},sf.apply(null,arguments)}function wC(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}function xC(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function SC(t,e){return t.button===0&&(!e||e==="_self")&&!xC(t)}const bC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],EC="6";try{window.__reactRouterVersion=EC}catch{}const _C="startTransition",ay=Gb[_C];function kC(t){let{basename:e,children:n,future:i,window:a}=t,l=M.useRef();l.current==null&&(l.current=kk({window:a,v5Compat:!0}));let u=l.current,[d,h]=M.useState({action:u.action,location:u.location}),{v7_startTransition:p}=i||{},g=M.useCallback(y=>{p&&ay?ay(()=>h(y)):h(y)},[h,p]);return M.useLayoutEffect(()=>u.listen(g),[u,g]),M.useEffect(()=>gC(i),[i]),M.createElement(yC,{basename:e,children:n,location:d.location,navigationType:d.action,navigator:u,future:i})}const CC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yl=M.forwardRef(function(e,n){let{onClick:i,relative:a,reloadDocument:l,replace:u,state:d,target:h,to:p,preventScrollReset:g,viewTransition:y}=e,x=wC(e,bC),{basename:b}=M.useContext(Rs),C,_=!1;if(typeof p=="string"&&TC.test(p)&&(C=p,CC))try{let P=new URL(window.location.href),L=p.startsWith("//")?new URL(P.protocol+p):new URL(p),I=zf(L.pathname,b);L.origin===P.origin&&I!=null?p=I+L.search+L.hash:_=!0}catch{}let E=Zk(p,{relative:a}),S=PC(p,{replace:u,state:d,target:h,preventScrollReset:g,relative:a,viewTransition:y});function A(P){i&&i(P),P.defaultPrevented||S(P)}return M.createElement("a",sf({},x,{href:C||E,onClick:_||l?i:A,ref:n,target:h}))});var ly;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(ly||(ly={}));var uy;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(uy||(uy={}));function PC(t,e){let{target:n,replace:i,state:a,preventScrollReset:l,relative:u,viewTransition:d}=e===void 0?{}:e,h=tC(),p=Pi(),g=gw(t,{relative:u});return M.useCallback(y=>{if(SC(y,n)){y.preventDefault();let x=i!==void 0?i:Xl(p)===Xl(g);h(t,{replace:x,state:a,preventScrollReset:l,relative:u,viewTransition:d})}},[p,h,g,i,a,n,t,l,u,d])}function xw(t,e){return function(){return t.apply(e,arguments)}}const{toString:RC}=Object.prototype,{getPrototypeOf:bi}=Object,{iterator:ia,toStringTag:Sw}=Symbol,Jl=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Wo=(t,e)=>{let n=t;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),Jl(n,e))return!0;n=bi(n)}return!1},AC=(t,e)=>t!=null&&Wo(t,e)?t[e]:void 0,qf=(t=>e=>{const n=RC.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kn=t=>(t=t.toLowerCase(),e=>qf(e)===t),cu=t=>e=>typeof e===t,{isArray:ks}=Array,Ei=cu("undefined");function Ri(t){return t!==null&&!Ei(t)&&t.constructor!==null&&!Ei(t.constructor)&&$t(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const bw=kn("ArrayBuffer");function NC(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&bw(t.buffer),e}const jC=cu("string"),$t=cu("function"),Ew=cu("number"),Ai=t=>t!==null&&typeof t=="object",OC=t=>t===!0||t===!1,Il=t=>{if(!Ai(t))return!1;const e=bi(t);return(e===null||e===Object.prototype||bi(e)===null)&&!Wo(t,Sw)&&
vendor: 13,002 bytes, lines 182-184
182!Wo(t,ia)},LC=t=>{if(!Ai(t)||Ri(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},DC=kn("Date"),MC=kn("File"),FC=t=>!!(t&&typeof t.uri<"u"),IC=t=>t&&typeof t.getParts<"u",BC=kn("Blob"),UC=kn("FileList"),VC=t=>Ai(t)&&$t(t.pipe);function zC(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const cy=zC(),dy=typeof cy.FormData<"u"?cy.FormData:void 0,$C=t=>{if(!t)return!1;if(dy&&t instanceof dy)return!0;const e=bi(t);if(!e||e===Object.prototype||!$t(t.append))return!1;const n=qf(t);return n==="formdata"||n==="object"&&$t(t.toString)&&t.toString()==="[object FormData]"},qC=kn("URLSearchParams"),[WC,HC,KC,QC]=["ReadableStream","Request","Response","Headers"].map(kn),GC=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oa(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),ks(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(Ri(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 _w(t,e){if(Ri(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 cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kw=t=>!Ei(t)&&t!==cs;function of(...t){const{caseless:e,skipUndefined:n}=kw(this)&&this||{},i={},a=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=e&&typeof u=="string"&&_w(i,u)||u,h=Jl(i,d)?i[d]:void 0;Il(h)&&Il(l)?i[d]=of(h,l):Il(l)?i[d]=of({},l):ks(l)?i[d]=l.slice():(!n||!Ei(l))&&(i[d]=l)};for(let l=0,u=t.length;l<u;l++){const d=t[l];if(!d||Ri(d)||(oa(d,a),typeof d!="object"||ks(d)))continue;const h=Object.getOwnPropertySymbols(d);for(let p=0;p<h.length;p++){const g=h[p];aT.call(d,g)&&a(d[g],g)}}return i}const XC=(t,e,n,{allOwnKeys:i}={})=>(oa(e,(a,l)=>{n&&$t(a)?Object.defineProperty(t,l,{__proto__:null,value:xw(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),YC=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),JC=(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)},ZC=(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&&bi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},eT=(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},tT=t=>{if(!t)return null;if(ks(t))return t;let e=t.length;if(!Ew(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},nT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&bi(Uint8Array)),rT=(t,e)=>{const i=(t&&t[ia]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},sT=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},iT=kn("HTMLFormElement"),oT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:aT}=Object.prototype,lT=kn("RegExp"),Cw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};oa(n,(a,l)=>{let u;(u=e(a,l,t))!==!1&&(i[l]=u||a)}),Object.defineProperties(t,i)},uT=t=>{Cw(t,(e,n)=>{if($t(t)&&["arguments","caller","callee"].includes(n))return!1;const i=t[n];if($t(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+"'")})}})},cT=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return ks(t)?i(t):i(String(t).split(e)),n},dT=()=>{},fT=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function hT(t){return!!(t&&$t(t.append)&&t[Sw]==="FormData"&&t[ia])}const pT=t=>{const e=new WeakSet,n=i=>{if(Ai(i)){if(e.has(i))return;if(Ri(i))return i;if(!("toJSON"in i)){e.add(i);const a=ks(i)?[]:{};return oa(i,(l,u)=>{const d=n(l);!Ei(d)&&(a[u]=d)}),e.delete(i),a}}return i};return n(t)},mT=kn("AsyncFunction"),gT=t=>t&&(Ai(t)||$t(t))&&$t(t.then)&&$t(t.catch),Tw=((t,e)=>t?setImmediate:e?((n,i)=>(cs.addEventListener("message",({source:a,data:l})=>{a===cs&&l===n&&i.length&&i.shift()()},!1),a=>{i.push(a),cs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$t(cs.postMessage)),yT=typeof queueMicrotask<"u"?queueMicrotask.bind(cs):typeof process<"u"&&process.nextTick||Tw,Pw=t=>t!=null&&$t(t[ia]),vT=t=>t!=null&&Wo(t,ia)&&Pw(t),O={isArray:ks,isArrayBuffer:bw,isBuffer:Ri,isFormData:$C,isArrayBufferView:NC,isString:jC,isNumber:Ew,isBoolean:OC,isObject:Ai,isPlainObject:Il,isEmptyObject:LC,isReadableStream:WC,isRequest:HC,isResponse:KC,isHeaders:QC,isUndefined:Ei,isDate:DC,isFile:MC,isReactNativeBlob:FC,isReactNative:IC,isBlob:BC,isRegExp:lT,isFunction:$t,isStream:VC,isURLSearchParams:qC,isTypedArray:nT,isFileList:UC,forEach:oa,merge:of,extend:XC,trim:GC,stripBOM:YC,inherits:JC,toFlatObject:ZC,kindOf:qf,kindOfTest:kn,endsWith:eT,toArray:tT,forEachEntry:rT,matchAll:sT,isHTMLForm:iT,hasOwnProperty:Jl,hasOwnProp:Jl,hasOwnInPrototypeChain:Wo,getSafeProp:AC,reduceDescriptors:Cw,freezeMethods:uT,toObjectSet:cT,toCamelCase:oT,noop:dT,toFiniteNumber:fT,findKey:_w,global:cs,isContextDefined:kw,isSpecCompliantForm:hT,toJSONObject:pT,isAsyncFn:mT,isThenable:gT,setImmediate:Tw,asap:yT,isIterable:Pw,isSafeIterable:vT},wT=O.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"]),xT=t=>{const e={};let n,i,a;return t&&t.split(`
183`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim(),!(!n||e[n]&&wT[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e};function ST(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 bT=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ET=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Wf(t,e){return O.isArray(t)?t.map(n=>Wf(n,e)):ST(String(t).replace(e,""))}const _T=t=>Wf(t,bT),kT=t=>Wf(t,ET);function Rw(t){const e=Object.create(null);return O.forEach(t.toJSON(),(n,i)=>{e[i]=kT(n)}),e}const fy=Symbol("internals");function bo(t){return t&&String(t).trim().toLowerCase()}function Bl(t){return t===!1||t==null?t:O.isArray(t)?t.map(Bl):_T(String(t))}function CT(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 TT=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function wd(t,e,n,i,a){if(O.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!O.isString(e)){if(O.isString(i))return e.indexOf(i)!==-1;if(O.isRegExp(i))return i.test(e)}}function PT(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function RT(t,e){const n=O.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 At=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(d,h,p){const g=bo(h);if(!g)return;const y=O.findKey(a,g);(!y||a[y]===void 0||p===!0||p===void 0&&a[y]!==!1)&&(a[y||h]=Bl(d))}const u=(d,h)=>O.forEach(d,(p,g)=>l(p,g,h));if(O.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(O.isString(e)&&(e=e.trim())&&!TT(e))u(xT(e),n);else if(O.isObject(e)&&O.isSafeIterable(e)){let d=Object.create(null),h,p;for(const g of e){if(!O.isArray(g))throw new TypeError("Object iterator must return a key-value pair");p=g[0],O.hasOwnProp(d,p)?(h=d[p],d[p]=O.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=bo(e),e){const i=O.findKey(this,e);if(i){const a=this[i];if(!n)return a;if(n===!0)return CT(a);if(O.isFunction(n))return n.call(this,a,i);if(O.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=bo(e),e){const i=O.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||wd(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(u){if(u=bo(u),u){const d=O.findKey(i,u);d&&(!n||wd(i,i[d],d,n))&&(delete i[d],a=!0)}}return O.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||wd(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return O.forEach(this,(a,l)=>{const u=O.findKey(i,l);if(u){n[u]=Bl(a),delete n[l];return}const d=e?PT(l):String(l).trim();d!==l&&delete n[l],n[d]=Bl(a),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return O.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&O.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(`
184`)}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[fy]=this[fy]={accessors:{}}).accessors,a=this.prototype;function l(u){const d=bo(u);i[d]||(RT(a,u),i[d]=!0)}return O.isArray(e)?e.forEach(l):l(e),this}};At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(At.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});O.freezeMethods(At);const AT="[REDACTED ****]";function NT(t){if(O.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(O.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function jT(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),i=[],a=l=>{if(l===null||typeof l!="object"||O.isBuffer(l))return l;if(i.indexOf(l)!==-1)return;l instanceof At&&(l=l.toJSON()),i.push(l);let u;if(O.isArray(l))u=[],l.forEach((d,h)=>{const p=a(d);O.isUndefined(p)||(u[h]=p)});else{if(!O.isPlainObject(l)&&NT(l))return i.pop(),l;u=Object.create(null);for(const[d,h]of Object.entries(l)){const p=n.has(d.toLowerCase())?AT:a(h);O.isUndefined(p)||(u[d]=p)}}return i.pop(),u};return a(t)}let X=class Aw extends Error{static from(e,n,i,a,l,u){const d=new Aw(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&&O.hasOwnProp(e,"redact")?e.redact:void 0,i=O.isArray(n)&&n.length>0?jT(e,n):O.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 OT=null,Nw=100;function af(t){return O.isPlainObject(t)||O.isArray(t)}function jw(t){return O.endsWith(t,"[]")?t.slice(0,-2):t}function xd(t,e,n){return t?t.concat(e).map(function(a,l){return a=jw(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function LT(t){return O.isArray(t)&&!t.some(af)}const DT=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function du(t,e,n){if(!O.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,P){return!O.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?Nw:n.maxDepth,p=d&&O.isSpecCompliantForm(e),g=[];
vendor: 1,696 bytes, line 184
184if(!O.isFunction(a))throw new TypeError("visitor must be a function");function y(S){if(S===null)return"";if(O.isDate(S))return S.toISOString();if(O.isBoolean(S))return S.toString();if(!p&&O.isBlob(S))throw new X("Blob is not supported. Use a Buffer instead.");if(O.isArrayBuffer(S)||O.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 x(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(I,z){if(!O.isObject(z))return z;for(;P.length&&P[P.length-1]!==this;)P.pop();return P.push(z),x(A+P.length-1),z})}function C(S,A,P){let L=S;if(O.isReactNative(e)&&O.isReactNativeBlob(S))return e.append(xd(P,A,l),y(S)),!1;if(S&&!P&&typeof S=="object"){if(O.endsWith(A,"{}"))A=i?A:A.slice(0,-2),S=b(S,1);else if(O.isArray(S)&&LT(S)||(O.isFileList(S)||O.endsWith(A,"[]"))&&(L=O.toArray(S)))return A=jw(A),L.forEach(function(z,Y){!(O.isUndefined(z)||z===null)&&e.append(u===!0?xd([A],Y,l):u===null?A:A+"[]",y(z))}),!1}return af(S)?!0:(e.append(xd(P,A,l),y(S)),!1)}const _=Object.assign(DT,{defaultVisitor:C,convertValue:y,isVisitable:af});function E(S,A,P=0){if(!O.isUndefined(S)){if(x(P),g.indexOf(S)!==-1)throw new Error("Circular reference detected in "+A.join("."));g.push(S),O.forEach(S,function(I,z){(!(O.isUndefined(I)||I===null)&&a.call(e,I,O.isString(z)?z.trim():z,A,_))===!0&&E(I,A?A.concat(z):[z],P+1)}),g.pop()}}if(!O.isObject(t))throw new TypeError("data must be an object");return E(t),e}
vendor: 3,949 bytes, line 184
184function hy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function Hf(t,e){this._pairs=[],t&&du(t,this,e)}const Ow=Hf.prototype;Ow.append=function(e,n){this._pairs.push([e,n])};Ow.toString=function(e){const n=e?i=>e.call(this,i,hy):hy;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function MT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Lw(t,e,n){if(!e)return t;t=t||"";const i=O.isFunction(n)?{serialize:n}:n,a=O.getSafeProp(i,"encode")||MT,l=O.getSafeProp(i,"serialize");let u;if(l?u=l(e,i):u=O.isURLSearchParams(e)?e.toString():new Hf(e,i).toString(a),u){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class py{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){O.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Kf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},FT=typeof URLSearchParams<"u"?URLSearchParams:Hf,IT=typeof FormData<"u"?FormData:null,BT=typeof Blob<"u"?Blob:null,UT={isBrowser:!0,classes:{URLSearchParams:FT,FormData:IT,Blob:BT},protocols:["http","https","file","blob","url","data"]},Qf=typeof window<"u"&&typeof document<"u",lf=typeof navigator=="object"&&navigator||void 0,VT=Qf&&(!lf||["ReactNative","NativeScript","NS"].indexOf(lf.product)<0),zT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$T=Qf&&window.location.href||"http://localhost",qT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qf,hasStandardBrowserEnv:VT,hasStandardBrowserWebWorkerEnv:zT,navigator:lf,origin:$T},Symbol.toStringTag,{value:"Module"})),St={...qT,...UT};function WT(t,e){return du(t,new St.classes.URLSearchParams,{visitor:function(n,i,a,l){return St.isNode&&O.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const my=Nw;function Dw(t){if(t>my)throw new X("FormData field is too deeply nested ("+t+" levels). Max depth: "+my,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function HT(t){const e=[],n=/\w+|\[(\w*)]/g;let i;for(;(i=n.exec(t))!==null;)Dw(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function KT(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 Mw(t){function e(n,i,a,l){Dw(l);let u=n[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),h=l>=n.length;return u=!u&&O.isArray(a)?a.length:u,h?(O.hasOwnProp(a,u)?a[u]=O.isArray(a[u])?a[u].concat(i):[a[u],i]:a[u]=i,!d):((!O.hasOwnProp(a,u)||!O.isObject(a[u]))&&(a[u]=[]),e(n,i,a[u],l)&&O.isArray(a[u])&&(a[u]=KT(a[u])),!d)}if(O.isFormData(t)&&O.isFunction(t.entries)){const n={};return O.forEachEntry(t,(i,a)=>{e(HT(i),a,n,0)}),n}return null}const ni=(t,e)=>t!=null&&O.hasOwnProp(t,e)?t[e]:void 0;function QT(t,e,n){if(O.isString(t))try{return(e||JSON.parse)(t),O.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const aa={transitional:Kf,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=O.isObject(e);if(l&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return a?JSON.stringify(Mw(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)||O.isReadableStream(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;
vendor: 11,217 bytes, line 184
184if(l){const h=ni(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return WT(e,h).toString();if((d=O.isFileList(e))||i.indexOf("multipart/form-data")>-1){const p=ni(this,"env"),g=p&&p.FormData;return du(d?{"files[]":e}:e,g&&new g,h)}}return l||a?(n.setContentType("application/json",!1),QT(e)):e}],transformResponse:[function(e){const n=ni(this,"transitional")||aa.transitional,i=n&&n.forcedJSONParsing,a=ni(this,"responseType"),l=a==="json";if(O.isResponse(e)||O.isReadableStream(e))return e;if(e&&O.isString(e)&&(i&&!a||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,ni(this,"parseReviver"))}catch(h){if(d)throw h.name==="SyntaxError"?X.from(h,X.ERR_BAD_RESPONSE,this,null,ni(this,"response")):h}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:St.classes.FormData,Blob:St.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch","query"],t=>{aa.headers[t]={}});function Sd(t,e){const n=this||aa,i=e||n,a=At.from(i.headers);let l=i.data;return O.forEach(t,function(d){l=d.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function Fw(t){return!!(t&&t.__CANCEL__)}let la=class extends X{constructor(e,n,i){super(e??"canceled",X.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function Iw(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 GT(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function XT(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,x=0;for(;y!==a;)x+=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(x*1e3/b):void 0}}function YT(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 Zl=(t,e,n=3)=>{let i=0;const a=XT(50,250);return YT(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)},gy=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},yy=t=>(...e)=>O.asap(()=>t(...e)),JT=St.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,St.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(St.origin),St.navigator&&/(msie|trident)/i.test(St.navigator.userAgent)):()=>!0,ZT=St.hasStandardBrowserEnv?{write(t,e,n,i,a,l,u){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];O.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),O.isString(i)&&d.push(`path=${i}`),O.isString(a)&&d.push(`domain=${a}`),l===!0&&d.push("secure"),O.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 eP(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function tP(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const nP=/^https?:(?!\/\/)/i,rP=/[\t\n\r]/g;function sP(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function iP(t){return sP(t).replace(rP,"")}function vy(t,e){if(typeof t=="string"&&nP.test(iP(t)))throw new X('Invalid URL: missing "//" after protocol',X.ERR_INVALID_URL,e)}function Bw(t,e,n,i){vy(e,i);let a=!eP(e);return t&&(a||n===!1)?(vy(t,i),tP(t,e)):e}const wy=t=>t instanceof At?{...t}:t;function Cs(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,x,b){return O.isPlainObject(g)&&O.isPlainObject(y)?O.merge.call({caseless:b},g,y):O.isPlainObject(y)?O.merge({},y):O.isArray(y)?y.slice():y}function a(g,y,x,b){if(O.isUndefined(y)){if(!O.isUndefined(g))return i(void 0,g,x,b)}else return i(g,y,x,b)}function l(g,y){if(!O.isUndefined(y))return i(void 0,y)}function u(g,y){if(O.isUndefined(y)){if(!O.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function d(g){const y=O.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!O.isUndefined(y))if(O.isPlainObject(y)){if(O.hasOwnProp(y,g))return y[g]}else return;const x=O.hasOwnProp(t,"transitional")?t.transitional:void 0;if(O.isPlainObject(x)&&O.hasOwnProp(x,g))return x[g]}function h(g,y,x){if(O.hasOwnProp(e,x))return i(g,y);if(O.hasOwnProp(t,x))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,x)=>a(wy(g),wy(y),x,!0)};return O.forEach(Object.keys({...t,...e}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const x=O.hasOwnProp(p,y)?p[y]:a,b=O.hasOwnProp(t,y)?t[y]:void 0,C=O.hasOwnProp(e,y)?e[y]:void 0,_=x(b,C,y);O.isUndefined(_)&&x!==h||(n[y]=_)}),O.hasOwnProp(e,"validateStatus")&&O.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(O.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.validateStatus),n}const oP=["content-type","content-length"];function aP(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,a])=>{oP.includes(i.toLowerCase())&&t.set(i,a)})}const lP=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function Uw(t){const e=Cs({},t),n=x=>O.hasOwnProp(e,x)?e[x]: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=At.from(d),e.url=Lw(Bw(p,y,g,e),n("params"),n("paramsSerializer")),h){const x=O.getSafeProp(h,"username")||"",b=O.getSafeProp(h,"password")||"";try{d.set("Authorization","Basic "+btoa(x+":"+(b?lP(b):"")))}catch(C){throw X.from(C,X.ERR_BAD_OPTION_VALUE,t)}}if(O.isFormData(i)&&(St.hasStandardBrowserEnv||St.hasStandardBrowserWebWorkerEnv||O.isReactNative(i)?d.setContentType(void 0):O.isFunction(i.getHeaders)&&aP(d,i.getHeaders(),n("formDataHeaderPolicy"))),St.hasStandardBrowserEnv&&(O.isFunction(a)&&(a=a(e)),a===!0||a==null&&JT(e.url))){const b=l&&u&&ZT.read(u);b&&d.set(l,b)}return e}const uP=typeof XMLHttpRequest<"u",cP=uP&&function(t){return new Promise(function(n,i){const a=Uw(t);let l=a.data;const u=At.from(a.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:p}=a,g,y,x,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=At.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),I={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:P,config:t,request:E};Iw(function(Y){n(Y),_()},function(Y){i(Y),_()},I),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(L){const I=L&&L.message?L.message:"Network Error",z=new X(I,X.ERR_NETWORK,t,E);z.event=L||null,i(z),_(),E=null},E.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const I=a.transitional||Kf;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),i(new X(L,I.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,E)),_(),E=null},l===void 0&&u.setContentType(null),"setRequestHeader"in E&&O.forEach(Rw(u),function(L,I){E.setRequestHeader(I,L)}),O.isUndefined(a.withCredentials)||(E.withCredentials=!!a.withCredentials),d&&d!=="json"&&(E.responseType=a.responseType),p&&([x,C]=Zl(p,!0),E.addEventListener("progress",x)),h&&E.upload&&([y,b]=Zl(h),E.upload.addEventListener("progress",y),E.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(g=P=>{E&&(i(!P||P.type?new la(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=GT(a.url);if(A&&!St.protocols.includes(A)){i(new X("Unsupported protocol "+A+":",X.ERR_BAD_REQUEST,t)),_();return}E.send(l||null)})},dP=(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 la(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=()=>O.asap(u),d},fP=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},hP=async function*(t,e){for await(const n of pP(t))yield*fP(n,e)},pP=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()}},xy=(t,e,n,i)=>{const a=hP(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 x=l+=y;n(x)}h.enqueue(new Uint8Array(g))}catch(p){throw d(p),p}},cancel(h){return d(h),a.return()}},{highWaterMark:2})},eu=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,mP=(t,e,n)=>e+2<n&&eu(t.charCodeAt(e+1))&&eu(t.charCodeAt(e+2));function gP(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);eu(C)&&eu(_)&&(u-=2,b+=2)}let h=0,p=d-1;const g=b=>b>
vendor: 5,632 bytes, line 184
184=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 x=Math.floor(u/4)*3-(h||0);return x>0?x:0}let l=0;for(let u=0,d=i.length;u<d;u++){const h=i.charCodeAt(u);if(h===37&&mP(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 Gf="1.18.1",Sy=64*1024,{isFunction:Tl}=O,yP=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),by=t=>{if(!O.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Ey=(t,...e)=>{try{return!!t(...e)}catch{return!1}},vP=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},wP=t=>{const e=O.global!==void 0&&O.global!==null?O.global:globalThis,{ReadableStream:n,TextEncoder:i}=e;t=O.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:a,Request:l,Response:u}=t,d=a?Tl(a):typeof fetch=="function",h=Tl(l),p=Tl(u);if(!d)return!1;const g=d&&Tl(n),y=d&&(typeof i=="function"?(S=>A=>S.encode(A))(new i):async S=>new Uint8Array(await new l(S).arrayBuffer())),x=h&&g&&Ey(()=>{let S=!1;const A=new l(St.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&&Ey(()=>O.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 L=A&&A[S];if(L)return L.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(O.isBlob(S))return S.size;if(O.isSpecCompliantForm(S))return(await new l(St.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(O.isArrayBufferView(S)||O.isArrayBuffer(S))return S.byteLength;if(O.isURLSearchParams(S)&&(S=S+""),O.isString(S))return(await y(S)).byteLength},E=async(S,A)=>{const P=O.toFiniteNumber(S.getContentLength());return P??_(A)};return async S=>{let{url:A,method:P,data:L,signal:I,cancelToken:z,timeout:Y,onDownloadProgress:U,onUploadProgress:ee,responseType:ue,headers:be,withCredentials:Ae="same-origin",fetchOptions:Oe,maxContentLength:Ce,maxBodyLength:Me}=Uw(S);const fe=O.isNumber(Ce)&&Ce>-1,le=O.isNumber(Me)&&Me>-1,K=G=>O.hasOwnProp(S,G)?S[G]:void 0;let se=a||fetch;ue=ue?(ue+"").toLowerCase():"text";let V=dP([I,z&&z.toAbortSignal()],Y),j=null;const $=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let ge,ye=null;const he=()=>new X("Request body larger than maxBodyLength limit",X.ERR_BAD_REQUEST,S,j);try{let G;const xe=K("auth");if(xe){const Se=O.getSafeProp(xe,"username")||"",mt=O.getSafeProp(xe,"password")||"";G={username:Se,password:mt}}if(vP(A)){const Se=new URL(A,St.origin);if(!G&&(Se.username||Se.password)){const mt=by(Se.username),fn=by(Se.password);G={username:mt,password:fn}}(Se.username||Se.password)&&(Se.username="",Se.password="",A=Se.href)}if(G&&(be.delete("authorization"),be.set("Authorization","Basic "+btoa(yP((G.username||"")+":"+(G.password||""))))),fe&&typeof A=="string"&&A.startsWith("data:")&&gP(A)>Ce)throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,S,j);if(le&&P!=="get"&&P!=="head"){const Se=await _(L);if(typeof Se=="number"&&isFinite(Se)&&(ge=Se,Se>Me))throw he()}const ke=le&&(O.isReadableStream(L)||O.isStream(L)),we=(Se,mt,fn)=>xy(Se,Sy,hn=>{if(le&&hn>Me)throw ye=he();mt&&mt(hn)},fn);if(x&&P!=="get"&&P!=="head"&&(ee||ke)){if(ge=ge??await E(be,L),ge!==0||ke){let Se=new l(A,{method:"POST",body:L,duplex:"half"}),mt;if(O.isFormData(L)&&(mt=Se.headers.get("content-type"))&&be.setContentType(mt),Se.body){const[fn,hn]=ee&&gy(ge,Zl(yy(ee)))||[];L=we(Se.body,fn,hn)}}}else if(ke&&!h&&g&&P!=="get"&&P!=="head")L=we(L);else if(ke&&h&&!x&&P!=="get"&&P!=="head")throw new X("Stream request bodies are not supported by the current fetch implementation",X.ERR_NOT_SUPPORT,S,j);O.isString(Ae)||(Ae=Ae?"include":"omit");const lt=h&&"credentials"in l.prototype;if(O.isFormData(L)){const Se=be.getContentType();Se&&/^multipart\/form-data/i.test(Se)&&!/boundary=/i.test(Se)&&be.delete("content-type")}be.set("User-Agent","axios/"+Gf,!1);const Xt={...Oe,signal:V,method:P.toUpperCase(),headers:Rw(be.normalize()),body:L,duplex:"half",credentials:lt?Ae:void 0};j=h&&new l(A,Xt);let pt=await(h?se(j,Oe):se(A,Xt));const dn=At.from(pt.headers);if(fe){const Se=O.toFiniteNumber(dn.getContentLength());if(Se!=null&&Se>Ce)throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,S,j)}const Yt=b&&(ue==="stream"||ue==="response");if(b&&pt.body&&(U||fe||Yt&&$)){const Se={};["status","statusText","headers"].forEach(In=>{Se[In]=pt[In]});const mt=O.toFiniteNumber(dn.getContentLength()),[fn,hn]=U&&gy(mt,Zl(yy(U),!0))||[];let nr=0;const rr=In=>{if(fe&&(nr=In,nr>Ce))throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,S,j);fn&&fn(In)};pt=new u(xy(pt.body,Sy,rr,()=>{hn&&hn(),$&&$()}),Se)}ue=ue||"text";let Jt=await C[O.findKey(C,ue)||"text"](pt,S);if(fe&&!b&&!Yt){let Se;if(Jt!=null&&(typeof Jt.byteLength=="number"?Se=Jt.byteLength:typeof Jt.size=="number"?Se=Jt.size:typeof Jt=="string"&&(Se=typeof i=="function"?new i().encode(Jt).byteLength:Jt.length)),typeof Se=="number"&&Se>Ce)throw new X("maxContentLength size of "+Ce+" exceeded",X.ERR_BAD_RESPONSE,S,j)}return!Yt&&$&&$(),await new Promise((Se,mt)=>{Iw(Se,mt,{data:Jt,headers:At.from(pt.headers),status:pt.status,statusText:pt.statusText,config:S,request:j})})}
vendor: 5,540 bytes, lines 184-190
184catch(G){if($&&$(),V&&V.aborted&&V.reason instanceof X){const xe=V.reason;throw xe.config=S,j&&(xe.request=j),G!==xe&&Object.defineProperty(xe,"cause",{__proto__:null,value:G,writable:!0,enumerable:!1,configurable:!0}),xe}if(ye)throw j&&!ye.request&&(ye.request=j),ye;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 xe=new X("Network Error",X.ERR_NETWORK,S,j,G&&G.response);throw Object.defineProperty(xe,"cause",{__proto__:null,value:G.cause||G,writable:!0,enumerable:!1,configurable:!0}),xe}throw X.from(G,G&&G.code,S,j,G&&G.response)}}},xP=new Map,Vw=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=xP;for(;d--;)h=l[d],p=g.get(h),p===void 0&&g.set(h,p=d?new Map:wP(e)),g=p;return p};Vw();const Xf={http:OT,xhr:cP,fetch:{get:Vw}};O.forEach(Xf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const _y=t=>`- ${t}`,SP=t=>O.isFunction(t)||t===null||t===!1;function bP(t,e){t=O.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,!SP(i)&&(a=Xf[(d=String(i)).toLowerCase()],a===void 0))throw new X(`Unknown adapter '${d}'`);if(a&&(O.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 :
185`+u.map(_y).join(`
186`):" "+_y(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 zw={getAdapter:bP,adapters:Xf};function bd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new la(null,t)}function ky(t){return bd(t),t.headers=At.from(t.headers),t.data=Sd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),zw.getAdapter(t.adapter||aa.adapter,t)(t).then(function(i){bd(t),t.response=i;try{i.data=Sd.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=At.from(i.headers),i},function(i){if(!Fw(i)&&(bd(t),i&&i.response)){t.response=i.response;try{i.response.data=Sd.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=At.from(i.response.headers)}return Promise.reject(i)})}const fu={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fu[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Cy={};fu.transitional=function(e,n,i){function a(l,u){return"[Axios v"+Gf+"] 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&&!Cy[u]&&(Cy[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}};fu.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function EP(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 Ul={assertOptions:EP,validators:fu},Ct=Ul.validators;let bs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new py,response:new py}}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(`
187`);return u===-1?"":a.stack.slice(u+1)})();try{if(!i.stack)i.stack=l;else if(l){const u=l.indexOf(`
188`),d=u===-1?-1:l.indexOf(`
189`,u+1),h=d===-1?"":l.slice(d+1);String(i.stack).endsWith(h)||(i.stack+=`
190`+l)}}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Cs(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:l}=n;i!==void 0&&Ul.assertOptions(i,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean),legacyInterceptorReqResOrdering:Ct.transitional(Ct.boolean),advertiseZstdAcceptEncoding:Ct.transitional(Ct.boolean),validateStatusUndefinedResolves:Ct.transitional(Ct.boolean)},!1),a!=null&&(O.isFunction(a)?n.paramsSerializer={serialize:a}:Ul.assertOptions(a,{encode:Ct.function,serialize:Ct.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ul.assertOptions(n,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&O.merge(l.common,l[n.method]);l&&O.forEach(["delete","get","head","post","put","patch","query","common"],C=>{delete l[C]}),n.headers=At.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||Kf;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,x;
vendor: 2,190 bytes, line 190
190if(!h){const C=[ky.bind(this),void 0];for(C.unshift(...d),C.push(...p),x=C.length,g=Promise.resolve(n);y<x;)g=g.then(C[y++],C[y++]);return g}x=d.length;let b=n;for(;y<x;){const C=d[y++],_=d[y++];try{b=C(b)}catch(E){_.call(this,E);break}}try{g=ky.call(this,b)}catch(C){return Promise.reject(C)}for(y=0,x=p.length;y<x;)g=g.then(p[y++],p[y++]);return g}getUri(e){e=Cs(this.defaults,e);const n=Bw(e.baseURL,e.url,e.allowAbsoluteUrls,e);return Lw(n,e.params,e.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(e){bs.prototype[e]=function(n,i){return this.request(Cs(i||{},{method:e,url:n,data:i&&O.hasOwnProp(i,"data")?i.data:void 0}))}});O.forEach(["post","put","patch","query"],function(e){function n(i){return function(l,u,d){return this.request(Cs(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}bs.prototype[e]=n(),e!=="query"&&(bs.prototype[e+"Form"]=n(!0))});let _P=class $w{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 la(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 $w(function(a){e=a}),cancel:e}}};function kP(t){return function(n){return t.apply(null,n)}}function CP(t){return O.isObject(t)&&t.isAxiosError===!0}const uf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
190alContent: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(uf).forEach(([t,e])=>{uf[e]=t});function qw(t){const e=new bs(t),n=xw(bs.prototype.request,e);return O.extend(n,bs.prototype,e,{allOwnKeys:!0}),O.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return qw(Cs(t,a))},n}const et=qw(aa);et.Axios=bs;et.CanceledError=la;et.CancelToken=_P;et.isCancel=Fw;et.VERSION=Gf;et.toFormData=du;et.AxiosError=X;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=kP;et.isAxiosError=CP;et.mergeConfig=Cs;et.AxiosHeaders=At;et.formToJSON=t=>Mw(O.isHTMLForm(t)?new FormData(t):t);et.getAdapter=zw.getAdapter;et.HttpStatusCode=uf;et.default=et;const{Axios:BL,AxiosError:UL,CanceledError:VL,isCancel:zL,CancelToken:$L,VERSION:qL,all:WL,Cancel:HL,isAxiosError:KL,spread:QL,toFormData:GL,AxiosHeaders:XL,HttpStatusCode:YL,formToJSON:JL,getAdapter:ZL,mergeConfig:eD,create:tD}=et,Ww=typeof window>"u",Ty=!Ww&&window.self!==window.top,TP=!Ww&&typeof document>"u",Hw=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),vt=[];for(let t=0;t<256;++t)vt.push((t+256).toString(16).slice(1));function PP(t,e=0){return(vt[t[e+0]]+vt[t[e+1]]+vt[t[e+2]]+vt[t[e+3]]+"-"+vt[t[e+4]]+vt[t[e+5]]+"-"+vt[t[e+6]]+vt[t[e+7]]+"-"+vt[t[e+8]]+vt[t[e+9]]+"-"+vt[t[e+10]]+vt[t[e+11]]+vt[t[e+12]]+vt[t[e+13]]+vt[t[e+14]]+vt[t[e+15]]).toLowerCase()}let Ed;const RP=new Uint8Array(16);function AP(){if(!Ed){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ed=crypto.getRandomValues.bind(crypto)}return Ed(RP)}const NP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Py={randomUUID:NP};function jP(t,e,n){var a;t=t||{};const i=t.random??((a=t.rng)==null?void 0:a.call(t))??AP();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,PP(i)}function OP(t,e,n){return Py.randomUUID&&!t?Py.randomUUID():jP(t)}const Eo=typeof window<"u"?window:{base44SharedInstances:{}};function LP(t,e){return Eo.base44SharedInstances||(Eo.base44SharedInstances={}),Eo.base44SharedInstances[t]||(Eo.base44SharedInstances[t]={instance:e()}),Eo.base44SharedInstances[t].instance}const DP="__user_heartbeat_event__",MP="__initialization_event__",FP="__session_duration_event__",Ry="analytics-enable",Ay="base44_analytics_session_id",IP={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},BP="analytics",Le=LP(BP,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...IP,...KP()}})),UP=({axiosClient:t,serverUrl:e,appId:n,userAuthModule:i,enabled:a})=>{var l;const{maxQueueSize:u,throttleTime:d,batchSize:h}=Le.config;if(!a||!(!((l=Le.config)===null||l===void 0)&&l.enabled)||TP)return{track:()=>{},cleanup:()=>{}};let p;const g=`${e}/api/apps/${n}/analytics/track/batch`,y=async L=>{await t.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:L}})},x=L=>
190{try{const I=JSON.stringify({events:L}),z=new Blob([I],{type:"application/json"});return typeof navigator>"u"||I.length>6e4||!navigator.sendBeacon(g,z)}catch{return!1}},b=async(L,I={})=>{if(L.length===0)return;const z=await HP(i),Y=L.map(WP(z));try{(!I.isBeacon||!x(Y))&&await y(Y)}catch{}},C=()=>{jy(b,{throttleTime:d,batchSize:h})},_=L=>{if(Le.requestsQueue.length>=u)return;const I=qP();Le.requestsQueue.push({...L,...I}),C()},E=()=>{jy(b,{throttleTime:d,batchSize:h}),p=Oy(_),zP()},S=()=>{Ny(),p==null||p(),$P(_);const L=Le.requestsQueue.splice(0);b(L,{isBeacon:!0})},A=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&E())},P=()=>{Ny(),p==null||p(),typeof window<"u"&&window.removeEventListener("visibilitychange",A)};return C(),p=Oy(_),VP(_),typeof window<"u"&&window.addEventListener("visibilitychange",A),{track:_,cleanup:P}};function Ny(){Le.isProcessing=!1}async function jy(t,e){if(Le.isProcessing)return;Le.isProcessing=!0;const{throttleTime:n=1e3,batchSize:i=30}=e??{};for(;Le.isProcessing&&Le.requestsQueue.length>0;){const a=Le.requestsQueue.splice(0,i);a.length&&await t(a),await new Promise(l=>setTimeout(l,n))}Le.isProcessing=!1}function Oy(t){var e;if(typeof window>"u"||Le.isHeartBeatProcessing||((e=Le.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};Le.isHeartBeatProcessing=!0;const n=setInterval(()=>{t({eventName:DP})},Le.config.heartBeatInterval);return()=>{clearInterval(n),Le.isHeartBeatProcessing=!1}}function VP(t){typeof window>"u"||Le.wasInitializationTracked||(Le.wasInitializationTracked=!0,t({eventName:MP,properties:{referrer:document==null?void 0:document.referrer}}))}function zP(){typeof window>"u"||Le.sessionStartTime!==null||(Le.sessionStartTime=new Date().toISOString())}function $P(t){if(typeof window>"u"||Le.sessionStartTime===null)return;const e=new Date().getTime()-new Date(Le.sessionStartTime).getTime();Le.sessionStartTime=null,t({eventName:FP,properties:{sessionDuration:e}})}function qP(){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 WP(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let Po=null;function Ly(){Le.sessionContext=null,Po=null}async function HP(t){if(!Le.sessionContext){if(!t.hasToken())return{user_id:null,session_id:tu()};if(!Po){const i=tu();Po=t.me().then(a=>({user_id:a.id,session_id:i})).catch(()=>({user_id:null,session_id:i}))}const e=Po,n=await e;return Po===e&&(Le.sessionContext=n),n}return Le.sessionContext}function KP(){if(typeof window>"u"||!window.location)return;const e=new URLSearchParams(window.location.search).get(Ry);if(e==null||!e.length)return;const n=new URLSearchParams(window.location.search);n.delete(Ry);const i=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function Dy(){var t;return(t=Le.fallbackSessionId)!==null&&t!==void 0?t:Le.fallbackSessionId=Hw()}function tu(){if(typeof window>"u")return Dy();try{const t=localStorage.getItem(Ay);if(!t){const e=Hw();return localStorage.setItem(Ay,e),e}return t}catch{return Dy()}}class QP 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 si({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",tu()));const d=OP();if(u.requestId=d,Ty)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{Ty&&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,x,b,C,_,E,S,A,P,L,I;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 QP(z,(y=u.response)===null||y===void 0?void 0:y.status,(A=(C=(b=(x=u.response)===null||x===void 0?void 0:x.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:(L=(P=u.response)===null||P===void 0?void 0:P.headers)===null||L===void 0?void 0:L["x-base44-connector-error"],(I=u.response)===null||I===void 0?void 0:I.data,u);return a==null||a(Y),Promise.reject(Y)}),l}function My(t){const{axios:e,appId:n,getSocket:i}=t;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return XP(e,n,l,i)}})}function GP(t){var e;try{const n=JSON.parse(t);
190return{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 XP(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=GP(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(x){console.error("[Base44 SDK] Subscription callback error:",x)}}}})}}}function YP(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 Fy(t,e){const n=YP(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 JP(){return typeof window>"u"?!1:window!==window.parent}function ZP(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 x;if(y.origin!==n||y.source!==d||!(!((x=y.data)===null||x===void 0)&&x.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 eR(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 x=`${i.appBaseUrl}/api${y}?${g}`;if(JP()){const b=`${x}&popup_origin=${encodeURIComponent(window.location.origin)}`;return ZP(b,p,window.location.origin)}window.location.href=x},logout(d){if(delete t.defaults.headers.common.Authorization,l(),Ly(),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(),Ly(),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:x,user:b}=y;return x&&this.setToken(x),{access_token:x,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 tR(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 nR=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
190function rR(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 Kw(n,"Integration type"),sR(t,`/apps/${e}/connectors/${encodeURIComponent(n)}/call`,i)}}}function Kw(t,e){if(!t||typeof t!="string")throw new Error(`${e} is required and must be a string`)}async function sR(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");Kw(n.path,"Request path");const x=(i=n.method)!==null&&i!==void 0?i:"GET";if(!nR.has(x))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const C=await t.post(e,{method:x,...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 iR(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 Mr(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&&oR(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 oR(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 aR({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={}){lR(p);const{fetch:y=fetch,...x}=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),
190C("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,{...x,headers:b})}}function lR(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 Iy(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 By({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(L=>(u[_]=L,L));return A.subscribeToRoom(S,{connect:()=>{},update_model:async({data:L})=>{const I=JSON.parse(L);if(I._message){await P;const z=I._message,Y=u[_];if(Y){const U=Y.messages||[],ee=U.findIndex(be=>be.id===z.id),ue=ee!==-1?U.map((be,Ae)=>Ae===ee?z:be):[...U,z];u[_]={...Y,messages:ue},E==null||E(u[_])}}}})},getWhatsAppConnectURL:_=>{const E=`${i}/api/apps/${n}/agents/${encodeURIComponent(_)}/whatsapp`,S=a??Mr();return S?`${E}?token=${S}`:E},getTelegramConnectURL:_=>{const E=`${i}/api/apps/${n}/agents/${encodeURIComponent(_)}/telegram`,S=a??Mr();return S?`${E}?token=${S}`:E}}}function Uy({serverUrl:t,token:e,appId:n}){return{connection:()=>{var a;return{baseURL:`${t}/api/apps/${n}/ai/openai/v1`,token:(a=e??Mr())!==null&&a!==void 0?a:""}}}}function Vy(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 uR(t,e){return{async getPublicSettings(){return t.get(`/apps/public/prod/public-settings/by-id/${e}`)}}}function cR(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 Fn=Object.create(null);Fn.open="0";Fn.close="1";Fn.ping="2";Fn.pong="3";Fn.message="4";Fn.upgrade="5";Fn.noop="6";const Vl=Object.create(null);Object.keys(Fn).forEach(t=>{Vl[Fn[t]]=t});const cf={type:"error",data:"parser error"},Qw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gw=typeof ArrayBuffer=="function",Xw=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Yf=({type:t,data:e},n,i)=>Qw&&e instanceof Blob?n?i(e):zy(e,i):Gw&&(e instanceof ArrayBuffer||Xw(e))?n?i(e):zy(new Blob([e]),i):i(Fn[t]+(e||"")),zy=(t,e)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];e("b"+(i||""))},n.readAsDataURL(t)};function $y(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let _d;function dR(t,e){if(Qw&&t.data instanceof Blob)return t.data.arrayBuffer().then($y).then(e);if(Gw&&(t.data instanceof ArrayBuffer||Xw(t.data)))return e($y(t.data));Yf(t,!1,n=>{_d||(_d=new TextEncoder),e(_d.encode(n))})}const qy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
190+/",Ro=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<qy.length;t++)Ro[qy.charCodeAt(t)]=t;const fR=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=Ro[t.charCodeAt(i)],u=Ro[t.charCodeAt(i+1)],d=Ro[t.charCodeAt(i+2)],h=Ro[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},hR=typeof ArrayBuffer=="function",Jf=(t,e)=>{if(typeof t!="string")return{type:"message",data:Yw(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:pR(t.substring(1),e)}:Vl[n]?t.length>1?{type:Vl[n],data:t.substring(1)}:{type:Vl[n]}:cf},pR=(t,e)=>{if(hR){const n=fR(t);return Yw(n,e)}else return{base64:!0,data:t}},Yw=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Jw="�",mR=(t,e)=>{const n=t.length,i=new Array(n);let a=0;t.forEach((l,u)=>{Yf(l,!1,d=>{i[u]=d,++a===n&&e(i.join(Jw))})})},gR=(t,e)=>{const n=t.split(Jw),i=[];for(let a=0;a<n.length;a++){const l=Jf(n[a],e);if(i.push(l),l.type==="error")break}return i};function yR(){return new TransformStream({transform(t,e){dR(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 kd;function Pl(t){return t.reduce((e,n)=>e+n.length,0)}function Rl(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 vR(t,e){kd||(kd=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(Pl(n)<1)break;const h=Rl(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(Pl(n)<2)break;const h=Rl(n,2);a=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),i=3}else if(i===2){if(Pl(n)<8)break;const h=Rl(n,8),p=new DataView(h.buffer,h.byteOffset,h.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){d.enqueue(cf);break}a=g*Math.pow(2,32)+p.getUint32(4),i=3}else{if(Pl(n)<a)break;const h=Rl(n,a);d.enqueue(Jf(l?h:kd.decode(h),e)),i=0}if(a===0||a>t){d.enqueue(cf);break}}}})}const Zw=4;function nt(t){if(t)return wR(t)}function wR(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 hu=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),cn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),xR="arraybuffer";function e1(t,...e){return e.reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=t[i]),n),{})}const SR=cn.setTimeout,bR=cn.clearTimeout;function pu(t,e){e.useNativeTimers?(t.setTimeoutFn=SR.bind(cn),t.clearTimeoutFn=bR.bind(cn)):(t.setTimeoutFn=cn.setTimeout.bind(cn),t.clearTimeoutFn=cn.clearTimeout.bind(cn))}const ER=1.33;function _R(t){return typeof t=="string"?kR(t):Math.ceil((t.byteLength||t.size)*ER)}function kR(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 t1(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function CR(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function TR(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: 6,199 bytes, line 190
190class PR extends Error{constructor(e,n,i){super(e),this.description=n,this.context=i,this.type="TransportError"}}class Zf extends nt{constructor(e){super(),this.writable=!1,pu(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 PR(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=Jf(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=CR(e);return n.length?"?"+n:""}}class RR extends Zf{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)};gR(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,mR(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]=t1()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let n1=!1;try{n1=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const AR=n1;function NR(){}class jR extends RR{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 Ln extends nt{constructor(e,n,i){super(),this.createRequest=e,pu(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=e1(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=Ln.requestsCount++,Ln.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=NR,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ln.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()}}Ln.requestsCount=0;Ln.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wy);else if(typeof addEventListener=="function"){const t="onpagehide"in cn?"pagehide":"unload";addEventListener(t,Wy,!1)}}function Wy(){for(let t in Ln.requests)Ln.requests.hasOwnProperty(t)&&Ln.requests[t].abort()}const OR=(function(){const t=r1({xdomain:!1});return t&&t.responseType!==null})();class LR extends jR{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=OR&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ln(r1,this.uri(),e)}}function r1(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||AR))return new XMLHttpRequest}catch{}if(!e)try{return new cn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const s1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class DR extends Zf{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,i=s1?{}:e1(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)}
vendor: 10,324 bytes, line 190
190this.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;Yf(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&hu(()=>{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]=t1()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const Cd=cn.WebSocket||cn.MozWebSocket;class MR extends DR{createSocket(e,n,i){return s1?new Cd(e,n,i):n?new Cd(e,n):new Cd(e)}doWrite(e,n){this.ws.send(n)}}class FR extends Zf{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=vR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(n).getReader(),a=yR();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&&hu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const IR={websocket:MR,webtransport:FR,polling:LR},BR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,UR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function df(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=BR.exec(t||""),l={},u=14;for(;u--;)l[UR[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=VR(l,l.path),l.queryKey=zR(l,l.query),l}function VR(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 zR(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(n[a]=l)}),n}const ff=typeof addEventListener=="function"&&typeof removeEventListener=="function",zl=[];ff&&addEventListener("offline",()=>{zl.forEach(t=>t())},!1);class Br extends nt{constructor(e,n){if(super(),this.binaryType=xR,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=df(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=df(n.host).host);pu(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=TR(this.opts.query)),ff&&(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"})},zl.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&&Br.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",Br.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+=_R(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,hu(()=>{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(Br.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(),ff&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=zl.indexOf(this._offlineEventListener);i!==-1&&zl.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Br.protocol=Zw;class $R extends Br{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;Br.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;Br.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}
vendor: 10,501 bytes, line 190
190]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=n.name,this.emitReserved("upgradeError",x)}}))};function l(){i||(i=!0,g(),n.close(),n=null)}const u=y=>{const x=new Error("probe error: "+y);x.transport=n.name,l(),this.emitReserved("upgradeError",x)};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 qR=class extends $R{constructor(e,n={}){const i=typeof e=="object",a=i?{...e}:{...n};(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(l=>IR[l]).filter(l=>!!l)),super(i?a:e,a)}};function WR(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=df(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 HR=typeof ArrayBuffer=="function",KR=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,i1=Object.prototype.toString,QR=typeof Blob=="function"||typeof Blob<"u"&&i1.call(Blob)==="[object BlobConstructor]",GR=typeof File=="function"||typeof File<"u"&&i1.call(File)==="[object FileConstructor]";function eh(t){return HR&&(t instanceof ArrayBuffer||KR(t))||QR&&t instanceof Blob||GR&&t instanceof File}function $l(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if($l(t[n]))return!0;return!1}if(eh(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return $l(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&$l(t[n]))return!0;return!1}function XR(t){const e=[],n=t.data,i=t;return i.data=hf(n,e),i.attachments=e.length,{packet:i,buffers:e}}function hf(t,e){if(!t)return t;if(eh(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]=hf(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]=hf(t[i],e));return n}return t}function YR(t,e){return t.data=pf(t.data,e),delete t.attachments,t}function pf(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]=pf(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=pf(t[n],e));return t}const JR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Re;(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"})(Re||(Re={}));class ZR{constructor(e){this.replacer=e}encode(e){return(e.type===Re.EVENT||e.type===Re.ACK)&&$l(e)?this.encodeAsBinary({type:e.type===Re.EVENT?Re.BINARY_EVENT:Re.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Re.BINARY_EVENT||e.type===Re.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=XR(e),i=this.encodeAsString(n.packet),a=n.buffers;return a.unshift(i),a}}class th extends nt{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}: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===Re.BINARY_EVENT;i||n.type===Re.BINARY_ACK?(n.type=i?Re.EVENT:Re.ACK,this.reconstructor=new eA(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(eh(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(Re[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Re.BINARY_EVENT||i.type===Re.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");const d=Number(u);if(!tA(d)||d<0)throw new Error("Illegal attachments");if(d>this.opts.maxAttachments)throw new Error("too many attachments");i.attachments=d}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(th.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Re.CONNECT:return Hy(n);case Re.DISCONNECT:return n===void 0;case Re.CONNECT_ERROR:return typeof n=="string"||Hy(n);case Re.EVENT:case Re.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&JR.indexOf(n[0])===-1);case Re.ACK:case Re.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eA{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=YR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const tA=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function Hy(t){return Object.prototype.toString.call(t)==="[object Object]"}const nA=Object.freeze(Object.defineProperty({__proto__:null,Decoder:th,Encoder:ZR,get PacketType(){return Re}},Symbol.toStringTag,{value:"Module"}));function _n(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const rA=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class o1 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=[_n(e,"open",this.onopen.bind(this)),_n(e,"packet",this.onpacket.bind(this)),_n(e,"error",this.onerror.bind(this)),_n(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(rA.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:Re.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:Re.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 190
190_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 Re.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 Re.EVENT:case Re.BINARY_EVENT:this.onevent(e);break;case Re.ACK:case Re.BINARY_ACK:this.onack(e);break;case Re.DISCONNECT:this.ondisconnect();break;case Re.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:Re.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:Re.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 Ni(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}Ni.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};Ni.prototype.reset=function(){this.attempts=0};Ni.prototype.setMin=function(t){this.ms=t};Ni.prototype.setMax=function(t){this.max=t};Ni.prototype.setJitter=function(t){this.jitter=t};class mf 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,pu(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 Ni({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||nA;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 qR(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=_n(n,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},u=_n(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(_n(e,"ping",this.onping.bind(this)),_n(e,"data",this.ondata.bind(this)),_n(e,"error",this.onerror.bind(this)),_n(e,"close",this.onclose.bind(this)),_n(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){hu(()=>{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 o1(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)}
190cleanup(){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 _o={};function ql(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=WR(t,e.path||"/socket.io"),i=n.source,a=n.id,l=n.path,u=_o[a]&&l in _o[a].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||u;let h;return d?h=new mf(i,e):(_o[a]||(_o[a]=new mf(i,e)),h=_o[a]),n.query&&!e.query&&(e.query=n.queryKey),h.socket(n.path,e)}Object.assign(ql,{Manager:mf,Socket:o1,io:ql,connect:ql});const sA=250;function Ky(t,e){var n;const i=(n=t.token)!==null&&n!==void 0?n:Mr(),a={app_id:t.appId,token:i};i||(a.anonymous_id=tu());const l=ql(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 iA({config:t}){let e={...t};const n={},i={},a={connect:async()=>{const S=[];Object.keys(n).forEach(A=>{const P=x(A);P.length!==0&&(p(A),P.forEach(({connect:L})=>{const I=async()=>L==null?void 0:L();S.push(I())}))}),await Promise.all(S)},update_model:async S=>{const P=x(S.room).map(L=>{var I;return(I=L.update_model)===null||I===void 0?void 0:I.call(L,S)});await Promise.all(P)},error:async S=>{console.error("error",S);const A=Object.values(n).flat().map(P=>{var L;return(L=P.error)===null||L===void 0?void 0:L.call(P,S)});await Promise.all(A)}};let l=Ky(t,a);function u(){d()}function d(){C(),l&&l.disconnect()}function h(S){u(),e={...e,...S},l=Ky(e,a)}function p(S){l.emit("join",S)}function g(S){l.emit("leave",S)}async function y(S,A){var P;const L=JSON.stringify(A);return(P=a.update_model)===null||P===void 0?void 0:P.call(a,{room:S,data:L})}function x(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])}
190function 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])},sA)}return{socket:l,subscribeToRoom:(S,A)=>{n[S]?b(S):(p(S),n[S]=[]),n[S].push(A);let P=!1;return()=>{var L,I;P||(P=!0,n[S]=(I=(L=n[S])===null||L===void 0?void 0:L.filter(z=>z!==A))!==null&&I!==void 0?I:[],n[S].length===0&&_(S))}},updateConfig:h,updateModel:y,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
191  PartySocket requires a global 'EventTarget' class to be available!
192  You can polyfill this global by adding this to your code before any partysocket imports: 
193  
194  \`\`\`
195  import 'partysocket/event-target-polyfill';
196  \`\`\`
197  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
198`);var a1=class extends Event{constructor(e,n){super("error",n);Be(this,"message");Be(this,"error");this.message=e.message,this.error=e}},l1=class extends Event{constructor(e=1e3,n="",i){super("close",i);Be(this,"code");Be(this,"reason");Be(this,"wasClean",!0);this.code=e,this.reason=n}},Td={Event,ErrorEvent:a1,CloseEvent:l1};function oA(t,e){if(!t)throw new Error(e)}function aA(t){return new t.constructor(t.type,t)}function lA(t){return"data"in t?new MessageEvent(t.type,t):"code"in t||"reason"in t?new l1(t.code||1999,t.reason||"unknown reason",t):"error"in t?new a1(t.error,t):new Event(t.type,t)}var E0,uA=typeof process<"u"&&typeof((E0=process.versions)==null?void 0:E0.node)<"u"&&typeof document>"u",Al=uA?lA:aA,ss={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Qy=!1,cA=class os extends EventTarget{constructor(n,i,a={}){super();Be(this,"_ws");Be(this,"_retryCount",-1);Be(this,"_uptimeTimeout");Be(this,"_connectTimeout");Be(this,"_shouldReconnect",!0);Be(this,"_connectLock",!1);Be(this,"_binaryType","blob");Be(this,"_closeCalled",!1);Be(this,"_messageQueue",[]);Be(this,"_url");Be(this,"_protocols");Be(this,"_options");Be(this,"onclose",null);Be(this,"onerror",null);Be(this,"onmessage",null);Be(this,"onopen",null);Be(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:i=ss.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),i),oA(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(Al(n))});Be(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Al(n))});Be(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(Al(n)),this._connect()});Be(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Al(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 os.CONNECTING}get OPEN(){return os.OPEN}get CLOSING(){return os.CLOSING}get CLOSED(){return os.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?os.CLOSED:os.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=ss.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=ss.reconnectionDelayGrowFactor,minReconnectionDelay:i=ss.minReconnectionDelay,maxReconnectionDelay:a=ss.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;
198const{maxRetries:n=ss.maxRetries,connectionTimeout:i=ss.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"&&!Qy&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
199
200For example, if you're using node.js, run \`npm install ws\`, and then in your code:
201
202import PartySocket from 'partysocket';
203import WS from 'ws';
204
205const partysocket = new PartySocket({
206  host: "127.0.0.1:1999",
207  room: "test-room",
208  WebSocket: WS
209});
210
211`),Qy=!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 Td.ErrorEvent(Error(a.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Td.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,i){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,i),this._handleClose(new Td.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)}};/*!
212 * Reconnecting WebSocket
213 * by Pedro Ladaria <[email protected]>
214 * https://github.com/pladaria/reconnecting-websocket
215 * License MIT
216 */const dA=1e3,fA=3e3,hA=new Set([405,409,422,503]),pA=new Set([400,403,404]);function mA(t){const e=t&&typeof t=="object"?t.status:void 0;return typeof e=="number"?e:void 0}function gA(t){return t instanceof Error?t:new Error(String(t))}class yA{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 x;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=mA(b);if(!(i.transport!=="direct"&&C!==void 0&&hA.has(C))){C!==void 0&&pA.has(C)&&this.close();try{(x=i.onMintError)===null||x===void 0||x.call(i,gA(b))}catch{}throw b}d=!0}return wA(i.host,e,n,this.id,i.appId,i.getAuthToken(),i.functionsVersion)},p=new cA(h);this.ws=p;let g=Date.now();const y=()=>{g=Date.now()};p.addEventListener("open",y),p.addEventListener("message",x=>{y();let b;try{b=JSON.parse(x.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>fA){y(),p.readyState===p.OPEN&&p.reconnect();return}try{p.send(JSON.stringify({type:"__ping"}))}catch{}},dA)}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 vA(t,e,n,i){let a=null;return{connect(l){if(a)return a;const u=new yA(t,e,n,l,()=>{i.delete(u),a===u&&(a=null)});return a=u,i.add(u),u}}}function wA(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}
216/parties/${e}/${n}?${p}`}function xA(t,e){return t&&!t.startsWith("/")?t:e??t}function SA(t){const e=new Set;return{module:new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"))return l=>vA(a,l,t,e)}}),closeAll:()=>{for(const i of[...e])i.close()}}}function bA(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:x,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=iA({config:E})),S),P={...C,"X-App-Id":String(u)},L=b?{...P,"Base44-Functions-Version":b}:P,I=si({baseURL:`${l}/api`,headers:P,token:h,onError:x==null?void 0:x.onError}),z=si({baseURL:`${l}/api`,headers:L,token:h,interceptResponses:!1,onError:x==null?void 0:x.onError}),Y={...P,...h?{"on-behalf-of":`Bearer ${h}`}:{}},U=si({baseURL:`${l}/api`,headers:Y,token:p,onError:x==null?void 0:x.onError}),ee=si({baseURL:`${l}/api`,headers:L,token:p,interceptResponses:!1}),ue=si({baseURL:`${l}/api`,headers:P}),be=eR(I,z,u,{appBaseUrl:_,token:h});if(typeof window<"u"){const fe=h||Mr();fe&&be.setToken(fe)}const Ae=SA({appId:u,host:xA(l,typeof window<"u"?(e=window.location)===null||e===void 0?void 0:e.origin:void 0),functionsVersion:b,getAuthToken:()=>h||Mr(),mintConnectionToken:async(fe,le,K)=>{const se=h||Mr();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:x==null?void 0:x.actorsTransport,onMintError:x==null?void 0:x.onError}),Oe={entities:My({axios:I,appId:u,getSocket:A}),integrations:Fy(I,u),connectors:iR(I,u),auth:be,functions:Iy(z,u,{getAuthHeaders:()=>{const fe={},le=h||Mr();return le&&(fe.Authorization=`Bearer ${le}`),fe},baseURL:(n=z.defaults)===null||n===void 0?void 0:n.baseURL}),agents:By({axios:I,getSocket:A,appId:u,serverUrl:l,token:h}),aiGateway:Uy({serverUrl:l,token:h,appId:u}),appLogs:Vy(I,u),app:uR(I,u),users:cR(I,u),analytics:UP({axiosClient:I,serverUrl:l,appId:u,userAuthModule:be,enabled:(i=d==null?void 0:d.enabled)!==null&&i!==void 0?i:!0}),actors:Ae.module,cleanup:()=>{Oe.analytics.cleanup(),Ae.closeAll(),S&&S.disconnect()}},Ce={entities:My({axios:U,appId:u,getSocket:A}),integrations:Fy(U,u),sso:tR(U,u),connectors:rR(U,u),functions:Iy(ee,u,{getAuthHeaders:()=>{const fe={};return p&&(fe.Authorization=`Bearer ${p}`),fe},baseURL:(a=ee.defaults)===null||a===void 0?void 0:a.baseURL}),agents:By({axios:U,getSocket:A,appId:u,serverUrl:l,token:h}),aiGateway:Uy({serverUrl:l,token:p,appId:u}),appLogs:Vy(U,u),cleanup:()=>{S&&S.disconnect()}};return g&&typeof window<"u"&&setTimeout(async()=>{try{await Oe.auth.isAuthenticated()||Oe.auth.redirectToLogin(window.location.href)}catch(fe){console.error("Authentication check failed:",fe),Oe.auth.redirectToLogin(window.location.href)}},0),{...Oe,fetchWithAuth:aR({axios:I,serviceRoleAxios:U,appId:String(u),serverUrl:l,functionsVersion:b,platformHeaders:C}),setToken(fe){Oe.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 Ce}}}const u1=typeof window>"u",EA=u1?{localStorage:new Map}:window,Mo=EA.localStorage,_A=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),ri=(t,{defaultValue:e=void 0,removeFromUrl:n=!1}={})=>{if(u1)return e;const i=`base44_${_A(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 Mo.setItem(i,l),l;if(e)return Mo.setItem(i,e),e;const u=Mo.getItem(i);return u||null},kA=()=>(ri("clear_access_token")==="true"&&(Mo.removeItem("base44_access_token"),Mo.removeItem("token")),{appId:ri("app_id",{defaultValue:void 0}),token:ri("access_token",{removeFromUrl:!0}),fromUrl:ri("from_url",{defaultValue:window.location.href}),functionsVersion:ri("functions_version",{defaultValue:void 0}),appBaseUrl:ri("app_base_url",{defaultValue:void 0})}),Ao={...kA()},{appId:CA,token:TA,functionsVersion:PA,appBaseUrl:RA}=Ao,No=bA({appId:CA,token:TA,functionsVersion:PA,serverUrl:"",requiresAuth:!1,appBaseUrl:RA});function AA({}){var a;const e=Pi().pathname.substring(1),{data:n,isFetched:i}=Ek({queryKey:["user"],queryFn:async()=>{try{return{user:await No.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 c1=M.createContext(),NA=({children:t})=>{const[e,n]=M.useState(null),[i,a]=M.useState(!1),[l,u]=M.useState(!0),[d,h]=M.useState(!0),[p,g]=M.use
216State(null),[y,x]=M.useState(!1),[b,C]=M.useState(null);M.useEffect(()=>{_()},[]);const _=async()=>{var P,L;try{h(!0),g(null);const I=si({baseURL:"/api/apps/public",headers:{"X-App-Id":Ao.appId},token:Ao.token,interceptResponses:!0});try{const z=await I.get(`/prod/public-settings/by-id/${Ao.appId}`);C(z),Ao.token?await E():(u(!1),a(!1),x(!0)),h(!1)}catch(z){if(console.error("App state check failed:",z),z.status===403&&((L=(P=z.data)==null?void 0:P.extra_data)!=null&&L.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(I){console.error("Unexpected error:",I),g({type:"unknown",message:I.message||"An unexpected error occurred"}),h(!1),u(!1)}},E=async()=>{try{u(!0);const P=await No.auth.me();n(P),a(!0),u(!1),x(!0)}catch(P){console.error("User auth check failed:",P),u(!1),a(!1),x(!0),(P.status===401||P.status===403)&&g({type:"auth_required",message:"Authentication required"})}},S=(P=!0)=>{n(null),a(!1),P?No.auth.logout(window.location.href):No.auth.logout()},A=()=>{No.auth.redirectToLogin(window.location.href)};return v.jsx(c1.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})},jA=()=>{const t=M.useContext(c1);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},OA=()=>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"})]})]})]})})}),LA=t=>{const e=t.slice(1);try{return decodeURIComponent(e)}catch{return e}};function DA(){const{pathname:t,hash:e}=Pi(),n=eC();return M.useEffect(()=>{if(n!=="POP"){if(e){const i=LA(e),a=window.setTimeout(()=>{var l;(l=document.getElementById(i))==null||l.scrollIntoView({behavior:"smooth"})},50);return()=>window.clearTimeout(a)}window.scrollTo({top:0,left:0,behavior:"instant"})}},[t,e,n]),null}const d1=M.createContext({});function MA(t){const e=M.useRef(null);return e.current===null&&(e.current=t()),e.current}const nh=M.createContext(null),f1=M.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function FA(t=!0){const e=M.useContext(nh);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=e,l=M.useId();M.useEffect(()=>{t&&a(l)},[t]);const u=M.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const rh=typeof window<"u",IA=rh?M.useLayoutEffect:M.useEffect,Qt=t=>t;let h1=Qt;function sh(t){let e;return()=>(e===void 0&&(e=t()),e)}const _i=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Jn=t=>t*1e3,Zn=t=>t/1e3,BA={useManualTiming:!1};function UA(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 Nl=["read","resolveKeyframes","update","preRender","render","postRender"],VA=40;function p1(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Nl.reduce((S,A)=>(S[A]=UA(l),S),{}),{read:d,resolveKeyframes:h,update:p,preRender:g,render:y,postRender:x}=u,b=()=>{const S=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(S-a.timestamp,VA),1),a.timestamp=S,a.isProcessing=!0,d.process(a),h.process(a),p.process(a),g.process(a),y.process(a),x.process(a),a.isProcessing=!1,n&&e&&(i=!1,t(b))},C=()=>{n=!0,i=!0,a.isProcessing||t(b)};return{schedule:Nl.reduce((S,A)=>{const P=u[A];return S[A]=(L,I=!1,z=!1)=>(n||C(),P.schedule(L,I,z)),S},{}),cancel:S=>{for(let A=0;A<Nl.length;A++)u[Nl[A]].cancel(S)},state:a,steps:u}}const{schedule:ze,cancel:Ur,state:wt,steps:Pd}=p1(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0),m1=M.createContext({strict:!1}),Gy={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"]},ki={};for(const t in Gy)ki[t]={isEnabled:e=>Gy[t].some(n=>!!e[n])};function zA(t){for(const e in t)ki[e]={...ki[e],...t[e]}}
vendor: 26,233 bytes, line 216
216const $A=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 nu(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$A.has(t)}let g1=t=>!nu(t);function qA(t){t&&(g1=e=>e.startsWith("on")?!nu(e):t(e))}try{qA(require("@emotion/is-prop-valid").default)}catch{}function WA(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(g1(a)||n===!0&&nu(a)||!e&&!nu(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function HA(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 mu=M.createContext({});function Ho(t){return typeof t=="string"||Array.isArray(t)}function gu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ih=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oh=["initial",...ih];function yu(t){return gu(t.animate)||oh.some(e=>Ho(t[e]))}function y1(t){return!!(yu(t)||t.variants)}function KA(t,e){if(yu(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ho(n)?n:void 0,animate:Ho(i)?i:void 0}}return t.inherit!==!1?e:{}}function QA(t){const{initial:e,animate:n}=KA(t,M.useContext(mu));return M.useMemo(()=>({initial:e,animate:n}),[Xy(e),Xy(n)])}function Xy(t){return Array.isArray(t)?t.join(" "):t}const GA=Symbol.for("motionComponentSymbol");function ii(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function XA(t,e,n){return M.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):ii(n)&&(n.current=i))},[e])}const ah=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),YA="framerAppearId",v1="data-"+ah(YA),{schedule:lh}=p1(queueMicrotask,!1),w1=M.createContext({});function JA(t,e,n,i,a){var l,u;const{visualElement:d}=M.useContext(mu),h=M.useContext(m1),p=M.useContext(nh),g=M.useContext(f1).reducedMotion,y=M.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 x=y.current,b=M.useContext(w1);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&ZA(y.current,n,a,b);const C=M.useRef(!1);M.useInsertionEffect(()=>{x&&C.current&&x.update(n,p)});const _=n[v1],E=M.useRef(!!_&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,_))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,_)));return IA(()=>{x&&(C.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),lh.render(x.render),E.current&&x.animationState&&x.animationState.animateChanges())}),M.useEffect(()=>{x&&(!E.current&&x.animationState&&x.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,_)}),E.current=!1))}),x}function ZA(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:x1(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||d&&ii(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:p})}function x1(t){if(t)return t.options.allowProjection!==!1?t.projection:x1(t.parent)}function e2({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:a}){var l,u;t&&zA(t);function d(p,g){let y;const x={...M.useContext(f1),...p,layoutId:t2(p)},{isStatic:b}=x,C=QA(p),_=i(p,b);if(!b&&rh){n2();const E=r2(x);y=E.MeasureLayout,C.visualElement=JA(a,_,x,e,E.ProjectionNode)}return v.jsxs(mu.Provider,{value:C,children:[y&&C.visualElement?v.jsx(y,{visualElement:C.visualElement,...x}):null,n(a,p,XA(_,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=M.forwardRef(d);return h[GA]=a,h}function t2({layoutId:t}){const e=M.useContext(d1).id;return e&&t!==void 0?e+"-"+t:t}function n2(t,e){M.useContext(m1).strict}function r2(t){const{drag:e,layout:n}=ki;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 s2=["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 uh(t){return typeof t!="string"||t.includes("-")?!1:!!(s2.indexOf(t)>-1||/[A-Z]/u.test(t))}function Yy(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ch(t,e,n,i){if(typeof e=="function"){const[a,l]=Yy(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]=Yy(i);e=e(n!==void 0?n:t.custom,a,l)}return e}const gf=t=>Array.isArray(t),i2=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),o2=t=>gf(t)?t[t.length-1]||0:t,Rt=t=>!!(t&&t.getVelocity);function Wl(t){const e=Rt(t)?t.get():t;return i2(e)?e.toValue():e}function a2({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,a,l){const u={latestValues:l2(i,a,l,t),renderState:e()};return n&&(u.onMount=d=>n({props:i,current:d,...u}),u.onUpdate=d=>n(d)),u}const S1=t=>(e,n)=>{const i=M.useContext(mu),a=M.useContext(nh),l=()=>a2(t,e,i,a);return n?l():MA(l)};function l2(t,e,n,i){const a={},l=i(t,{});for(const x in l)a[x]=Wl(l[x]);let{initial:u,animate:d}=t;const h=yu(t),p=y1(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"&&!gu(y)){const x=Array.isArray(y)?y:[y];for(let b=0;b<x.length;b++){const C=ch(t,x[b]);if(C){const{transitionEnd:_,transition:E,...S}=C;for(const A in S){let P=S[A];if(Array.isArray(P)){const L=g?P.length-1:0;P=P[L]}P!==null&&(a[A]=P)}for(const A in _)a[A]=_[A]}}}return a}const ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ns=new Set(ji),b1=t=>e=>typeof e=="string"&&e.startsWith(t),E1=b1("--"),u2=b1("var(--"),dh=t=>u2(t)?c2.test(t.split("/*")[0].trim()):!1,c2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_1=(t,e)=>e&&typeof t=="number"?e.transform(t):t,er=(t,e,n)=>n>e?e:n<t?t:n,Oi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ko={...Oi,transform:t=>er(0,1,t)},jl={...Oi,default:1},ua=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Cr=ua("deg"),Dn=ua("%"),me=ua("px"),d2=ua("vh"),f2=ua("vw"),Jy={...Dn,parse:t=>Dn.parse(t)/100,transform:t=>Dn.transform(t*100)},h2={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},p2={rotate:Cr,rotateX:Cr,rotateY:Cr,rotateZ:Cr,scale:jl,scaleX:jl,scaleY:jl,scaleZ:jl,skew:Cr,skewX:Cr,skewY:Cr,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Ko,originX:Jy,originY:Jy,originZ:me},Zy={...Oi,transform:Math.round},fh={...h2,...p2,zIndex:Zy,size:me,fillOpacity:Ko,strokeOpacity:Ko,numOctaves:Zy},m2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g2=ji.length;function y2(t,e,n){let i="",a=!0;for(let l=0;l<g2;l++){const u=ji[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=_1(d,fh[u]);if(!h){a=!1;const g=m2[u]||u;i+=`${g}(${p}) `}n&&(e[u]=p)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function hh(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(Ns.has(h)){u=!0;continue}else if(E1(h)){a[h]=p;continue}else{const g=_1(p,fh[h]);h.startsWith("origin")?(d=!0,l[h]=g):i[h]=g}}if(e.transform||(u||n?i.transform=y2(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 v2={offset:"stroke-dashoffset",array:"stroke-dasharray"},w2={offset:"strokeDashoffset",array:"strokeDasharray"};function x2(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?v2:w2;t[l.offset]=me.transform(-i);const u=me.transform(e),d=me.transform(n);t[l.array]=`${u} ${d}`}function ev(t,e,n){return typeof t=="string"?t:me.transform(e+n*t)}function S2(t,e,n){const i=ev(e,t.x,t.width),a=ev(n,t.y,t.height);return`${i} ${a}`}function ph(t,{attrX:e,attrY:n,attrScale:i,originX:a,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:h=0,...p},g,y){if(hh(t,p,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:x,style:b,dimensions:C}=t;x.transform&&(C&&(b.transform=x.transform),delete x.transform),C&&(a!==void 0||l!==void 0||b.transform)&&(b.transformOrigin=S2(C,a!==void 0?a:.5,l!==void 0?l:.5)),e!==void 0&&(x.x=e),n!==void 0&&(x.y=n),i!==void 0&&(x.scale=i),u!==void 0&&x2(x,u,d,h,!1)}const mh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),k1=()=>({...mh(),attrs:{}}),gh=t=>typeof t=="string"&&t.toLowerCase()==="svg";function C1(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 T1=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 P1(t,e,n,i){C1(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(T1.has(a)?a:ah(a),e.attrs[a])}const ru={};function b2(t){Object.assign(ru,t)}function R1(t,{layout:e,layoutId:n}){return Ns.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ru[t]||t==="opacity")}function yh(t,e,n){var i;const{style:a}=t,l={};for(const u in a)(Rt(a[u])||e.style&&Rt(e.style[u])||R1(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 A1(t,e,n){const i=yh(t,e,n);for(const a in t)if(Rt(t[a])||Rt(e[a])){const l=ji.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}function E2(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 tv=["x","y","width","height","cx","cy","r"],_2={useVisualState:S1({scrapeMotionValuesFromProps:A1,createRenderState:k1,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(Ns.has(d)){l=!0;break}}if(!l)return;let u=!e;if(e)for(let d=0;d<tv.length;d++){const h=tv[d];t[h]!==e[h]&&(u=!0)}u&&ze.read(()=>{E2(n,i),ze.render(()=>{ph(i,a,gh(n.tagName),t.transformTemplate),P1(n,i)})})}})},k2={useVisualState:S1({scrapeMotionValuesFromProps:yh,createRenderState:mh})};function N1(t,e,n){for(const i in e)!Rt(e[i])&&!R1(i,n)&&(t[i]=e[i])}function C2({transformTemplate:t},e){return M.useMemo(()=>{const n=mh();return hh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function T2(t,e){const n=t.style||{},i={};return N1(i,n,t),Object.assign(i,C2(t,e)),i}function P2(t,e){const n={},i=T2(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 R2(t,e,n,i){const a=M.useMemo(()=>{const l=k1();return ph(l,e,gh(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};N1(l,t.style,t),a.style={...l,...a.style}}return a}function A2(t=!1){return(n,i,a,{latestValues:l},u)=>{const h=(uh(n)?R2:P2)(i,l,u,n),p=WA(i,typeof n=="string",t),g=n!==M.Fragment?{...p,...h,ref:a}:{},{children:y}=i,x=M.useMemo(()=>Rt(y)?y.get():y,[y]);return M.createElement(n,{...g,children:x})}}function N2(t,e){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const u={...uh(i)?_2:k2,preloadedFeatures:t,useRender:A2(a),createVisualElement:e,Component:i};return e2(u)}}function j1(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 vu(t,e,n){const i=t.getProps();return ch(i,e,n!==void 0?n:i.custom,t)}const j2=sh(()=>window.ScrollTimeline!==void 0);class O2{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(j2()&&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 L2 extends O2{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function vh(t,e){return t?t[e]||t.default||t:void 0}const yf=2e4;function O1(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<yf;)e+=n,i=t.next(e);return e>=yf?1/0:e}function wh(t){return typeof t=="function"}function nv(t,e){t.timeline=e,t.onfinish=null}const xh=t=>Array.isArray(t)&&typeof t[0]=="number",D2={linearEasing:void 0};function M2(t,e){const n=sh(t);return()=>{var i;return(i=D2[e])!==null&&i!==void 0?i:n()}}const su=M2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),L1=(t,e,n=10)=>{let i="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)i+=t(_i(0,a-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function D1(t){return!!(typeof t=="function"&&su()||!t||typeof t=="string"&&(t in vf||su())||xh(t)||Array.isArray(t)&&t.every(D1))}const jo=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,vf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jo([0,.65,.55,1]),circOut:jo([.55,0,1,.45]),backIn:jo([.31,.01,.66,-.59]),backOut:jo([.33,1.53,.69,.99])};function M1(t,e){if(t)return typeof t=="function"&&su()?L1(t,e):xh(t)?jo(t):Array.isArray(t)?t.map(n=>M1(n,e)||vf.easeOut):vf[t]}const Sn={x:!1,y:!1};function F1(){return Sn.x||Sn.y}function F2(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 I1(t,e){const n=F2(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function rv(t){return e=>{e.pointerType==="touch"||F1()||t(e)}}function I2(t,e,n={}){const[i,a,l]=I1(t,n),u=rv(d=>{const{target:h}=d,p=e(d);if(typeof p!="function"||!h)return;const g=rv(y=>{p(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,a)});return i.forEach(d=>{d.addEventListener("pointerenter",u,a)}),l}const B1=(t,e)=>e?t===e?!0:B1(t,e.parentElement):!1,Sh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,B2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U2(t){return B2.has(t.tagName)||t.tabIndex!==-1}const Oo=new WeakSet;function sv(t){return e=>{e.key==="Enter"&&t(e)}}function Rd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const V2=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=sv(()=>{if(Oo.has(n))return;Rd(n,"down");const a=sv(()=>{Rd(n,"up")}),l=()=>Rd(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 iv(t){return Sh(t)&&!F1()}function z2(t,e,n={}){const[i,a,l]=I1(t,n),u=d=>{const h=d.currentTarget;if(!iv(d)||Oo.has(h))return;Oo.add(h);const p=e(d),g=(b,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),!(!iv(b)||!Oo.has(h))&&(Oo.delete(h),typeof p=="function"&&p(b,{success:C}))},y=b=>{g(b,n.useGlobalTarget||B1(h,b.target))},x=b=>{g(b,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",x,a)};return i.forEach(d=>{!U2(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),d.addEventListener("focus",p=>V2(p,a),a)}),l}function $2(t){return t==="x"||t==="y"?Sn[t]?null:(Sn[t]=!0,()=>{Sn[t]=!1}):Sn.x||Sn.y?null:(Sn.x=Sn.y=!0,()=>{Sn.x=Sn.y=!1})}const U1=new Set(["width","height","top","left","right","bottom",...ji]);let Hl;function q2(){Hl=void 0}const Mn={now:()=>(Hl===void 0&&Mn.set(wt.isProcessing||BA.useManualTiming?wt.timestamp:performance.now()),Hl),set:t=>{Hl=t,queueMicrotask(q2)}};function bh(t,e){t.indexOf(e)===-1&&t.push(e)}function Eh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class _h{constructor(){this.subscriptions=[]}add(e){return bh(this.subscriptions,e),()=>Eh(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 V1(t,e){return e?t*(1e3/e):0}const ov=30,W2=t=>!isNaN(parseFloat(t));class H2{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const l=Mn.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=Mn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=W2(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 _h);const i=this.events[e].add(n);return e==="change"?()=>{i(),ze.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=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ov)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ov);return V1(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 Qo(t,e){return new H2(t,e)}function K2(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Qo(n))}function Q2(t,e){const n=vu(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const d=o2(l[u]);K2(t,u,d)}}function G2(t){return!!(Rt(t)&&t.add)}function wf(t,e){const n=t.getValue("willChange");if(G2(n))return n.add(e)}function z1(t){return t.props[v1]}const $1=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,X2=1e-7,Y2=12;function J2(t,e,n,i,a){let l,u,d=0;do u=e+(n-e)/2,l=$1(u,i,a)-t,l>0?n=u:e=u;while(Math.abs(l)>X2&&++d<Y2);return u}function ca(t,e,n,i){if(t===e&&n===i)return Qt;const a=l=>J2(l,0,1,t,n);return l=>l===0||l===1?l:$1(a(l),e,i)}const q1=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,W1=t=>e=>1-t(1-e),H1=ca(.33,1.53,.69,.99),kh=W1(H1),K1=q1(kh),Q1=t=>(t*=2)<1?.5*kh(t):.5*(2-Math.pow(2,-10*(t-1))),Ch=t=>1-Math.sin(Math.acos(t)),G1=W1(Ch),X1=q1(Ch),Y1=t=>/^0[^.\s]+$/u.test(t);function Z2(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Y1(t):!0}const Fo=t=>Math.round(t*1e5)/1e5,Th=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function eN(t){return t==null}const tN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ph=(t,e)=>n=>!!(typeof n=="string"&&tN.test(n)&&n.startsWith(t)||e&&!eN(n)&&Object.prototype.hasOwnProperty.call(n,e)),J1=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,d]=i.match(Th);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},nN=t=>er(0,255,t),Ad={...Oi,transform:t=>Math.round(nN(t))},ds={test:Ph("rgb","red"),parse:J1("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ad.transform(t)+", "+Ad.transform(e)+", "+Ad.transform(n)+", "+Fo(Ko.transform(i))+")"};function rN(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 xf={test:Ph("#"),parse:rN,transform:ds.transform},oi={test:Ph("hsl","hue"),parse:J1("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Dn.transform(Fo(e))+", "+Dn.transform(Fo(n))+", "+Fo(Ko.transform(i))+")"},Pt={test:t=>ds.test(t)||xf.test(t)||oi.test(t),parse:t=>ds.test(t)?ds.parse(t):oi.test(t)?oi.parse(t):xf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ds.transform(t):oi.transform(t)},sN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Th))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(sN))===null||n===void 0?void 0:n.length)||0)>0}const Z1="number",ex="color",oN="var",aN="var(",av="${}",lN=/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 Go(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(lN,h=>(Pt.test(h)?(i.color.push(l),a.push(ex),n.push(Pt.parse(h))):h.startsWith(aN)?(i.var.push(l),a.push(oN),n.push(h)):(i.number.push(l),a.push(Z1),n.push(parseFloat(h))),++l,av)).split(av);return{values:n,split:d,indexes:i,types:a}}function tx(t){return Go(t).values}function nx(t){const{split:e,types:n}=Go(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===Z1?l+=Fo(a[u]):d===ex?l+=Pt.transform(a[u]):l+=a[u]}return l}}const uN=t=>typeof t=="number"?0:t;function cN(t){const e=tx(t);return nx(t)(e.map(uN))}const Vr={test:iN,parse:tx,createTransformer:nx,getAnimatableNone:cN},dN=new Set(["brightness","contrast","saturate","opacity"]);function fN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Th)||[];if(!i)return t;const a=n.replace(i,"");let l=dN.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const hN=/\b([a-z-]*)\(.*?\)/gu,Sf={...Vr,getAnimatableNone:t=>{const e=t.match(hN);return e?e.map(fN).join(" "):t}},pN={...fh,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:Sf,WebkitFilter:Sf},Rh=t=>pN[t];function rx(t,e){let n=Rh(t);return n!==Sf&&(n=Vr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const mN=new Set(["auto","none","0"]);function gN(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!mN.has(l)&&Go(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=rx(n,a)}const lv=t=>t===Oi||t===me,uv=(t,e)=>parseFloat(t.split(", ")[e]),cv=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return uv(a[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?uv(l[1],t):0}},yN=new Set(["x","y","z"]),vN=ji.filter(t=>!yN.has(t));function wN(t){const e=[];
vendor: 4,124 bytes, line 216
216return vN.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const Ci={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:cv(4,13),y:cv(5,14)};Ci.translateX=Ci.x;Ci.translateY=Ci.y;const Es=new Set;let bf=!1,Ef=!1;function sx(){if(Ef){const t=Array.from(Es).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const a=wN(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)})}Ef=!1,bf=!1,Es.forEach(t=>t.complete()),Es.clear()}function ix(){Es.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ef=!0)})}function xN(){ix(),sx()}class Ah{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?(Es.add(this),bf||(bf=!0,ze.read(ix),ze.resolveKeyframes(sx))):(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),Es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ox=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),SN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bN(t){const e=SN.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function ax(t,e,n=1){const[i,a]=bN(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return ox(u)?parseFloat(u):u}return dh(a)?ax(a,e,n+1):a}const lx=t=>e=>e.test(t),EN={test:t=>t==="auto",parse:t=>t},ux=[Oi,me,Dn,Cr,f2,d2,EN],dv=t=>ux.find(lx(t));class cx extends Ah{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(),dh(p))){const g=ax(p,n.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!U1.has(i)||e.length!==2)return;const[a,l]=e,u=dv(a),d=dv(l);if(u!==d)if(lv(u)&&lv(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++)Z2(e[a])&&i.push(a);i.length&&gN(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=Ci[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]=Ci[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.forEac
vendor: 66,333 bytes, line 216
216h(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const fv=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Vr.test(t)||t==="0")&&!t.startsWith("url("));function _N(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 kN(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=fv(a,e),d=fv(l,e);return!u||!d?!1:_N(t)||(n==="spring"||wh(n))&&i}const CN=t=>t!==null;function wu(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(CN),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}const TN=40;class dx{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=Mn.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>TN?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&xN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:l,delay:u,onComplete:d,onUpdate:h,isGenerator:p}=this.options;if(!p&&!kN(e,i,a,l))if(u)this.options.duration=0;else{h&&h(wu(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 He=(t,e,n)=>t+(e-t)*n;function Nd(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 PN({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=Nd(h,d,t+1/3),l=Nd(h,d,t),u=Nd(h,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function iu(t,e){return n=>n>0?e:t}const jd=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},RN=[xf,ds,oi],AN=t=>RN.find(e=>e.test(t));function hv(t){const e=AN(t);if(!e)return!1;let n=e.parse(t);return e===oi&&(n=PN(n)),n}const pv=(t,e)=>{const n=hv(t),i=hv(e);if(!n||!i)return iu(t,e);const a={...n};return l=>(a.red=jd(n.red,i.red,l),a.green=jd(n.green,i.green,l),a.blue=jd(n.blue,i.blue,l),a.alpha=He(n.alpha,i.alpha,l),ds.transform(a))},NN=(t,e)=>n=>e(t(n)),da=(...t)=>t.reduce(NN),_f=new Set(["none","hidden"]);function jN(t,e){return _f.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ON(t,e){return n=>He(t,e,n)}function Nh(t){return typeof t=="number"?ON:typeof t=="string"?dh(t)?iu:Pt.test(t)?pv:MN:Array.isArray(t)?fx:typeof t=="object"?Pt.test(t)?pv:LN:iu}function fx(t,e){const n=[...t],i=n.length,a=t.map((l,u)=>Nh(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function LN(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=Nh(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function DN(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 MN=(t,e)=>{const n=Vr.createTransformer(e),i=Go(t),a=Go(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?_f.has(t)&&!a.values.length||_f.has(e)&&!i.values.length?jN(t,e):da(fx(DN(i,a),a.values),n):iu(t,e)};function hx(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?He(t,e,n):Nh(t)(t,e)}const FN=5;function px(t,e,n){const i=Math.max(e-FN,0);return V1(n-t(i),e-i)}const Xe={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},Od=.001;function IN({duration:t=Xe.duration,bounce:e=Xe.bounce,velocity:n=Xe.velocity,mass:i=Xe.mass}){let a,l,u=1-e;u=er(Xe.minDamping,Xe.maxDamping,u),t=er(Xe.minDuration,Xe.maxDuration,Zn(t)),u<1?(a=p=>{const g=p*u,y=g*t,x=g-n,b=kf(p,u),C=Math.exp(-y);return Od-x/b*C},l=p=>{const y=p*u*t,x=y*n+n,b=Math.pow(u,2)*Math.pow(p,2)*t,C=Math.exp(-y),_=kf(Math.pow(p,2),u);return(-a(p)+Od>0?-1:1)*((x-b)*C)/_}):(a=p=>{const g=Math.exp(-p*t),y=(p-n)*t+1;return-Od+g*y},l=p=>{const g=Math.exp(-p*t),y=(n-p)*(t*t);return g*y});const d=5/t,h=UN(a,l,d);if(t=Jn(t),isNaN(h))return{stiffness:Xe.stiffness,damping:Xe.damping,duration:t};{const p=Math.pow(h,2)*i;return{stiffness:p,damping:u*2*Math.sqrt(i*p),duration:t}}}const BN=12;function UN(t,e,n){let i=n;for(let a=1;a<BN;a++)i=i-t(i)/e(i);return i}function kf(t,e){return t*Math.sqrt(1-e*e)}const VN=["duration","bounce"],zN=["stiffness","damping","mass"];function mv(t,e){return e.some(n=>t[n]!==void 0)}function $N(t){let e={velocity:Xe.velocity,stiffness:Xe.stiffness,damping:Xe.damping,mass:Xe.mass,isResolvedFromDuration:!1,...t};if(!mv(t,zN)&&mv(t,VN))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*er(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Xe.mass,stiffness:a,damping:l}}else{const n=IN(t);e={...e,...n,mass:Xe.mass},e.isResolvedFromDuration=!0}return e}function mx(t=Xe.visualDuration,e=Xe.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:x,isResolvedFromDuration:b}=$N({...n,velocity:-Zn(n.velocity||0)}),C=x||0,_=p/(2*Math.sqrt(h*g)),E=u-l,S=Zn(Math.sqrt(h/g)),A=Math.abs(E)<5;i||(i=A?Xe.restSpeed.granular:Xe.restSpeed.default),a||(a=A?Xe.restDelta.granular:Xe.restDelta.default);let P;if(_<1){const I=kf(S,_);P=z=>{const Y=Math.exp(-_*S*z);return u-Y*((C+_*S*E)/I*Math.sin(I*z)+E*Math.cos(I*z))}}else if(_===1)P=I=>u-Math.exp(-S*I)*(E+(C+S*E)*I);else{const I=S*Math.sqrt(_*_-1);P=z=>{const Y=Math.exp(-_*S*z),U=Math.min(I*z,300);return u-Y*((C+_*S*E)*Math.sinh(U)+I*E*Math.cosh(U))/I}}const L={calculatedDuration:b&&y||null,next:I=>{const z=P(I);if(b)d.done=I>=y;else{let Y=0;_<1&&(Y=I===0?Jn(C):px(P,I,z));const U=Math.abs(Y)<=i,ee=Math.abs(u-z)<=a;d.done=U&&ee}return d.value=d.done?u:z,d},toString:()=>{const I=Math.min(O1(L),yf),z=L1(Y=>L.next(I*Y).value,I,30);return I+"ms "+z}};return L}function gv({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],x={done:!1,value:y},b=U=>d!==void 0&&U<d||h!==void 0&&U>h,C=U=>d===void 0?h:h===void 0||Math.abs(d-U)<Math.abs(h-U)?d:h;let _=n*e;const E=y+_,S=u===void 0?E:u(E);S!==E&&(_=S-y);const A=U=>-_*Math.exp(-U/i),P=U=>S+A(U),L=U=>{const ee=A(U),ue=P(U);x.done=Math.abs(ee)<=p,x.value=x.done?S:ue};let I,z;const Y=U=>{b(x.value)&&(I=U,z=mx({keyframes:[x.value,C(x.value)],velocity:px(P,U,x.value),damping:a,stiffness:l,restDelta:p,restSpeed:g}))};return Y(0),{calculatedDuration:null,next:U=>{let ee=!1;return!z&&I===void 0&&(ee=!0,L(U),Y(U)),I!==void 0&&U>=I?z.next(U-I):(!ee&&L(U),x)}}}const qN=ca(.42,0,1,1),WN=ca(0,0,.58,1),gx=ca(.42,0,.58,1),HN=t=>Array.isArray(t)&&typeof t[0]!="number",KN={linear:Qt,easeIn:qN,easeInOut:gx,easeOut:WN,circIn:Ch,circInOut:X1,circOut:G1,backIn:kh,backInOut:K1,backOut:H1,anticipate:Q1},yv=t=>{if(xh(t)){h1(t.length===4);const[e,n,i,a]=t;return ca(e,n,i,a)}else if(typeof t=="string")return KN[t];return t};function QN(t,e,n){const i=[],a=n||hx,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=da(h,d)}i.push(d)}return i}function GN(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(h1(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 x=_i(t[y],t[y+1],g);return d[y](x)};return n?g=>p(er(t[0],t[l-1],g)):p}function XN(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=_i(0,e,i);t.push(He(n,1,a))}}function YN(t){const e=[0];return XN(e,t.length-1),e}function JN(t,e){return t.map(n=>n*e)}function ZN(t,e){return t.map(()=>e||gx).splice(0,t.length-1)}function ou({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=HN(i)?i.map(yv):yv(i),l={done:!1,value:e[0]},u=JN(n&&n.length===e.length?n:YN(e),t),d=GN(u,e,{ease:Array.isArray(a)?a:ZN(e,a)});return{calculatedDuration:t,next:h=>(l.value=d(h),l.done=h>=t,l)}}const ej=t=>{const e=({timestamp:n})=>t(n);return{start:()=>ze.update(e,!0),stop:()=>Ur(e),now:()=>wt.isProcessing?wt.timestamp:Mn.now()}},tj={decay:gv,inertia:gv,tween:ou,keyframes:ou,spring:mx},nj=t=>t/100;class jh extends dx{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)||Ah,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=wh(n)?n:tj[n]||ou;let h,p;d!==ou&&typeof e[0]!="number"&&(h=da(nj,hx(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=O1(g));const{calculatedDuration:y}=g,x=y+a,b=x*(i+1)-a;return{generator:g,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:x,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:U}=this.options;return{done:!0,value:U[U.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:x,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-x*(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,L=l;if(b){const U=Math.min(this.currentTime,g)/y;let ee=Math.floor(U),ue=U%1;!ue&&U>=1&&(ue=1),ue===1&&ee--,ee=Math.min(ee,b+1),!!(ee%2)&&(C==="reverse"?(ue=1-ue,_&&(ue-=_/y)):C==="mirror"&&(L=u)),P=er(0,1,ue)*y}const I=A?{done:!1,value:h[0]}:L.next(P);d&&(I.value=d(I.value));let{done:z}=I;!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&&(I.value=wu(h,this.options,a)),E&&E(I.value),Y&&this.finish(),I}get duration(){const{resolved:e}=this;return e?Zn(e.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(e){e=Jn(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=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ej,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 rj=new Set(["opacity","clipPath","filter","transform"]);function sj(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=M1(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 ij=sh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),au=10,oj=2e4;function aj(t){return wh(t.type)||t.type==="spring"||!D1(t.ease)}function lj(t,e){const n=new jh({...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<oj;)i=n.sample(l),a.push(i.value),l+=au;return{times:void 0,keyframes:a,duration:l-au,ease:"linear"}}const yx={anticipate:Q1,backInOut:K1,circInOut:X1};function uj(t){return t in yx}class vv extends dx{constructor(e){super(e);const{name:n,motionValue:i,element:a,keyframes:l}=this.options;this.resolver=new cx(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"&&su()&&uj(l)&&(l=yx[l]),aj(this.options)){const{onComplete:y,onUpdate:x,motionValue:b,element:C,..._}=this.options,E=lj(e,_);e=E.keyframes,e.length===1&&(e[1]=e[0]),i=E.duration,a=E.times,l=E.ease,u="keyframes"}const g=sj(d.owner.current,h,e,{...this.options,duration:i,times:a,ease:l});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(nv(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(wu(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 Zn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Zn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Jn(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;nv(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:x,...b}=this.options,C=new jh({...b,keyframes:i,duration:a,type:l,ease:u,times:d,isGenerator:!0}),_=Jn(this.time);p.setWithVelocity(C.sample(_-au).value,C.sample(_).value,au)}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 ij()&&i&&rj.has(i)&&!h&&!p&&!a&&l!=="mirror"&&u!==0&&d!=="inertia"}}const cj={type:"spring",stiffness:500,damping:25,restSpeed:10},dj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),fj={type:"keyframes",duration:.8},hj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pj=(t,{keyframes:e})=>e.length>2?fj:Ns.has(t)?t.startsWith("scale")?dj(e[1]):cj:hj;function mj({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 Oh=(t,e,n,i={},a,l)=>u=>{const d=vh(i,t)||{},h=d.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Jn(h);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:x=>{e.set(x),d.onUpdate&&d.onUpdate(x)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};mj(d)||(g={...g,...pj(t,g)}),g.duration&&(g.duration=Jn(g.duration)),g.repeatDelay&&(g.repeatDelay=Jn(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 x=wu(g.keyframes,d);if(x!==void 0)return ze.update(()=>{g.onUpdate(x),g.onComplete()}),new L2([])}return!l&&vv.supports(g)?new vv(g):new jh(g)};function gj({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function vx(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 x=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),b=h[y];if(b===void 0||g&&gj(g,y))continue;const C={delay:n,...vh(u||{},y)};let _=!1;if(window.MotionHandoffAnimation){const S=z1(t);if(S){const A=window.MotionHandoffAnimation(S,y,ze);A!==null&&(C.startTime=A,_=!0)}}wf(t,y),x.start(Oh(y,x,b,t.shouldReduceMotion&&U1.has(y)?{type:!1}:C,t,_));const E=x.animation;E&&p.push(E)}return d&&Promise.all(p).then(()=>{ze.update(()=>{d&&Q2(t,d)})}),p}function Cf(t,e,n={}){var i;const a=vu(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(vx(t,a,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:x}=l;return yj(t,e,g+p,y,x,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 yj(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(vj).forEach((p,g)=>{p.notify("AnimationStart",e),u.push(Cf(p,e,{...l,delay:n+h(g)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(u)}function vj(t,e){return t.sortNodePosition(e)}function wj(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>Cf(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=Cf(t,e,n);else{const a=typeof e=="function"?vu(t,e,n.custom):e;i=Promise.all(vx(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const xj=oh.length;function wx(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?wx(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<xj;n++){const i=oh[n],a=t.props[i];(Ho(a)||a===!1)&&(e[i]=a)}return e}const Sj=[...ih].reverse(),bj=ih.length;function Ej(t){return e=>Promise.all(e.map(({animation:n,options:i})=>wj(t,n,i)))}function _j(t){let e=Ej(t),n=wv(),i=!0;const a=h=>(p,g)=>{var y;const x=vu(t,g,h==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(x){const{transition:b,transitionEnd:C,..._}=x;p={...p,..._,...C}}return p};function l(h){e=h(t)}function u(h){const{props:p}=t,g=wx(t.parent)||{},y=[],x=new Set;let b={},C=1/0;for(let E=0;E<bj;E++){const S=Sj[E],A=n[S],P=p[S]!==void 0?p[S]:g[S],L=Ho(P),I=S===h?A.isActive:null;I===!1&&(C=E);let z=P===g[S]&&P!==p[S]&&L;if(z&&i&&t.manuallyAnimateOnMount&&(z=!1),A.protectedKeys={...b},!A.isActive&&I===null||!P&&!A.prevProp||gu(P)||typeof P=="boolean")continue;const Y=kj(A.prevProp,P);let U=Y||S===h&&A.isActive&&!z&&L||E>C&&L,ee=!1;const ue=Array.isArray(P)?P:[P];let be=ue.reduce(a(S),{});I===!1&&(be={});const{prevResolvedValues:Ae={}}=A,Oe={...Ae,...be},Ce=le=>{U=!0,x.has(le)&&(ee=!0,x.delete(le)),A.needsAnimating[le]=!0;const K=t.getValue(le);K&&(K.liveStyle=!1)};for(const le in Oe){const K=be[le],se=Ae[le];if(b.hasOwnProperty(le))continue;let V=!1;gf(K)&&gf(se)?V=!j1(K,se):V=K!==se,V?K!=null?Ce(le):x.add(le):K!==void 0&&x.has(le)?Ce(le):A.protectedKeys[le]=!0}A.prevProp=P,A.prevResolvedValues=be,A.isActive&&(b={...b,...be}),i&&t.blockInitialAnimation&&(U=!1),U&&(!(z&&Y)||ee)&&y.push(...ue.map(le=>({animation:le,options:{type:S}})))}if(x.size){const E={};x.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(x=>{var b;return(b=x.animationState)===null||b===void 0?void 0:b.setActive(h,p)}),n[h].isActive=p;const y=u(h);for(const x in n)n[x].protectedKeys={};return y}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=wv(),i=!0}}}function kj(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!j1(e,t):!1}function is(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wv(){return{animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()}}class $r{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Cj extends $r{constructor(e){super(e),e.animationState||(e.animationState=_j(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();gu(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 Tj=0;class Pj extends $r{constructor(){super(...arguments),this.id=Tj++}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 Rj={animation:{Feature:Cj},exit:{Feature:Pj}};function Xo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function fa(t){return{point:{x:t.pageX,y:t.pageY}}}const Aj=t=>e=>Sh(e)&&t(e,fa(e));function Io(t,e,n,i){return Xo(t,e,Aj(n),i)}const xv=(t,e)=>Math.abs(t-e);function Nj(t,e){const n=xv(t.x,e.x),i=xv(t.y,e.y);return Math.sqrt(n**2+i**2)}class xx{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=Dd(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=Nj(y.offset,{x:0,y:0})>=3;if(!x&&!b)return;const{point:C}=y,{timestamp:_}=wt;this.history.push({...C,timestamp:_});const{onStart:E,onMove:S}=this.handlers;x||(E&&E(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Ld(x,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:b,onSessionEnd:C,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Dd(y.type==="pointercancel"?this.lastMoveEventInfo:Ld(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,E),C&&C(y,E)},!Sh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const u=fa(e),d=Ld(u,this.transformPagePoint),{point:h}=d,{timestamp:p}=wt;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(e,Dd(d,this.history)),this.removeListeners=da(Io(this.contextWindow,"pointermove",this.handlePointerMove),Io(this.contextWindow,"pointerup",this.handlePointerUp),Io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ur(this.updatePoint)}}function Ld(t,e){return e?{point:e(t.point)}:t}function Sv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Dd({point:t},e){return{point:t,delta:Sv(t,Sx(e)),offset:Sv(t,jj(e)),velocity:Oj(e,.1)}}function jj(t){return t[0]}function Sx(t){return t[t.length-1]}function Oj(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=Sx(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>Jn(e)));)n--;if(!i)return{x:0,y:0};const l=Zn(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 bx=1e-4,Lj=1-bx,Dj=1+bx,Ex=.01,Mj=0-Ex,Fj=0+Ex;function Gt(t){return t.max-t.min}function Ij(t,e,n){return Math.abs(t-e)<=n}function bv(t,e,n,i=.5){t.origin=i,t.originPoint=He(e.min,e.max,t.origin),t.scale=Gt(n)/Gt(e),t.translate=He(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Lj&&t.scale<=Dj||isNaN(t.scale))&&(t.scale=1),(t.translate>=Mj&&t.translate<=Fj||isNaN(t.translate))&&(t.translate=0)}function Bo(t,e,n,i){bv(t.x,e.x,n.x,i?i.originX:void 0),bv(t.y,e.y,n.y,i?i.originY:void 0)}function Ev(t,e,n){t.min=n.min+e.min,t.max=t.min+Gt(e)}function Bj(t,e,n){Ev(t.x,e.x,n.x),Ev(t.y,e.y,n.y)}function _v(t,e,n){t.min=e.min-n.min,t.max=t.min+Gt(e)}function Uo(t,e,n){_v(t.x,e.x,n.x),_v(t.y,e.y,n.y)}function Uj(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?He(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?He(n,t,i.max):Math.min(t,n)),t}function kv(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 Vj(t,{top:e,left:n,bottom:i,right:a}){return{x:kv(t.x,n,a),y:kv(t.y,e,i)}}function Cv(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 zj(t,e){return{x:Cv(t.x,e.x),y:Cv(t.y,e.y)}}function $j(t,e){let n=.5;const i=Gt(t),a=Gt(e);return a>i?n=_i(e.min,e.max-i,t.min):i>a&&(n=_i(t.min,t.max-a,e.min)),er(0,1,n)}function qj(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 Tf=.35;function Wj(t=Tf){return t===!1?t=0:t===!0&&(t=Tf),{x:Tv(t,"left","right"),y:Tv(t,"top","bottom")}}function Tv(t,e,n){return{min:Pv(t,e),max:Pv(t,n)}}function Pv(t,e){return typeof t=="number"?t:t[e]||0}const Rv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:Rv(),y:Rv()}),Av=()=>({min:0,max:0}),Ze=()=>({x:Av(),y:Av()});function an(t){return[t("x"),t("y")]}function _x({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Hj({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Kj(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 Md(t){return t===void 0||t===1}function Pf({scale:t,scaleX:e,scaleY:n}){return!Md(t)||!Md(e)||!Md(n)}function as(t){return Pf(t)||kx(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function kx(t){return Nv(t.x)||Nv(t.y)}function Nv(t){return t&&t!=="0%"}function lu(t,e,n){const i=t-n,a=e*i;return n+a}function jv(t,e,n,i,a){return a!==void 0&&(t=lu(t,a,i)),lu(t,n,i)+e}function Rf(t,e=0,n=1,i,a){t.min=jv(t.min,e,n,i,a),t.max=jv(t.max,e,n,i,a)}function Cx(t,{x:e,y:n}){Rf(t.x,e.translate,e.scale,e.originPoint),Rf(t.y,n.translate,n.scale,n.originPoint)}const Ov=.999999999999,Lv=1.0000000000001;function Qj(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&&ui(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,Cx(t,u)),i&&as(l.latestValues)&&ui(t,l.latestValues))}e.x<Lv&&e.x>Ov&&(e.x=1),e.y<Lv&&e.y>Ov&&(e.y=1)}function li(t,e){t.min=t.min+e,t.max=t.max+e}function Dv(t,e,n,i,a=.5){const l=He(t.min,t.max,a);Rf(t,e,n,l,i)}function ui(t,e){Dv(t.x,e.x,e.scaleX,e.scale,e.originX),Dv(t.y,e.y,e.scaleY,e.scale,e.originY)}function Tx(t,e){return _x(Kj(t.getBoundingClientRect(),e))}function Gj(t,e,n){const i=Tx(t,n),{scroll:a}=e;return a&&(li(i.x,a.offset.x),li(i.y,a.offset.y)),i}const Px=({current:t})=>t?t.ownerDocument.defaultView:null,Xj=new WeakMap;class Yj{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(fa(g).point)},l=(g,y)=>{const{drag:x,dragPropagation:b,onDragStart:C}=this.getProps();if(x&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$2(x),!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),an(E=>{let S=this.getAxisMotionValue(E).get()||0;if(Dn.test(S)){const{projection:A}=this.visualElement;if(A&&A.layout){const P=A.layout.layoutBox[E];P&&(S=Gt(P)*(parseFloat(S)/100))}}this.originPoint[E]=S}),C&&ze.postRender(()=>C(g,y)),wf(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:x,dragDirectionLock:b,onDirectionLock:C,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:E}=y;if(b&&this.currentDirection===null){this.currentDirection=Jj(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=()=>an(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 xx(e,{onSessionStart:a,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:Px(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&&ze.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||!Ol(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=Uj(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&&ii(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=Vj(a.layoutBox,n):this.constraints=!1,this.elastic=Wj(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&an(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=qj(a.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ii(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=Gj(i,a.root,this.visualElement.getTransformPagePoint());let u=zj(a.layout.layoutBox,l);if(n){const d=n(Hj(u));this.hasMutatedConstraints=!!d,d&&(u=_x(d))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=an(g=>{if(!Ol(g,n,this.currentDirection))return;let y=h&&h[g]||{};u&&(y={min:0,max:0});const x=a?200:1e6,b=a?40:1e7,C={type:"inertia",velocity:i?e[g]:0,bounceStiffness:x,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 wf(this.visualElement,e),i.start(Oh(e,i,0,n,this.visualElement,!1))}stopAnimation(){an(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){an(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){an(n=>{const{drag:i}=this.getProps();if(!Ol(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]-He(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ii(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};an(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const h=d.get();a[u]=$j({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(),an(u=>{if(!Ol(u,e,null))return;const d=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];d.set(He(h,p,a[u]))})}addListeners(){if(!this.visualElement.current)return;Xj.set(this.visualElement,this);const e=this.visualElement.current,n=Io(e,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();ii(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()),ze.read(i);const u=Xo(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(an(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=Tf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function Ol(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Jj(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Zj extends $r{constructor(e){super(e),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new Yj(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 Mv=t=>(e,n)=>{t&&ze.postRender(()=>t(e,n))};class eO extends $r{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(e){this.session=new xx(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Px(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:Mv(e),onStart:Mv(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&ze.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Io(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 Kl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ko={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(me.test(t))t=parseFloat(t);else return t;const n=Fv(t,e.target.x),i=Fv(t,e.target.y);return`${n}% ${i}%`}},tO={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,a=Vr.parse(t);if(a.length>5)return i;const l=Vr.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=He(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 nO extends M.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;b2(rO),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()})),Kl.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()||ze.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),lh.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 Rx(t){const[e,n]=FA(),i=M.useContext(d1);return v.jsx(nO,{...t,layoutGroup:i,switchLayoutGroup:M.useContext(w1),isPresent:e,safeToRemove:n})}const rO={borderRadius:{...ko,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ko,borderTopRightRadius:ko,borderBottomLeftRadius:ko,borderBottomRightRadius:ko,boxShadow:tO};function sO(t,e,n){const i=Rt(t)?t:Qo(t);return i.start(Oh("",i,e,n)),i.animation}function iO(t){return t instanceof SVGElement&&t.tagName!=="svg"}const oO=(t,e)=>t.depth-e.depth;class aO{constructor(){this.children=[],this.isDirty=!1}add(e){bh(this.children,e),this.isDirty=!0}remove(e){Eh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(oO),this.isDirty=!1,this.children.forEach(e)}}function lO(t,e){const n=Mn.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(Ur(i),t(l-e))};return ze.read(i,!0),()=>Ur(i)}const Ax=["TopLeft","TopRight","BottomLeft","BottomRight"],uO=Ax.length,Iv=t=>typeof t=="string"?parseFloat(t):t,Bv=t=>typeof t=="number"||me.test(t);function cO(t,e,n,i,a,l){a?(t.opacity=He(0,n.opacity!==void 0?n.opacity:1,dO(i)),t.opacityExit=He(e.opacity!==void 0?e.opacity:1,0,fO(i))):l&&(t.opacity=He(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let u=0;u<uO;u++){const d=`border${Ax[u]}Radius`;let h=Uv(e,d),p=Uv(n,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Bv(h)===Bv(p)?(t[d]=Math.max(He(Iv(h),Iv(p),i),0),(Dn.test(p)||Dn.test(h))&&(t[d]+="%")):t[d]=p}(e.rotate||n.rotate)&&(t.rotate=He(e.rotate||0,n.rotate||0,i))}function Uv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const dO=Nx(0,.5,G1),fO=Nx(.5,.95,Qt);function Nx(t,e,n){return i=>i<t?0:i>e?1:n(_i(t,e,i))}function Vv(t,e){t.min=e.min,t.max=e.max}function on(t,e){Vv(t.x,e.x),Vv(t.y,e.y)}function zv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function $v(t,e,n,i,a){return t-=e,t=lu(t,1/n,i),a!==void 0&&(t=lu(t,1/a,i)),t}function hO(t,e=0,n=1,i=.5,a,l=t,u=t){if(Dn.test(e)&&(e=parseFloat(e),e=He(u.min,u.max,e/100)-u.min),typeof e!="number")return;let d=He(l.min,l.max,i);t===l&&(d-=e),t.min=$v(t.min,e,n,d,a),t.max=$v(t.max,e,n,d,a)}function qv(t,e,[n,i,a],l,u){hO(t,e[n],e[i],e[a],e.scale,l,u)}const pO=["x","scaleX","originX"],mO=["y","scaleY","originY"];function Wv(t,e,n,i){qv(t.x,e,pO,n?n.x:void 0,i?i.x:void 0),qv(t.y,e,mO,n?n.y:void 0,i?i.y:void 0)}function Hv(t){return t.translate===0&&t.scale===1}function jx(t){return Hv(t.x)&&Hv(t.y)}function Kv(t,e){return t.min===e.min&&t.max===e.max}function gO(t,e){return Kv(t.x,e.x)&&Kv(t.y,e.y)}function Qv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ox(t,e){return Qv(t.x,e.x)&&Qv(t.y,e.y)}function Gv(t){return Gt(t.x)/Gt(t.y)}function Xv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class yO{constructor(){this.members=[]}add(e){bh(this.members,e),e.scheduleRender()}remove(e){if(Eh(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 vO(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:x,skewX:b,skewY:C}=n;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),x&&(i+=`rotateY(${x}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 ls={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Lo=typeof window<"u"&&window.MotionDebug!==void 0,Fd=["","X","Y","Z"],wO={visibility:"hidden"},Yv=1e3;let xO=0;function Id(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Lx(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=z1(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ze,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Lx(i)}function Dx({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},d=e==null?void 0:e()){this.id=xO++,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,Lo&&(ls.totalNodes=ls.resolvedTargetDeltas=ls.recalculatedProjection=0),this.nodes.forEach(EO),this.nodes.forEach(PO),this.nodes.forEach(RO),this.nodes.forEach(_O),Lo&&window.MotionDebug.record(ls)},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 aO)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new _h),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=iO(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 x=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=lO(x,250),Kl.hasAnimatedSinceResize&&(Kl.hasAnimatedSinceResize=!1,this.nodes.forEach(Zv))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeTargetChanged:b,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||g.getDefaultTransition()||LO,{onLayoutAnimationStart:E,onLayoutAnimationComplete:S}=g.getProps(),A=!this.targetLayout||!Ox(this.targetLayout,C)||b,P=!x&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||x&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,P);const L={...vh(_,"layout"),onPlay:E,onComplete:S};(g.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else x||Zv(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,Ur(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(AO),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&&Lx(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(Jv);return}this.isUpdating||this.nodes.forEach(CO),this.isUpdating=!1,this.nodes.forEach(TO),this.nodes.forEach(SO),this.nodes.forEach(bO),this.clearAllSnapshots();const d=Mn.now();wt.delta=er(0,1e3/60,d-wt.timestamp),wt.timestamp=d,wt.isProcessing=!0,Pd.update.process(wt),Pd.preRender.process(wt),Pd.render.process(wt),wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(kO),this.sharedNodes.forEach(NO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.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&&!jx(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&(d||as(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)),DO(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(MO))){const{scroll:g}=this.root;g&&(li(h.x,g.offset.x),li(h.y,g.offset.y))}return h}removeElementScroll(u){var d;const h=Ze();if(on(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:x}=g;g!==this.root&&y&&x.layoutScroll&&(y.wasRoot&&on(h,u),li(h.x,y.offset.x),li(h.y,y.offset.y))}return h}applyTransform(u,d=!1){const h=Ze();on(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&&ui(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),as(g.latestValues)&&ui(h,g.latestValues)}return as(this.latestValues)&&ui(h,this.latestValues),h}removeTransform(u){const d=Ze();on(d,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!as(p.latestValues))continue;Pf(p.latestValues)&&p.updateSnapshot();const g=Ze(),y=p.measurePageBox();on(g,y),Wv(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return as(this.latestValues)&&Wv(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!==wt.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:x}=this.options;if(!(!this.layout||!(y||x))){if(this.resolvedRelativeTargetAt=wt.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(),Uo(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),on(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(),Bj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):on(this.target,this.layout.layoutBox),Cx(this.target,this.targetDelta)):on(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(),Uo(this.relativeTargetOrigin,this.target,b.target),on(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Lo&&ls.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Pf(this.parent.latestValues)||kx(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===wt.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;on(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;Qj(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():(zv(this.prevProjectionDelta.x,this.projectionDelta.x),zv(this.prevProjectionDelta.y,this.projectionDelta.y)),Bo(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!Xv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C)),Lo&&ls.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=ai(),this.projectionDelta=ai(),this.projectionDeltaWithTransform=ai()}setAnimationOrigin(u,d=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},y=ai();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const x=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(OO));this.animationProgress=0;let P;this.mixTargetDelta=L=>{const I=L/1e3;e0(y.x,u.x,I),e0(y.y,u.y,I),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Uo(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jO(this.relativeTarget,this.relativeTargetOrigin,x,I),P&&gO(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=Ze()),on(P,this.relativeTarget)),_&&(this.animationValues=g,cO(g,p,this.latestValues,I,A,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},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&&(Ur(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{Kl.hasAnimatedSinceResize=!0,this.currentAnimation=sO(0,Yv,{...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(Yv),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&&Mx(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||Ze();const y=Gt(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const x=Gt(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+x}on(d,h),ui(d,g),Bo(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new yO),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&&Id("z",u,p,this.animationValues);for(let g=0;g<Fd.length;g++)Id(`rotate${Fd[g]}`,u,p,this.animationValues),Id(`skew${Fd[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 wO;const p={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Wl(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=Wl(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!as(this.latestValues)&&(_.transform=g?g({},""):"none",this.hasProjected=!1),_}const x=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=vO(this.projectionDeltaWithTransform,this.treeScale,x),g&&(p.transform=g(x,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=x.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:p.opacity=y===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const _ in ru){if(x[_]===void 0)continue;const{correct:E,applyTo:S}=ru[_],A=p.transform==="none"?x[_]:E(x[_],y);if(S){const P=S.length;for(let L=0;L<P;L++)p[S[L]]=A}else p[_]=A}return this.options.layoutId&&(p.pointerEvents=y===this?Wl(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(Jv),this.root.sharedNodes.clear()}}}function SO(t){t.updateLayout()}function bO(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"?an(y=>{const x=u?n.measuredBox[y]:n.layoutBox[y],b=Gt(x);x.min=i[y].min,x.max=x.min+b}):Mx(l,n.layoutBox,i)&&an(y=>{const x=u?n.measuredBox[y]:n.layoutBox[y],b=Gt(i[y]);x.max=x.min+b,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+b)});const d=ai();Bo(d,i,n.layoutBox);const h=ai();u?Bo(h,t.applyTransform(a,!0),n.measuredBox):Bo(h,i,n.layoutBox);const p=!jx(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:x,layout:b}=y;if(x&&b){const C=Ze();Uo(C,n.layoutBox,x.layoutBox);const _=Ze();Uo(_,i,b.layoutBox),Ox(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 EO(t){Lo&&ls.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 _O(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function kO(t){t.clearSnapshot()}function Jv(t){t.clearMeasurements()}function CO(t){t.isLayoutDirty=!1}function TO(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Zv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function PO(t){t.resolveTargetDelta()}function RO(t){t.calcProjection()}
vendor: 9,379 bytes, line 216
216function AO(t){t.resetSkewAndRotation()}function NO(t){t.removeLeadSnapshot()}function e0(t,e,n){t.translate=He(e.translate,0,n),t.scale=He(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function t0(t,e,n,i){t.min=He(e.min,n.min,i),t.max=He(e.max,n.max,i)}function jO(t,e,n,i){t0(t.x,e.x,n.x,i),t0(t.y,e.y,n.y,i)}function OO(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const LO={duration:.45,ease:[.4,0,.1,1]},n0=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r0=n0("applewebkit/")&&!n0("chrome/")?Math.round:Qt;function s0(t){t.min=r0(t.min),t.max=r0(t.max)}function DO(t){s0(t.x),s0(t.y)}function Mx(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ij(Gv(e),Gv(n),.2)}function MO(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const FO=Dx({attachResizeListener:(t,e)=>Xo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bd={current:void 0},Fx=Dx({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Bd.current){const t=new FO({});t.mount(window),t.setOptions({layoutScroll:!0}),Bd.current=t}return Bd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),IO={pan:{Feature:eO},drag:{Feature:Zj,ProjectionNode:Fx,MeasureLayout:Rx}};function i0(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&&ze.postRender(()=>l(e,fa(e)))}class BO extends $r{mount(){const{current:e}=this.node;e&&(this.unmount=I2(e,n=>(i0(this.node,n,"Start"),i=>i0(this.node,i,"End"))))}unmount(){}}class UO extends $r{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=da(Xo(this.node.current,"focus",()=>this.onFocus()),Xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function o0(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&&ze.postRender(()=>l(e,fa(e)))}class VO extends $r{mount(){const{current:e}=this.node;e&&(this.unmount=z2(e,n=>(o0(this.node,n,"Start"),(i,{success:a})=>o0(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Af=new WeakMap,Ud=new WeakMap,zO=t=>{const e=Af.get(t.target);e&&e(t)},$O=t=>{t.forEach(zO)};function qO({root:t,...e}){const n=t||document;Ud.has(n)||Ud.set(n,{});const i=Ud.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver($O,{root:t,...e})),i[a]}function WO(t,e,n){const i=qO(e);return Af.set(t,n),i.observe(t),()=>{Af.delete(t),i.unobserve(t)}}const HO={some:0,all:1};class KO extends $r{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:HO[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(),x=p?g:y;x&&x(h)};return WO(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 GO={inView:{Feature:KO},tap:{Feature:VO},focus:{Feature:UO},hover:{Feature:BO}},XO={layout:{ProjectionNode:Fx,MeasureLayout:Rx}},Nf={current:null},Ix={current:!1};function YO(){if(Ix.current=!0,!!rh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Nf.current=t.matches;t.addListener(e),e()}else Nf.current=!1}const JO=[...ux,Pt,Vr],ZO=t=>JO.find(lx(t)),a0=new WeakMap;function eL(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Rt(a))t.addValue(i,a);else if(Rt(l))t.addValue(i,Qo(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,Qo(u!==void 0?u:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const l0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tL{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=Ah,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=Mn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,ze.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=yu(n),this.isVariantNode=y1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...x}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in x){const C=x[b];h[b]!==void 0&&Rt(C)&&C.set(h[b],!1)}}mount(e){this.current=e,a0.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)),Ix.current||YO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){a0.delete(this.current),this.projection&&this.projection.unmount(),Ur(this.notifyUpdate),Ur(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=Ns.has(e),a=n.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&ze.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 ki){const n=ki[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<l0.length;i++){const a=l0[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=eL(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}
vendor: 6,484 bytes, line 216
216addVariantChild(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=Qo(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"&&(ox(a)||Y1(a))?a=parseFloat(a):!ZO(a)&&Vr.test(n)&&(a=rx(e,n)),this.setBaseTarget(e,Rt(a)?a.get():a)),Rt(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=ch(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&&!Rt(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 _h),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bx extends tL{constructor(){super(...arguments),this.KeyframeResolver=cx}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;Rt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function nL(t){return window.getComputedStyle(t)}class rL extends Bx{constructor(){super(...arguments),this.type="html",this.renderInstance=C1}readValueFromInstance(e,n){if(Ns.has(n)){const i=Rh(n);return i&&i.default||0}else{const i=nL(e),a=(E1(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Tx(e,n)}build(e,n,i){hh(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return yh(e,n,i)}}class sL extends Bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ns.has(n)){const i=Rh(n);return i&&i.default||0}return n=T1.has(n)?n:ah(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return A1(e,n,i)}build(e,n,i){ph(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,a){P1(e,n,i,a)}mount(e){this.isSVGTag=gh(e.tagName),super.mount(e)}}const iL=(t,e)=>uh(t)?new sL(e):new rL(e,{allowProjection:t!==M.Fragment}),oL=N2({...Rj,...GO,...IO,...XO},iL),Lh=HA(oL),uu="https://media.base44.com/images/public/6a59ebb855899c193fbae879/a408e7950_Fresh_Corner_Lime_Green.png",Ux="https://media.base44.com/images/public/6a59ebb855899c193fbae879/bc4234956_Fresh_Corner_Black_Logo_Trimmed.png",fs={hero:"https://media.base44.com/images/public/6a59ebb855899c193fbae879/22d92eeb6_fresh_corner_produit-du-moment_cartes.webp",sandwich:"https://media.base44.com/images/public/6a59ebb855899c193fbae879/5686402a0_Sandwitch.jpg",salad:"https://media.base44.com/images/public/6a59ebb855899c193fbae879/83b121f04_Salade.jpg",drinks:"https://media.base44.com/images/public/6a59ebb855899c193fbae879/67a9bff4e_Boissons.jpg",dessert:"https://media.base44.com/images/public/6a59ebb855899c193fbae879/eea772f5f_Cookies.jpg",kitchen:"https://media.base44.com/images/public/6a59ebb855899c193fbae879/28514387c_teamteam.jpg",team:"https://media.base44.com/images/public/6a59ebb855899c193fbae879/ff0b17953_2026-07-17_12h41_19.png"},aL="https://media.base44.com/videos/public/6a59ebb855899c193fbae879/be8a5948c_Fresh-Corner_V1.mp4",lL=[{id:"sandwichs",label:"Sandwichs",kicker:"01 / Gourmand",tagline:"Généreux, frais, faits maison",image:fs.sandwich,accent:"#C7D95B",items:[{name:"Bagel au saumon fumé",note:"Saumon de Norvège",price:"6.95"},{name:"Baguette jambon & fromage",note:"Origine Suisse",price:"7.95"},{name:"Pain Oriental aux légumes",note:"Végétarien",price:"7.95"},{name:"Panini poulet & pesto",note:"Poulet de Suisse",price:"8.20"},{name:"Paniwich tomate mozza",note:"Végétarien",price:"6.90"},{name:"Petit délice viande séchée",note:"Origine Suisse",price:"4.95"},{name:"Wrap poulet & sauce BBQ",note:"Poulet de Suisse",price:"6.95"}]},{id:"salades",label:"Salades",kicker:"02 / Frais",tagline:"Couleur, vitamines, saison",image:fs.salad,accent:"#C7D95B",items:[{name:"Salade César au poulet",note:"Poulet de Suisse",price:"8.95"},{name:"Salade de falafel",note:"Végétarien",price:"8.95"},{name:"Légumes grillés & mozzarella",note:"Végétarien",price:"9.95"},{name:"Salade de penne au pesto",note:"",price:"7.95"},{name:"Salade Grecque",note:"Végétarien",price:"7.95"},{name:"Salade mêlée",note:"Végétarien",price:"5.95"}]},{id:"boissons",label:"Boissons",kicker:"03 / Glacé",tagline:"Pressé du jour, maison",image:fs.drinks,accent:"#C7D95B",items:[{name:"Framboise · basilic · citron · sureau",note:"Eau maison",price:"3.20"},{name:"Jus d'orange pressé frais",note:"",price:"4.20"},{name:"Myrtilles · citron · menthe",note:"Eau maison",price:"3.20"}]},{id:"desserts",label:"Desserts",kicker:"04 / Sucré",tagline:"Cuits sur place, suprêmes",image:fs.dessert,accent:"#C7D95B",items:[{name:"Cookie Choc Chunk Suprême",note:"",price:"1.95"},{name:"Cookie Double Choc Suprême",note:"",price:"1.95"},{name:"Maxi Cookie Matcha White Choc",note:"",price:"2.50"}]}],u0=[{name:"Durapack",url:"https://durapack.ch/",image:null},{name:"HES-SO",url:"https://www.hes-so.ch/accueil",image:"https://base44.app/api/apps/6a59ebb855899c193fbae879/files/mp/public/6a59ebb855899c193fbae879/0162b4c34_partner-hes-so.svg"},{name:"Pitoeuf",url:"https://pitoeuf.ch/",image:"https://base44.app/api/apps/6a59ebb855899c193fbae879/files/mp/public/6a59ebb855899c193fbae879/3e25b16b2_partner-pitoeuf.png"}
216,{name:"Petit Crémier",url:"https://cremo.ch/groupe/petit-cremier/",image:"https://base44.app/api/apps/6a59ebb855899c193fbae879/files/mp/public/6a59ebb855899c193fbae879/06a7e5ec5_partner-petit-crmier.png"},{name:"Perlinpainpinte",url:"https://perlinpainpinte.ch/",image:"https://base44.app/api/apps/6a59ebb855899c193fbae879/files/mp/public/6a59ebb855899c193fbae879/451730dbd_partner-perlinpainpinte.png"},{name:"Almeida Sarl",url:"https://www.google.com/maps/place/Almeida+Sarl/@47.1520243,6.9891927,13z",image:null},{name:"Primval Sàrl",url:"https://www.google.com/maps/place/Primval+S%C3%A0rl/@46.1515696,7.1660046,17z",image:null}],zt={address:"Place de la Gare 10 — 3960 Sierre",email:"[email protected]",phone:"027 565 52 52",hours:"06h00 — 21h00",instagram:"https://instagram.com"};function Vx({src:t,alt:e,className:n="",style:i}){const l=`fc-cut-${M.useId()}`;return v.jsxs(v.Fragment,{children:[v.jsx("svg",{"aria-hidden":!0,style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:v.jsx("defs",{children:v.jsxs("filter",{id:l,children:[v.jsx("feColorMatrix",{type:"matrix",values:"1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0.2126 0.7152 0.0722 0 0"}),v.jsx("feComponentTransfer",{children:v.jsx("feFuncA",{type:"table",tableValues:"0 1 1"})})]})})}),v.jsx("img",{src:t,alt:e,className:n,style:{filter:`url(#${l})`,...i}})]})}function uL(){const[t,e]=M.useState(!1),[n,i]=M.useState(!1);return M.useEffect(()=>{const a=()=>i(window.scrollY>40);return a(),window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[]),M.useEffect(()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""}),[t]),v.jsxs(v.Fragment,{children:[v.jsxs("header",{className:"fixed top-0 inset-x-0 z-50 flex items-center justify-between px-4 sm:px-8 h-16 transition-all duration-300",style:{background:n?"#111111":"transparent",borderBottom:n?"2px solid #C7D95B":"2px solid transparent"},children:[v.jsx("a",{href:"#top",className:"flex items-center gap-2",children:v.jsx(Vx,{src:uu,alt:"Fresh Corner",className:"h-9 w-auto"})}),v.jsxs("button",{onClick:()=>e(!0),className:"group flex items-center gap-2 bg-[#C7D95B] text-[#111111] px-5 py-2.5 font-mono text-xs uppercase tracking-widest font-bold hover:bg-[#111111] hover:text-white transition-colors rounded-full",children:[v.jsx(IE,{className:"w-4 h-4"}),"Menu"]})]}),v.jsxs("div",{className:`fixed inset-0 z-[60] bg-[#C7D95B] transition-transform duration-500 overflow-hidden ${t?"translate-y-0 pointer-events-auto":"-translate-y-full pointer-events-none"}`,children:[v.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-8 h-16",children:[v.jsx("img",{src:Ux,alt:"Fresh Corner",className:"h-9 w-auto rounded-md"}),v.jsxs("button",{onClick:()=>e(!1),className:"flex items-center gap-2 bg-white text-[#111111] px-5 py-2.5 font-mono text-xs uppercase tracking-widest font-bold rounded-full",children:[v.jsx(A0,{className:"w-4 h-4"}),"Fermer"]})]}),v.jsx("div",{className:"flex flex-col justify-center items-start px-4 sm:px-8 mt-4",children:[{label:"Fresh Corner",href:"#top",n:"00"},...cL.map((a,l)=>({...a,n:String(l+1).padStart(2,"0")})),{label:"Contact",href:"#contact",n:"05",cta:!0}].map((a,l)=>v.jsxs(Lh.a,{href:a.href,onClick:()=>e(!1),initial:{opacity:0,y:60,clipPath:"inset(0 0 100% 0)"},animate:t?{opacity:1,y:0,clipPath:"inset(0 0 0% 0)"}:{opacity:0,y:60,clipPath:"inset(0 0 100% 0)"},transition:{duration:.5,delay:t?.25+l*.1:0,ease:[.16,1,.3,1]},className:`group flex items-baseline gap-4 sm:gap-8 py-1 w-full transition-colors ${a.cta?"bg-[#E22B1E] rounded-full px-4 sm:px-8 my-3 border-b-0":"border-b border-[#111111]/30"}`,children:[v.jsx("span",{className:`font-mono text-xs sm:text-sm mt-3 ${a.cta?"text-white/70":"text-[#111111]/60"}`,children:a.n}),v.jsx("span",{className:`font-display font-black uppercase leading-[0.92] transition-all duration-200 group-hover:translate-x-3 group-hover:italic ${a.cta?"text-white":"text-[#111111]"}`,style:{fontSize:"clamp(2.5rem, 9vw, 7rem)",letterSpacing:"-0.04em"},children:a.label})]},a.href))})]})]})}const cL=[{label:"Sandwichs",href:"#sandwichs"},{label:"Salades",href:"#salades"},{label:"Boissons",href:"#boissons"},{label:"Desserts",href:"#desserts"}];function Ke({children:t,delay:e=0,y:n=24,className:i=""}){return v.jsx(Lh.div,{className:i,initial:{opacity:0,y:n},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.6,delay:e,ease:[.16,1,.3,1]},children:t})}function ha({className:t="",style:e}
216){return v.jsxs("svg",{viewBox:"0 12 100 82","aria-hidden":!0,className:`inline-block ${t}`,style:{width:"0.55em",height:"0.451em",verticalAlign:"baseline",...e},children:[v.jsx("circle",{cx:"50",cy:"56",r:"38",fill:"#E22B1E"}),v.jsx("ellipse",{cx:"38",cy:"44",rx:"10",ry:"7",fill:"#F25A4D",opacity:"0.7"}),v.jsx("path",{d:"M50 26 C42 18 34 20 30 26 C38 26 44 30 50 34 C56 30 62 26 70 26 C66 20 58 18 50 26 Z",fill:"#4C7227"}),v.jsx("path",{d:"M50 26 L50 14",stroke:"#6A854E",strokeWidth:"4",strokeLinecap:"round"})]})}const dL=["FRESH","FRAIS","FRISCHE","FRESCO","FRESCA","FÄRSK","VERS","FERSK","TUORE","FRESC","NOVÝ","ŚWIEŻY","VÄRSKE","CRISP","FRESCO","FRESH"];function fL(){const[t,e]=M.useState(0);return M.useEffect(()=>{const n=i=>{const a=(i.clientX/window.innerWidth-.5)*2;e(a)};return window.addEventListener("mousemove",n),()=>window.removeEventListener("mousemove",n)},[]),v.jsxs("section",{id:"top",className:"relative min-h-screen bg-[#111111] overflow-hidden flex flex-col",children:[v.jsx("video",{src:aL,poster:fs.hero,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto","aria-hidden":!0,className:"absolute inset-0 w-full h-full object-cover"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/45 via-black/30 to-black/50","aria-hidden":!0}),v.jsx("div",{className:"absolute inset-0 flex items-center pointer-events-none select-none",style:{transform:`translateX(${t*-30}px)`},"aria-hidden":!0,children:v.jsx(hL,{words:dL})}),v.jsxs("div",{className:"relative z-10 flex-1 flex flex-col items-center justify-center px-4 pt-20",children:[v.jsx(Ke,{children:v.jsx("div",{className:"w-[72vw] max-w-[420px] aspect-square flex items-center justify-center p-[8%]",style:{transform:`translateX(${t*18}px) rotate(${t*1.5}deg)`},children:v.jsx(Vx,{src:uu,alt:"Fresh Corner",className:"w-full h-full"})})}),v.jsx(Ke,{delay:.1,children:v.jsxs("h2",{className:"mt-6 text-center font-display font-black uppercase text-white leading-[0.85]",style:{fontSize:"clamp(2.2rem, 9vw, 7rem)",letterSpacing:"-0.05em"},children:["Local. Authentique. ",v.jsx("span",{className:"text-[#C7D95B]",children:"Fresh"}),v.jsx(ha,{})]})}),v.jsx(Ke,{delay:.2,children:v.jsx("h1",{className:"mt-4 max-w-xl text-center font-body text-base sm:text-lg text-white/80 leading-relaxed font-normal",children:"Sandwichs, salades et jus frais faits maison à la gare de Sierre, en Valais — cuisine sur place, ingrédients locaux, chaque jour."})}),v.jsx(Ke,{delay:.3,children:v.jsxs("div",{className:"mt-8 mb-10 flex flex-wrap justify-center gap-4 sm:gap-6",children:[v.jsx("a",{href:"#carte",className:"bg-[#C7D95B] text-[#111111] px-8 py-4 font-body text-sm uppercase tracking-widest font-bold hover:bg-white transition-colors rounded-full",children:"Voir la carte"}),v.jsx("a",{href:"#contact",className:"bg-[#E22B1E] text-white px-8 py-4 font-body text-sm uppercase tracking-widest font-bold hover:bg-[#111111] transition-colors rounded-full",children:"Nous contacter"})]})})]}),v.jsx("div",{className:"relative z-10 pb-6 flex justify-center font-body text-xs uppercase tracking-widest font-bold text-white/80",children:"↓ Scrolle pour le frais"})]})}function hL({words:t}){const e=[...t,...t,...t,...t];return v.jsx("div",{className:"flex whitespace-nowrap animate-[fcscroll_90s_linear_infinite]",children:e.map((n,i)=>v.jsx("span",{className:"font-display font-black uppercase text-white/[0.07] mx-4",style:{fontSize:"clamp(8rem, 22vw, 20rem)",letterSpacing:"-0.05em"},children:n},i))})}const c0=[R0,qE,mE,zE,EE,RE,TE,HE,kE,yE,NE,SE],pL=[{i:0,top:"8%",left:"6%",size:64,rot:-16,dur:7},{i:1,top:"68%",left:"10%",size:80,rot:14,dur:9},{i:2,top:"18%",left:"78%",size:58,rot:10,dur:8},{i:3,top:"60%",left:"82%",size:84,rot:-12,dur:10},{i:4,top:"40%",left:"44%",size:70,rot:24,dur:6.5},{i:5,top:"84%",left:"56%",size:96,rot:-8,dur:11},{i:6,top:"14%",left:"38%",size:52,rot:32,dur:7.5},{i:7,top:"50%",left:"4%",size:56,rot:-24,dur:9.5},{i:8,top:"30%",left:"92%",size:50,rot:18,dur:8.5},{i:9,top:"76%",left:"30%",size:60,rot:-20,dur:10.5}];function Li({color:t="currentColor",opacity:e=.5,className:n="",strokeWidth:i=1.5}){return v.jsx("div",{className:`pointer-events-none absolute inset-0 z-0 overflow-hidden ${n}
216`,"aria-hidden":!0,children:pL.map((a,l)=>{const u=c0[a.i%c0.length];return v.jsx("div",{style:{position:"absolute",top:a.top,left:a.left,opacity:e},children:v.jsx("div",{style:{animation:`fcfloaty ${a.dur}s ease-in-out ${l*.5}s infinite`},children:v.jsx(u,{size:a.size,color:t,strokeWidth:i,style:{transform:`rotate(${a.rot}deg)`}})})},l)})})}function tr({className:t="",style:e}){return v.jsx(R0,{"aria-hidden":!0,className:`inline-block ${t}`,strokeWidth:2,style:{width:"0.95em",height:"0.95em",transform:"rotate(-45deg)",verticalAlign:"-0.16em",marginRight:"0.3em",...e}})}function mL(){return v.jsxs("section",{className:"bg-[#F9F9F7] py-20 sm:py-28 relative overflow-hidden",children:[v.jsx(Li,{color:"#C9B9A8",opacity:.45}),v.jsxs("div",{className:"px-4 sm:px-8 max-w-6xl mx-auto relative z-10",children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#E22B1E] font-bold",children:[v.jsx(tr,{}),"Notre carte"]}),v.jsx(Ke,{children:v.jsxs("h2",{className:"mt-4 font-display font-black uppercase text-[#111111] leading-[0.9]",style:{fontSize:"clamp(2.2rem, 8vw, 6rem)",letterSpacing:"-0.04em"},children:["Local. Authentique. ",v.jsx("span",{className:"text-[#C7D95B]",children:"Fresh"}),v.jsx(ha,{})]})}),v.jsxs("div",{className:"mt-12 grid md:grid-cols-2 gap-10 items-start",children:[v.jsx(Ke,{delay:.05,children:v.jsxs("div",{className:"space-y-5 font-body text-lg leading-relaxed text-[#111111]/80",children:[v.jsx("p",{children:"Notre carte s'adapte à vos envies et aux saisons. Installez-vous dans le hall de la gare de Sierre pour savourer un plat, ou choisissez l'option à emporter."}),v.jsx("p",{children:"Large choix de sandwichs gourmands, salades fraîches, boissons variées et desserts maison. Des salades vitaminées en été aux soupes réconfortantes en hiver — tout est préparé sur place, chaque jour, avec des ingrédients frais."}),v.jsx("p",{className:"font-bold text-[#111111]",children:"Ici, on privilégie la rapidité et le sourire : un service au comptoir chaleureux, des produits frais préparés à la minute, et une qualité constante chaque jour."})]})}),v.jsx(Ke,{delay:.1,children:v.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden border-4 border-[#111111] rounded-2xl",children:[v.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${fs.kitchen})`,backgroundColor:"#C7D95B"}}),v.jsx("span",{className:"absolute top-4 left-4 bg-[#111111] text-white font-mono text-xs uppercase tracking-widest px-3 py-1.5 font-bold rounded-full",children:"Préparé sur place par une équipe de choc"})]})})]})]})]})}function gL(t){const[e,n]=M.useState(null);return M.useLayoutEffect(()=>{const i=t.current;if(!i)return;const a=i.getBoundingClientRect();n({width:a.width,height:a.height});const l=new ResizeObserver(([u])=>{const{width:d,height:h}=u.contentRect;n({width:d,height:h})});return l.observe(i),()=>l.disconnect()},[t]),e}const Ll="https://static.wixstatic.com/media/12d367_4f26ccd17f8f4e3a8958306ea08c2332~mv2.png",yL=["media.base44.com","static.wixstatic.com"],vL=1024,wL=[1,2,3],xL=6e3;function SL(t){try{const e=new URL(t);if(!yL.includes(e.hostname))return null;const n=e.pathname.indexOf("/v1/"),i=n===-1?e.pathname:e.pathname.slice(0,n),a=i.split("/").pop();return!a||/\.svg$/i.test(a)?null:{baseUrl:`${e.origin}${i}`,filename:a}}catch{return null}}const d0=t=>Math.min(Math.max(Math.round(t),1),xL),f0=t=>Math.min(1,Math.max(0,t));function jf({baseUrl:t,filename:e},{width:n,height:i,crop:a,focalPoint:l,quality:u}){const d=[`w_${d0(n)}`,`h_${d0(i||n)}`];a&&d.push(l?`fp_${f0(l.x).toFixed(2)}_${f0(l.y).toFixed(2)}`:"al_c"),d.push(`q_${u}`,"usm_0.66_1.00_0.01","enc_webp","quality_auto");const h=/\.gif$/i.test(e)?e:e.replace(/\.[a-z0-9]+$/i,"")+".webp";return`${t}/v1/${a?"fill":"fit"}/${d.join(",")}/${h}`}function bL(t,e){return wL.map(n=>`${jf(t,{...e,width:e.width*n,height:e.height?e.height*n:void 0})} ${n}x`).join(", ")}const zx=M.forwardRef(({aspectRatio:t,className:e,style:n,children:i},a)=>v.jsx("span",{ref:a,className:Ps("inline-block relative",e),style:{aspectRatio:t,...n},children:i}));zx.displayName="ImageWrapper";const $x=M.forwardRef(({parsed:t,fittingType:e,focalPoint:n,quality:i,className:a,style:l,aspectRatio:u,onLoad:d,...h},p)=>{const g=M.useRef(null),y=M.useRef(null),x=gL(g),[b,C]=M.useState(!1);M.useImperativeHandle(p,()=>y.current),M.useEffect(()=>{C(!1)},[t.baseUrl]);const _=e!=="fit",E=x&&{width:x.width||vL,height:x.height?x.height:void 0,crop:_,focalPoint:_?n:void 0,quality:i};return v.jsxs(zx,{ref:g,aspectRatio:u,className:a,style:l,children:[E&&!b&&v.jsx("img",{src:jf(t,{...E,width:20,height:E.height?Math.max(1,Math.round(20*E.height/E.width)):void 0,quality:20}),alt:"","aria-hidden":"true",className:"w-full h-full inset-0 absolute",style:{objectFit:e==="fit"?"contain":"cover",filter:"blur(10px)",transform:"scale(1.1)"}}),E&&v.jsx("img",{ref:y,src:jf(t,E),srcSet:bL(t,E),loading:"lazy",className:Ps("w-full h-full inset-0 absolute",e==="fit"?"object-contain":"object-cover"),onLoad:S=>{C(!0),d==null||d(S)},...h})]})});$x.displayName="ResponsiveImage";const qx=M.forwardRef(({src:t,fittingType:e="fill",originWidth:n,originHeight:i,focalPointX:a,focalPointY:l,quality:u=90,...d},h)=>
216{const[p,g]=M.useState(t);M.useEffect(()=>{g(t)},[t]);const y={...d,onError:()=>g(Ll)};if(!t)return v.jsx("img",{ref:h,src:Ll,...y,"data-empty-image":!0});const x=p===Ll?null:SL(p);if(!x){const _=p===Ll;return v.jsx("img",{ref:h,src:p,...y,"data-error-image":_||void 0})}const b=typeof a=="number"&&typeof l=="number"?{x:a,y:l}:void 0,C=n&&i?`${n} / ${i}`:void 0;return v.jsx($x,{ref:h,parsed:x,fittingType:e,focalPoint:b,quality:u,aspectRatio:C,...y})});qx.displayName="Image";function EL(){return v.jsxs("section",{id:"carte",className:"bg-[#111111] text-[#F9F9F7] relative overflow-hidden",children:[v.jsx(Li,{color:"#FFFFFF",opacity:.05}),v.jsx(Ke,{children:v.jsxs("div",{className:"px-4 sm:px-8 py-20 sm:py-28 border-b-4 border-[#F9F9F7] relative z-10",children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#C7D95B] font-bold",children:[v.jsx(tr,{}),"La carte"]}),v.jsxs("h2",{className:"mt-4 font-display font-black uppercase leading-[0.85]",style:{fontSize:"clamp(3rem, 16vw, 13rem)",letterSpacing:"-0.05em"},children:["FRESH",v.jsx("br",{}),v.jsx("span",{className:"text-[#C7D95B]",children:"CORNER"}),v.jsx(ha,{})]}),v.jsx("p",{className:"mt-6 max-w-xl font-body text-lg text-[#F9F9F7]/70 leading-relaxed",children:"Sandwichs, salades, boissons, desserts. Tout est préparé sur place, chaque jour, avec des ingrédients locaux et ultra-frais."})]})}),lL.map(t=>v.jsx(_L,{cat:t},t.id))]})}function _L({cat:t}){return v.jsxs("div",{id:t.id,className:"border-b-4 border-[#F9F9F7]/20 relative z-10",children:[v.jsxs("div",{className:"grid md:grid-cols-2 gap-4 sm:gap-6 p-4 sm:p-6",children:[v.jsx("div",{className:"relative aspect-[4/3] md:aspect-auto md:min-h-[60vh] overflow-hidden order-2 md:order-1 rounded-2xl bg-[#111111]",children:v.jsx(qx,{src:t.image,alt:t.label,fittingType:"fill",quality:80,className:"absolute inset-0 w-full h-full transition-transform duration-700 hover:scale-110"})}),v.jsx(Ke,{className:"h-full",children:v.jsxs("div",{className:"h-full p-6 sm:p-10 flex flex-col justify-center order-1 md:order-2 rounded-2xl",style:{background:t.accent,color:"#111111"},children:[v.jsx("span",{className:"font-mono text-xs uppercase tracking-widest text-[#111111]/70 font-bold",children:t.kicker}),v.jsx("h3",{className:"mt-2 font-display font-black uppercase leading-[0.85] break-words",style:{fontSize:"clamp(1.75rem, 4vw, 3rem)",letterSpacing:"-0.03em"},children:t.label}),v.jsx("p",{className:"mt-3 font-body text-lg text-[#111111]/80",children:t.tagline})]})})]}),v.jsx("ul",{className:"max-w-6xl mx-auto w-full",children:t.items.map((e,n)=>v.jsxs(Lh.li,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.5,delay:n*.12,ease:[.16,1,.3,1]},className:"group flex items-baseline gap-4 px-6 sm:px-10 lg:px-16 py-5 border-t border-[#F9F9F7]/15 transition-colors hover:bg-[#F9F9F7] hover:text-[#111111]",children:[v.jsx("span",{className:"font-mono text-xs text-[#F9F9F7]/40 group-hover:text-[#111111]/40",children:String(n+1).padStart(2,"0")}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("span",{className:"font-display font-black uppercase block leading-[0.95] transition-transform duration-200 group-hover:translate-x-2 group-hover:italic",style:{fontSize:"clamp(1.4rem, 4.5vw, 2.75rem)",letterSpacing:"-0.03em"},children:e.name}),e.note&&v.jsx("span",{className:"font-mono text-xs uppercase tracking-wide text-[#F9F9F7]/50 group-hover:text-[#111111]/50",children:e.note})]}),v.jsxs("div",{className:"flex items-baseline gap-1 shrink-0",children:[v.jsx("span",{className:"font-display font-black tabular-nums",style:{fontSize:"clamp(1.6rem, 5vw, 3rem)",color:"#C7D95B"},children:e.price}),v.jsx("span",{className:"font-mono text-sm text-current/60",children:".-"})]})]},n))})]})}function kL(){return v.jsxs("section",{id:"equipe",className:"bg-[#F9F9F7] py-20 sm:py-28 relative overflow-hidden",children:[v.jsx(Li,{color:"#C9B9A8",opacity:.4}),v.jsxs("div",{className:"px-4 sm:px-8 max-w-6xl mx-auto relative z-10",children:[v.jsx(Ke,{children:v.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-6",children:[v.jsxs("div",{children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#111111] font-bold",children:[v.jsx(tr,{}),"L'équipe"]}),v.jsxs("h2",{className:"mt-4 font-display font-black uppercase text-[#111111] leading-[0.88]",style:{fontSize:"clamp(2.4rem, 9vw, 7rem)",letterSpacing:"-0.04em"},children:["Avec le cœur,",v.jsx("br",{}),"avec le ",v.jsx("span",{className:"text-[#C7D95B]",children:"sourire"}),v.jsx(ha,{})]})]}),v.jsx("p",{className:"max-w-sm font-body text-base text-[#111111]/70 leading-relaxed",children:"Notre personnel vous accueille chaque jour pour vous faire découvrir nos menus du jour, toujours frais et savoureux. N'hésitez pas à les s
216olliciter en cas d'allergie."})]})}),v.jsx(Ke,{delay:.1,children:v.jsxs("div",{className:"mt-12",children:[v.jsx("div",{className:"relative overflow-hidden rounded-2xl border-4 border-[#111111]",children:v.jsx("img",{src:fs.team,alt:"L'équipe Fresh Corner — avec le sourire",className:"w-full h-auto block"})}),v.jsxs("p",{className:"mt-4 font-mono text-xs uppercase tracking-widest text-[#111111]/50 font-bold",children:[v.jsx(tr,{}),"Six sourires, une équipe"]})]})}),v.jsx(Ke,{delay:.15,children:v.jsxs("div",{className:"mt-16 bg-[#111111] text-[#F9F9F7] p-6 sm:p-10 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-6 rounded-2xl",children:[v.jsxs("span",{className:"font-display font-black uppercase leading-[0.9]",style:{fontSize:"clamp(1.6rem, 5vw, 3rem)",letterSpacing:"-0.03em"},children:["Suivez-nous ",v.jsx("span",{className:"text-[#C7D95B]",children:"@freshcorner"})]}),v.jsx("a",{href:zt.instagram,target:"_blank",rel:"noreferrer",className:"bg-[#C7D95B] text-[#111111] px-6 py-3 font-body text-xs uppercase tracking-widest font-bold hover:bg-[#F9F9F7] hover:text-[#111111] transition-colors shrink-0",children:"Instagram →"})]})})]})]})}function CL(){return v.jsxs("section",{id:"contact",className:"bg-[#E22B1E] text-white relative overflow-hidden",children:[v.jsx(Li,{color:"#FFFFFF",opacity:.14}),v.jsxs("div",{className:"px-4 sm:px-8 py-20 sm:py-28 max-w-6xl mx-auto relative z-10",children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-white/70 font-bold",children:[v.jsx(tr,{}),"Contact"]}),v.jsx(Ke,{children:v.jsxs("h2",{className:"mt-4 font-display font-black uppercase leading-[0.82]",style:{fontSize:"clamp(3rem, 15vw, 12rem)",letterSpacing:"-0.05em"},children:["EAT",v.jsx("span",{className:"text-[#111111]",children:"."})," CHEZ",v.jsx("br",{}),"NOUS",v.jsx("span",{className:"text-[#111111]",children:"."})]})}),v.jsx("div",{className:"mt-12 max-w-xl",children:v.jsx(Ke,{delay:.1,children:v.jsxs("div",{className:"space-y-8",children:[v.jsx(Dl,{icon:v.jsx(ME,{className:"w-6 h-6"}),label:"Adresse",value:zt.address,href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(zt.address)}`}),v.jsx(Dl,{icon:v.jsx(UE,{className:"w-6 h-6"}),label:"Téléphone",value:zt.phone,href:`tel:${zt.phone.replace(/\s/g,"")}`}),v.jsx(Dl,{icon:v.jsx(LE,{className:"w-6 h-6"}),label:"E-mail",value:zt.email,href:`mailto:${zt.email}`}),v.jsx(Dl,{icon:v.jsx(wE,{className:"w-6 h-6"}),label:"Horaires",value:zt.hours}),v.jsx("a",{href:`tel:${zt.phone.replace(/\s/g,"")}`,className:"inline-block bg-white text-[#E22B1E] px-8 py-4 font-body text-sm uppercase tracking-widest font-bold hover:bg-[#111111] hover:text-white transition-colors rounded-full",children:"Appeler maintenant"})]})})})]})]})}function Dl({icon:t,label:e,value:n,href:i}){const a=v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"bg-white text-[#E22B1E] p-2 shrink-0 rounded-lg pointer-events-none",children:t}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("div",{className:"font-mono text-xs uppercase tracking-widest text-white/60 font-bold",children:e}),v.jsx("div",{className:"font-display font-black text-2xl sm:text-3xl uppercase leading-tight break-words",children:n})]})]});return i?v.jsx("a",{href:i,target:i.startsWith("http")?"_blank":void 0,rel:i.startsWith("http")?"noopener noreferrer":void 0,className:"flex items-start gap-4 border-b-2 border-white/20 pb-5 transition-colors hover:border-white/60 hover:bg-white/5",children:a}):v.jsx("div",{className:"flex items-start gap-4 border-b-2 border-white/20 pb-5",children:a})}function TL(){return v.jsxs("footer",{className:"bg-[#111111] text-[#F9F9F7] relative overflow-hidden",children:[v.jsx(Li,{color:"#FFFFFF",opacity:.07}),v.jsxs("div",{className:"px-4 sm:px-8 py-16 max-w-6xl mx-auto relative z-10",children:[v.jsx(Ke,{children:v.jsxs("div",{className:"grid md:grid-cols-3 gap-10",children:[v.jsxs("div",{children:[v.jsx("img",{src:uu,alt:"Fresh Corner",className:"h-12 w-auto rounded-md"}),v.jsx("p",{className:"mt-4 font-display font-black uppercase text-2xl leading-tight",children:"Fresh Corner SA"}),v.jsx("p",{className:"mt-2 font-body text-sm text-[#F9F9F7]/60",children:"Place de la Gare 10 | 3960 Sierre"})]}),v.jsxs("div",{children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#C7D95B] font-bold",children:[v.jsx(tr,{}),"Navigation"]}),v.jsx("ul",{className:"mt-4 space-y-2",children:[{l:"Carte",h:"#carte"},{l:"Équipe",h:"#equipe"},{l:"Contact",h:"#contact"}].map(t=>v.jsx("li",{children:v.jsx("a",{href:t.h,className:"font-display font-black uppercase text-xl hover:text-[#C7D95B] transition-colors",children:t.l})},t.h))})]}),v.jsxs("div",{children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#E22B1E] font-bold",children:[v.jsx(tr,{}),"Contact"]}),v.jsxs("ul",{className:"mt-4 space-y-2 font-body text-sm text-[#F9F9F7]/80",children:[v.jsx("li",{children:v.jsx("a",{href:`mailto:${zt.email}`,className:"hover:text-white",children:zt.email})}),v.jsx("li",{children:v.jsx("a",{href:`tel:${zt.phone.replace(/\s/g,"")}`,className:"hover:text-white",children:zt.phone})}),v.jsx("li",{children:zt.hours})]})]})]})}),v.jsx(Ke,{delay:.1,children:v.jsxs("div",{className:"mt-12 pt-6 border-t border-[#F9F9F7]/15 flex flex-col sm:flex-row gap-3 justify-between items-start sm:items-center",children:[v.jsxs("span",{className:"font-body text-xs uppercase tracking-widest font-bold text-[#F9F9F7]/40",children:["© 2026 Fresh Corner · Fait par"," ",v.jsx("a",{href:"https://smafe.ch",target:"_blank",rel:"noopener noreferrer",className:"text-[#C7D95B] hover:text-white transition-colors",children:"smafe.ch"})," ","avec ",v.jsx("span",{className:"text-[#E22B1E]",children:"<3"})]}),v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#F9F9F7]/40 flex flex-wrap gap-x-3 gap-y-1",children:[v.jsx(Yl,{to:"/mentions-legales",className:"hover:text-[#C7D95B] transition-colors",children:"Mentions légales"}),v.jsx("span",{className:"text-[#F9F9F7]/20",children:"·"}),v.jsx(Yl,{to:"/protection-des-donnees",className:"hover:text-[#C7D95B] transition-colors",children:"Protection des données"})]})]})}),v.jsx(Ke,{delay:.15,children:v.jsx("div",{className:"mt-10 flex justify-center",children:v.jsx("img",{src:uu,alt:"Fresh Corner",className:"h-10 w-auto opacity-90"})})})]})]})}function PL({text:t="Des pauses gourmandes 100% maison."}){const n=(t.endsWith(".")?t.slice(0,-1):t).split("100%");return v.jsxs("section",{className:"relative overflow-hidden bg-[#F9F9F7] border-y-4 border-[#111111] py-16 sm:py-20",children:[v.jsx(Li,{color:"#111111",opacity:.12}),v.jsx(Ke,{children:v.jsxs("div",{className:"relative z-10 px-4 sm:px-8 max-w-6xl mx-auto text-center",children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#111111]/70 font-bold",children:[v.jsx(tr,{}),"LeFreshCorner"]}),v.jsxs("h2",{className:"mt-3 font-display font-black uppercase text-[#111111] leading-[0.9]",style:{fontSize:"clamp(1.8rem, 6vw, 4rem)",letterSpacing:"-0.04em"},children:[n.map((i,a)=>v.jsxs("span",{children:[i,a<n.length-1&&v.jsx("span",{className:"text-[#C7D95B]",children:"100%"})]},a)),t.endsWith(".")&&v.jsx(ha,{})]})]})})]})}function RL(){const t=[...u0,...u0];return v.jsxs("section",{id:"partenaires",className:"bg-[#F9F9F7] py-16 sm:py-24 border-t-4 border-[#111111] relative",children:[v.jsxs("div",{className:"px-4 sm:px-8 max-w-6xl mx-auto relative z-10",children:[v.jsxs(Ke,{children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#E22B1E] font-bold",children:[v.jsx(tr,{}),"Locaux"]}),v.jsx("h3",{className:"mt-4 font-display font-black uppercase text-[#111111] leading-[0.9]",style:{fontSize:"clamp(1.8rem, 6vw, 4rem)",letterSpacing:"-0.04em"},children:"Nos partenaires locaux"})]}),v.jsx(Ke,{delay:.05,children:v.jsx("p",{className:"mt-5 font-body text-base sm:text-lg leading-relaxed text-[#111111]/80 max-w-3xl",children:"Chez Fresh Corner, nous avons à cœur de soutenir les producteurs locaux. Chaque jour, nos partenaires de la région nous livrent des ingrédients frais et de qualité, sélectionnés avec soin. Des viennoiseries aux plats cuisinés, chacune de nos recettes met en valeur le meilleur de nos fournisseurs locaux, pour vous garantir des saveurs authentiques, jour après jour."})})]}),v.jsx(Ke,{delay:.1,children:v.jsx("div",{className:"mt-12 relative overflow-hidden",children:v.jsx("div",{className:"flex gap-6 sm:gap-10 px-4 sm:px-8",style:{animation:"fcscroll 45s linear infinite",width:"max-content"},children:t.map((e,n)=>v.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"shrink-0 w-[200px] sm:w-[240px] aspect-[350/215] bg-white rounded-2xl border-2 border-[#111111] flex items-center justify-center p-4 hover:border-[#C7D95B] transition-colors",children:e.image?v.jsx("img",{src:e.image,alt:e.name,className:"max-h-full max-w-full object-contain",loading:"lazy"}):v.jsx("span",{className:"font-display font-black uppercase text-[#111111] text-center leading-tight",style:{fontSize:"clamp(1rem, 2vw, 1.4rem)",letterSpacing:"-0.02em"},children:e.name})},n))})})})]})}function AL(){return v.jsxs("div",{className:"bg-[#F9F9F7]",children:[v.jsx(uL,{}),v.jsxs("main",{children:[v.jsx(fL,{}),v.jsx(mL,{}),v.jsx(PL,{}),v.jsx(EL,{}),v.jsx(kL,{}),v.jsx(RL,{}),v.jsx(CL,{})]}),v.jsx(TL,{})]})}function Wx({title:t,kicker:e,children:n}){return v.jsxs("div",{className:"min-h-screen bg-[#F9F9F7] text-[#111111]",children:[v.jsx("header",{className:"sticky top-0 z-40 bg-[#111111] text-[#F9F9F7] border-b-2 border-[#C7D95B]",children:v.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-8 h-16 flex items-center justify-between",children:[v.jsx(Yl,{to:"/",className:"flex items-center gap-3",children:v.jsx("img",{src:Ux,alt:"Fresh Corner",className:"h-9 w-auto rounded-md"})}),v.jsxs(Yl,{to:"/",className:"flex items-center gap-2 bg-[#C7D95B] text-[#111111] px-4 py-2 font-body text-xs uppercase tracking-widest font-bold rounded-full hover:bg-white transition-colors",children:[v.jsx(hE,{className:"w-4 h-4"}),"Retour"]}
216)]})}),v.jsxs("main",{className:"max-w-4xl mx-auto px-4 sm:px-8 py-16 sm:py-24",children:[v.jsxs(Ke,{children:[v.jsxs("span",{className:"font-mono text-xs uppercase tracking-widest text-[#E22B1E] font-bold",children:["// ",e]}),v.jsx("h1",{className:"mt-3 font-display font-black uppercase leading-[0.9] text-[#111111]",style:{fontSize:"clamp(2.2rem, 6vw, 4.5rem)",letterSpacing:"-0.04em"},children:t})]}),v.jsx(Ke,{delay:.1,children:v.jsx("div",{className:"mt-10",children:n})})]})]})}function ht({title:t,children:e}){return v.jsxs("section",{className:"mt-10 first:mt-0",children:[v.jsx("h2",{className:"font-display font-black uppercase text-lg sm:text-xl text-[#111111] tracking-tight",children:t}),v.jsx("div",{className:"mt-3 space-y-3 font-body text-sm sm:text-base leading-relaxed text-[#111111]/80",children:e})]})}function NL(){return v.jsxs(Wx,{title:"Mentions légales",kicker:"Mentions légales",children:[v.jsx(ht,{title:"Éditeur",children:v.jsxs("p",{children:[v.jsx("strong",{className:"text-[#111111]",children:"Fresh Corner SA"}),v.jsx("br",{}),"Place de la Gare 10",v.jsx("br",{}),"3960 Sierre",v.jsx("br",{}),"tél : 027 565 52 52",v.jsx("br",{}),"e-mail : [email protected]"]})}),v.jsxs(ht,{title:"Politique de confidentialité",children:[v.jsx("p",{children:"Ce site utilise des cookies ainsi que Google Analytics. Les cookies sont des fichiers enregistrés durablement ou temporairement dans votre ordinateur lors de la visite de ce site. L'objectif des cookies est tout particulièrement l'analyse de l'utilisation de ce site internet à des fins de statistiques."}),v.jsx("p",{children:"Ceux-ci servent également à améliorer continuellement sa qualité. Vous pouvez désactiver totalement ou partiellement les cookies en effectuant les réglages correspondants dans votre navigateur. En cas de désactivation des cookies, il se peut que toutes les fonctions de ce site Internet ne soient plus disponibles."}),v.jsx("p",{children:"L'utilisation de ces données repose sur votre consentement. Vous pouvez à tout moment accepter, modifier vos préférences, ou refuser. Vous pouvez également empêcher l'enregistrement de cookies sur votre disque dur en ajustant les paramètres correspondants dans votre navigateur internet. Si vous consentez à la collecte de ces données, elles seront conservées pour une durée de 13 mois maximum. À l'issue de ce délai, votre consentement vous sera à nouveau demandé."})]}),v.jsxs(ht,{title:"Crédits Photos",children:[v.jsx("p",{children:"Les photos publiées sur le site proviennent de :"}),v.jsx("p",{children:"shutterstock.com | envato.com | pexels.ch | Fresh Corner SA"})]}),v.jsx(ht,{title:"Création du site",children:v.jsxs("p",{children:["Fait par"," ",v.jsx("a",{href:"https://smafe.ch",target:"_blank",rel:"noopener noreferrer",className:"text-[#E22B1E] font-bold hover:underline",children:"smafe.ch"})," ","avec ",v.jsx("span",{className:"text-[#E22B1E]",children:"<3"})]})})]})}function jL(){return v.jsxs(Wx,{title:"Protection des données",kicker:"Protection des données",children:[v.jsx("p",{className:"font-body text-sm sm:text-base leading-relaxed text-[#111111]/80",children:"Déclaration relative à la protection des données"}),v.jsxs(ht,{title:"1. Champ d'application",children:[v.jsx("p",{children:"La présente déclaration de protection des données informe les visiteurs du site internet sur la manière dont leur
216s données personnelles sont collectées et traitées dans le cadre :"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"de la consultation du site internet ;"}),v.jsx("li",{children:"de l'utilisation des formulaires de contact ou de demande ;"}),v.jsx("li",{children:"de la prise de rendez-vous ;"}),v.jsx("li",{children:"de l'inscription à des newsletters ou communications commerciales ;"}),v.jsx("li",{children:"de la fourniture de produits ou services ainsi que des relations contractuelles ou précontractuelles ;"}),v.jsx("li",{children:"de l'utilisation d'outils d'analyse, de sécurité et de fonctionnalités techniques."})]})]}),v.jsxs(ht,{title:"2. Responsable du traitement",children:[v.jsx("p",{children:"Le responsable du traitement des données personnelles est :"}),v.jsxs("p",{children:[v.jsx("strong",{className:"text-[#111111]",children:"Fresh Corner SA"}),v.jsx("br",{}),"Place de la Gare 10",v.jsx("br",{}),"3960 Sierre",v.jsx("br",{}),"tél : 027 565 52 52",v.jsx("br",{}),"e-mail : [email protected]"]}),v.jsx("p",{children:"Pour toute question relative à la protection des données, vous pouvez nous contacter aux coordonnées ci-dessus."})]}),v.jsxs(ht,{title:"3. Données personnelles traitées",children:[v.jsx("p",{children:"Nous traitons notamment les données que vous nous transmettez directement, telles que :"}),v.jsx("p",{className:"font-bold text-[#111111]",children:"3.1 Données fournies volontairement"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"nom, prénom ou raison sociale ;"}),v.jsx("li",{children:"coordonnées (adresse, numéro de téléphone, adresse e-mail) ;"}),v.jsx("li",{children:"contenus transmis via les formulaires ;"}),v.jsx("li",{children:"données liées aux demandes, réservations ou commandes ;"}),v.jsx("li",{children:"données de facturation et, le cas échéant, de livraison."})]}),v.jsx("p",{children:"Sauf demande explicite, nous vous recommandons de ne pas nous transmettre de données personnelles sensibles. Si de telles données sont communiquées, elles seront traitées conformément aux exigences légales applicables."}),v.jsx("p",{className:"font-bold text-[#111111]",children:"3.2 Données techniques et d'utilisation"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"adresse IP ;"}),v.jsx("li",{children:"données de navigation et d'interaction ;"}),v.jsx("li",{children:"type de navigateur, système d'exploitation, appareil utilisé ;"}),v.jsx("li",{children:"journaux de sécurité et données de prévention contre les abus ;"}),v.jsx("li",{children:"cookies et technologies similaires."})]}),v.jsx("p",{children:"Ces données contribuent notamment à garantir la sécurité et le bon fonctionnement du site."})]}),v.jsxs(ht,{title:"4. Finalités du traitement",children:[v.jsx("p",{children:"Les données personnelles sont traitées notamment pour les finalités suivantes :"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"exploitation, fonctionnement et sécurité du site internet ;"}),v.jsx("li",{children:"traitement des demandes envoyées via les formulaires ;"}),v.jsx("li",{children:"fourniture des prestations et exécution des contrats ;"}),v.jsx("li",{children:"fournir nos produits et services ;"}),v.jsx("li",{children:"gestion des commandes, réservations ou ventes en ligne ;"}),v.jsx("li",{children:"communication avec les clients et prospects ;"}),v.jsx("li",{children:"analyse statistique, amélioration des services et optimisation de l'expérience utilisateur ;"}),v.jsx("li",{children:"respect des obligations légales et réglementaires."})]})]}),v.jsxs(ht,{title:"5. Bases légales du traitement",children:[v.jsx("p",{children:"Les traitements reposent, selon les cas, sur :"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"l'exécution d'un contrat ou de mesures précontractuelles ;"}),v.jsx("li",{children:"le respect d'obligations légales ;"}),v.jsx("li",{children:"le consentement de la personne concernée, lorsque requis ;"}),v.jsx("li",{children:"l'intérêt légitime du responsable du traitement, notamment pour la sécurité, le bon fonctionnement du site et l'amélioration des services."})]})]}),v.jsxs(ht,{title:"6. Google Analytics",children:[v.jsx("p",{children:"Ce site utilise Google Analytics, un service d'analyse web fourni par Google Ireland Limited. Google traite ces données en notre nom et selon nos instructions."}),v.jsx("p",{children:"Google Analytics utilise des cookies permettant d'analyser l'utilisation du site. Les informations générées (y compris l'adresse IP, généralement anonymisée) peuvent être transmises à des serveurs de Google, notamment aux États-Unis."}),v.jsx("p",{children:"Nous utilisons Google Analytics afin de :"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"comprendre comment les visiteurs utilisent notre site ;"}),v.jsx("li",{children:"établir des statistiques ;"}),v.jsx("li",{children:"améliorer nos contenus et services."})]}),v.jsx("p",{children:"Lorsque cela est requis, votre consentement est demandé via le bandeau de gestion des cookies."}),v.jsx("p",{children:"Vous pouvez empêcher l'enregistrement des cookies en configurant votre navigateur ou en utilisant les outils proposés par Google."})]}),v.jsxs(ht,{title:"7. Cookies",children:[v.jsx("p",{children:"Le site utilise des cookies nécessaires à son fonctionnement ainsi que, le cas échéant, des cookies de mesure d'audience ou de fonctionnalités."}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"Les co
216okies strictement nécessaires reposent sur notre intérêt légitime."}),v.jsx("li",{children:"Les autres cookies sont utilisés uniquement avec votre consentement, que vous pouvez retirer à tout moment."})]})]}),v.jsxs(ht,{title:"8. Transmission des données et sous-traitants",children:[v.jsx("p",{children:"Les données personnelles peuvent être transmises à des prestataires intervenant notamment pour :"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"l'hébergement du site ;"}),v.jsx("li",{children:"la maintenance technique ;"}),v.jsx("li",{children:"la sécurité informatique ;"}),v.jsx("li",{children:"l'analyse statistique ;"}),v.jsx("li",{children:"les services de communication ;"}),v.jsx("li",{children:"le traitement des paiements, le cas échéant."})]}),v.jsx("p",{children:"Ces destinataires traitent les données uniquement dans le cadre de leurs missions et conformément aux exigences légales applicables."})]}),v.jsxs(ht,{title:"9. Transferts internationaux",children:[v.jsx("p",{children:"Certains prestataires peuvent traiter des données dans des pays situés hors de Suisse ou de l'Espace économique européen."}),v.jsx("p",{children:"Lorsque ces pays ne garantissent pas un niveau de protection équivalent, nous mettons en place des garanties appropriées, telles que les clauses contractuelles types reconnues par les autorités compétentes."})]}),v.jsxs(ht,{title:"10. Durée de conservation",children:[v.jsx("p",{children:"Les données personnelles sont conservées :"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"pendant la durée nécessaire à la réalisation des finalités poursuivies ;"}),v.jsx("li",{children:"pendant la durée de la relation contractuelle ou commerciale ;"}),v.jsx("li",{children:"puis supprimées conformément aux obligations légales."})]}),v.jsx("p",{children:"Certaines données peuvent être conservées jusqu'à 10 ans, notamment afin de respecter les obligations légales en matière comptable et commerciale."})]}),v.jsxs(ht,{title:"11. Sécurité des données",children:[v.jsx("p",{children:"Des mesures techniques et organisationnelles appropriées sont mises en œuvre afin de protéger les données personnelles contre tout accès non autorisé, perte, modification ou divulgation."}),v.jsx("p",{children:"Nous veillons à ne traiter que les données personnelles nécessaires aux finalités poursuivies."})]}),v.jsxs(ht,{title:"12. Droits des personnes concernées",children:[v.jsx("p",{children:"Toute personne concernée dispose notamment des droits suivants, dans les limites prévues par la loi :"}),v.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[v.jsx("li",{children:"droit d'accès ;"}),v.jsx("li",{children:"droit de rectification ;"}),v.jsx("li",{children:"droit à l'effacement ;"}),v.jsx("li",{children:"droit à la limitation du traitement ;"}),v.jsx("li",{children:"droit d'opposition ;"}),v.jsx("li",{children:"droit à la portabilité, lorsque applicable."})]}),v.jsx("p",{children:"Nous vous invitons à nous contacter en priorité afin que nous puissions répondre à votre demande dans les meilleurs délais. Vous disposez par ailleurs des droits prévus par la législation applicable et pouvez, le cas échéant, vous adresser à l'autorité de contrôle compétente."})]}),v.jsxs(ht,{title:"13. Liens vers des sites tiers",children:[v.jsx("p",{children:"Le site peut contenir des liens vers des sites internet de tiers."}),v.jsx("p",{children:"Le responsable du traitement n'exerce aucun contrôle sur ces sites et décline toute responsabilité quant à leurs contenus ou pratiques en matière de protection des données."})]}),v.jsxs(ht,{title:"14. Mise à jour",children:[v.jsx("p",{children:"La présente déclaration de protection des données peut être modifiée à tout moment afin de refléter les évolutions légales, réglementaires ou techniques."}),v.jsx("p",{children:"La version publiée sur le site fait foi."}),v.jsx("p",{children:"Les outils, services et technologies effectivement utilisés peuvent varier selon la configuration du site et les choix du responsable du traitement."}),v.jsx("p",{className:"mt-4 font-mono text-xs uppercase tracking-widest text-[#111111]/50",children:"Version 01.01.2026 · Version 1.0.0 du 01.09.2023"})]})]})}const OL=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:n,navigateToLogin:i}=jA();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(OA,{});if(n.type==="auth_required")return i(),null}return v.jsxs(vC,{children:[v.jsx(To,{path:"/",element:v.jsx(AL,{})}),v.jsx(To,{path:"/mentions-legales",element:v.jsx(NL,{})}),v.jsx(To,{path:"/protection-des-donnees",element:v.jsx(jL,{})}),v.jsx(To,{path:"*",element:v.jsx(AA,{})})]})};function LL(){return v.jsx(NA,{children:v.jsxs(dk,{client:_k,children:[v.jsxs(kC,{children:[v.jsx(DA,{}),v.jsx(OL,{})]}),v.jsx(B_,{})]})})}tE.createRoot(document.getElementById("root")).render(v.jsx(LL,{}));

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.