@weconjs/core 1.2.3 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +460 -259
- package/dist/config.d.ts +7 -7
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +21 -43
- package/dist/config.js.map +1 -1
- package/dist/devtools/controllers/i18n.controller.d.ts +1 -1
- package/dist/devtools/controllers/i18n.controller.d.ts.map +1 -1
- package/dist/devtools/controllers/i18n.controller.js +19 -10
- package/dist/devtools/controllers/i18n.controller.js.map +1 -1
- package/dist/devtools/index.d.ts.map +1 -1
- package/dist/devtools/index.js +2 -0
- package/dist/devtools/index.js.map +1 -1
- package/dist/i18n/index.d.ts +13 -30
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +15 -91
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/loader.d.ts +58 -0
- package/dist/i18n/loader.d.ts.map +1 -0
- package/dist/i18n/loader.js +97 -0
- package/dist/i18n/loader.js.map +1 -0
- package/dist/i18n/middleware.d.ts +39 -0
- package/dist/i18n/middleware.d.ts.map +1 -0
- package/dist/i18n/middleware.js +75 -0
- package/dist/i18n/middleware.js.map +1 -0
- package/dist/i18n/utils.d.ts +31 -0
- package/dist/i18n/utils.d.ts.map +1 -0
- package/dist/i18n/utils.js +46 -0
- package/dist/i18n/utils.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/module.d.ts +10 -0
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +25 -0
- package/dist/module.js.map +1 -1
- package/dist/server/banner.d.ts +1 -0
- package/dist/server/banner.d.ts.map +1 -1
- package/dist/server/banner.js +13 -2
- package/dist/server/banner.js.map +1 -1
- package/dist/server/index.d.ts +7 -3
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +20 -12
- package/dist/server/index.js.map +1 -1
- package/dist/types.d.ts +15 -13
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/devtools/client/assets/CopyButton-DIdtJD4_.js +0 -6
- package/dist/devtools/client/assets/ModuleDetail-Dx6eU87l.js +0 -1
- package/dist/devtools/client/assets/TranslationEditor-Bj654a_E.js +0 -11
- package/dist/devtools/client/assets/chevron-right-E9DzkOHY.js +0 -6
- package/dist/devtools/client/assets/copy-BvbhBv2y.js +0 -6
- package/dist/devtools/client/assets/index-B42p6IVr.js +0 -6
- package/dist/devtools/client/assets/index-CSkGspzD.js +0 -1
- package/dist/devtools/client/assets/index-CnAObNgT.js +0 -16
- package/dist/devtools/client/assets/index-CwJHaaYT.css +0 -1
- package/dist/devtools/client/assets/index-Dfe66IW7.js +0 -1
- package/dist/devtools/client/assets/index-DoHRi03N.js +0 -201
- package/dist/devtools/client/assets/index-DvvGoEUv.js +0 -1
- package/dist/devtools/client/assets/loader-circle-DoOjJ8vr.js +0 -6
- package/dist/devtools/client/assets/plus-Ca-xq8y8.js +0 -6
- package/dist/devtools/client/assets/save-CV1xmSXO.js +0 -11
- package/dist/devtools/client/assets/search-CpTZ4fXm.js +0 -6
- package/dist/devtools/client/index.html +0 -15
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B42p6IVr.js","./loader-circle-DoOjJ8vr.js","./index-Dfe66IW7.js","./chevron-right-E9DzkOHY.js","./ModuleDetail-Dx6eU87l.js","./CopyButton-DIdtJD4_.js","./copy-BvbhBv2y.js","./save-CV1xmSXO.js","./index-CnAObNgT.js","./index-DvvGoEUv.js","./plus-Ca-xq8y8.js","./TranslationEditor-Bj654a_E.js","./search-CpTZ4fXm.js","./index-CSkGspzD.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function Zg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eh={exports:{}},io={},Th={exports:{}},I={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Ci=Symbol.for("react.element"),tv=Symbol.for("react.portal"),nv=Symbol.for("react.fragment"),rv=Symbol.for("react.strict_mode"),iv=Symbol.for("react.profiler"),sv=Symbol.for("react.provider"),ov=Symbol.for("react.context"),lv=Symbol.for("react.forward_ref"),av=Symbol.for("react.suspense"),uv=Symbol.for("react.memo"),cv=Symbol.for("react.lazy"),Ec=Symbol.iterator;function fv(e){return e===null||typeof e!="object"?null:(e=Ec&&e[Ec]||e["@@iterator"],typeof e=="function"?e:null)}var Ch={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ph=Object.assign,kh={};function pr(e,t,n){this.props=e,this.context=t,this.refs=kh,this.updater=n||Ch}pr.prototype.isReactComponent={};pr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};pr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rh(){}Rh.prototype=pr.prototype;function za(e,t,n){this.props=e,this.context=t,this.refs=kh,this.updater=n||Ch}var Ua=za.prototype=new Rh;Ua.constructor=za;Ph(Ua,pr.prototype);Ua.isPureReactComponent=!0;var Tc=Array.isArray,Ah=Object.prototype.hasOwnProperty,ba={current:null},_h={key:!0,ref:!0,__self:!0,__source:!0};function Oh(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Ah.call(t,r)&&!_h.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Ci,type:e,key:s,ref:o,props:i,_owner:ba.current}}function dv(e,t){return{$$typeof:Ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $a(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ci}function hv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Cc=/\/+/g;function jo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hv(""+e.key):t.toString(36)}function ls(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ci:case tv:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+jo(o,0):r,Tc(i)?(n="",e!=null&&(n=e.replace(Cc,"$&/")+"/"),ls(i,t,n,"",function(u){return u})):i!=null&&($a(i)&&(i=dv(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Cc,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Tc(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+jo(s,l);o+=ls(s,t,n,a,i)}else if(a=fv(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+jo(s,l++),o+=ls(s,t,n,a,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Bi(e,t,n){if(e==null)return e;var r=[],i=0;return ls(e,r,"","",function(s){return t.call(n,s,i++)}),r}function pv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},as={transition:null},mv={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:as,ReactCurrentOwner:ba};function Lh(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:Bi,forEach:function(e,t,n){Bi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Bi(e,function(){t++}),t},toArray:function(e){return Bi(e,function(t){return t})||[]},only:function(e){if(!$a(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=pr;I.Fragment=nv;I.Profiler=iv;I.PureComponent=za;I.StrictMode=rv;I.Suspense=av;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mv;I.act=Lh;I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ph({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=ba.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Ah.call(t,a)&&!_h.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ci,type:e.type,key:i,ref:s,props:r,_owner:o}};I.createContext=function(e){return e={$$typeof:ov,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sv,_context:e},e.Consumer=e};I.createElement=Oh;I.createFactory=function(e){var t=Oh.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:lv,render:e}};I.isValidElement=$a;I.lazy=function(e){return{$$typeof:cv,_payload:{_status:-1,_result:e},_init:pv}};I.memo=function(e,t){return{$$typeof:uv,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=as.transition;as.transition={};try{e()}finally{as.transition=t}};I.unstable_act=Lh;I.useCallback=function(e,t){return Pe.current.useCallback(e,t)};I.useContext=function(e){return Pe.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};I.useEffect=function(e,t){return Pe.current.useEffect(e,t)};I.useId=function(){return Pe.current.useId()};I.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return Pe.current.useMemo(e,t)};I.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};I.useRef=function(e){return Pe.current.useRef(e)};I.useState=function(e){return Pe.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return Pe.current.useTransition()};I.version="18.3.1";Th.exports=I;var S=Th.exports;const Dr=ev(S),yv=Zg({__proto__:null,default:Dr},[S]);/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var gv=S,vv=Symbol.for("react.element"),wv=Symbol.for("react.fragment"),xv=Object.prototype.hasOwnProperty,Sv=gv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ev={key:!0,ref:!0,__self:!0,__source:!0};function Dh(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)xv.call(t,r)&&!Ev.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:vv,type:e,key:s,ref:o,props:i,_owner:Sv.current}}io.Fragment=wv;io.jsx=Dh;io.jsxs=Dh;Eh.exports=io;var A=Eh.exports,Mh={exports:{}},We={},Nh={exports:{}},jh={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/(function(e){function t(_,M){var V=_.length;_.push(M);e:for(;0<V;){var B=V-1>>>1,b=_[B];if(0<i(b,M))_[B]=M,_[V]=b,V=B;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var M=_[0],V=_.pop();if(V!==M){_[0]=V;e:for(var B=0,b=_.length,Lt=b>>>1;B<Lt;){var Ke=2*(B+1)-1,Ln=_[Ke],sn=Ke+1,Fi=_[sn];if(0>i(Ln,V))sn<b&&0>i(Fi,Ln)?(_[B]=Fi,_[sn]=V,B=sn):(_[B]=Ln,_[Ke]=V,B=Ke);else if(sn<b&&0>i(Fi,V))_[B]=Fi,_[sn]=V,B=sn;else break e}}return M}function i(_,M){var V=_.sortIndex-M.sortIndex;return V!==0?V:_.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,d=3,g=!1,m=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=_)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function x(_){if(v=!1,y(_),!m)if(n(a)!==null)m=!0,se(E);else{var M=n(u);M!==null&&Y(x,M.startTime-_)}}function E(_,M){m=!1,v&&(v=!1,h(P),P=-1),g=!0;var V=d;try{for(y(M),f=n(a);f!==null&&(!(f.expirationTime>M)||_&&!ee());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var b=B(f.expirationTime<=M);M=e.unstable_now(),typeof b=="function"?f.callback=b:f===n(a)&&r(a),y(M)}else r(a);f=n(a)}if(f!==null)var Lt=!0;else{var Ke=n(u);Ke!==null&&Y(x,Ke.startTime-M),Lt=!1}return Lt}finally{f=null,d=V,g=!1}}var C=!1,k=null,P=-1,j=5,L=-1;function ee(){return!(e.unstable_now()-L<j)}function je(){if(k!==null){var _=e.unstable_now();L=_;var M=!0;try{M=k(!0,_)}finally{M?Ve():(C=!1,k=null)}}else C=!1}var Ve;if(typeof p=="function")Ve=function(){p(je)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,Sr=Ie.port2;Ie.port1.onmessage=je,Ve=function(){Sr.postMessage(null)}}else Ve=function(){w(je,0)};function se(_){k=_,C||(C=!0,Ve())}function Y(_,M){P=w(function(){_(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_continueExecution=function(){m||g||(m=!0,se(E))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var V=d;d=M;try{return _()}finally{d=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,M){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=d;d=_;try{return M()}finally{d=V}},e.unstable_scheduleCallback=function(_,M,V){var B=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?B+V:B):V=B,_){case 1:var b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=V+b,_={id:c++,callback:M,priorityLevel:_,startTime:V,expirationTime:b,sortIndex:-1},V>B?(_.sortIndex=V,t(u,_),n(a)===null&&_===n(u)&&(v?(h(P),P=-1):v=!0,Y(x,V-B))):(_.sortIndex=b,t(a,_),m||g||(m=!0,se(E))),_},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(_){var M=d;return function(){var V=d;d=M;try{return _.apply(this,arguments)}finally{d=V}}}})(jh);Nh.exports=jh;var Tv=Nh.exports;/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Cv=S,be=Tv;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Vh=new Set,Zr={};function Rn(e,t){nr(e,t),nr(e+"Capture",t)}function nr(e,t){for(Zr[e]=t,e=0;e<t.length;e++)Vh.add(t[e])}var Pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cl=Object.prototype.hasOwnProperty,Pv=/^[: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]*$/,Pc={},kc={};function kv(e){return Cl.call(kc,e)?!0:Cl.call(Pc,e)?!1:Pv.test(e)?kc[e]=!0:(Pc[e]=!0,!1)}function Rv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Av(e,t,n,r){if(t===null||typeof t>"u"||Rv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new ke(e,2,!1,e,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(e){pe[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wa=/[\-:]([a-z])/g;function Ha(e){return e[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(e){var t=e.replace(Wa,Ha);pe[t]=new ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wa,Ha);pe[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wa,Ha);pe[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ka(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Av(t,n,i,r)&&(n=null),r||i===null?kv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ot=Cv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zi=Symbol.for("react.element"),Mn=Symbol.for("react.portal"),Nn=Symbol.for("react.fragment"),Ga=Symbol.for("react.strict_mode"),Pl=Symbol.for("react.profiler"),Ih=Symbol.for("react.provider"),Fh=Symbol.for("react.context"),Qa=Symbol.for("react.forward_ref"),kl=Symbol.for("react.suspense"),Rl=Symbol.for("react.suspense_list"),Xa=Symbol.for("react.memo"),Nt=Symbol.for("react.lazy"),Bh=Symbol.for("react.offscreen"),Rc=Symbol.iterator;function Er(e){return e===null||typeof e!="object"?null:(e=Rc&&e[Rc]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,Vo;function Mr(e){if(Vo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vo=t&&t[1]||""}return`
|
|
35
|
-
`+Vo+e}var Io=!1;function Fo(e,t){if(!e||Io)return"";Io=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
36
|
-
`),s=r.stack.split(`
|
|
37
|
-
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
|
|
38
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Io=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function _v(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=Fo(e.type,!1),e;case 11:return e=Fo(e.type.render,!1),e;case 1:return e=Fo(e.type,!0),e;default:return""}}function Al(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nn:return"Fragment";case Mn:return"Portal";case Pl:return"Profiler";case Ga:return"StrictMode";case kl:return"Suspense";case Rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fh:return(e.displayName||"Context")+".Consumer";case Ih:return(e._context.displayName||"Context")+".Provider";case Qa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xa:return t=e.displayName||null,t!==null?t:Al(e.type)||"Memo";case Nt:t=e._payload,e=e._init;try{return Al(e(t))}catch{}}return null}function Ov(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Al(t);case 8:return t===Ga?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lv(e){var t=zh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){e._valueTracker||(e._valueTracker=Lv(e))}function Uh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ks(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _l(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ac(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bh(e,t){t=t.checked,t!=null&&Ka(e,"checked",t,!1)}function Ol(e,t){bh(e,t);var n=Xt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ll(e,t.type,Xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _c(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ll(e,t,n){(t!=="number"||ks(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nr=Array.isArray;function qn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Dl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Oc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Nr(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xt(n)}}function $h(e,t){var n=Xt(t.value),r=Xt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Lc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wh(e){switch(e){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 Ml(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bi,Hh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(bi=bi||document.createElement("div"),bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ei(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zr={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},Dv=["Webkit","ms","Moz","O"];Object.keys(zr).forEach(function(e){Dv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zr[t]=zr[e]})});function Kh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zr.hasOwnProperty(e)&&zr[e]?(""+t).trim():t+"px"}function Gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Kh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Mv=q({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 Nl(e,t){if(t){if(Mv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function jl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vl=null;function qa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,Yn=null,Jn=null;function Dc(e){if(e=Ri(e)){if(typeof Il!="function")throw Error(R(280));var t=e.stateNode;t&&(t=uo(t),Il(e.stateNode,e.type,t))}}function Qh(e){Yn?Jn?Jn.push(e):Jn=[e]:Yn=e}function Xh(){if(Yn){var e=Yn,t=Jn;if(Jn=Yn=null,Dc(e),t)for(e=0;e<t.length;e++)Dc(t[e])}}function qh(e,t){return e(t)}function Yh(){}var Bo=!1;function Jh(e,t,n){if(Bo)return e(t,n);Bo=!0;try{return qh(e,t,n)}finally{Bo=!1,(Yn!==null||Jn!==null)&&(Yh(),Xh())}}function ti(e,t){var n=e.stateNode;if(n===null)return null;var r=uo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Fl=!1;if(Pt)try{var Tr={};Object.defineProperty(Tr,"passive",{get:function(){Fl=!0}}),window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{Fl=!1}function Nv(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ur=!1,Rs=null,As=!1,Bl=null,jv={onError:function(e){Ur=!0,Rs=e}};function Vv(e,t,n,r,i,s,o,l,a){Ur=!1,Rs=null,Nv.apply(jv,arguments)}function Iv(e,t,n,r,i,s,o,l,a){if(Vv.apply(this,arguments),Ur){if(Ur){var u=Rs;Ur=!1,Rs=null}else throw Error(R(198));As||(As=!0,Bl=u)}}function An(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Zh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Mc(e){if(An(e)!==e)throw Error(R(188))}function Fv(e){var t=e.alternate;if(!t){if(t=An(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Mc(i),e;if(s===r)return Mc(i),t;s=s.sibling}throw Error(R(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function ep(e){return e=Fv(e),e!==null?tp(e):null}function tp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=tp(e);if(t!==null)return t;e=e.sibling}return null}var np=be.unstable_scheduleCallback,Nc=be.unstable_cancelCallback,Bv=be.unstable_shouldYield,zv=be.unstable_requestPaint,ne=be.unstable_now,Uv=be.unstable_getCurrentPriorityLevel,Ya=be.unstable_ImmediatePriority,rp=be.unstable_UserBlockingPriority,_s=be.unstable_NormalPriority,bv=be.unstable_LowPriority,ip=be.unstable_IdlePriority,so=null,pt=null;function $v(e){if(pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(so,e,void 0,(e.current.flags&128)===128)}catch{}}var lt=Math.clz32?Math.clz32:Kv,Wv=Math.log,Hv=Math.LN2;function Kv(e){return e>>>=0,e===0?32:31-(Wv(e)/Hv|0)|0}var $i=64,Wi=4194304;function jr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Os(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=jr(l):(s&=o,s!==0&&(r=jr(s)))}else o=n&~i,o!==0?r=jr(o):s!==0&&(r=jr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lt(t),i=1<<n,r|=e[n],t&=~i;return r}function Gv(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Qv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-lt(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Gv(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function zl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sp(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function zo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function Xv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-lt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Ja(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var z=0;function op(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lp,Za,ap,up,cp,Ul=!1,Hi=[],Ut=null,bt=null,$t=null,ni=new Map,ri=new Map,Vt=[],qv="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 jc(e,t){switch(e){case"focusin":case"focusout":Ut=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function Cr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Ri(t),t!==null&&Za(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yv(e,t,n,r,i){switch(t){case"focusin":return Ut=Cr(Ut,e,t,n,r,i),!0;case"dragenter":return bt=Cr(bt,e,t,n,r,i),!0;case"mouseover":return $t=Cr($t,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ni.set(s,Cr(ni.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,ri.set(s,Cr(ri.get(s)||null,e,t,n,r,i)),!0}return!1}function fp(e){var t=fn(e.target);if(t!==null){var n=An(t);if(n!==null){if(t=n.tag,t===13){if(t=Zh(n),t!==null){e.blockedOn=t,cp(e.priority,function(){ap(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vl=r,n.target.dispatchEvent(r),Vl=null}else return t=Ri(n),t!==null&&Za(t),e.blockedOn=n,!1;t.shift()}return!0}function Vc(e,t,n){us(e)&&n.delete(t)}function Jv(){Ul=!1,Ut!==null&&us(Ut)&&(Ut=null),bt!==null&&us(bt)&&(bt=null),$t!==null&&us($t)&&($t=null),ni.forEach(Vc),ri.forEach(Vc)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ul||(Ul=!0,be.unstable_scheduleCallback(be.unstable_NormalPriority,Jv)))}function ii(e){function t(i){return Pr(i,e)}if(0<Hi.length){Pr(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ut!==null&&Pr(Ut,e),bt!==null&&Pr(bt,e),$t!==null&&Pr($t,e),ni.forEach(t),ri.forEach(t),n=0;n<Vt.length;n++)r=Vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vt.length&&(n=Vt[0],n.blockedOn===null);)fp(n),n.blockedOn===null&&Vt.shift()}var Zn=Ot.ReactCurrentBatchConfig,Ls=!0;function Zv(e,t,n,r){var i=z,s=Zn.transition;Zn.transition=null;try{z=1,eu(e,t,n,r)}finally{z=i,Zn.transition=s}}function e0(e,t,n,r){var i=z,s=Zn.transition;Zn.transition=null;try{z=4,eu(e,t,n,r)}finally{z=i,Zn.transition=s}}function eu(e,t,n,r){if(Ls){var i=bl(e,t,n,r);if(i===null)qo(e,t,r,Ds,n),jc(e,r);else if(Yv(i,e,t,n,r))r.stopPropagation();else if(jc(e,r),t&4&&-1<qv.indexOf(e)){for(;i!==null;){var s=Ri(i);if(s!==null&&lp(s),s=bl(e,t,n,r),s===null&&qo(e,t,r,Ds,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else qo(e,t,r,null,n)}}var Ds=null;function bl(e,t,n,r){if(Ds=null,e=qa(r),e=fn(e),e!==null)if(t=An(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ds=e,null}function dp(e){switch(e){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(Uv()){case Ya:return 1;case rp:return 4;case _s:case bv:return 16;case ip:return 536870912;default:return 16}default:return 16}}var Ft=null,tu=null,cs=null;function hp(){if(cs)return cs;var e,t=tu,n=t.length,r,i="value"in Ft?Ft.value:Ft.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return cs=i.slice(e,1<r?1-r:void 0)}function fs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ki(){return!0}function Ic(){return!1}function He(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ki:Ic,this.isPropagationStopped=Ic,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nu=He(mr),ki=q({},mr,{view:0,detail:0}),t0=He(ki),Uo,bo,kr,oo=q({},ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ru,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==kr&&(kr&&e.type==="mousemove"?(Uo=e.screenX-kr.screenX,bo=e.screenY-kr.screenY):bo=Uo=0,kr=e),Uo)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),Fc=He(oo),n0=q({},oo,{dataTransfer:0}),r0=He(n0),i0=q({},ki,{relatedTarget:0}),$o=He(i0),s0=q({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),o0=He(s0),l0=q({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),a0=He(l0),u0=q({},mr,{data:0}),Bc=He(u0),c0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f0={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"},d0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=d0[e])?!!t[e]:!1}function ru(){return h0}var p0=q({},ki,{key:function(e){if(e.key){var t=c0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?f0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ru,charCode:function(e){return e.type==="keypress"?fs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m0=He(p0),y0=q({},oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zc=He(y0),g0=q({},ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ru}),v0=He(g0),w0=q({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),x0=He(w0),S0=q({},oo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),E0=He(S0),T0=[9,13,27,32],iu=Pt&&"CompositionEvent"in window,br=null;Pt&&"documentMode"in document&&(br=document.documentMode);var C0=Pt&&"TextEvent"in window&&!br,pp=Pt&&(!iu||br&&8<br&&11>=br),Uc=" ",bc=!1;function mp(e,t){switch(e){case"keyup":return T0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function P0(e,t){switch(e){case"compositionend":return yp(t);case"keypress":return t.which!==32?null:(bc=!0,Uc);case"textInput":return e=t.data,e===Uc&&bc?null:e;default:return null}}function k0(e,t){if(jn)return e==="compositionend"||!iu&&mp(e,t)?(e=hp(),cs=tu=Ft=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return pp&&t.locale!=="ko"?null:t.data;default:return null}}var R0={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 $c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!R0[e.type]:t==="textarea"}function gp(e,t,n,r){Qh(r),t=Ms(t,"onChange"),0<t.length&&(n=new nu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $r=null,si=null;function A0(e){Ap(e,0)}function lo(e){var t=Fn(e);if(Uh(t))return e}function _0(e,t){if(e==="change")return t}var vp=!1;if(Pt){var Wo;if(Pt){var Ho="oninput"in document;if(!Ho){var Wc=document.createElement("div");Wc.setAttribute("oninput","return;"),Ho=typeof Wc.oninput=="function"}Wo=Ho}else Wo=!1;vp=Wo&&(!document.documentMode||9<document.documentMode)}function Hc(){$r&&($r.detachEvent("onpropertychange",wp),si=$r=null)}function wp(e){if(e.propertyName==="value"&&lo(si)){var t=[];gp(t,si,e,qa(e)),Jh(A0,t)}}function O0(e,t,n){e==="focusin"?(Hc(),$r=t,si=n,$r.attachEvent("onpropertychange",wp)):e==="focusout"&&Hc()}function L0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lo(si)}function D0(e,t){if(e==="click")return lo(t)}function M0(e,t){if(e==="input"||e==="change")return lo(t)}function N0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ut=typeof Object.is=="function"?Object.is:N0;function oi(e,t){if(ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Cl.call(t,i)||!ut(e[i],t[i]))return!1}return!0}function Kc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gc(e,t){var n=Kc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Kc(n)}}function xp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sp(){for(var e=window,t=ks();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ks(e.document)}return t}function su(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function j0(e){var t=Sp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xp(n.ownerDocument.documentElement,n)){if(r!==null&&su(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Gc(n,s);var o=Gc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var V0=Pt&&"documentMode"in document&&11>=document.documentMode,Vn=null,$l=null,Wr=null,Wl=!1;function Qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wl||Vn==null||Vn!==ks(r)||(r=Vn,"selectionStart"in r&&su(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&oi(Wr,r)||(Wr=r,r=Ms($l,"onSelect"),0<r.length&&(t=new nu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vn)))}function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var In={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionend:Gi("Transition","TransitionEnd")},Ko={},Ep={};Pt&&(Ep=document.createElement("div").style,"AnimationEvent"in window||(delete In.animationend.animation,delete In.animationiteration.animation,delete In.animationstart.animation),"TransitionEvent"in window||delete In.transitionend.transition);function ao(e){if(Ko[e])return Ko[e];if(!In[e])return e;var t=In[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ep)return Ko[e]=t[n];return e}var Tp=ao("animationend"),Cp=ao("animationiteration"),Pp=ao("animationstart"),kp=ao("transitionend"),Rp=new Map,Xc="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 Zt(e,t){Rp.set(e,t),Rn(t,[e])}for(var Go=0;Go<Xc.length;Go++){var Qo=Xc[Go],I0=Qo.toLowerCase(),F0=Qo[0].toUpperCase()+Qo.slice(1);Zt(I0,"on"+F0)}Zt(Tp,"onAnimationEnd");Zt(Cp,"onAnimationIteration");Zt(Pp,"onAnimationStart");Zt("dblclick","onDoubleClick");Zt("focusin","onFocus");Zt("focusout","onBlur");Zt(kp,"onTransitionEnd");nr("onMouseEnter",["mouseout","mouseover"]);nr("onMouseLeave",["mouseout","mouseover"]);nr("onPointerEnter",["pointerout","pointerover"]);nr("onPointerLeave",["pointerout","pointerover"]);Rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vr="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(" "),B0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vr));function qc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Iv(r,t,void 0,e),e.currentTarget=null}function Ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;qc(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;qc(i,l,u),s=a}}}if(As)throw e=Bl,As=!1,Bl=null,e}function $(e,t){var n=t[Xl];n===void 0&&(n=t[Xl]=new Set);var r=e+"__bubble";n.has(r)||(_p(t,e,2,!1),n.add(r))}function Xo(e,t,n){var r=0;t&&(r|=4),_p(n,e,r,t)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function li(e){if(!e[Qi]){e[Qi]=!0,Vh.forEach(function(n){n!=="selectionchange"&&(B0.has(n)||Xo(n,!1,e),Xo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qi]||(t[Qi]=!0,Xo("selectionchange",!1,t))}}function _p(e,t,n,r){switch(dp(t)){case 1:var i=Zv;break;case 4:i=e0;break;default:i=eu}n=i.bind(null,t,n,e),i=void 0,!Fl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function qo(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=fn(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}Jh(function(){var u=s,c=qa(n),f=[];e:{var d=Rp.get(e);if(d!==void 0){var g=nu,m=e;switch(e){case"keypress":if(fs(n)===0)break e;case"keydown":case"keyup":g=m0;break;case"focusin":m="focus",g=$o;break;case"focusout":m="blur",g=$o;break;case"beforeblur":case"afterblur":g=$o;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=r0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=v0;break;case Tp:case Cp:case Pp:g=o0;break;case kp:g=x0;break;case"scroll":g=t0;break;case"wheel":g=E0;break;case"copy":case"cut":case"paste":g=a0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=zc}var v=(t&4)!==0,w=!v&&e==="scroll",h=v?d!==null?d+"Capture":null:d;v=[];for(var p=u,y;p!==null;){y=p;var x=y.stateNode;if(y.tag===5&&x!==null&&(y=x,h!==null&&(x=ti(p,h),x!=null&&v.push(ai(p,x,y)))),w)break;p=p.return}0<v.length&&(d=new g(d,m,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==Vl&&(m=n.relatedTarget||n.fromElement)&&(fn(m)||m[kt]))break e;if((g||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,g?(m=n.relatedTarget||n.toElement,g=u,m=m?fn(m):null,m!==null&&(w=An(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(g=null,m=u),g!==m)){if(v=Fc,x="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=zc,x="onPointerLeave",h="onPointerEnter",p="pointer"),w=g==null?d:Fn(g),y=m==null?d:Fn(m),d=new v(x,p+"leave",g,n,c),d.target=w,d.relatedTarget=y,x=null,fn(c)===u&&(v=new v(h,p+"enter",m,n,c),v.target=y,v.relatedTarget=w,x=v),w=x,g&&m)t:{for(v=g,h=m,p=0,y=v;y;y=Dn(y))p++;for(y=0,x=h;x;x=Dn(x))y++;for(;0<p-y;)v=Dn(v),p--;for(;0<y-p;)h=Dn(h),y--;for(;p--;){if(v===h||h!==null&&v===h.alternate)break t;v=Dn(v),h=Dn(h)}v=null}else v=null;g!==null&&Yc(f,d,g,v,!1),m!==null&&w!==null&&Yc(f,w,m,v,!0)}}e:{if(d=u?Fn(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var E=_0;else if($c(d))if(vp)E=M0;else{E=L0;var C=O0}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=D0);if(E&&(E=E(e,u))){gp(f,E,n,c);break e}C&&C(e,d,u),e==="focusout"&&(C=d._wrapperState)&&C.controlled&&d.type==="number"&&Ll(d,"number",d.value)}switch(C=u?Fn(u):window,e){case"focusin":($c(C)||C.contentEditable==="true")&&(Vn=C,$l=u,Wr=null);break;case"focusout":Wr=$l=Vn=null;break;case"mousedown":Wl=!0;break;case"contextmenu":case"mouseup":case"dragend":Wl=!1,Qc(f,n,c);break;case"selectionchange":if(V0)break;case"keydown":case"keyup":Qc(f,n,c)}var k;if(iu)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else jn?mp(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(pp&&n.locale!=="ko"&&(jn||P!=="onCompositionStart"?P==="onCompositionEnd"&&jn&&(k=hp()):(Ft=c,tu="value"in Ft?Ft.value:Ft.textContent,jn=!0)),C=Ms(u,P),0<C.length&&(P=new Bc(P,e,null,n,c),f.push({event:P,listeners:C}),k?P.data=k:(k=yp(n),k!==null&&(P.data=k)))),(k=C0?P0(e,n):k0(e,n))&&(u=Ms(u,"onBeforeInput"),0<u.length&&(c=new Bc("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=k))}Ap(f,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ms(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ti(e,n),s!=null&&r.unshift(ai(e,s,i)),s=ti(e,t),s!=null&&r.push(ai(e,s,i))),e=e.return}return r}function Dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Yc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=ti(n,s),a!=null&&o.unshift(ai(n,a,l))):i||(a=ti(n,s),a!=null&&o.push(ai(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var z0=/\r\n?/g,U0=/\u0000|\uFFFD/g;function Jc(e){return(typeof e=="string"?e:""+e).replace(z0,`
|
|
39
|
-
`).replace(U0,"")}function Xi(e,t,n){if(t=Jc(t),Jc(e)!==t&&n)throw Error(R(425))}function Ns(){}var Hl=null,Kl=null;function Gl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ql=typeof setTimeout=="function"?setTimeout:void 0,b0=typeof clearTimeout=="function"?clearTimeout:void 0,Zc=typeof Promise=="function"?Promise:void 0,$0=typeof queueMicrotask=="function"?queueMicrotask:typeof Zc<"u"?function(e){return Zc.resolve(null).then(e).catch(W0)}:Ql;function W0(e){setTimeout(function(){throw e})}function Yo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ii(t)}function Wt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ef(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yr=Math.random().toString(36).slice(2),ht="__reactFiber$"+yr,ui="__reactProps$"+yr,kt="__reactContainer$"+yr,Xl="__reactEvents$"+yr,H0="__reactListeners$"+yr,K0="__reactHandles$"+yr;function fn(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kt]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ef(e);e!==null;){if(n=e[ht])return n;e=ef(e)}return t}e=n,n=e.parentNode}return null}function Ri(e){return e=e[ht]||e[kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function uo(e){return e[ui]||null}var ql=[],Bn=-1;function en(e){return{current:e}}function W(e){0>Bn||(e.current=ql[Bn],ql[Bn]=null,Bn--)}function U(e,t){Bn++,ql[Bn]=e.current,e.current=t}var qt={},Ee=en(qt),_e=en(!1),Sn=qt;function rr(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oe(e){return e=e.childContextTypes,e!=null}function js(){W(_e),W(Ee)}function tf(e,t,n){if(Ee.current!==qt)throw Error(R(168));U(Ee,t),U(_e,n)}function Op(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,Ov(e)||"Unknown",i));return q({},n,r)}function Vs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,Sn=Ee.current,U(Ee,e),U(_e,_e.current),!0}function nf(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Op(e,t,Sn),r.__reactInternalMemoizedMergedChildContext=e,W(_e),W(Ee),U(Ee,e)):W(_e),U(_e,n)}var wt=null,co=!1,Jo=!1;function Lp(e){wt===null?wt=[e]:wt.push(e)}function G0(e){co=!0,Lp(e)}function tn(){if(!Jo&&wt!==null){Jo=!0;var e=0,t=z;try{var n=wt;for(z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wt=null,co=!1}catch(i){throw wt!==null&&(wt=wt.slice(e+1)),np(Ya,tn),i}finally{z=t,Jo=!1}}return null}var zn=[],Un=0,Is=null,Fs=0,qe=[],Ye=0,En=null,xt=1,St="";function ln(e,t){zn[Un++]=Fs,zn[Un++]=Is,Is=e,Fs=t}function Dp(e,t,n){qe[Ye++]=xt,qe[Ye++]=St,qe[Ye++]=En,En=e;var r=xt;e=St;var i=32-lt(r)-1;r&=~(1<<i),n+=1;var s=32-lt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,xt=1<<32-lt(t)+i|n<<i|r,St=s+e}else xt=1<<s|n<<i|r,St=e}function ou(e){e.return!==null&&(ln(e,1),Dp(e,1,0))}function lu(e){for(;e===Is;)Is=zn[--Un],zn[Un]=null,Fs=zn[--Un],zn[Un]=null;for(;e===En;)En=qe[--Ye],qe[Ye]=null,St=qe[--Ye],qe[Ye]=null,xt=qe[--Ye],qe[Ye]=null}var ze=null,Be=null,K=!1,ot=null;function Mp(e,t){var n=Je(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function rf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ze=e,Be=Wt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ze=e,Be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=En!==null?{id:xt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Je(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ze=e,Be=null,!0):!1;default:return!1}}function Yl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jl(e){if(K){var t=Be;if(t){var n=t;if(!rf(e,t)){if(Yl(e))throw Error(R(418));t=Wt(n.nextSibling);var r=ze;t&&rf(e,t)?Mp(r,n):(e.flags=e.flags&-4097|2,K=!1,ze=e)}}else{if(Yl(e))throw Error(R(418));e.flags=e.flags&-4097|2,K=!1,ze=e}}}function sf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ze=e}function qi(e){if(e!==ze)return!1;if(!K)return sf(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gl(e.type,e.memoizedProps)),t&&(t=Be)){if(Yl(e))throw Np(),Error(R(418));for(;t;)Mp(e,t),t=Wt(t.nextSibling)}if(sf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Be=Wt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Be=null}}else Be=ze?Wt(e.stateNode.nextSibling):null;return!0}function Np(){for(var e=Be;e;)e=Wt(e.nextSibling)}function ir(){Be=ze=null,K=!1}function au(e){ot===null?ot=[e]:ot.push(e)}var Q0=Ot.ReactCurrentBatchConfig;function Rr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function Yi(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function of(e){var t=e._init;return t(e._payload)}function jp(e){function t(h,p){if(e){var y=h.deletions;y===null?(h.deletions=[p],h.flags|=16):y.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function i(h,p){return h=Qt(h,p),h.index=0,h.sibling=null,h}function s(h,p,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<p?(h.flags|=2,p):y):(h.flags|=2,p)):(h.flags|=1048576,p)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,p,y,x){return p===null||p.tag!==6?(p=sl(y,h.mode,x),p.return=h,p):(p=i(p,y),p.return=h,p)}function a(h,p,y,x){var E=y.type;return E===Nn?c(h,p,y.props.children,x,y.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Nt&&of(E)===p.type)?(x=i(p,y.props),x.ref=Rr(h,p,y),x.return=h,x):(x=vs(y.type,y.key,y.props,null,h.mode,x),x.ref=Rr(h,p,y),x.return=h,x)}function u(h,p,y,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=ol(y,h.mode,x),p.return=h,p):(p=i(p,y.children||[]),p.return=h,p)}function c(h,p,y,x,E){return p===null||p.tag!==7?(p=gn(y,h.mode,x,E),p.return=h,p):(p=i(p,y),p.return=h,p)}function f(h,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=sl(""+p,h.mode,y),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case zi:return y=vs(p.type,p.key,p.props,null,h.mode,y),y.ref=Rr(h,null,p),y.return=h,y;case Mn:return p=ol(p,h.mode,y),p.return=h,p;case Nt:var x=p._init;return f(h,x(p._payload),y)}if(Nr(p)||Er(p))return p=gn(p,h.mode,y,null),p.return=h,p;Yi(h,p)}return null}function d(h,p,y,x){var E=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:l(h,p,""+y,x);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zi:return y.key===E?a(h,p,y,x):null;case Mn:return y.key===E?u(h,p,y,x):null;case Nt:return E=y._init,d(h,p,E(y._payload),x)}if(Nr(y)||Er(y))return E!==null?null:c(h,p,y,x,null);Yi(h,y)}return null}function g(h,p,y,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return h=h.get(y)||null,l(p,h,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case zi:return h=h.get(x.key===null?y:x.key)||null,a(p,h,x,E);case Mn:return h=h.get(x.key===null?y:x.key)||null,u(p,h,x,E);case Nt:var C=x._init;return g(h,p,y,C(x._payload),E)}if(Nr(x)||Er(x))return h=h.get(y)||null,c(p,h,x,E,null);Yi(p,x)}return null}function m(h,p,y,x){for(var E=null,C=null,k=p,P=p=0,j=null;k!==null&&P<y.length;P++){k.index>P?(j=k,k=null):j=k.sibling;var L=d(h,k,y[P],x);if(L===null){k===null&&(k=j);break}e&&k&&L.alternate===null&&t(h,k),p=s(L,p,P),C===null?E=L:C.sibling=L,C=L,k=j}if(P===y.length)return n(h,k),K&&ln(h,P),E;if(k===null){for(;P<y.length;P++)k=f(h,y[P],x),k!==null&&(p=s(k,p,P),C===null?E=k:C.sibling=k,C=k);return K&&ln(h,P),E}for(k=r(h,k);P<y.length;P++)j=g(k,h,P,y[P],x),j!==null&&(e&&j.alternate!==null&&k.delete(j.key===null?P:j.key),p=s(j,p,P),C===null?E=j:C.sibling=j,C=j);return e&&k.forEach(function(ee){return t(h,ee)}),K&&ln(h,P),E}function v(h,p,y,x){var E=Er(y);if(typeof E!="function")throw Error(R(150));if(y=E.call(y),y==null)throw Error(R(151));for(var C=E=null,k=p,P=p=0,j=null,L=y.next();k!==null&&!L.done;P++,L=y.next()){k.index>P?(j=k,k=null):j=k.sibling;var ee=d(h,k,L.value,x);if(ee===null){k===null&&(k=j);break}e&&k&&ee.alternate===null&&t(h,k),p=s(ee,p,P),C===null?E=ee:C.sibling=ee,C=ee,k=j}if(L.done)return n(h,k),K&&ln(h,P),E;if(k===null){for(;!L.done;P++,L=y.next())L=f(h,L.value,x),L!==null&&(p=s(L,p,P),C===null?E=L:C.sibling=L,C=L);return K&&ln(h,P),E}for(k=r(h,k);!L.done;P++,L=y.next())L=g(k,h,P,L.value,x),L!==null&&(e&&L.alternate!==null&&k.delete(L.key===null?P:L.key),p=s(L,p,P),C===null?E=L:C.sibling=L,C=L);return e&&k.forEach(function(je){return t(h,je)}),K&&ln(h,P),E}function w(h,p,y,x){if(typeof y=="object"&&y!==null&&y.type===Nn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case zi:e:{for(var E=y.key,C=p;C!==null;){if(C.key===E){if(E=y.type,E===Nn){if(C.tag===7){n(h,C.sibling),p=i(C,y.props.children),p.return=h,h=p;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Nt&&of(E)===C.type){n(h,C.sibling),p=i(C,y.props),p.ref=Rr(h,C,y),p.return=h,h=p;break e}n(h,C);break}else t(h,C);C=C.sibling}y.type===Nn?(p=gn(y.props.children,h.mode,x,y.key),p.return=h,h=p):(x=vs(y.type,y.key,y.props,null,h.mode,x),x.ref=Rr(h,p,y),x.return=h,h=x)}return o(h);case Mn:e:{for(C=y.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(h,p.sibling),p=i(p,y.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ol(y,h.mode,x),p.return=h,h=p}return o(h);case Nt:return C=y._init,w(h,p,C(y._payload),x)}if(Nr(y))return m(h,p,y,x);if(Er(y))return v(h,p,y,x);Yi(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,y),p.return=h,h=p):(n(h,p),p=sl(y,h.mode,x),p.return=h,h=p),o(h)):n(h,p)}return w}var sr=jp(!0),Vp=jp(!1),Bs=en(null),zs=null,bn=null,uu=null;function cu(){uu=bn=zs=null}function fu(e){var t=Bs.current;W(Bs),e._currentValue=t}function Zl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function er(e,t){zs=e,uu=bn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(uu!==e)if(e={context:e,memoizedValue:t,next:null},bn===null){if(zs===null)throw Error(R(308));bn=e,zs.dependencies={lanes:0,firstContext:e}}else bn=bn.next=e;return t}var dn=null;function du(e){dn===null?dn=[e]:dn.push(e)}function Ip(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,du(t)):(n.next=i.next,i.next=n),t.interleaved=n,Rt(e,r)}function Rt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jt=!1;function hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Rt(e,n)}return i=r.interleaved,i===null?(t.next=t,du(r)):(t.next=i.next,i.next=t),r.interleaved=t,Rt(e,n)}function ds(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ja(e,n)}}function lf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Us(e,t,n,r){var i=e.updateQueue;jt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,c=u=a=null,l=s;do{var d=l.lane,g=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,v=l;switch(d=t,g=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){f=m.call(g,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(g,f,d):m,d==null)break e;f=q({},f,d);break e;case 2:jt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Cn|=o,e.lanes=o,e.memoizedState=f}}function af(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(R(191,i));i.call(r)}}}var Ai={},mt=en(Ai),ci=en(Ai),fi=en(Ai);function hn(e){if(e===Ai)throw Error(R(174));return e}function pu(e,t){switch(U(fi,t),U(ci,e),U(mt,Ai),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ml(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ml(t,e)}W(mt),U(mt,t)}function or(){W(mt),W(ci),W(fi)}function Bp(e){hn(fi.current);var t=hn(mt.current),n=Ml(t,e.type);t!==n&&(U(ci,e),U(mt,n))}function mu(e){ci.current===e&&(W(mt),W(ci))}var G=en(0);function bs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zo=[];function yu(){for(var e=0;e<Zo.length;e++)Zo[e]._workInProgressVersionPrimary=null;Zo.length=0}var hs=Ot.ReactCurrentDispatcher,el=Ot.ReactCurrentBatchConfig,Tn=0,X=null,oe=null,ue=null,$s=!1,Hr=!1,di=0,X0=0;function me(){throw Error(R(321))}function gu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ut(e[n],t[n]))return!1;return!0}function vu(e,t,n,r,i,s){if(Tn=s,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hs.current=e===null||e.memoizedState===null?Z0:e1,e=n(r,i),Hr){s=0;do{if(Hr=!1,di=0,25<=s)throw Error(R(301));s+=1,ue=oe=null,t.updateQueue=null,hs.current=t1,e=n(r,i)}while(Hr)}if(hs.current=Ws,t=oe!==null&&oe.next!==null,Tn=0,ue=oe=X=null,$s=!1,t)throw Error(R(300));return e}function wu(){var e=di!==0;return di=0,e}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?X.memoizedState=ue=e:ue=ue.next=e,ue}function tt(){if(oe===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=ue===null?X.memoizedState:ue.next;if(t!==null)ue=t,oe=e;else{if(e===null)throw Error(R(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},ue===null?X.memoizedState=ue=e:ue=ue.next=e}return ue}function hi(e,t){return typeof t=="function"?t(e):t}function tl(e){var t=tt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((Tn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,X.lanes|=c,Cn|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,ut(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,X.lanes|=s,Cn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function nl(e){var t=tt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);ut(s,t.memoizedState)||(Ae=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function zp(){}function Up(e,t){var n=X,r=tt(),i=t(),s=!ut(r.memoizedState,i);if(s&&(r.memoizedState=i,Ae=!0),r=r.queue,xu(Wp.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,pi(9,$p.bind(null,n,r,i,t),void 0,null),ce===null)throw Error(R(349));Tn&30||bp(n,t,i)}return i}function bp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $p(e,t,n,r){t.value=n,t.getSnapshot=r,Hp(t)&&Kp(e)}function Wp(e,t,n){return n(function(){Hp(t)&&Kp(e)})}function Hp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ut(e,n)}catch{return!0}}function Kp(e){var t=Rt(e,1);t!==null&&at(t,e,1,-1)}function uf(e){var t=dt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t.queue=e,e=e.dispatch=J0.bind(null,X,e),[t.memoizedState,e]}function pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Gp(){return tt().memoizedState}function ps(e,t,n,r){var i=dt();X.flags|=e,i.memoizedState=pi(1|t,n,void 0,r===void 0?null:r)}function fo(e,t,n,r){var i=tt();r=r===void 0?null:r;var s=void 0;if(oe!==null){var o=oe.memoizedState;if(s=o.destroy,r!==null&&gu(r,o.deps)){i.memoizedState=pi(t,n,s,r);return}}X.flags|=e,i.memoizedState=pi(1|t,n,s,r)}function cf(e,t){return ps(8390656,8,e,t)}function xu(e,t){return fo(2048,8,e,t)}function Qp(e,t){return fo(4,2,e,t)}function Xp(e,t){return fo(4,4,e,t)}function qp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yp(e,t,n){return n=n!=null?n.concat([e]):null,fo(4,4,qp.bind(null,t,e),n)}function Su(){}function Jp(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zp(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function em(e,t,n){return Tn&21?(ut(n,t)||(n=sp(),X.lanes|=n,Cn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function q0(e,t){var n=z;z=n!==0&&4>n?n:4,e(!0);var r=el.transition;el.transition={};try{e(!1),t()}finally{z=n,el.transition=r}}function tm(){return tt().memoizedState}function Y0(e,t,n){var r=Gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nm(e))rm(t,n);else if(n=Ip(e,t,n,r),n!==null){var i=Ce();at(n,e,r,i),im(n,t,r)}}function J0(e,t,n){var r=Gt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nm(e))rm(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,ut(l,o)){var a=t.interleaved;a===null?(i.next=i,du(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Ip(e,t,i,r),n!==null&&(i=Ce(),at(n,e,r,i),im(n,t,r))}}function nm(e){var t=e.alternate;return e===X||t!==null&&t===X}function rm(e,t){Hr=$s=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function im(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ja(e,n)}}var Ws={readContext:et,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},Z0={readContext:et,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:cf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ps(4194308,4,qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){return ps(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Y0.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:uf,useDebugValue:Su,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=uf(!1),t=e[0];return e=q0.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=dt();if(K){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ce===null)throw Error(R(349));Tn&30||bp(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,cf(Wp.bind(null,r,s,e),[e]),r.flags|=2048,pi(9,$p.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=dt(),t=ce.identifierPrefix;if(K){var n=St,r=xt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=X0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},e1={readContext:et,useCallback:Jp,useContext:et,useEffect:xu,useImperativeHandle:Yp,useInsertionEffect:Qp,useLayoutEffect:Xp,useMemo:Zp,useReducer:tl,useRef:Gp,useState:function(){return tl(hi)},useDebugValue:Su,useDeferredValue:function(e){var t=tt();return em(t,oe.memoizedState,e)},useTransition:function(){var e=tl(hi)[0],t=tt().memoizedState;return[e,t]},useMutableSource:zp,useSyncExternalStore:Up,useId:tm,unstable_isNewReconciler:!1},t1={readContext:et,useCallback:Jp,useContext:et,useEffect:xu,useImperativeHandle:Yp,useInsertionEffect:Qp,useLayoutEffect:Xp,useMemo:Zp,useReducer:nl,useRef:Gp,useState:function(){return nl(hi)},useDebugValue:Su,useDeferredValue:function(e){var t=tt();return oe===null?t.memoizedState=e:em(t,oe.memoizedState,e)},useTransition:function(){var e=nl(hi)[0],t=tt().memoizedState;return[e,t]},useMutableSource:zp,useSyncExternalStore:Up,useId:tm,unstable_isNewReconciler:!1};function it(e,t){if(e&&e.defaultProps){t=q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ea(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ho={isMounted:function(e){return(e=e._reactInternals)?An(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ce(),i=Gt(e),s=Et(r,i);s.payload=t,n!=null&&(s.callback=n),t=Ht(e,s,i),t!==null&&(at(t,e,i,r),ds(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ce(),i=Gt(e),s=Et(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ht(e,s,i),t!==null&&(at(t,e,i,r),ds(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ce(),r=Gt(e),i=Et(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ht(e,i,r),t!==null&&(at(t,e,r,n),ds(t,e,r))}};function ff(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!oi(n,r)||!oi(i,s):!0}function sm(e,t,n){var r=!1,i=qt,s=t.contextType;return typeof s=="object"&&s!==null?s=et(s):(i=Oe(t)?Sn:Ee.current,r=t.contextTypes,s=(r=r!=null)?rr(e,i):qt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ho,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function df(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ho.enqueueReplaceState(t,t.state,null)}function ta(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},hu(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=et(s):(s=Oe(t)?Sn:Ee.current,i.context=rr(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ea(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ho.enqueueReplaceState(i,i.state,null),Us(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function lr(e,t){try{var n="",r=t;do n+=_v(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
40
|
-
Error generating stack: `+s.message+`
|
|
41
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function rl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function na(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var n1=typeof WeakMap=="function"?WeakMap:Map;function om(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,da=r),na(e,t)},n}function lm(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){na(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){na(e,t),typeof r!="function"&&(Kt===null?Kt=new Set([this]):Kt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new n1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=y1.bind(null,e,t,n),t.then(e,e))}function pf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function mf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,Ht(n,t,1))),n.lanes|=1),e)}var r1=Ot.ReactCurrentOwner,Ae=!1;function Te(e,t,n,r){t.child=e===null?Vp(t,null,n,r):sr(t,e.child,n,r)}function yf(e,t,n,r,i){n=n.render;var s=t.ref;return er(t,i),r=vu(e,t,n,r,s,i),n=wu(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(K&&n&&ou(t),t.flags|=1,Te(e,t,r,i),t.child)}function gf(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!_u(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,am(e,t,s,r,i)):(e=vs(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:oi,n(o,r)&&e.ref===t.ref)return At(e,t,i)}return t.flags|=1,e=Qt(s,r),e.ref=t.ref,e.return=t,t.child=e}function am(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(oi(s,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,At(e,t,i)}return ra(e,t,n,r,i)}function um(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(Wn,Fe),Fe|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(Wn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,U(Wn,Fe),Fe|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,U(Wn,Fe),Fe|=r;return Te(e,t,i,n),t.child}function cm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ra(e,t,n,r,i){var s=Oe(n)?Sn:Ee.current;return s=rr(t,s),er(t,i),n=vu(e,t,n,r,s,i),r=wu(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(K&&r&&ou(t),t.flags|=1,Te(e,t,n,i),t.child)}function vf(e,t,n,r,i){if(Oe(n)){var s=!0;Vs(t)}else s=!1;if(er(t,i),t.stateNode===null)ms(e,t),sm(t,n,r),ta(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=et(u):(u=Oe(n)?Sn:Ee.current,u=rr(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&df(t,o,r,u),jt=!1;var d=t.memoizedState;o.state=d,Us(t,r,o,i),a=t.memoizedState,l!==r||d!==a||_e.current||jt?(typeof c=="function"&&(ea(t,n,c,r),a=t.memoizedState),(l=jt||ff(t,n,l,r,d,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Fp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:it(t.type,l),o.props=u,f=t.pendingProps,d=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=et(a):(a=Oe(n)?Sn:Ee.current,a=rr(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==a)&&df(t,o,r,a),jt=!1,d=t.memoizedState,o.state=d,Us(t,r,o,i);var m=t.memoizedState;l!==f||d!==m||_e.current||jt?(typeof g=="function"&&(ea(t,n,g,r),m=t.memoizedState),(u=jt||ff(t,n,u,r,d,m,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ia(e,t,n,r,s,i)}function ia(e,t,n,r,i,s){cm(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&nf(t,n,!1),At(e,t,s);r=t.stateNode,r1.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=sr(t,e.child,null,s),t.child=sr(t,null,l,s)):Te(e,t,l,s),t.memoizedState=r.state,i&&nf(t,n,!0),t.child}function fm(e){var t=e.stateNode;t.pendingContext?tf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tf(e,t.context,!1),pu(e,t.containerInfo)}function wf(e,t,n,r,i){return ir(),au(i),t.flags|=256,Te(e,t,n,r),t.child}var sa={dehydrated:null,treeContext:null,retryLane:0};function oa(e){return{baseLanes:e,cachePool:null,transitions:null}}function dm(e,t,n){var r=t.pendingProps,i=G.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),U(G,i&1),e===null)return Jl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=yo(o,r,0,null),e=gn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=oa(n),t.memoizedState=sa,e):Eu(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return i1(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Qt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Qt(l,s):(s=gn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?oa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=sa,r}return s=e.child,e=s.sibling,r=Qt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Eu(e,t){return t=yo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ji(e,t,n,r){return r!==null&&au(r),sr(t,e.child,null,n),e=Eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function i1(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=rl(Error(R(422))),Ji(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=yo({mode:"visible",children:r.children},i,0,null),s=gn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&sr(t,e.child,null,o),t.child.memoizedState=oa(o),t.memoizedState=sa,s);if(!(t.mode&1))return Ji(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(R(419)),r=rl(s,r,void 0),Ji(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ae||l){if(r=ce,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Rt(e,i),at(r,e,i,-1))}return Au(),r=rl(Error(R(421))),Ji(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=g1.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Be=Wt(i.nextSibling),ze=t,K=!0,ot=null,e!==null&&(qe[Ye++]=xt,qe[Ye++]=St,qe[Ye++]=En,xt=e.id,St=e.overflow,En=t),t=Eu(t,r.children),t.flags|=4096,t)}function xf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zl(e.return,t,n)}function il(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function hm(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Te(e,t,r.children,n),r=G.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xf(e,n,t);else if(e.tag===19)xf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(G,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&bs(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bs(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,s);break;case"together":il(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ms(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function At(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Qt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function s1(e,t,n){switch(t.tag){case 3:fm(t),ir();break;case 5:Bp(t);break;case 1:Oe(t.type)&&Vs(t);break;case 4:pu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;U(Bs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?dm(e,t,n):(U(G,G.current&1),e=At(e,t,n),e!==null?e.sibling:null);U(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,um(e,t,n)}return At(e,t,n)}var pm,la,mm,ym;pm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};la=function(){};mm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,hn(mt.current);var s=null;switch(n){case"input":i=_l(e,i),r=_l(e,r),s=[];break;case"select":i=q({},i,{value:void 0}),r=q({},r,{value:void 0}),s=[];break;case"textarea":i=Dl(e,i),r=Dl(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ns)}Nl(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&$("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};ym=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ar(e,t){if(!K)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function o1(e,t,n){var r=t.pendingProps;switch(lu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(t),null;case 1:return Oe(t.type)&&js(),ye(t),null;case 3:return r=t.stateNode,or(),W(_e),W(Ee),yu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ot!==null&&(ma(ot),ot=null))),la(e,t),ye(t),null;case 5:mu(t);var i=hn(fi.current);if(n=t.type,e!==null&&t.stateNode!=null)mm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return ye(t),null}if(e=hn(mt.current),qi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ht]=t,r[ui]=s,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<Vr.length;i++)$(Vr[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":Ac(r,s),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$("invalid",r);break;case"textarea":Oc(r,s),$("invalid",r)}Nl(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Xi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Xi(r.textContent,l,e),i=["children",""+l]):Zr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&$("scroll",r)}switch(n){case"input":Ui(r),_c(r,s,!0);break;case"textarea":Ui(r),Lc(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ns)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ht]=t,e[ui]=r,pm(e,t,!1,!1),t.stateNode=e;e:{switch(o=jl(n,r),n){case"dialog":$("cancel",e),$("close",e),i=r;break;case"iframe":case"object":case"embed":$("load",e),i=r;break;case"video":case"audio":for(i=0;i<Vr.length;i++)$(Vr[i],e);i=r;break;case"source":$("error",e),i=r;break;case"img":case"image":case"link":$("error",e),$("load",e),i=r;break;case"details":$("toggle",e),i=r;break;case"input":Ac(e,r),i=_l(e,r),$("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=q({},r,{value:void 0}),$("invalid",e);break;case"textarea":Oc(e,r),i=Dl(e,r),$("invalid",e);break;default:i=r}Nl(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Gh(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Hh(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ei(e,a):typeof a=="number"&&ei(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Zr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&$("scroll",e):a!=null&&Ka(e,s,a,o))}switch(n){case"input":Ui(e),_c(e,r,!1);break;case"textarea":Ui(e),Lc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?qn(e,!!r.multiple,s,!1):r.defaultValue!=null&&qn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ns)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ye(t),null;case 6:if(e&&t.stateNode!=null)ym(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=hn(fi.current),hn(mt.current),qi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ht]=t,(s=r.nodeValue!==n)&&(e=ze,e!==null))switch(e.tag){case 3:Xi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ht]=t,t.stateNode=r}return ye(t),null;case 13:if(W(G),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&Be!==null&&t.mode&1&&!(t.flags&128))Np(),ir(),t.flags|=98560,s=!1;else if(s=qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(R(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(R(317));s[ht]=t}else ir(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ye(t),s=!1}else ot!==null&&(ma(ot),ot=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||G.current&1?le===0&&(le=3):Au())),t.updateQueue!==null&&(t.flags|=4),ye(t),null);case 4:return or(),la(e,t),e===null&&li(t.stateNode.containerInfo),ye(t),null;case 10:return fu(t.type._context),ye(t),null;case 17:return Oe(t.type)&&js(),ye(t),null;case 19:if(W(G),s=t.memoizedState,s===null)return ye(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ar(s,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bs(e),o!==null){for(t.flags|=128,Ar(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(G,G.current&1|2),t.child}e=e.sibling}s.tail!==null&&ne()>ar&&(t.flags|=128,r=!0,Ar(s,!1),t.lanes=4194304)}else{if(!r)if(e=bs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!K)return ye(t),null}else 2*ne()-s.renderingStartTime>ar&&n!==1073741824&&(t.flags|=128,r=!0,Ar(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ne(),t.sibling=null,n=G.current,U(G,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return Ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function l1(e,t){switch(lu(t),t.tag){case 1:return Oe(t.type)&&js(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),W(_e),W(Ee),yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(W(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(G),null;case 4:return or(),null;case 10:return fu(t.type._context),null;case 22:case 23:return Ru(),null;case 24:return null;default:return null}}var Zi=!1,ve=!1,a1=typeof WeakSet=="function"?WeakSet:Set,O=null;function $n(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Z(e,t,r)}else n.current=null}function aa(e,t,n){try{n()}catch(r){Z(e,t,r)}}var Sf=!1;function u1(e,t){if(Hl=Ls,e=Sp(),su(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===s&&++c===r&&(a=o),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kl={focusedElem:e,selectionRange:n},Ls=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,w=m.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:it(t.type,v),w);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){Z(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return m=Sf,Sf=!1,m}function Kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&aa(t,n,s)}i=i.next}while(i!==r)}}function po(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ua(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gm(e){var t=e.alternate;t!==null&&(e.alternate=null,gm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[ui],delete t[Xl],delete t[H0],delete t[K0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vm(e){return e.tag===5||e.tag===3||e.tag===4}function Ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ca(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ns));else if(r!==4&&(e=e.child,e!==null))for(ca(e,t,n),e=e.sibling;e!==null;)ca(e,t,n),e=e.sibling}function fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fa(e,t,n),e=e.sibling;e!==null;)fa(e,t,n),e=e.sibling}var fe=null,st=!1;function Dt(e,t,n){for(n=n.child;n!==null;)wm(e,t,n),n=n.sibling}function wm(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(so,n)}catch{}switch(n.tag){case 5:ve||$n(n,t);case 6:var r=fe,i=st;fe=null,Dt(e,t,n),fe=r,st=i,fe!==null&&(st?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(st?(e=fe,n=n.stateNode,e.nodeType===8?Yo(e.parentNode,n):e.nodeType===1&&Yo(e,n),ii(e)):Yo(fe,n.stateNode));break;case 4:r=fe,i=st,fe=n.stateNode.containerInfo,st=!0,Dt(e,t,n),fe=r,st=i;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&aa(n,t,o),i=i.next}while(i!==r)}Dt(e,t,n);break;case 1:if(!ve&&($n(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Z(n,t,l)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,Dt(e,t,n),ve=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function Tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new a1),t.forEach(function(r){var i=v1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:fe=l.stateNode,st=!1;break e;case 3:fe=l.stateNode.containerInfo,st=!0;break e;case 4:fe=l.stateNode.containerInfo,st=!0;break e}l=l.return}if(fe===null)throw Error(R(160));wm(s,o,i),fe=null,st=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){Z(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xm(t,e),t=t.sibling}function xm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(nt(t,e),ft(e),r&4){try{Kr(3,e,e.return),po(3,e)}catch(v){Z(e,e.return,v)}try{Kr(5,e,e.return)}catch(v){Z(e,e.return,v)}}break;case 1:nt(t,e),ft(e),r&512&&n!==null&&$n(n,n.return);break;case 5:if(nt(t,e),ft(e),r&512&&n!==null&&$n(n,n.return),e.flags&32){var i=e.stateNode;try{ei(i,"")}catch(v){Z(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&bh(i,s),jl(l,o);var u=jl(l,s);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?Gh(i,f):c==="dangerouslySetInnerHTML"?Hh(i,f):c==="children"?ei(i,f):Ka(i,c,f,u)}switch(l){case"input":Ol(i,s);break;case"textarea":$h(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?qn(i,!!s.multiple,g,!1):d!==!!s.multiple&&(s.defaultValue!=null?qn(i,!!s.multiple,s.defaultValue,!0):qn(i,!!s.multiple,s.multiple?[]:"",!1))}i[ui]=s}catch(v){Z(e,e.return,v)}}break;case 6:if(nt(t,e),ft(e),r&4){if(e.stateNode===null)throw Error(R(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){Z(e,e.return,v)}}break;case 3:if(nt(t,e),ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(v){Z(e,e.return,v)}break;case 4:nt(t,e),ft(e);break;case 13:nt(t,e),ft(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Pu=ne())),r&4&&Tf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ve=(u=ve)||c,nt(t,e),ve=u):nt(t,e),ft(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(O=e,c=e.child;c!==null;){for(f=O=c;O!==null;){switch(d=O,g=d.child,d.tag){case 0:case 11:case 14:case 15:Kr(4,d,d.return);break;case 1:$n(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Z(r,n,v)}}break;case 5:$n(d,d.return);break;case 22:if(d.memoizedState!==null){Pf(f);continue}}g!==null?(g.return=d,O=g):Pf(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Kh("display",o))}catch(v){Z(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Z(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:nt(t,e),ft(e),r&4&&Tf(e);break;case 21:break;default:nt(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vm(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ei(i,""),r.flags&=-33);var s=Ef(e);fa(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Ef(e);ca(e,l,o);break;default:throw Error(R(161))}}catch(a){Z(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function c1(e,t,n){O=e,Sm(e)}function Sm(e,t,n){for(var r=(e.mode&1)!==0;O!==null;){var i=O,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Zi;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||ve;l=Zi;var u=ve;if(Zi=o,(ve=a)&&!u)for(O=i;O!==null;)o=O,a=o.child,o.tag===22&&o.memoizedState!==null?kf(i):a!==null?(a.return=o,O=a):kf(i);for(;s!==null;)O=s,Sm(s),s=s.sibling;O=i,Zi=l,ve=u}Cf(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,O=s):Cf(e)}}function Cf(e){for(;O!==null;){var t=O;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ve||po(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ve)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:it(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&af(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}af(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&ii(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ve||t.flags&512&&ua(t)}catch(d){Z(t,t.return,d)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function Pf(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var n=t.sibling;if(n!==null){n.return=t.return,O=n;break}O=t.return}}function kf(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{po(4,t)}catch(a){Z(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){Z(t,i,a)}}var s=t.return;try{ua(t)}catch(a){Z(t,s,a)}break;case 5:var o=t.return;try{ua(t)}catch(a){Z(t,o,a)}}}catch(a){Z(t,t.return,a)}if(t===e){O=null;break}var l=t.sibling;if(l!==null){l.return=t.return,O=l;break}O=t.return}}var f1=Math.ceil,Hs=Ot.ReactCurrentDispatcher,Tu=Ot.ReactCurrentOwner,Ze=Ot.ReactCurrentBatchConfig,F=0,ce=null,ie=null,he=0,Fe=0,Wn=en(0),le=0,mi=null,Cn=0,mo=0,Cu=0,Gr=null,Re=null,Pu=0,ar=1/0,vt=null,Ks=!1,da=null,Kt=null,es=!1,Bt=null,Gs=0,Qr=0,ha=null,ys=-1,gs=0;function Ce(){return F&6?ne():ys!==-1?ys:ys=ne()}function Gt(e){return e.mode&1?F&2&&he!==0?he&-he:Q0.transition!==null?(gs===0&&(gs=sp()),gs):(e=z,e!==0||(e=window.event,e=e===void 0?16:dp(e.type)),e):1}function at(e,t,n,r){if(50<Qr)throw Qr=0,ha=null,Error(R(185));Pi(e,n,r),(!(F&2)||e!==ce)&&(e===ce&&(!(F&2)&&(mo|=n),le===4&&It(e,he)),Le(e,r),n===1&&F===0&&!(t.mode&1)&&(ar=ne()+500,co&&tn()))}function Le(e,t){var n=e.callbackNode;Qv(e,t);var r=Os(e,e===ce?he:0);if(r===0)n!==null&&Nc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Nc(n),t===1)e.tag===0?G0(Rf.bind(null,e)):Lp(Rf.bind(null,e)),$0(function(){!(F&6)&&tn()}),n=null;else{switch(op(r)){case 1:n=Ya;break;case 4:n=rp;break;case 16:n=_s;break;case 536870912:n=ip;break;default:n=_s}n=_m(n,Em.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Em(e,t){if(ys=-1,gs=0,F&6)throw Error(R(327));var n=e.callbackNode;if(tr()&&e.callbackNode!==n)return null;var r=Os(e,e===ce?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Qs(e,r);else{t=r;var i=F;F|=2;var s=Cm();(ce!==e||he!==t)&&(vt=null,ar=ne()+500,yn(e,t));do try{p1();break}catch(l){Tm(e,l)}while(!0);cu(),Hs.current=s,F=i,ie!==null?t=0:(ce=null,he=0,t=le)}if(t!==0){if(t===2&&(i=zl(e),i!==0&&(r=i,t=pa(e,i))),t===1)throw n=mi,yn(e,0),It(e,r),Le(e,ne()),n;if(t===6)It(e,r);else{if(i=e.current.alternate,!(r&30)&&!d1(i)&&(t=Qs(e,r),t===2&&(s=zl(e),s!==0&&(r=s,t=pa(e,s))),t===1))throw n=mi,yn(e,0),It(e,r),Le(e,ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:an(e,Re,vt);break;case 3:if(It(e,r),(r&130023424)===r&&(t=Pu+500-ne(),10<t)){if(Os(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ce(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ql(an.bind(null,e,Re,vt),t);break}an(e,Re,vt);break;case 4:if(It(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-lt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*f1(r/1960))-r,10<r){e.timeoutHandle=Ql(an.bind(null,e,Re,vt),r);break}an(e,Re,vt);break;case 5:an(e,Re,vt);break;default:throw Error(R(329))}}}return Le(e,ne()),e.callbackNode===n?Em.bind(null,e):null}function pa(e,t){var n=Gr;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=Qs(e,t),e!==2&&(t=Re,Re=n,t!==null&&ma(t)),e}function ma(e){Re===null?Re=e:Re.push.apply(Re,e)}function d1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!ut(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function It(e,t){for(t&=~Cu,t&=~mo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function Rf(e){if(F&6)throw Error(R(327));tr();var t=Os(e,0);if(!(t&1))return Le(e,ne()),null;var n=Qs(e,t);if(e.tag!==0&&n===2){var r=zl(e);r!==0&&(t=r,n=pa(e,r))}if(n===1)throw n=mi,yn(e,0),It(e,t),Le(e,ne()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,an(e,Re,vt),Le(e,ne()),null}function ku(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(ar=ne()+500,co&&tn())}}function Pn(e){Bt!==null&&Bt.tag===0&&!(F&6)&&tr();var t=F;F|=1;var n=Ze.transition,r=z;try{if(Ze.transition=null,z=1,e)return e()}finally{z=r,Ze.transition=n,F=t,!(F&6)&&tn()}}function Ru(){Fe=Wn.current,W(Wn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,b0(n)),ie!==null)for(n=ie.return;n!==null;){var r=n;switch(lu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&js();break;case 3:or(),W(_e),W(Ee),yu();break;case 5:mu(r);break;case 4:or();break;case 13:W(G);break;case 19:W(G);break;case 10:fu(r.type._context);break;case 22:case 23:Ru()}n=n.return}if(ce=e,ie=e=Qt(e.current,null),he=Fe=t,le=0,mi=null,Cu=mo=Cn=0,Re=Gr=null,dn!==null){for(t=0;t<dn.length;t++)if(n=dn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}dn=null}return e}function Tm(e,t){do{var n=ie;try{if(cu(),hs.current=Ws,$s){for(var r=X.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}$s=!1}if(Tn=0,ue=oe=X=null,Hr=!1,di=0,Tu.current=null,n===null||n.return===null){le=1,mi=t,ie=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=he,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=pf(o);if(g!==null){g.flags&=-257,mf(g,o,l,s,t),g.mode&1&&hf(s,u,t),t=g,a=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(a),t.updateQueue=v}else m.add(a);break e}else{if(!(t&1)){hf(s,u,t),Au();break e}a=Error(R(426))}}else if(K&&l.mode&1){var w=pf(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),mf(w,o,l,s,t),au(lr(a,l));break e}}s=a=lr(a,l),le!==4&&(le=2),Gr===null?Gr=[s]:Gr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=om(s,a,t);lf(s,h);break e;case 1:l=a;var p=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Kt===null||!Kt.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var x=lm(s,l,t);lf(s,x);break e}}s=s.return}while(s!==null)}km(n)}catch(E){t=E,ie===n&&n!==null&&(ie=n=n.return);continue}break}while(!0)}function Cm(){var e=Hs.current;return Hs.current=Ws,e===null?Ws:e}function Au(){(le===0||le===3||le===2)&&(le=4),ce===null||!(Cn&268435455)&&!(mo&268435455)||It(ce,he)}function Qs(e,t){var n=F;F|=2;var r=Cm();(ce!==e||he!==t)&&(vt=null,yn(e,t));do try{h1();break}catch(i){Tm(e,i)}while(!0);if(cu(),F=n,Hs.current=r,ie!==null)throw Error(R(261));return ce=null,he=0,le}function h1(){for(;ie!==null;)Pm(ie)}function p1(){for(;ie!==null&&!Bv();)Pm(ie)}function Pm(e){var t=Am(e.alternate,e,Fe);e.memoizedProps=e.pendingProps,t===null?km(e):ie=t,Tu.current=null}function km(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=l1(n,t),n!==null){n.flags&=32767,ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,ie=null;return}}else if(n=o1(n,t,Fe),n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);le===0&&(le=5)}function an(e,t,n){var r=z,i=Ze.transition;try{Ze.transition=null,z=1,m1(e,t,n,r)}finally{Ze.transition=i,z=r}return null}function m1(e,t,n,r){do tr();while(Bt!==null);if(F&6)throw Error(R(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Xv(e,s),e===ce&&(ie=ce=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||es||(es=!0,_m(_s,function(){return tr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ze.transition,Ze.transition=null;var o=z;z=1;var l=F;F|=4,Tu.current=null,u1(e,n),xm(n,e),j0(Kl),Ls=!!Hl,Kl=Hl=null,e.current=n,c1(n),zv(),F=l,z=o,Ze.transition=s}else e.current=n;if(es&&(es=!1,Bt=e,Gs=i),s=e.pendingLanes,s===0&&(Kt=null),$v(n.stateNode),Le(e,ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ks)throw Ks=!1,e=da,da=null,e;return Gs&1&&e.tag!==0&&tr(),s=e.pendingLanes,s&1?e===ha?Qr++:(Qr=0,ha=e):Qr=0,tn(),null}function tr(){if(Bt!==null){var e=op(Gs),t=Ze.transition,n=z;try{if(Ze.transition=null,z=16>e?16:e,Bt===null)var r=!1;else{if(e=Bt,Bt=null,Gs=0,F&6)throw Error(R(331));var i=F;for(F|=4,O=e.current;O!==null;){var s=O,o=s.child;if(O.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(O=u;O!==null;){var c=O;switch(c.tag){case 0:case 11:case 15:Kr(8,c,s)}var f=c.child;if(f!==null)f.return=c,O=f;else for(;O!==null;){c=O;var d=c.sibling,g=c.return;if(gm(c),c===u){O=null;break}if(d!==null){d.return=g,O=d;break}O=g}}}var m=s.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}O=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,O=o;else e:for(;O!==null;){if(s=O,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Kr(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,O=h;break e}O=s.return}}var p=e.current;for(O=p;O!==null;){o=O;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,O=y;else e:for(o=p;O!==null;){if(l=O,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:po(9,l)}}catch(E){Z(l,l.return,E)}if(l===o){O=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,O=x;break e}O=l.return}}if(F=i,tn(),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(so,e)}catch{}r=!0}return r}finally{z=n,Ze.transition=t}}return!1}function Af(e,t,n){t=lr(n,t),t=om(e,t,1),e=Ht(e,t,1),t=Ce(),e!==null&&(Pi(e,1,t),Le(e,t))}function Z(e,t,n){if(e.tag===3)Af(e,e,n);else for(;t!==null;){if(t.tag===3){Af(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kt===null||!Kt.has(r))){e=lr(n,e),e=lm(t,e,1),t=Ht(t,e,1),e=Ce(),t!==null&&(Pi(t,1,e),Le(t,e));break}}t=t.return}}function y1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ce(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(le===4||le===3&&(he&130023424)===he&&500>ne()-Pu?yn(e,0):Cu|=n),Le(e,t)}function Rm(e,t){t===0&&(e.mode&1?(t=Wi,Wi<<=1,!(Wi&130023424)&&(Wi=4194304)):t=1);var n=Ce();e=Rt(e,t),e!==null&&(Pi(e,t,n),Le(e,n))}function g1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rm(e,n)}function v1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Rm(e,n)}var Am;Am=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,s1(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,K&&t.flags&1048576&&Dp(t,Fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ms(e,t),e=t.pendingProps;var i=rr(t,Ee.current);er(t,n),i=vu(null,t,r,e,i,n);var s=wu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)?(s=!0,Vs(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hu(t),i.updater=ho,t.stateNode=i,i._reactInternals=t,ta(t,r,e,n),t=ia(null,t,r,!0,s,n)):(t.tag=0,K&&s&&ou(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ms(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=x1(r),e=it(r,e),i){case 0:t=ra(null,t,r,e,n);break e;case 1:t=vf(null,t,r,e,n);break e;case 11:t=yf(null,t,r,e,n);break e;case 14:t=gf(null,t,r,it(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:it(r,i),ra(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:it(r,i),vf(e,t,r,i,n);case 3:e:{if(fm(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Fp(e,t),Us(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=lr(Error(R(423)),t),t=wf(e,t,r,n,i);break e}else if(r!==i){i=lr(Error(R(424)),t),t=wf(e,t,r,n,i);break e}else for(Be=Wt(t.stateNode.containerInfo.firstChild),ze=t,K=!0,ot=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===i){t=At(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return Bp(t),e===null&&Jl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Gl(r,i)?o=null:s!==null&&Gl(r,s)&&(t.flags|=32),cm(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Jl(t),null;case 13:return dm(e,t,n);case 4:return pu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sr(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:it(r,i),yf(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,U(Bs,r._currentValue),r._currentValue=o,s!==null)if(ut(s.value,o)){if(s.children===i.children&&!_e.current){t=At(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Et(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Zl(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(R(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Zl(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,er(t,n),i=et(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=it(r,t.pendingProps),i=it(r.type,i),gf(e,t,r,i,n);case 15:return am(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:it(r,i),ms(e,t),t.tag=1,Oe(r)?(e=!0,Vs(t)):e=!1,er(t,n),sm(t,r,i),ta(t,r,i,n),ia(null,t,r,!0,e,n);case 19:return hm(e,t,n);case 22:return um(e,t,n)}throw Error(R(156,t.tag))};function _m(e,t){return np(e,t)}function w1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Je(e,t,n,r){return new w1(e,t,n,r)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function x1(e){if(typeof e=="function")return _u(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qa)return 11;if(e===Xa)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Je(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vs(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")_u(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Nn:return gn(n.children,i,s,t);case Ga:o=8,i|=8;break;case Pl:return e=Je(12,n,t,i|2),e.elementType=Pl,e.lanes=s,e;case kl:return e=Je(13,n,t,i),e.elementType=kl,e.lanes=s,e;case Rl:return e=Je(19,n,t,i),e.elementType=Rl,e.lanes=s,e;case Bh:return yo(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ih:o=10;break e;case Fh:o=9;break e;case Qa:o=11;break e;case Xa:o=14;break e;case Nt:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Je(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function gn(e,t,n,r){return e=Je(7,e,r,t),e.lanes=n,e}function yo(e,t,n,r){return e=Je(22,e,r,t),e.elementType=Bh,e.lanes=n,e.stateNode={isHidden:!1},e}function sl(e,t,n){return e=Je(6,e,null,t),e.lanes=n,e}function ol(e,t,n){return t=Je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function S1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zo(0),this.expirationTimes=zo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ou(e,t,n,r,i,s,o,l,a){return e=new S1(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Je(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hu(s),e}function E1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Om(e){if(!e)return qt;e=e._reactInternals;e:{if(An(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Oe(n))return Op(e,n,t)}return t}function Lm(e,t,n,r,i,s,o,l,a){return e=Ou(n,r,!0,e,i,s,o,l,a),e.context=Om(null),n=e.current,r=Ce(),i=Gt(n),s=Et(r,i),s.callback=t??null,Ht(n,s,i),e.current.lanes=i,Pi(e,i,r),Le(e,r),e}function go(e,t,n,r){var i=t.current,s=Ce(),o=Gt(i);return n=Om(n),t.context===null?t.context=n:t.pendingContext=n,t=Et(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ht(i,t,o),e!==null&&(at(e,i,o,s),ds(e,i,o)),o}function Xs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _f(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lu(e,t){_f(e,t),(e=e.alternate)&&_f(e,t)}function T1(){return null}var Dm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Du(e){this._internalRoot=e}vo.prototype.render=Du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));go(e,t,null,null)};vo.prototype.unmount=Du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pn(function(){go(null,e,null,null)}),t[kt]=null}};function vo(e){this._internalRoot=e}vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=up();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vt.length&&t!==0&&t<Vt[n].priority;n++);Vt.splice(n,0,e),n===0&&fp(e)}};function Mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Of(){}function C1(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Xs(o);s.call(u)}}var o=Lm(t,r,e,0,null,!1,!1,"",Of);return e._reactRootContainer=o,e[kt]=o.current,li(e.nodeType===8?e.parentNode:e),Pn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Xs(a);l.call(u)}}var a=Ou(e,0,!1,null,null,!1,!1,"",Of);return e._reactRootContainer=a,e[kt]=a.current,li(e.nodeType===8?e.parentNode:e),Pn(function(){go(t,a,n,r)}),a}function xo(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=Xs(o);l.call(a)}}go(t,o,e,i)}else o=C1(n,t,e,i,r);return Xs(o)}lp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jr(t.pendingLanes);n!==0&&(Ja(t,n|1),Le(t,ne()),!(F&6)&&(ar=ne()+500,tn()))}break;case 13:Pn(function(){var r=Rt(e,1);if(r!==null){var i=Ce();at(r,e,1,i)}}),Lu(e,1)}};Za=function(e){if(e.tag===13){var t=Rt(e,134217728);if(t!==null){var n=Ce();at(t,e,134217728,n)}Lu(e,134217728)}};ap=function(e){if(e.tag===13){var t=Gt(e),n=Rt(e,t);if(n!==null){var r=Ce();at(n,e,t,r)}Lu(e,t)}};up=function(){return z};cp=function(e,t){var n=z;try{return z=e,t()}finally{z=n}};Il=function(e,t,n){switch(t){case"input":if(Ol(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=uo(r);if(!i)throw Error(R(90));Uh(r),Ol(r,i)}}}break;case"textarea":$h(e,n);break;case"select":t=n.value,t!=null&&qn(e,!!n.multiple,t,!1)}};qh=ku;Yh=Pn;var P1={usingClientEntryPoint:!1,Events:[Ri,Fn,uo,Qh,Xh,ku]},_r={findFiberByHostInstance:fn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},k1={bundleType:_r.bundleType,version:_r.version,rendererPackageName:_r.rendererPackageName,rendererConfig:_r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ot.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ep(e),e===null?null:e.stateNode},findFiberByHostInstance:_r.findFiberByHostInstance||T1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ts.isDisabled&&ts.supportsFiber)try{so=ts.inject(k1),pt=ts}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P1;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mu(t))throw Error(R(200));return E1(e,t,null,n)};We.createRoot=function(e,t){if(!Mu(e))throw Error(R(299));var n=!1,r="",i=Dm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ou(e,1,!1,null,null,n,!1,r,i),e[kt]=t.current,li(e.nodeType===8?e.parentNode:e),new Du(t)};We.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=ep(t),e=e===null?null:e.stateNode,e};We.flushSync=function(e){return Pn(e)};We.hydrate=function(e,t,n){if(!wo(t))throw Error(R(200));return xo(null,e,t,!0,n)};We.hydrateRoot=function(e,t,n){if(!Mu(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Dm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Lm(t,null,e,1,n??null,i,!1,s,o),e[kt]=t.current,li(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new vo(t)};We.render=function(e,t,n){if(!wo(t))throw Error(R(200));return xo(null,e,t,!1,n)};We.unmountComponentAtNode=function(e){if(!wo(e))throw Error(R(40));return e._reactRootContainer?(Pn(function(){xo(null,null,e,!1,function(){e._reactRootContainer=null,e[kt]=null})}),!0):!1};We.unstable_batchedUpdates=ku;We.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wo(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return xo(e,t,n,!1,r)};We.version="18.3.1-next-f1338f8080-20240426";function Mm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mm)}catch(e){console.error(e)}}Mm(),Mh.exports=We;var R1=Mh.exports,Nm,Lf=R1;Nm=Lf.createRoot,Lf.hydrateRoot;/**
|
|
42
|
-
* @remix-run/router v1.23.2
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Remix Software Inc.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
-
*
|
|
49
|
-
* @license MIT
|
|
50
|
-
*/function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yi.apply(this,arguments)}var zt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(zt||(zt={}));const Df="popstate";function A1(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:l}=r.location;return ya("",{pathname:s,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:jm(i)}return O1(t,n,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _1(){return Math.random().toString(36).substr(2,8)}function Mf(e,t){return{usr:e.state,key:e.key,idx:t}}function ya(e,t,n,r){return n===void 0&&(n=null),yi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gr(t):t,{state:n,key:t&&t.key||r||_1()})}function jm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function gr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function O1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,l=zt.Pop,a=null,u=c();u==null&&(u=0,o.replaceState(yi({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=zt.Pop;let w=c(),h=w==null?null:w-u;u=w,a&&a({action:l,location:v.location,delta:h})}function d(w,h){l=zt.Push;let p=ya(v.location,w,h);u=c()+1;let y=Mf(p,u),x=v.createHref(p);try{o.pushState(y,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(x)}s&&a&&a({action:l,location:v.location,delta:1})}function g(w,h){l=zt.Replace;let p=ya(v.location,w,h);u=c();let y=Mf(p,u),x=v.createHref(p);o.replaceState(y,"",x),s&&a&&a({action:l,location:v.location,delta:0})}function m(w){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof w=="string"?w:jm(w);return p=p.replace(/ $/,"%20"),ae(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let v={get action(){return l},get location(){return e(i,o)},listen(w){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Df,f),a=w,()=>{i.removeEventListener(Df,f),a=null}},createHref(w){return t(i,w)},createURL:m,encodeLocation(w){let h=m(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:g,go(w){return o.go(w)}};return v}var Nf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Nf||(Nf={}));function L1(e,t,n){return n===void 0&&(n="/"),D1(e,t,n)}function D1(e,t,n,r){let i=typeof t=="string"?gr(t):t,s=Fm(i.pathname||"/",n);if(s==null)return null;let o=Vm(e);M1(o);let l=null;for(let a=0;l==null&&a<o.length;++a){let u=H1(s);l=b1(o[a],u)}return l}function Vm(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(ae(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=vn([r,a.relativePath]),c=n.concat(a);s.children&&s.children.length>0&&(ae(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Vm(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:z1(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let a of Im(s.path))i(s,o,a)}),t}function Im(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Im(r.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),i&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function M1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const N1=/^:[\w-]+$/,j1=3,V1=2,I1=1,F1=10,B1=-2,jf=e=>e==="*";function z1(e,t){let n=e.split("/"),r=n.length;return n.some(jf)&&(r+=B1),t&&(r+=V1),n.filter(i=>!jf(i)).reduce((i,s)=>i+(N1.test(s)?j1:s===""?I1:F1),r)}function U1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function b1(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",f=$1({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},c),d=a.route;if(!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:vn([s,f.pathname]),pathnameBase:J1(vn([s,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(s=vn([s,f.pathnameBase]))}return o}function $1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=W1(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:g}=c;if(d==="*"){let v=l[f]||"";o=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const m=l[f];return g&&!m?u[d]=void 0:u[d]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function W1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function H1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Fm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const K1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,G1=e=>K1.test(e);function Q1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?gr(e):e,s;if(n)if(G1(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Nu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?s=Vf(n.substring(1),"/"):s=Vf(n,t)}else s=t;return{pathname:s,search:Z1(r),hash:ew(i)}}function Vf(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ll(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. 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 X1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function q1(e,t){let n=X1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Y1(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=gr(e):(i=yi({},e),ae(!i.pathname||!i.pathname.includes("?"),ll("?","pathname","search",i)),ae(!i.pathname||!i.pathname.includes("#"),ll("#","pathname","hash",i)),ae(!i.search||!i.search.includes("#"),ll("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let a=Q1(i,l),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const vn=e=>e.join("/").replace(/\/\/+/g,"/"),J1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ew=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bm=["post","put","patch","delete"];new Set(Bm);const nw=["get",...Bm];new Set(nw);/**
|
|
51
|
-
* React Router v6.30.3
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Remix Software Inc.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
-
*
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gi.apply(this,arguments)}const ju=S.createContext(null),rw=S.createContext(null),So=S.createContext(null),Eo=S.createContext(null),nn=S.createContext({outlet:null,matches:[],isDataRoute:!1}),zm=S.createContext(null);function To(){return S.useContext(Eo)!=null}function Um(){return To()||ae(!1),S.useContext(Eo).location}function bm(e){S.useContext(So).static||S.useLayoutEffect(e)}function iw(){let{isDataRoute:e}=S.useContext(nn);return e?ww():sw()}function sw(){To()||ae(!1);let e=S.useContext(ju),{basename:t,future:n,navigator:r}=S.useContext(So),{matches:i}=S.useContext(nn),{pathname:s}=Um(),o=JSON.stringify(q1(i,n.v7_relativeSplatPath)),l=S.useRef(!1);return bm(()=>{l.current=!0}),S.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=Y1(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:vn([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,s,e])}const ow=S.createContext(null);function lw(e){let t=S.useContext(nn).outlet;return t&&S.createElement(ow.Provider,{value:e},t)}function Lk(){let{matches:e}=S.useContext(nn),t=e[e.length-1];return t?t.params:{}}function aw(e,t){return uw(e,t)}function uw(e,t,n,r){To()||ae(!1);let{navigator:i}=S.useContext(So),{matches:s}=S.useContext(nn),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=Um(),c;if(t){var f;let w=typeof t=="string"?gr(t):t;a==="/"||(f=w.pathname)!=null&&f.startsWith(a)||ae(!1),c=w}else c=u;let d=c.pathname||"/",g=d;if(a!=="/"){let w=a.replace(/^\//,"").split("/");g="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=L1(e,{pathname:g}),v=pw(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:vn([a,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:vn([a,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&v?S.createElement(Eo.Provider,{value:{location:gi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:zt.Pop}},v):v}function cw(){let e=vw(),t=tw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,null)}const fw=S.createElement(cw,null);class dw extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(nn.Provider,{value:this.props.routeContext},S.createElement(zm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hw(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(ju);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(nn.Provider,{value:t},r)}function pw(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||ae(!1),o=o.slice(0,Math.min(o.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let f=o[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:g}=n,m=f.route.loader&&d[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||m){a=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let g,m=!1,v=null,w=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||fw,a&&(u<0&&d===0?(xw("route-fallback"),m=!0,w=null):u===d&&(m=!0,w=f.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,d+1)),p=()=>{let y;return g?y=v:m?y=w:f.route.Component?y=S.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,S.createElement(hw,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?S.createElement(dw,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var $m=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($m||{}),Wm=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Wm||{});function mw(e){let t=S.useContext(ju);return t||ae(!1),t}function yw(e){let t=S.useContext(rw);return t||ae(!1),t}function gw(e){let t=S.useContext(nn);return t||ae(!1),t}function Hm(e){let t=gw(),n=t.matches[t.matches.length-1];return n.route.id||ae(!1),n.route.id}function vw(){var e;let t=S.useContext(zm),n=yw(),r=Hm();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ww(){let{router:e}=mw($m.UseNavigateStable),t=Hm(Wm.UseNavigateStable),n=S.useRef(!1);return bm(()=>{n.current=!0}),S.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,gi({fromRouteId:t},s)))},[e,t])}const If={};function xw(e,t,n){If[e]||(If[e]=!0)}function Sw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ew(e){return lw(e.context)}function ws(e){ae(!1)}function Tw(e){let{basename:t="/",children:n=null,location:r,navigationType:i=zt.Pop,navigator:s,static:o=!1,future:l}=e;To()&&ae(!1);let a=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:a,navigator:s,static:o,future:gi({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof r=="string"&&(r=gr(r));let{pathname:c="/",search:f="",hash:d="",state:g=null,key:m="default"}=r,v=S.useMemo(()=>{let w=Fm(c,a);return w==null?null:{location:{pathname:w,search:f,hash:d,state:g,key:m},navigationType:i}},[a,c,f,d,g,m,i]);return v==null?null:S.createElement(So.Provider,{value:u},S.createElement(Eo.Provider,{children:n,value:v}))}function Cw(e){let{children:t,location:n}=e;return aw(ga(t),n)}new Promise(()=>{});function ga(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,ga(r.props.children,s));return}r.type!==ws&&ae(!1),!r.props.index||!r.props.children||ae(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=ga(r.props.children,s)),n.push(o)}),n}/**
|
|
60
|
-
* React Router DOM v6.30.3
|
|
61
|
-
*
|
|
62
|
-
* Copyright (c) Remix Software Inc.
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the MIT license found in the
|
|
65
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
66
|
-
*
|
|
67
|
-
* @license MIT
|
|
68
|
-
*/const Pw="6";try{window.__reactRouterVersion=Pw}catch{}const kw="startTransition",Ff=yv[kw];function Rw(e){let{basename:t,children:n,future:r,window:i}=e,s=S.useRef();s.current==null&&(s.current=A1({window:i,v5Compat:!0}));let o=s.current,[l,a]=S.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=S.useCallback(f=>{u&&Ff?Ff(()=>a(f)):a(f)},[a,u]);return S.useLayoutEffect(()=>o.listen(c),[o,c]),S.useEffect(()=>Sw(r),[r]),S.createElement(Tw,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}var Bf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Bf||(Bf={}));var zf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zf||(zf={}));const Vu=S.createContext({});function Iu(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Co=S.createContext(null),Fu=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Aw extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function _w({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),i=S.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=S.useContext(Fu);return S.useInsertionEffect(()=>{const{width:o,height:l,top:a,left:u}=i.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
69
|
-
[data-motion-pop-id="${n}"] {
|
|
70
|
-
position: absolute !important;
|
|
71
|
-
width: ${o}px !important;
|
|
72
|
-
height: ${l}px !important;
|
|
73
|
-
top: ${a}px !important;
|
|
74
|
-
left: ${u}px !important;
|
|
75
|
-
}
|
|
76
|
-
`),()=>{document.head.removeChild(c)}},[t]),A.jsx(Aw,{isPresent:t,childRef:r,sizeRef:i,children:S.cloneElement(e,{ref:r})})}const Ow=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=Iu(Lw),a=S.useId(),u=S.useCallback(f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},[l,r]),c=S.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),u]:[n,u]);return S.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),S.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=A.jsx(_w,{isPresent:n,children:e})),A.jsx(Co.Provider,{value:c,children:e})};function Lw(){return new Map}function Km(e=!0){const t=S.useContext(Co);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{e&&i(s)},[e]);const o=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const ns=e=>e.key||"";function Uf(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Bu=typeof window<"u",Gm=Bu?S.useLayoutEffect:S.useEffect,vi=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[l,a]=Km(o),u=S.useMemo(()=>Uf(e),[e]),c=o&&!l?[]:u.map(ns),f=S.useRef(!0),d=S.useRef(u),g=Iu(()=>new Map),[m,v]=S.useState(u),[w,h]=S.useState(u);Gm(()=>{f.current=!1,d.current=u;for(let x=0;x<w.length;x++){const E=ns(w[x]);c.includes(E)?g.delete(E):g.get(E)!==!0&&g.set(E,!1)}},[w,c.length,c.join("-")]);const p=[];if(u!==m){let x=[...u];for(let E=0;E<w.length;E++){const C=w[E],k=ns(C);c.includes(k)||(x.splice(E,0,C),p.push(C))}s==="wait"&&p.length&&(x=p),h(Uf(x)),v(u);return}const{forceRender:y}=S.useContext(Vu);return A.jsx(A.Fragment,{children:w.map(x=>{const E=ns(x),C=o&&!l?!1:u===w||c.includes(E),k=()=>{if(g.has(E))g.set(E,!0);else return;let P=!0;g.forEach(j=>{j||(P=!1)}),P&&(y==null||y(),h(d.current),o&&(a==null||a()),r&&r())};return A.jsx(Ow,{isPresent:C,initial:!f.current||n?void 0:!1,custom:C?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:C?void 0:k,children:x},E)})})},Ue=e=>e;let Qm=Ue;function zu(e){let t;return()=>(t===void 0&&(t=e()),t)}const ur=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Tt=e=>e*1e3,Ct=e=>e/1e3,Dw={useManualTiming:!1};function Mw(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(a.schedule(u),e()),u(o)}const a={schedule:(u,c=!1,f=!1)=>{const g=f&&r?t:n;return c&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,a.process(u))}};return a}const rs=["read","resolveKeyframes","update","preRender","render","postRender"],Nw=40;function Xm(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=rs.reduce((h,p)=>(h[p]=Mw(s),h),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:f,postRender:d}=o,g=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,Nw),1),i.timestamp=h,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},m=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:rs.reduce((h,p)=>{const y=o[p];return h[p]=(x,E=!1,C=!1)=>(n||m(),y.schedule(x,E,C)),h},{}),cancel:h=>{for(let p=0;p<rs.length;p++)o[rs[p]].cancel(h)},state:i,steps:o}}const{schedule:H,cancel:Yt,state:de,steps:al}=Xm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ue,!0),qm=S.createContext({strict:!1}),bf={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"]},cr={};for(const e in bf)cr[e]={isEnabled:t=>bf[e].some(n=>!!t[n])};function jw(e){for(const t in e)cr[t]={...cr[t],...e[t]}}const Vw=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 qs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Vw.has(e)}let Ym=e=>!qs(e);function Iw(e){e&&(Ym=t=>t.startsWith("on")?!qs(t):e(t))}try{Iw(require("@emotion/is-prop-valid").default)}catch{}function Fw(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ym(i)||n===!0&&qs(i)||!t&&!qs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Bw(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Po=S.createContext({});function wi(e){return typeof e=="string"||Array.isArray(e)}function ko(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bu=["initial",...Uu];function Ro(e){return ko(e.animate)||bu.some(t=>wi(e[t]))}function Jm(e){return!!(Ro(e)||e.variants)}function zw(e,t){if(Ro(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wi(n)?n:void 0,animate:wi(r)?r:void 0}}return e.inherit!==!1?t:{}}function Uw(e){const{initial:t,animate:n}=zw(e,S.useContext(Po));return S.useMemo(()=>({initial:t,animate:n}),[$f(t),$f(n)])}function $f(e){return Array.isArray(e)?e.join(" "):e}const bw=Symbol.for("motionComponentSymbol");function Hn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $w(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Hn(n)&&(n.current=r))},[t])}const $u=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ww="framerAppearId",Zm="data-"+$u(Ww),{schedule:Wu}=Xm(queueMicrotask,!1),ey=S.createContext({});function Hw(e,t,n,r,i){var s,o;const{visualElement:l}=S.useContext(Po),a=S.useContext(qm),u=S.useContext(Co),c=S.useContext(Fu).reducedMotion,f=S.useRef(null);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,g=S.useContext(ey);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Kw(f.current,n,i,g);const m=S.useRef(!1);S.useInsertionEffect(()=>{d&&m.current&&d.update(n,u)});const v=n[Zm],w=S.useRef(!!v&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return Gm(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Wu.render(d.render),w.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!w.current&&d.animationState&&d.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,v)}),w.current=!1))}),d}function Kw(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ty(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&Hn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function ty(e){if(e)return e.options.allowProjection!==!1?e.projection:ty(e.parent)}function Gw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&jw(e);function l(u,c){let f;const d={...S.useContext(Fu),...u,layoutId:Qw(u)},{isStatic:g}=d,m=Uw(u),v=r(u,g);if(!g&&Bu){Xw();const w=qw(d);f=w.MeasureLayout,m.visualElement=Hw(i,v,d,t,w.ProjectionNode)}return A.jsxs(Po.Provider,{value:m,children:[f&&m.visualElement?A.jsx(f,{visualElement:m.visualElement,...d}):null,n(i,u,$w(v,m.visualElement,c),v,g,m.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const a=S.forwardRef(l);return a[bw]=i,a}function Qw({layoutId:e}){const t=S.useContext(Vu).id;return t&&e!==void 0?t+"-"+e:e}function Xw(e,t){S.useContext(qm).strict}function qw(e){const{drag:t,layout:n}=cr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Yw=["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 Hu(e){return typeof e!="string"||e.includes("-")?!1:!!(Yw.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ku(e,t,n,r){if(typeof t=="function"){const[i,s]=Wf(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Wf(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const va=e=>Array.isArray(e),Jw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Zw=e=>va(e)?e[e.length-1]||0:e,xe=e=>!!(e&&e.getVelocity);function xs(e){const t=xe(e)?e.get():e;return Jw(t)?t.toValue():t}function ex({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:tx(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const ny=e=>(t,n)=>{const r=S.useContext(Po),i=S.useContext(Co),s=()=>ex(e,t,r,i);return n?s():Iu(s)};function tx(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=xs(s[d]);let{initial:o,animate:l}=e;const a=Ro(e),u=Jm(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?l:o;if(f&&typeof f!="boolean"&&!ko(f)){const d=Array.isArray(f)?f:[f];for(let g=0;g<d.length;g++){const m=Ku(e,d[g]);if(m){const{transitionEnd:v,transition:w,...h}=m;for(const p in h){let y=h[p];if(Array.isArray(y)){const x=c?y.length-1:0;y=y[x]}y!==null&&(i[p]=y)}for(const p in v)i[p]=v[p]}}}return i}const vr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_n=new Set(vr),ry=e=>t=>typeof t=="string"&&t.startsWith(e),iy=ry("--"),nx=ry("var(--"),Gu=e=>nx(e)?rx.test(e.split("/*")[0].trim()):!1,rx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sy=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_t=(e,t,n)=>n>t?t:n<e?e:n,wr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xi={...wr,transform:e=>_t(0,1,e)},is={...wr,default:1},_i=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=_i("deg"),yt=_i("%"),D=_i("px"),ix=_i("vh"),sx=_i("vw"),Hf={...yt,parse:e=>yt.parse(e)/100,transform:e=>yt.transform(e*100)},ox={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,backgroundPositionX:D,backgroundPositionY:D},lx={rotate:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:is,scaleX:is,scaleY:is,scaleZ:is,skew:Mt,skewX:Mt,skewY:Mt,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:xi,originX:Hf,originY:Hf,originZ:D},Kf={...wr,transform:Math.round},Qu={...ox,...lx,zIndex:Kf,size:D,fillOpacity:xi,strokeOpacity:xi,numOctaves:Kf},ax={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ux=vr.length;function cx(e,t,n){let r="",i=!0;for(let s=0;s<ux;s++){const o=vr[s],l=e[o];if(l===void 0)continue;let a=!0;if(typeof l=="number"?a=l===(o.startsWith("scale")?1:0):a=parseFloat(l)===0,!a||n){const u=sy(l,Qu[o]);if(!a){i=!1;const c=ax[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Xu(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,l=!1;for(const a in t){const u=t[a];if(_n.has(a)){o=!0;continue}else if(iy(a)){i[a]=u;continue}else{const c=sy(u,Qu[a]);a.startsWith("origin")?(l=!0,s[a]=c):r[a]=c}}if(t.transform||(o||n?r.transform=cx(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:a="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${a} ${u} ${c}`}}const fx={offset:"stroke-dashoffset",array:"stroke-dasharray"},dx={offset:"strokeDashoffset",array:"strokeDasharray"};function hx(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?fx:dx;e[s.offset]=D.transform(-r);const o=D.transform(t),l=D.transform(n);e[s.array]=`${o} ${l}`}function Gf(e,t,n){return typeof e=="string"?e:D.transform(t+n*e)}function px(e,t,n){const r=Gf(t,e.x,e.width),i=Gf(n,e.y,e.height);return`${r} ${i}`}function qu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},c,f){if(Xu(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:g,dimensions:m}=e;d.transform&&(m&&(g.transform=d.transform),delete d.transform),m&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=px(m,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&hx(d,o,l,a,!1)}const Yu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),oy=()=>({...Yu(),attrs:{}}),Ju=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ly(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const ay=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 uy(e,t,n,r){ly(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ay.has(i)?i:$u(i),t.attrs[i])}const Ys={};function mx(e){Object.assign(Ys,e)}function cy(e,{layout:t,layoutId:n}){return _n.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ys[e]||e==="opacity")}function Zu(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(xe(i[o])||t.style&&xe(t.style[o])||cy(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function fy(e,t,n){const r=Zu(e,t,n);for(const i in e)if(xe(e[i])||xe(t[i])){const s=vr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function yx(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Qf=["x","y","width","height","cx","cy","r"],gx={useVisualState:ny({scrapeMotionValuesFromProps:fy,createRenderState:oy,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in i)if(_n.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l<Qf.length;l++){const a=Qf[l];e[a]!==t[a]&&(o=!0)}o&&H.read(()=>{yx(n,r),H.render(()=>{qu(r,i,Ju(n.tagName),e.transformTemplate),uy(n,r)})})}})},vx={useVisualState:ny({scrapeMotionValuesFromProps:Zu,createRenderState:Yu})};function dy(e,t,n){for(const r in t)!xe(t[r])&&!cy(r,n)&&(e[r]=t[r])}function wx({transformTemplate:e},t){return S.useMemo(()=>{const n=Yu();return Xu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xx(e,t){const n=e.style||{},r={};return dy(r,n,e),Object.assign(r,wx(e,t)),r}function Sx(e,t){const n={},r=xx(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function Ex(e,t,n,r){const i=S.useMemo(()=>{const s=oy();return qu(s,t,Ju(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};dy(s,e.style,e),i.style={...s,...i.style}}return i}function Tx(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(Hu(n)?Ex:Sx)(r,s,o,n),u=Fw(r,typeof n=="string",e),c=n!==S.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=S.useMemo(()=>xe(f)?f.get():f,[f]);return S.createElement(n,{...c,children:d})}}function Cx(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Hu(r)?gx:vx,preloadedFeatures:e,useRender:Tx(i),createVisualElement:t,Component:r};return Gw(o)}}function hy(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ao(e,t,n){const r=e.getProps();return Ku(r,t,n!==void 0?n:r.custom,e)}const Px=zu(()=>window.ScrollTimeline!==void 0);class kx{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Px()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Rx extends kx{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ec(e,t){return e?e[t]||e.default||e:void 0}const wa=2e4;function py(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<wa;)t+=n,r=e.next(t);return t>=wa?1/0:t}function tc(e){return typeof e=="function"}function Xf(e,t){e.timeline=t,e.onfinish=null}const nc=e=>Array.isArray(e)&&typeof e[0]=="number",Ax={linearEasing:void 0};function _x(e,t){const n=zu(e);return()=>{var r;return(r=Ax[t])!==null&&r!==void 0?r:n()}}const Js=_x(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),my=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(ur(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function yy(e){return!!(typeof e=="function"&&Js()||!e||typeof e=="string"&&(e in xa||Js())||nc(e)||Array.isArray(e)&&e.every(yy))}const Ir=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,xa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ir([0,.65,.55,1]),circOut:Ir([.55,0,1,.45]),backIn:Ir([.31,.01,.66,-.59]),backOut:Ir([.33,1.53,.69,.99])};function gy(e,t){if(e)return typeof e=="function"&&Js()?my(e,t):nc(e)?Ir(e):Array.isArray(e)?e.map(n=>gy(n,t)||xa.easeOut):xa[e]}const rt={x:!1,y:!1};function vy(){return rt.x||rt.y}function Ox(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function wy(e,t){const n=Ox(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function qf(e){return t=>{t.pointerType==="touch"||vy()||e(t)}}function Lx(e,t,n={}){const[r,i,s]=wy(e,n),o=qf(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=qf(f=>{u(f),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const xy=(e,t)=>t?e===t?!0:xy(e,t.parentElement):!1,rc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Dx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Mx(e){return Dx.has(e.tagName)||e.tabIndex!==-1}const Fr=new WeakSet;function Yf(e){return t=>{t.key==="Enter"&&e(t)}}function ul(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Nx=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yf(()=>{if(Fr.has(n))return;ul(n,"down");const i=Yf(()=>{ul(n,"up")}),s=()=>ul(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Jf(e){return rc(e)&&!vy()}function jx(e,t,n={}){const[r,i,s]=wy(e,n),o=l=>{const a=l.currentTarget;if(!Jf(l)||Fr.has(a))return;Fr.add(a);const u=t(l),c=(g,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!Jf(g)||!Fr.has(a))&&(Fr.delete(a),typeof u=="function"&&u(g,{success:m}))},f=g=>{c(g,n.useGlobalTarget||xy(a,g.target))},d=g=>{c(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(l=>{!Mx(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>Nx(u,i),i)}),s}function Vx(e){return e==="x"||e==="y"?rt[e]?null:(rt[e]=!0,()=>{rt[e]=!1}):rt.x||rt.y?null:(rt.x=rt.y=!0,()=>{rt.x=rt.y=!1})}const Sy=new Set(["width","height","top","left","right","bottom",...vr]);let Ss;function Ix(){Ss=void 0}const gt={now:()=>(Ss===void 0&>.set(de.isProcessing||Dw.useManualTiming?de.timestamp:performance.now()),Ss),set:e=>{Ss=e,queueMicrotask(Ix)}};function ic(e,t){e.indexOf(t)===-1&&e.push(t)}function sc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oc{constructor(){this.subscriptions=[]}add(t){return ic(this.subscriptions,t),()=>sc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Ey(e,t){return t?e*(1e3/t):0}const Zf=30,Fx=e=>!isNaN(parseFloat(e));class Bx{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=gt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Fx(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new oc);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zf);return Ey(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Si(e,t){return new Bx(e,t)}function zx(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Si(n))}function Ux(e,t){const n=Ao(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=Zw(s[o]);zx(e,o,l)}}function bx(e){return!!(xe(e)&&e.add)}function Sa(e,t){const n=e.getValue("willChange");if(bx(n))return n.add(t)}function Ty(e){return e.props[Zm]}const Cy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$x=1e-7,Wx=12;function Hx(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=Cy(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>$x&&++l<Wx);return o}function Oi(e,t,n,r){if(e===t&&n===r)return Ue;const i=s=>Hx(s,0,1,e,n);return s=>s===0||s===1?s:Cy(i(s),t,r)}const Py=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ky=e=>t=>1-e(1-t),Ry=Oi(.33,1.53,.69,.99),lc=ky(Ry),Ay=Py(lc),_y=e=>(e*=2)<1?.5*lc(e):.5*(2-Math.pow(2,-10*(e-1))),ac=e=>1-Math.sin(Math.acos(e)),Oy=ky(ac),Ly=Py(ac),Dy=e=>/^0[^.\s]+$/u.test(e);function Kx(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dy(e):!0}const Xr=e=>Math.round(e*1e5)/1e5,uc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gx(e){return e==null}const Qx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cc=(e,t)=>n=>!!(typeof n=="string"&&Qx.test(n)&&n.startsWith(e)||t&&!Gx(n)&&Object.prototype.hasOwnProperty.call(n,t)),My=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(uc);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Xx=e=>_t(0,255,e),cl={...wr,transform:e=>Math.round(Xx(e))},pn={test:cc("rgb","red"),parse:My("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cl.transform(e)+", "+cl.transform(t)+", "+cl.transform(n)+", "+Xr(xi.transform(r))+")"};function qx(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ea={test:cc("#"),parse:qx,transform:pn.transform},Kn={test:cc("hsl","hue"),parse:My("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yt.transform(Xr(t))+", "+yt.transform(Xr(n))+", "+Xr(xi.transform(r))+")"},ge={test:e=>pn.test(e)||Ea.test(e)||Kn.test(e),parse:e=>pn.test(e)?pn.parse(e):Kn.test(e)?Kn.parse(e):Ea.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pn.transform(e):Kn.transform(e)},Yx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jx(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(uc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Yx))===null||n===void 0?void 0:n.length)||0)>0}const Ny="number",jy="color",Zx="var",eS="var(",ed="${}",tS=/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 Ei(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace(tS,a=>(ge.test(a)?(r.color.push(s),i.push(jy),n.push(ge.parse(a))):a.startsWith(eS)?(r.var.push(s),i.push(Zx),n.push(a)):(r.number.push(s),i.push(Ny),n.push(parseFloat(a))),++s,ed)).split(ed);return{values:n,split:l,indexes:r,types:i}}function Vy(e){return Ei(e).values}function Iy(e){const{split:t,types:n}=Ei(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const l=n[o];l===Ny?s+=Xr(i[o]):l===jy?s+=ge.transform(i[o]):s+=i[o]}return s}}const nS=e=>typeof e=="number"?0:e;function rS(e){const t=Vy(e);return Iy(e)(t.map(nS))}const Jt={test:Jx,parse:Vy,createTransformer:Iy,getAnimatableNone:rS},iS=new Set(["brightness","contrast","saturate","opacity"]);function sS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uc)||[];if(!r)return e;const i=n.replace(r,"");let s=iS.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const oS=/\b([a-z-]*)\(.*?\)/gu,Ta={...Jt,getAnimatableNone:e=>{const t=e.match(oS);return t?t.map(sS).join(" "):e}},lS={...Qu,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:Ta,WebkitFilter:Ta},fc=e=>lS[e];function Fy(e,t){let n=fc(e);return n!==Ta&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aS=new Set(["auto","none","0"]);function uS(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!aS.has(s)&&Ei(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Fy(n,i)}const td=e=>e===wr||e===D,nd=(e,t)=>parseFloat(e.split(", ")[t]),rd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return nd(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?nd(s[1],e):0}},cS=new Set(["x","y","z"]),fS=vr.filter(e=>!cS.has(e));function dS(e){const t=[];return fS.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const fr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rd(4,13),y:rd(5,14)};fr.translateX=fr.x;fr.translateY=fr.y;const wn=new Set;let Ca=!1,Pa=!1;function By(){if(Pa){const e=Array.from(wn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=dS(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pa=!1,Ca=!1,wn.forEach(e=>e.complete()),wn.clear()}function zy(){wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pa=!0)})}function hS(){zy(),By()}class dc{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(wn.add(this),Ca||(Ca=!0,H.read(zy),H.resolveKeyframes(By))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,l);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),wn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,wn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Uy=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),pS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mS(e){const t=pS.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function by(e,t,n=1){const[r,i]=mS(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Uy(o)?parseFloat(o):o}return Gu(i)?by(i,t,n+1):i}const $y=e=>t=>t.test(e),yS={test:e=>e==="auto",parse:e=>e},Wy=[wr,D,yt,Mt,sx,ix,yS],id=e=>Wy.find($y(e));class Hy extends dc{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),Gu(u))){const c=by(u,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Sy.has(r)||t.length!==2)return;const[i,s]=t,o=id(i),l=id(s);if(o!==l)if(td(o)&&td(l))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Kx(t[i])&&r.push(i);r.length&&uS(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=fr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([a,u])=>{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const sd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Jt.test(e)||e==="0")&&!e.startsWith("url("));function gS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vS(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=sd(i,t),l=sd(s,t);return!o||!l?!1:gS(e)||(n==="spring"||tc(n))&&r}const wS=e=>e!==null;function _o(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(wS),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const xS=40;class Ky{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=gt.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>xS?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hS(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=gt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!vS(t,r,i,s))if(o)this.options.duration=0;else{a&&a(_o(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Q=(e,t,n)=>e+(t-e)*n;function fl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function SS({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=fl(a,l,e+1/3),s=fl(a,l,e),o=fl(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Zs(e,t){return n=>n>0?t:e}const dl=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ES=[Ea,pn,Kn],TS=e=>ES.find(t=>t.test(e));function od(e){const t=TS(e);if(!t)return!1;let n=t.parse(e);return t===Kn&&(n=SS(n)),n}const ld=(e,t)=>{const n=od(e),r=od(t);if(!n||!r)return Zs(e,t);const i={...n};return s=>(i.red=dl(n.red,r.red,s),i.green=dl(n.green,r.green,s),i.blue=dl(n.blue,r.blue,s),i.alpha=Q(n.alpha,r.alpha,s),pn.transform(i))},CS=(e,t)=>n=>t(e(n)),Li=(...e)=>e.reduce(CS),ka=new Set(["none","hidden"]);function PS(e,t){return ka.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kS(e,t){return n=>Q(e,t,n)}function hc(e){return typeof e=="number"?kS:typeof e=="string"?Gu(e)?Zs:ge.test(e)?ld:_S:Array.isArray(e)?Gy:typeof e=="object"?ge.test(e)?ld:RS:Zs}function Gy(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>hc(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function RS(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=hc(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function AS(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],l=e.indexes[o][i[o]],a=(n=e.values[l])!==null&&n!==void 0?n:0;r[s]=a,i[o]++}return r}const _S=(e,t)=>{const n=Jt.createTransformer(t),r=Ei(e),i=Ei(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ka.has(e)&&!i.values.length||ka.has(t)&&!r.values.length?PS(e,t):Li(Gy(AS(r,i),i.values),n):Zs(e,t)};function Qy(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Q(e,t,n):hc(e)(e,t)}const OS=5;function Xy(e,t,n){const r=Math.max(t-OS,0);return Ey(n-e(r),t-r)}const J={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},hl=.001;function LS({duration:e=J.duration,bounce:t=J.bounce,velocity:n=J.velocity,mass:r=J.mass}){let i,s,o=1-t;o=_t(J.minDamping,J.maxDamping,o),e=_t(J.minDuration,J.maxDuration,Ct(e)),o<1?(i=u=>{const c=u*o,f=c*e,d=c-n,g=Ra(u,o),m=Math.exp(-f);return hl-d/g*m},s=u=>{const f=u*o*e,d=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,m=Math.exp(-f),v=Ra(Math.pow(u,2),o);return(-i(u)+hl>0?-1:1)*((d-g)*m)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-hl+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=MS(i,s,l);if(e=Tt(e),isNaN(a))return{stiffness:J.stiffness,damping:J.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const DS=12;function MS(e,t,n){let r=n;for(let i=1;i<DS;i++)r=r-e(r)/t(r);return r}function Ra(e,t){return e*Math.sqrt(1-t*t)}const NS=["duration","bounce"],jS=["stiffness","damping","mass"];function ad(e,t){return t.some(n=>e[n]!==void 0)}function VS(e){let t={velocity:J.velocity,stiffness:J.stiffness,damping:J.damping,mass:J.mass,isResolvedFromDuration:!1,...e};if(!ad(e,jS)&&ad(e,NS))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*_t(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:J.mass,stiffness:i,damping:s}}else{const n=LS(e);t={...t,...n,mass:J.mass},t.isResolvedFromDuration=!0}return t}function qy(e=J.visualDuration,t=J.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:a,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=VS({...n,velocity:-Ct(n.velocity||0)}),m=d||0,v=u/(2*Math.sqrt(a*c)),w=o-s,h=Ct(Math.sqrt(a/c)),p=Math.abs(w)<5;r||(r=p?J.restSpeed.granular:J.restSpeed.default),i||(i=p?J.restDelta.granular:J.restDelta.default);let y;if(v<1){const E=Ra(h,v);y=C=>{const k=Math.exp(-v*h*C);return o-k*((m+v*h*w)/E*Math.sin(E*C)+w*Math.cos(E*C))}}else if(v===1)y=E=>o-Math.exp(-h*E)*(w+(m+h*w)*E);else{const E=h*Math.sqrt(v*v-1);y=C=>{const k=Math.exp(-v*h*C),P=Math.min(E*C,300);return o-k*((m+v*h*w)*Math.sinh(P)+E*w*Math.cosh(P))/E}}const x={calculatedDuration:g&&f||null,next:E=>{const C=y(E);if(g)l.done=E>=f;else{let k=0;v<1&&(k=E===0?Tt(m):Xy(y,E,C));const P=Math.abs(k)<=r,j=Math.abs(o-C)<=i;l.done=P&&j}return l.value=l.done?o:C,l},toString:()=>{const E=Math.min(py(x),wa),C=my(k=>x.next(E*k).value,E,30);return E+"ms "+C}};return x}function ud({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=P=>l!==void 0&&P<l||a!==void 0&&P>a,m=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let v=n*t;const w=f+v,h=o===void 0?w:o(w);h!==w&&(v=h-f);const p=P=>-v*Math.exp(-P/r),y=P=>h+p(P),x=P=>{const j=p(P),L=y(P);d.done=Math.abs(j)<=u,d.value=d.done?h:L};let E,C;const k=P=>{g(d.value)&&(E=P,C=qy({keyframes:[d.value,m(d.value)],velocity:Xy(y,P,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:P=>{let j=!1;return!C&&E===void 0&&(j=!0,x(P),k(P)),E!==void 0&&P>=E?C.next(P-E):(!j&&x(P),d)}}}const IS=Oi(.42,0,1,1),FS=Oi(0,0,.58,1),Yy=Oi(.42,0,.58,1),BS=e=>Array.isArray(e)&&typeof e[0]!="number",zS={linear:Ue,easeIn:IS,easeInOut:Yy,easeOut:FS,circIn:ac,circInOut:Ly,circOut:Oy,backIn:lc,backInOut:Ay,backOut:Ry,anticipate:_y},cd=e=>{if(nc(e)){Qm(e.length===4);const[t,n,r,i]=e;return Oi(t,n,r,i)}else if(typeof e=="string")return zS[e];return e};function US(e,t,n){const r=[],i=n||Qy,s=e.length-1;for(let o=0;o<s;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||Ue:t;l=Li(a,l)}r.push(l)}return r}function bS(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Qm(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=US(t,r,i),a=l.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(a>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=ur(e[f],e[f+1],c);return l[f](d)};return n?c=>u(_t(e[0],e[s-1],c)):u}function $S(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ur(0,t,r);e.push(Q(n,1,i))}}function WS(e){const t=[0];return $S(t,e.length-1),t}function HS(e,t){return e.map(n=>n*t)}function KS(e,t){return e.map(()=>t||Yy).splice(0,e.length-1)}function eo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=BS(r)?r.map(cd):cd(r),s={done:!1,value:t[0]},o=HS(n&&n.length===t.length?n:WS(t),e),l=bS(o,t,{ease:Array.isArray(i)?i:KS(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}const GS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>H.update(t,!0),stop:()=>Yt(t),now:()=>de.isProcessing?de.timestamp:gt.now()}},QS={decay:ud,inertia:ud,tween:eo,keyframes:eo,spring:qy},XS=e=>e/100;class pc extends Ky{constructor(t){super(t),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:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||dc,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new o(s,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,l=tc(n)?n:QS[n]||eo;let a,u;l!==eo&&typeof t[0]!="number"&&(a=Li(XS,Qy(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=py(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:d,repeat:g,repeatType:m,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,x=s;if(g){const P=Math.min(this.currentTime,c)/f;let j=Math.floor(P),L=P%1;!L&&P>=1&&(L=1),L===1&&j--,j=Math.min(j,g+1),!!(j%2)&&(m==="reverse"?(L=1-L,v&&(L-=v/f)):m==="mirror"&&(x=o)),y=_t(0,1,L)*f}const E=p?{done:!1,value:a[0]}:x.next(y);l&&(E.value=l(E.value));let{done:C}=E;!p&&u!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return k&&i!==void 0&&(E.value=_o(a,this.options,i)),w&&w(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Ct(t.calculatedDuration):0}get time(){return Ct(this.currentTime)}set time(t){t=Tt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ct(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=GS,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const qS=new Set(["opacity","clipPath","filter","transform"]);function YS(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=gy(l,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const JS=zu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),to=10,ZS=2e4;function eE(e){return tc(e.type)||e.type==="spring"||!yy(e.ease)}function tE(e,t){const n=new pc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<ZS;)r=n.sample(s),i.push(r.value),s+=to;return{times:void 0,keyframes:i,duration:s-to,ease:"linear"}}const Jy={anticipate:_y,backInOut:Ay,circInOut:Ly};function nE(e){return e in Jy}class fd extends Ky{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Hy(s,(o,l)=>this.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&Js()&&nE(s)&&(s=Jy[s]),eE(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,element:m,...v}=this.options,w=tE(t,v);t=w.keyframes,t.length===1&&(t[1]=t[0]),r=w.duration,i=w.times,s=w.ease,o="keyframes"}const c=YS(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Xf(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(_o(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ct(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ct(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Tt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ue;const{animation:r}=n;Xf(r,t)}return Ue}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...g}=this.options,m=new pc({...g,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),v=Tt(this.time);u.setWithVelocity(m.sample(v-to).value,m.sample(v).value,to)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return JS()&&r&&qS.has(r)&&!a&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const rE={type:"spring",stiffness:500,damping:25,restSpeed:10},iE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sE={type:"keyframes",duration:.8},oE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lE=(e,{keyframes:t})=>t.length>2?sE:_n.has(e)?e.startsWith("scale")?iE(t[1]):rE:oE;function aE({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const mc=(e,t,n,r={},i,s)=>o=>{const l=ec(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Tt(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:d=>{t.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};aE(l)||(c={...c,...lE(e,c)}),c.duration&&(c.duration=Tt(c.duration)),c.repeatDelay&&(c.repeatDelay=Tt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const d=_o(c.keyframes,l);if(d!==void 0)return H.update(()=>{c.onUpdate(d),c.onComplete()}),new Rx([])}return!s&&fd.supports(c)?new fd(c):new pc(c)};function uE({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Zy(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const d=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),g=a[f];if(g===void 0||c&&uE(c,f))continue;const m={delay:n,...ec(o||{},f)};let v=!1;if(window.MotionHandoffAnimation){const h=Ty(e);if(h){const p=window.MotionHandoffAnimation(h,f,H);p!==null&&(m.startTime=p,v=!0)}}Sa(e,f),d.start(mc(f,d,g,e.shouldReduceMotion&&Sy.has(f)?{type:!1}:m,e,v));const w=d.animation;w&&u.push(w)}return l&&Promise.all(u).then(()=>{H.update(()=>{l&&Ux(e,l)})}),u}function Aa(e,t,n={}){var r;const i=Ao(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Zy(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=s;return cE(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[o,l]:[l,o];return u().then(()=>c())}else return Promise.all([o(),l(n.delay)])}function cE(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(fE).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(Aa(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function fE(e,t){return e.sortNodePosition(t)}function dE(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Aa(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Aa(e,t,n);else{const i=typeof t=="function"?Ao(e,t,n.custom):t;r=Promise.all(Zy(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hE=bu.length;function eg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?eg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hE;n++){const r=bu[n],i=e.props[r];(wi(i)||i===!1)&&(t[r]=i)}return t}const pE=[...Uu].reverse(),mE=Uu.length;function yE(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dE(e,n,r)))}function gE(e){let t=yE(e),n=dd(),r=!0;const i=a=>(u,c)=>{var f;const d=Ao(e,c,a==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:m,...v}=d;u={...u,...v,...m}}return u};function s(a){t=a(e)}function o(a){const{props:u}=e,c=eg(e.parent)||{},f=[],d=new Set;let g={},m=1/0;for(let w=0;w<mE;w++){const h=pE[w],p=n[h],y=u[h]!==void 0?u[h]:c[h],x=wi(y),E=h===a?p.isActive:null;E===!1&&(m=w);let C=y===c[h]&&y!==u[h]&&x;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),p.protectedKeys={...g},!p.isActive&&E===null||!y&&!p.prevProp||ko(y)||typeof y=="boolean")continue;const k=vE(p.prevProp,y);let P=k||h===a&&p.isActive&&!C&&x||w>m&&x,j=!1;const L=Array.isArray(y)?y:[y];let ee=L.reduce(i(h),{});E===!1&&(ee={});const{prevResolvedValues:je={}}=p,Ve={...je,...ee},Ie=Y=>{P=!0,d.has(Y)&&(j=!0,d.delete(Y)),p.needsAnimating[Y]=!0;const _=e.getValue(Y);_&&(_.liveStyle=!1)};for(const Y in Ve){const _=ee[Y],M=je[Y];if(g.hasOwnProperty(Y))continue;let V=!1;va(_)&&va(M)?V=!hy(_,M):V=_!==M,V?_!=null?Ie(Y):d.add(Y):_!==void 0&&d.has(Y)?Ie(Y):p.protectedKeys[Y]=!0}p.prevProp=y,p.prevResolvedValues=ee,p.isActive&&(g={...g,...ee}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(C&&k)||j)&&f.push(...L.map(Y=>({animation:Y,options:{type:h}})))}if(d.size){const w={};d.forEach(h=>{const p=e.getBaseTarget(h),y=e.getValue(h);y&&(y.liveStyle=!0),w[h]=p??null}),f.push({animation:w})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function l(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(a,u)}),n[a].isActive=u;const f=o(a);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=dd(),r=!0}}}function vE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!hy(t,e):!1}function on(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dd(){return{animate:on(!0),whileInView:on(),whileHover:on(),whileTap:on(),whileDrag:on(),whileFocus:on(),exit:on()}}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class wE extends rn{constructor(t){super(t),t.animationState||(t.animationState=gE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ko(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let xE=0;class SE extends rn{constructor(){super(...arguments),this.id=xE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const EE={animation:{Feature:wE},exit:{Feature:SE}};function Ti(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Di(e){return{point:{x:e.pageX,y:e.pageY}}}const TE=e=>t=>rc(t)&&e(t,Di(t));function qr(e,t,n,r){return Ti(e,t,TE(n),r)}const hd=(e,t)=>Math.abs(e-t);function CE(e,t){const n=hd(e.x,t.x),r=hd(e.y,t.y);return Math.sqrt(n**2+r**2)}class tg{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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 f=ml(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=CE(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:m}=f,{timestamp:v}=de;this.history.push({...m,timestamp:v});const{onStart:w,onMove:h}=this.handlers;d||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=pl(d,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=ml(f.type==="pointercancel"?this.lastMoveEventInfo:pl(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,w),m&&m(f,w)},!rc(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Di(t),l=pl(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=de;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ml(l,this.history)),this.removeListeners=Li(qr(this.contextWindow,"pointermove",this.handlePointerMove),qr(this.contextWindow,"pointerup",this.handlePointerUp),qr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Yt(this.updatePoint)}}function pl(e,t){return t?{point:t(e.point)}:e}function pd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ml({point:e},t){return{point:e,delta:pd(e,ng(t)),offset:pd(e,PE(t)),velocity:kE(t,.1)}}function PE(e){return e[0]}function ng(e){return e[e.length-1]}function kE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ng(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Tt(t)));)n--;if(!r)return{x:0,y:0};const s=Ct(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const rg=1e-4,RE=1-rg,AE=1+rg,ig=.01,_E=0-ig,OE=0+ig;function $e(e){return e.max-e.min}function LE(e,t,n){return Math.abs(e-t)<=n}function md(e,t,n,r=.5){e.origin=r,e.originPoint=Q(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=Q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=RE&&e.scale<=AE||isNaN(e.scale))&&(e.scale=1),(e.translate>=_E&&e.translate<=OE||isNaN(e.translate))&&(e.translate=0)}function Yr(e,t,n,r){md(e.x,t.x,n.x,r?r.originX:void 0),md(e.y,t.y,n.y,r?r.originY:void 0)}function yd(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function DE(e,t,n){yd(e.x,t.x,n.x),yd(e.y,t.y,n.y)}function gd(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function Jr(e,t,n){gd(e.x,t.x,n.x),gd(e.y,t.y,n.y)}function ME(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Q(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Q(n,e,r.max):Math.min(e,n)),e}function vd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function NE(e,{top:t,left:n,bottom:r,right:i}){return{x:vd(e.x,n,i),y:vd(e.y,t,r)}}function wd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function jE(e,t){return{x:wd(e.x,t.x),y:wd(e.y,t.y)}}function VE(e,t){let n=.5;const r=$e(e),i=$e(t);return i>r?n=ur(t.min,t.max-r,e.min):r>i&&(n=ur(e.min,e.max-i,t.min)),_t(0,1,n)}function IE(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _a=.35;function FE(e=_a){return e===!1?e=0:e===!0&&(e=_a),{x:xd(e,"left","right"),y:xd(e,"top","bottom")}}function xd(e,t,n){return{min:Sd(e,t),max:Sd(e,n)}}function Sd(e,t){return typeof e=="number"?e:e[t]||0}const Ed=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gn=()=>({x:Ed(),y:Ed()}),Td=()=>({min:0,max:0}),te=()=>({x:Td(),y:Td()});function Xe(e){return[e("x"),e("y")]}function sg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yl(e){return e===void 0||e===1}function Oa({scale:e,scaleX:t,scaleY:n}){return!yl(e)||!yl(t)||!yl(n)}function un(e){return Oa(e)||og(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function og(e){return Cd(e.x)||Cd(e.y)}function Cd(e){return e&&e!=="0%"}function no(e,t,n){const r=e-n,i=t*r;return n+i}function Pd(e,t,n,r,i){return i!==void 0&&(e=no(e,i,r)),no(e,n,r)+t}function La(e,t=0,n=1,r,i){e.min=Pd(e.min,t,n,r,i),e.max=Pd(e.max,t,n,r,i)}function lg(e,{x:t,y:n}){La(e.x,t.translate,t.scale,t.originPoint),La(e.y,n.translate,n.scale,n.originPoint)}const kd=.999999999999,Rd=1.0000000000001;function UE(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:a}=s.options;a&&a.props.style&&a.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Xn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,lg(e,o)),r&&un(s.latestValues)&&Xn(e,s.latestValues))}t.x<Rd&&t.x>kd&&(t.x=1),t.y<Rd&&t.y>kd&&(t.y=1)}function Qn(e,t){e.min=e.min+t,e.max=e.max+t}function Ad(e,t,n,r,i=.5){const s=Q(e.min,e.max,i);La(e,t,n,s,r)}function Xn(e,t){Ad(e.x,t.x,t.scaleX,t.scale,t.originX),Ad(e.y,t.y,t.scaleY,t.scale,t.originY)}function ag(e,t){return sg(zE(e.getBoundingClientRect(),t))}function bE(e,t,n){const r=ag(e,n),{scroll:i}=t;return i&&(Qn(r.x,i.offset.x),Qn(r.y,i.offset.y)),r}const ug=({current:e})=>e?e.ownerDocument.defaultView:null,$E=new WeakMap;class WE{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Di(c).point)},s=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:m}=this.getProps();if(d&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vx(d),!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),Xe(w=>{let h=this.getAxisMotionValue(w).get()||0;if(yt.test(h)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[w];y&&(h=$e(y)*(parseFloat(h)/100))}}this.originPoint[w]=h}),m&&H.postRender(()=>m(c,f)),Sa(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:m,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:w}=f;if(g&&this.currentDirection===null){this.currentDirection=HE(w),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Xe(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tg(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:ug(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&H.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ss(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=ME(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Hn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=NE(i.layoutBox,n):this.constraints=!1,this.elastic=FE(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Xe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=IE(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Hn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=bE(r,i.root,this.visualElement.getTransformPagePoint());let o=jE(i.layout.layoutBox,s);if(n){const l=n(BE(o));this.hasMutatedConstraints=!!l,l&&(o=sg(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Xe(c=>{if(!ss(c,n,this.currentDirection))return;let f=a&&a[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Sa(this.visualElement,t),r.start(mc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xe(n=>{const{drag:r}=this.getProps();if(!ss(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-Q(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Hn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xe(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const a=l.get();i[o]=VE({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xe(o=>{if(!ss(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(Q(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;$E.set(this.visualElement,this);const t=this.visualElement.current,n=qr(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Hn(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);const o=Ti(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Xe(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=_a,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function ss(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class KE extends rn{constructor(t){super(t),this.removeGroupControls=Ue,this.removeListeners=Ue,this.controls=new WE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const _d=e=>(t,n)=>{e&&H.postRender(()=>e(t,n))};class GE extends rn{constructor(){super(...arguments),this.removePointerDownListener=Ue}onPointerDown(t){this.session=new tg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ug(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_d(t),onStart:_d(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&H.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=qr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Es={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Od(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Or={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=Od(e,t.target.x),r=Od(e,t.target.y);return`${n}% ${r}%`}},QE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Jt.parse(e);if(i.length>5)return r;const s=Jt.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=a;const u=Q(l,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class XE extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;mx(qE),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Es.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||H.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Wu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cg(e){const[t,n]=Km(),r=S.useContext(Vu);return A.jsx(XE,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(ey),isPresent:t,safeToRemove:n})}const qE={borderRadius:{...Or,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Or,borderTopRightRadius:Or,borderBottomLeftRadius:Or,borderBottomRightRadius:Or,boxShadow:QE};function YE(e,t,n){const r=xe(e)?e:Si(e);return r.start(mc("",r,t,n)),r.animation}function JE(e){return e instanceof SVGElement&&e.tagName!=="svg"}const ZE=(e,t)=>e.depth-t.depth;class eT{constructor(){this.children=[],this.isDirty=!1}add(t){ic(this.children,t),this.isDirty=!0}remove(t){sc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ZE),this.isDirty=!1,this.children.forEach(t)}}function tT(e,t){const n=gt.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Yt(r),e(s-t))};return H.read(r,!0),()=>Yt(r)}const fg=["TopLeft","TopRight","BottomLeft","BottomRight"],nT=fg.length,Ld=e=>typeof e=="string"?parseFloat(e):e,Dd=e=>typeof e=="number"||D.test(e);function rT(e,t,n,r,i,s){i?(e.opacity=Q(0,n.opacity!==void 0?n.opacity:1,iT(r)),e.opacityExit=Q(t.opacity!==void 0?t.opacity:1,0,sT(r))):s&&(e.opacity=Q(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<nT;o++){const l=`border${fg[o]}Radius`;let a=Md(t,l),u=Md(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Dd(a)===Dd(u)?(e[l]=Math.max(Q(Ld(a),Ld(u),r),0),(yt.test(u)||yt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Q(t.rotate||0,n.rotate||0,r))}function Md(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const iT=dg(0,.5,Oy),sT=dg(.5,.95,Ue);function dg(e,t,n){return r=>r<e?0:r>t?1:n(ur(e,t,r))}function Nd(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){Nd(e.x,t.x),Nd(e.y,t.y)}function jd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vd(e,t,n,r,i){return e-=t,e=no(e,1/n,r),i!==void 0&&(e=no(e,1/i,r)),e}function oT(e,t=0,n=1,r=.5,i,s=e,o=e){if(yt.test(t)&&(t=parseFloat(t),t=Q(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=Q(s.min,s.max,r);e===s&&(l-=t),e.min=Vd(e.min,t,n,l,i),e.max=Vd(e.max,t,n,l,i)}function Id(e,t,[n,r,i],s,o){oT(e,t[n],t[r],t[i],t.scale,s,o)}const lT=["x","scaleX","originX"],aT=["y","scaleY","originY"];function Fd(e,t,n,r){Id(e.x,t,lT,n?n.x:void 0,r?r.x:void 0),Id(e.y,t,aT,n?n.y:void 0,r?r.y:void 0)}function Bd(e){return e.translate===0&&e.scale===1}function hg(e){return Bd(e.x)&&Bd(e.y)}function zd(e,t){return e.min===t.min&&e.max===t.max}function uT(e,t){return zd(e.x,t.x)&&zd(e.y,t.y)}function Ud(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pg(e,t){return Ud(e.x,t.x)&&Ud(e.y,t.y)}function bd(e){return $e(e.x)/$e(e.y)}function $d(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class cT{constructor(){this.members=[]}add(t){ic(this.members,t),t.scheduleRender()}remove(t){if(sc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fT(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),g&&(r+=`skewX(${g}deg) `),m&&(r+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const cn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Br=typeof window<"u"&&window.MotionDebug!==void 0,gl=["","X","Y","Z"],dT={visibility:"hidden"},Wd=1e3;let hT=0;function vl(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ty(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mg(r)}function yg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=hT++,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,Br&&(cn.totalNodes=cn.resolvedTargetDeltas=cn.recalculatedProjection=0),this.nodes.forEach(yT),this.nodes.forEach(ST),this.nodes.forEach(ET),this.nodes.forEach(gT),Br&&window.MotionDebug.record(cn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new eT)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new oc),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const a=this.eventHandlers.get(o);a&&a.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=JE(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=tT(d,250),Es.hasAnimatedSinceResize&&(Es.hasAnimatedSinceResize=!1,this.nodes.forEach(Kd))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||RT,{onLayoutAnimationStart:w,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!pg(this.targetLayout,m)||g,y=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const x={...ec(v,"layout"),onPlay:w,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||Kd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Yt(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(TT),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&mg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Hd);return}this.isUpdating||this.nodes.forEach(wT),this.isUpdating=!1,this.nodes.forEach(xT),this.nodes.forEach(pT),this.nodes.forEach(mT),this.clearAllSnapshots();const l=gt.now();de.delta=_t(0,1e3/60,l-de.timestamp),de.timestamp=l,de.isProcessing=!0,al.update.process(de),al.preRender.process(de),al.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vT),this.sharedNodes.forEach(CT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.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 a=0;a<this.path.length;a++)this.path[a].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const a=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!hg(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(l||un(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return o&&(a=this.removeTransform(a)),AT(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return te();const a=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(_T))){const{scroll:c}=this.root;c&&(Qn(a.x,c.offset.x),Qn(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=te();if(Ge(a,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Ge(a,o),Qn(a.x,f.offset.x),Qn(a.y,f.offset.y))}return a}applyTransform(o,l=!1){const a=te();Ge(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Xn(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),un(c.latestValues)&&Xn(a,c.latestValues)}return un(this.latestValues)&&Xn(a,this.latestValues),a}removeTransform(o){const l=te();Ge(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!un(u.latestValues))continue;Oa(u.latestValues)&&u.updateSnapshot();const c=te(),f=u.measurePageBox();Ge(c,f),Fd(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return un(this.latestValues)&&Fd(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=de.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),DE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ge(this.target,this.layout.layoutBox),lg(this.target,this.targetDelta)):Ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Jr(this.relativeTargetOrigin,this.target,g.target),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Br&&cn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Oa(this.parent.latestValues)||og(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 o;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===de.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Ge(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,g=this.treeScale.y;UE(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=te());const{target:m}=l;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jd(this.prevProjectionDelta.x,this.projectionDelta.x),jd(this.prevProjectionDelta.y,this.projectionDelta.y)),Yr(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==g||!$d(this.projectionDelta.x,this.prevProjectionDelta.x)||!$d(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Br&&cn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gn(),this.projectionDelta=Gn(),this.projectionDeltaWithTransform=Gn()}setAnimationOrigin(o,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},f=Gn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=te(),g=a?a.source:void 0,m=this.layout?this.layout.source:void 0,v=g!==m,w=this.getStack(),h=!w||w.members.length<=1,p=!!(v&&!h&&this.options.crossfade===!0&&!this.path.some(kT));this.animationProgress=0;let y;this.mixTargetDelta=x=>{const E=x/1e3;Gd(f.x,o.x,E),Gd(f.y,o.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PT(this.relativeTarget,this.relativeTargetOrigin,d,E),y&&uT(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=te()),Ge(y,this.relativeTarget)),v&&(this.animationValues=c,rT(c,u,this.latestValues,E,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Es.hasAnimatedSinceResize=!0,this.currentAnimation=YE(0,Wd,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&gg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||te();const f=$e(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+f;const d=$e(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+d}Ge(l,a),Xn(l,c),Yr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new cT),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:a}=o;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&vl("z",o,u,this.animationValues);for(let c=0;c<gl.length;c++)vl(`rotate${gl[c]}`,o,u,this.animationValues),vl(`skew${gl[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return dT;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=xs(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=xs(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!un(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=fT(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:g,y:m}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${m.origin*100}% 0`,f.animationValues?u.opacity=f===this?(a=(l=d.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Ys){if(d[v]===void 0)continue;const{correct:w,applyTo:h}=Ys[v],p=u.transform==="none"?d[v]:w(d[v],f);if(h){const y=h.length;for(let x=0;x<y;x++)u[h[x]]=p}else u[v]=p}return this.options.layoutId&&(u.pointerEvents=f===this?xs(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Hd),this.root.sharedNodes.clear()}}}function pT(e){e.updateLayout()}function mT(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Xe(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=$e(d);d.min=r[f].min,d.max=d.min+g}):gg(s,n.layoutBox,r)&&Xe(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=$e(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=Gn();Yr(l,r,n.layoutBox);const a=Gn();o?Yr(a,e.applyTransform(i,!0),n.measuredBox):Yr(a,r,n.layoutBox);const u=!hg(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const m=te();Jr(m,n.layoutBox,d.layoutBox);const v=te();Jr(v,r,g.layoutBox),pg(m,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function yT(e){Br&&cn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function gT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vT(e){e.clearSnapshot()}function Hd(e){e.clearMeasurements()}function wT(e){e.isLayoutDirty=!1}function xT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Kd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ST(e){e.resolveTargetDelta()}function ET(e){e.calcProjection()}function TT(e){e.resetSkewAndRotation()}function CT(e){e.removeLeadSnapshot()}function Gd(e,t,n){e.translate=Q(t.translate,0,n),e.scale=Q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qd(e,t,n,r){e.min=Q(t.min,n.min,r),e.max=Q(t.max,n.max,r)}function PT(e,t,n,r){Qd(e.x,t.x,n.x,r),Qd(e.y,t.y,n.y,r)}function kT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const RT={duration:.45,ease:[.4,0,.1,1]},Xd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qd=Xd("applewebkit/")&&!Xd("chrome/")?Math.round:Ue;function Yd(e){e.min=qd(e.min),e.max=qd(e.max)}function AT(e){Yd(e.x),Yd(e.y)}function gg(e,t,n){return e==="position"||e==="preserve-aspect"&&!LE(bd(t),bd(n),.2)}function _T(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const OT=yg({attachResizeListener:(e,t)=>Ti(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wl={current:void 0},vg=yg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wl.current){const e=new OT({});e.mount(window),e.setOptions({layoutScroll:!0}),wl.current=e}return wl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),LT={pan:{Feature:GE},drag:{Feature:KE,ProjectionNode:vg,MeasureLayout:cg}};function Jd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&H.postRender(()=>s(t,Di(t)))}class DT extends rn{mount(){const{current:t}=this.node;t&&(this.unmount=Lx(t,n=>(Jd(this.node,n,"Start"),r=>Jd(this.node,r,"End"))))}unmount(){}}class MT extends rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Li(Ti(this.node.current,"focus",()=>this.onFocus()),Ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zd(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&H.postRender(()=>s(t,Di(t)))}class NT extends rn{mount(){const{current:t}=this.node;t&&(this.unmount=jx(t,n=>(Zd(this.node,n,"Start"),(r,{success:i})=>Zd(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Da=new WeakMap,xl=new WeakMap,jT=e=>{const t=Da.get(e.target);t&&t(e)},VT=e=>{e.forEach(jT)};function IT({root:e,...t}){const n=e||document;xl.has(n)||xl.set(n,{});const r=xl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(VT,{root:e,...t})),r[i]}function FT(e,t,n){const r=IT(t);return Da.set(e,n),r.observe(e),()=>{Da.delete(e),r.unobserve(e)}}const BT={some:0,all:1};class zT extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:BT[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return FT(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(UT(t,n))&&this.startObserver()}unmount(){}}function UT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bT={inView:{Feature:zT},tap:{Feature:NT},focus:{Feature:MT},hover:{Feature:DT}},$T={layout:{ProjectionNode:vg,MeasureLayout:cg}},Ma={current:null},wg={current:!1};function WT(){if(wg.current=!0,!!Bu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ma.current=e.matches;e.addListener(t),t()}else Ma.current=!1}const HT=[...Wy,ge,Jt],KT=e=>HT.find($y(e)),eh=new WeakMap;function GT(e,t,n){for(const r in t){const i=t[r],s=n[r];if(xe(i))e.addValue(r,i);else if(xe(s))e.addValue(r,Si(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Si(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const th=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class QT{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=dc,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 g=gt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,H.render(this.render,!1,!0))};const{latestValues:a,renderState:u,onUpdate:c}=o;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Ro(n),this.isVariantNode=Jm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in d){const m=d[g];a[g]!==void 0&&xe(m)&&m.set(a[g],!1)}}mount(t){this.current=t,eh.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),wg.current||WT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ma.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){eh.delete(this.current),this.projection&&this.projection.unmount(),Yt(this.notifyUpdate),Yt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=_n.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in cr){const n=cr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<th.length;r++){const i=th[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=GT(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Si(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Uy(i)||Dy(i))?i=parseFloat(i):!KT(i)&&Jt.test(n)&&(i=Fy(t,n)),this.setBaseTarget(t,xe(i)?i.get():i)),xe(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Ku(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!xe(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xg extends QT{constructor(){super(...arguments),this.KeyframeResolver=Hy}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function XT(e){return window.getComputedStyle(e)}class qT extends xg{constructor(){super(...arguments),this.type="html",this.renderInstance=ly}readValueFromInstance(t,n){if(_n.has(n)){const r=fc(n);return r&&r.default||0}else{const r=XT(t),i=(iy(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ag(t,n)}build(t,n,r){Xu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zu(t,n,r)}}class YT extends xg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_n.has(n)){const r=fc(n);return r&&r.default||0}return n=ay.has(n)?n:$u(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fy(t,n,r)}build(t,n,r){qu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){uy(t,n,r,i)}mount(t){this.isSVGTag=Ju(t.tagName),super.mount(t)}}const JT=(e,t)=>Hu(e)?new YT(t):new qT(t,{allowProjection:e!==S.Fragment}),ZT=Cx({...EE,...bT,...LT,...$T},JT),dr=Bw(ZT);/**
|
|
77
|
-
* @license lucide-react v0.460.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const eC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
82
|
-
* @license lucide-react v0.460.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var tC={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"};/**
|
|
87
|
-
* @license lucide-react v0.460.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const nC=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...l},a)=>S.createElement("svg",{ref:a,...tC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sg("lucide",i),...l},[...o.map(([u,c])=>S.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
|
|
92
|
-
* @license lucide-react v0.460.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const Ne=(e,t)=>{const n=S.forwardRef(({className:r,...i},s)=>S.createElement(nC,{ref:s,iconNode:t,className:Sg(`lucide-${eC(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
|
|
97
|
-
* @license lucide-react v0.460.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const rC=Ne("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
|
|
102
|
-
* @license lucide-react v0.460.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const iC=Ne("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
107
|
-
* @license lucide-react v0.460.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const sC=Ne("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
112
|
-
* @license lucide-react v0.460.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const oC=Ne("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
117
|
-
* @license lucide-react v0.460.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const lC=Ne("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
122
|
-
* @license lucide-react v0.460.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const aC=Ne("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
127
|
-
* @license lucide-react v0.460.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const uC=Ne("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
132
|
-
* @license lucide-react v0.460.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const cC=Ne("Menu",[["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"}]]);/**
|
|
137
|
-
* @license lucide-react v0.460.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const fC=Ne("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
142
|
-
* @license lucide-react v0.460.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const dC=Ne("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
|
|
147
|
-
* @license lucide-react v0.460.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const hC=Ne("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
152
|
-
* @license lucide-react v0.460.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const pC=Ne("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
157
|
-
* @license lucide-react v0.460.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const mC=Ne("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
162
|
-
* @license lucide-react v0.460.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const Eg=Ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),nh=e=>{let t;const n=new Set,r=(u,c)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const d=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(g=>g(t,d))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,i,l);return l},yC=e=>e?nh(e):nh,gC=e=>e;function vC(e,t=gC){const n=Dr.useSyncExternalStore(e.subscribe,Dr.useCallback(()=>t(e.getState()),[e,t]),Dr.useCallback(()=>t(e.getInitialState()),[e,t]));return Dr.useDebugValue(n),n}const rh=e=>{const t=yC(e),n=r=>vC(t,r);return Object.assign(n,t),n},Tg=e=>e?rh(e):rh;function Cg(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var s;const o=a=>a===null?null:JSON.parse(a,void 0),l=(s=n.getItem(i))!=null?s:null;return l instanceof Promise?l.then(o):o(l)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const Na=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Na(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Na(r)(n)}}}},wC=(e,t)=>(n,r,i)=>{let s={storage:Cg(()=>window.localStorage),partialize:w=>w,version:0,merge:(w,h)=>({...h,...w}),...t},o=!1,l=0;const a=new Set,u=new Set;let c=s.storage;if(!c)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...w)},r,i);const f=()=>{const w=s.partialize({...r()});return c.setItem(s.name,{state:w,version:s.version})},d=i.setState;i.setState=(w,h)=>(d(w,h),f());const g=e((...w)=>(n(...w),f()),r,i);i.getInitialState=()=>g;let m;const v=()=>{var w,h;if(!c)return;const p=++l;o=!1,a.forEach(x=>{var E;return x((E=r())!=null?E:g)});const y=((h=s.onRehydrateStorage)==null?void 0:h.call(s,(w=r())!=null?w:g))||void 0;return Na(c.getItem.bind(c))(s.name).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==s.version){if(s.migrate){const E=s.migrate(x.state,x.version);return E instanceof Promise?E.then(C=>[!0,C]):[!0,E]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,x.state];return[!1,void 0]}).then(x=>{var E;if(p!==l)return;const[C,k]=x;if(m=s.merge(k,(E=r())!=null?E:g),n(m,!0),C)return f()}).then(()=>{p===l&&(y==null||y(m,void 0),m=r(),o=!0,u.forEach(x=>x(m)))}).catch(x=>{p===l&&(y==null||y(void 0,x))})};return i.persist={setOptions:w=>{s={...s,...w},w.storage&&(c=w.storage)},clearStorage:()=>{c==null||c.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>v(),hasHydrated:()=>o,onHydrate:w=>(a.add(w),()=>{a.delete(w)}),onFinishHydration:w=>(u.add(w),()=>{u.delete(w)})},s.skipHydration||v(),m||g},xC=wC,Se=Tg()(xC(e=>({isSideBarOpen:!0,isMobile:!1,activeSection:"overview",setIsSideBarOpen:t=>e({isSideBarOpen:t}),setIsMobile:t=>e({isMobile:t}),setActiveSection:t=>e({activeSection:t})}),{name:"devtools-layout",storage:Cg(()=>localStorage)}));function SC(){const e=Se(n=>n.isSideBarOpen),t=Se(n=>n.setIsSideBarOpen);return A.jsx(dr.button,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{duration:.3},className:"flex size-8 items-center justify-center rounded-secondary border border-primary transition-colors hover:bg-primary",onClick:n=>{n.stopPropagation(),t(!e)},onMouseDown:n=>n.stopPropagation(),children:e?A.jsx(Eg,{size:16,className:"text-primary"}):A.jsx(cC,{size:16,className:"text-primary"})})}const Pg={API_BASE:"/dev/devtools",DEFAULT_THEME:"light"},kg=S.createContext({}),EC=({children:e})=>{const[t,n]=S.useState(Pg.DEFAULT_THEME);S.useEffect(()=>{document.documentElement.setAttribute("data-theme",t)},[t]);const r=()=>{n(i=>i==="light"?"dark-forest":"light")};return A.jsx(kg.Provider,{value:{theme:t,toggleTheme:r},children:e})},TC=()=>S.useContext(kg);function Rg(e,t){return function(){return e.apply(t,arguments)}}const{toString:CC}=Object.prototype,{getPrototypeOf:yc}=Object,{iterator:Oo,toStringTag:Ag}=Symbol,Lo=(e=>t=>{const n=CC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),t=>Lo(t)===e),Do=e=>t=>typeof t===e,{isArray:xr}=Array,hr=Do("undefined");function Mi(e){return e!==null&&!hr(e)&&e.constructor!==null&&!hr(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _g=ct("ArrayBuffer");function PC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_g(e.buffer),t}const kC=Do("string"),De=Do("function"),Og=Do("number"),Ni=e=>e!==null&&typeof e=="object",RC=e=>e===!0||e===!1,Ts=e=>{if(Lo(e)!=="object")return!1;const t=yc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ag in e)&&!(Oo in e)},AC=e=>{if(!Ni(e)||Mi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_C=ct("Date"),OC=ct("File"),LC=ct("Blob"),DC=ct("FileList"),MC=e=>Ni(e)&&De(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((t=Lo(e))==="formdata"||t==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},jC=ct("URLSearchParams"),[VC,IC,FC,BC]=["ReadableStream","Request","Response","Headers"].map(ct),zC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ji(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),xr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Mi(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let l;for(r=0;r<o;r++)l=s[r],t.call(null,e[l],l,e)}}function Lg(e,t){if(Mi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dg=e=>!hr(e)&&e!==mn;function ja(){const{caseless:e,skipUndefined:t}=Dg(this)&&this||{},n={},r=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=e&&Lg(n,s)||s;Ts(n[o])&&Ts(i)?n[o]=ja(n[o],i):Ts(i)?n[o]=ja({},i):xr(i)?n[o]=i.slice():(!t||!hr(i))&&(n[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ji(arguments[i],r);return n}const UC=(e,t,n,{allOwnKeys:r}={})=>(ji(t,(i,s)=>{n&&De(i)?Object.defineProperty(e,s,{value:Rg(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),bC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},WC=(e,t,n,r)=>{let i,s,o;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&yc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},HC=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},KC=e=>{if(!e)return null;if(xr(e))return e;let t=e.length;if(!Og(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},GC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yc(Uint8Array)),QC=(e,t)=>{const r=(e&&e[Oo]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},XC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qC=ct("HTMLFormElement"),YC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ih=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JC=ct("RegExp"),Mg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ji(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},ZC=e=>{Mg(e,(t,n)=>{if(De(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(De(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eP=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return xr(e)?r(e):r(String(e).split(t)),n},tP=()=>{},nP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rP(e){return!!(e&&De(e.append)&&e[Ag]==="FormData"&&e[Oo])}const iP=e=>{const t=new Array(10),n=(r,i)=>{if(Ni(r)){if(t.indexOf(r)>=0)return;if(Mi(r))return r;if(!("toJSON"in r)){t[i]=r;const s=xr(r)?[]:{};return ji(r,(o,l)=>{const a=n(o,i+1);!hr(a)&&(s[l]=a)}),t[i]=void 0,s}}return r};return n(e,0)},sP=ct("AsyncFunction"),oP=e=>e&&(Ni(e)||De(e))&&De(e.then)&&De(e.catch),Ng=((e,t)=>e?setImmediate:t?((n,r)=>(mn.addEventListener("message",({source:i,data:s})=>{i===mn&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),mn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",De(mn.postMessage)),lP=typeof queueMicrotask<"u"?queueMicrotask.bind(mn):typeof process<"u"&&process.nextTick||Ng,aP=e=>e!=null&&De(e[Oo]),T={isArray:xr,isArrayBuffer:_g,isBuffer:Mi,isFormData:NC,isArrayBufferView:PC,isString:kC,isNumber:Og,isBoolean:RC,isObject:Ni,isPlainObject:Ts,isEmptyObject:AC,isReadableStream:VC,isRequest:IC,isResponse:FC,isHeaders:BC,isUndefined:hr,isDate:_C,isFile:OC,isBlob:LC,isRegExp:JC,isFunction:De,isStream:MC,isURLSearchParams:jC,isTypedArray:GC,isFileList:DC,forEach:ji,merge:ja,extend:UC,trim:zC,stripBOM:bC,inherits:$C,toFlatObject:WC,kindOf:Lo,kindOfTest:ct,endsWith:HC,toArray:KC,forEachEntry:QC,matchAll:XC,isHTMLForm:qC,hasOwnProperty:ih,hasOwnProp:ih,reduceDescriptors:Mg,freezeMethods:ZC,toObjectSet:eP,toCamelCase:YC,noop:tP,toFiniteNumber:nP,findKey:Lg,global:mn,isContextDefined:Dg,isSpecCompliantForm:rP,toJSONObject:iP,isAsyncFn:sP,isThenable:oP,setImmediate:Ng,asap:lP,isIterable:aP};let N=class jg extends Error{static from(t,n,r,i,s,o){const l=new jg(t.message,n||t.code,r,i,s);return l.cause=t,l.name=t.name,o&&Object.assign(l,o),l}constructor(t,n,r,i,s){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){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:T.toJSONObject(this.config),code:this.code,status:this.status}}};N.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";N.ERR_BAD_OPTION="ERR_BAD_OPTION";N.ECONNABORTED="ECONNABORTED";N.ETIMEDOUT="ETIMEDOUT";N.ERR_NETWORK="ERR_NETWORK";N.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";N.ERR_DEPRECATED="ERR_DEPRECATED";N.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";N.ERR_BAD_REQUEST="ERR_BAD_REQUEST";N.ERR_CANCELED="ERR_CANCELED";N.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";N.ERR_INVALID_URL="ERR_INVALID_URL";const uP=null;function Va(e){return T.isPlainObject(e)||T.isArray(e)}function Vg(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function sh(e,t,n){return e?e.concat(t).map(function(i,s){return i=Vg(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function cP(e){return T.isArray(e)&&!e.some(Va)}const fP=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Mo(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!T.isUndefined(w[v])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(T.isDate(m))return m.toISOString();if(T.isBoolean(m))return m.toString();if(!a&&T.isBlob(m))throw new N("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(m)||T.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,w){let h=m;if(m&&!w&&typeof m=="object"){if(T.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(T.isArray(m)&&cP(m)||(T.isFileList(m)||T.endsWith(v,"[]"))&&(h=T.toArray(m)))return v=Vg(v),h.forEach(function(y,x){!(T.isUndefined(y)||y===null)&&t.append(o===!0?sh([v],x,s):o===null?v:v+"[]",u(y))}),!1}return Va(m)?!0:(t.append(sh(w,v,s),u(m)),!1)}const f=[],d=Object.assign(fP,{defaultVisitor:c,convertValue:u,isVisitable:Va});function g(m,v){if(!T.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(m),T.forEach(m,function(h,p){(!(T.isUndefined(h)||h===null)&&i.call(t,h,T.isString(p)?p.trim():p,v,d))===!0&&g(h,v?v.concat(p):[p])}),f.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return g(e),t}function oh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function gc(e,t){this._pairs=[],e&&Mo(e,this,t)}const Ig=gc.prototype;Ig.append=function(t,n){this._pairs.push([t,n])};Ig.toString=function(t){const n=t?function(r){return t.call(this,r,oh)}:oh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function dP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Fg(e,t,n){if(!t)return e;const r=n&&n.encode||dP,i=T.isFunction(n)?{serialize:n}:n,s=i&&i.serialize;let o;if(s?o=s(t,i):o=T.isURLSearchParams(t)?t.toString():new gc(t,i).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class lh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},hP=typeof URLSearchParams<"u"?URLSearchParams:gc,pP=typeof FormData<"u"?FormData:null,mP=typeof Blob<"u"?Blob:null,yP={isBrowser:!0,classes:{URLSearchParams:hP,FormData:pP,Blob:mP},protocols:["http","https","file","blob","url","data"]},wc=typeof window<"u"&&typeof document<"u",Ia=typeof navigator=="object"&&navigator||void 0,gP=wc&&(!Ia||["ReactNative","NativeScript","NS"].indexOf(Ia.product)<0),vP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wP=wc&&window.location.href||"http://localhost",xP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wc,hasStandardBrowserEnv:gP,hasStandardBrowserWebWorkerEnv:vP,navigator:Ia,origin:wP},Symbol.toStringTag,{value:"Module"})),we={...xP,...yP};function SP(e,t){return Mo(e,new we.classes.URLSearchParams,{visitor:function(n,r,i,s){return we.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function EP(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TP(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Bg(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),a=s>=n.length;return o=!o&&T.isArray(i)?i.length:o,a?(T.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!l):((!i[o]||!T.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&T.isArray(i[o])&&(i[o]=TP(i[o])),!l)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,i)=>{t(EP(r),i,n,0)}),n}return null}function CP(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Vi={transitional:vc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=T.isObject(t);if(s&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return i?JSON.stringify(Bg(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return SP(t,this.formSerializer).toString();if((l=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Mo(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),CP(t)):t}],transformResponse:[function(t){const n=this.transitional||Vi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?N.from(l,N.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{Vi.headers[e]={}});const PP=T.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"]),kP=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
167
|
-
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&PP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ah=Symbol("internals");function Lr(e){return e&&String(e).trim().toLowerCase()}function Cs(e){return e===!1||e==null?e:T.isArray(e)?e.map(Cs):String(e)}function RP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const AP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sl(e,t,n,r,i){if(T.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function _P(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function OP(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let Me=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(l,a,u){const c=Lr(a);if(!c)throw new Error("header name must be a non-empty string");const f=T.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||a]=Cs(l))}const o=(l,a)=>T.forEach(l,(u,c)=>s(u,c,a));if(T.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(T.isString(t)&&(t=t.trim())&&!AP(t))o(kP(t),n);else if(T.isObject(t)&&T.isIterable(t)){let l={},a,u;for(const c of t){if(!T.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(a=l[u])?T.isArray(a)?[...a,c[1]]:[a,c[1]]:c[1]}o(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Lr(t),t){const r=T.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return RP(i);if(T.isFunction(n))return n.call(this,i,r);if(T.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Lr(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Sl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Lr(o),o){const l=T.findKey(r,o);l&&(!n||Sl(r,r[l],l,n))&&(delete r[l],i=!0)}}return T.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Sl(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return T.forEach(this,(i,s)=>{const o=T.findKey(r,s);if(o){n[o]=Cs(i),delete n[s];return}const l=t?_P(s):String(s).trim();l!==s&&delete n[s],n[l]=Cs(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
168
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[ah]=this[ah]={accessors:{}}).accessors,i=this.prototype;function s(o){const l=Lr(o);r[l]||(OP(i,o),r[l]=!0)}return T.isArray(t)?t.forEach(s):s(t),this}};Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(Me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(Me);function El(e,t){const n=this||Vi,r=t||n,i=Me.from(r.headers);let s=r.data;return T.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function zg(e){return!!(e&&e.__CANCEL__)}let Ii=class extends N{constructor(t,n,r){super(t??"canceled",N.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Ug(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new N("Request failed with status code "+n.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function LP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function DP(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[s];o||(o=u),n[i]=a,r[i]=u;let f=s,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const g=c&&u-c;return g?Math.round(d*1e3/g):void 0}}function MP(e,t){let n=0,r=1e3/t,i,s;const o=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?o(u,c):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},r-f)))},()=>i&&o(i)]}const ro=(e,t,n=3)=>{let r=0;const i=DP(50,250);return MP(s=>{const o=s.loaded,l=s.lengthComputable?s.total:void 0,a=o-r,u=i(a),c=o<=l;r=o;const f={loaded:o,total:l,progress:l?o/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&c?(l-o)/u:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},uh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ch=e=>(...t)=>T.asap(()=>e(...t)),NP=we.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,we.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(we.origin),we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent)):()=>!0,jP=we.hasStandardBrowserEnv?{write(e,t,n,r,i,s,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];T.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),T.isString(r)&&l.push(`path=${r}`),T.isString(i)&&l.push(`domain=${i}`),s===!0&&l.push("secure"),T.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function VP(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function IP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bg(e,t,n){let r=!VP(t);return e&&(r||n==!1)?IP(e,t):t}const fh=e=>e instanceof Me?{...e}:e;function kn(e,t){t=t||{};const n={};function r(u,c,f,d){return T.isPlainObject(u)&&T.isPlainObject(c)?T.merge.call({caseless:d},u,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function i(u,c,f,d){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function s(u,c){if(!T.isUndefined(c))return r(void 0,c)}function o(u,c){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const a={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,c,f)=>i(fh(u),fh(c),f,!0)};return T.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=T.hasOwnProp(a,c)?a[c]:i,d=f(e[c],t[c],c);T.isUndefined(d)&&f!==l||(n[c]=d)}),n}const $g=e=>{const t=kn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:l}=t;if(t.headers=o=Me.from(o),t.url=Fg(bg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),T.isFormData(n)){if(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(T.isFunction(n.getHeaders)){const a=n.getHeaders(),u=["content-type","content-length"];Object.entries(a).forEach(([c,f])=>{u.includes(c.toLowerCase())&&o.set(c,f)})}}if(we.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&NP(t.url))){const a=i&&s&&jP.read(s);a&&o.set(i,a)}return t},FP=typeof XMLHttpRequest<"u",BP=FP&&function(e){return new Promise(function(n,r){const i=$g(e);let s=i.data;const o=Me.from(i.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=i,c,f,d,g,m;function v(){g&&g(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function h(){if(!w)return;const y=Me.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:y,config:e,request:w};Ug(function(k){n(k),v()},function(k){r(k),v()},E),w=null}"onloadend"in w?w.onloadend=h:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(h)},w.onabort=function(){w&&(r(new N("Request aborted",N.ECONNABORTED,e,w)),w=null)},w.onerror=function(x){const E=x&&x.message?x.message:"Network Error",C=new N(E,N.ERR_NETWORK,e,w);C.event=x||null,r(C),w=null},w.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||vc;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new N(x,E.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,w)),w=null},s===void 0&&o.setContentType(null),"setRequestHeader"in w&&T.forEach(o.toJSON(),function(x,E){w.setRequestHeader(E,x)}),T.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),l&&l!=="json"&&(w.responseType=i.responseType),u&&([d,m]=ro(u,!0),w.addEventListener("progress",d)),a&&w.upload&&([f,g]=ro(a),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(c=y=>{w&&(r(!y||y.type?new Ii(null,e,w):y),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const p=LP(i.url);if(p&&we.protocols.indexOf(p)===-1){r(new N("Unsupported protocol "+p+":",N.ERR_BAD_REQUEST,e));return}w.send(s||null)})},zP=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,l();const c=u instanceof Error?u:this.reason;r.abort(c instanceof N?c:new Ii(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new N(`timeout of ${t}ms exceeded`,N.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:a}=r;return a.unsubscribe=()=>T.asap(l),a}},UP=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},bP=async function*(e,t){for await(const n of $P(e))yield*UP(n,t)},$P=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},dh=(e,t,n,r)=>{const i=bP(e,t);let s=0,o,l=a=>{o||(o=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:u,value:c}=await i.next();if(u){l(),a.close();return}let f=c.byteLength;if(n){let d=s+=f;n(d)}a.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(a){return l(a),i.return()}},{highWaterMark:2})},hh=64*1024,{isFunction:os}=T,WP=(({Request:e,Response:t})=>({Request:e,Response:t}))(T.global),{ReadableStream:ph,TextEncoder:mh}=T.global,yh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},HP=e=>{e=T.merge.call({skipUndefined:!0},WP,e);const{fetch:t,Request:n,Response:r}=e,i=t?os(t):typeof fetch=="function",s=os(n),o=os(r);if(!i)return!1;const l=i&&os(ph),a=i&&(typeof mh=="function"?(m=>v=>m.encode(v))(new mh):async m=>new Uint8Array(await new n(m).arrayBuffer())),u=s&&l&&yh(()=>{let m=!1;const v=new n(we.origin,{body:new ph,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!v}),c=o&&l&&yh(()=>T.isReadableStream(new r("").body)),f={stream:c&&(m=>m.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(v,w)=>{let h=v&&v[m];if(h)return h.call(v);throw new N(`Response type '${m}' is not supported`,N.ERR_NOT_SUPPORT,w)})});const d=async m=>{if(m==null)return 0;if(T.isBlob(m))return m.size;if(T.isSpecCompliantForm(m))return(await new n(we.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(T.isArrayBufferView(m)||T.isArrayBuffer(m))return m.byteLength;if(T.isURLSearchParams(m)&&(m=m+""),T.isString(m))return(await a(m)).byteLength},g=async(m,v)=>{const w=T.toFiniteNumber(m.getContentLength());return w??d(v)};return async m=>{let{url:v,method:w,data:h,signal:p,cancelToken:y,timeout:x,onDownloadProgress:E,onUploadProgress:C,responseType:k,headers:P,withCredentials:j="same-origin",fetchOptions:L}=$g(m),ee=t||fetch;k=k?(k+"").toLowerCase():"text";let je=zP([p,y&&y.toAbortSignal()],x),Ve=null;const Ie=je&&je.unsubscribe&&(()=>{je.unsubscribe()});let Sr;try{if(C&&u&&w!=="get"&&w!=="head"&&(Sr=await g(P,h))!==0){let B=new n(v,{method:"POST",body:h,duplex:"half"}),b;if(T.isFormData(h)&&(b=B.headers.get("content-type"))&&P.setContentType(b),B.body){const[Lt,Ke]=uh(Sr,ro(ch(C)));h=dh(B.body,hh,Lt,Ke)}}T.isString(j)||(j=j?"include":"omit");const se=s&&"credentials"in n.prototype,Y={...L,signal:je,method:w.toUpperCase(),headers:P.normalize().toJSON(),body:h,duplex:"half",credentials:se?j:void 0};Ve=s&&new n(v,Y);let _=await(s?ee(Ve,L):ee(v,Y));const M=c&&(k==="stream"||k==="response");if(c&&(E||M&&Ie)){const B={};["status","statusText","headers"].forEach(Ln=>{B[Ln]=_[Ln]});const b=T.toFiniteNumber(_.headers.get("content-length")),[Lt,Ke]=E&&uh(b,ro(ch(E),!0))||[];_=new r(dh(_.body,hh,Lt,()=>{Ke&&Ke(),Ie&&Ie()}),B)}k=k||"text";let V=await f[T.findKey(f,k)||"text"](_,m);return!M&&Ie&&Ie(),await new Promise((B,b)=>{Ug(B,b,{data:V,headers:Me.from(_.headers),status:_.status,statusText:_.statusText,config:m,request:Ve})})}catch(se){throw Ie&&Ie(),se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)?Object.assign(new N("Network Error",N.ERR_NETWORK,m,Ve,se&&se.response),{cause:se.cause||se}):N.from(se,se&&se.code,m,Ve,se&&se.response)}}},KP=new Map,Wg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let o=s.length,l=o,a,u,c=KP;for(;l--;)a=s[l],u=c.get(a),u===void 0&&c.set(a,u=l?new Map:HP(t)),c=u;return u};Wg();const xc={http:uP,xhr:BP,fetch:{get:Wg}};T.forEach(xc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gh=e=>`- ${e}`,GP=e=>T.isFunction(e)||e===null||e===!1;function QP(e,t){e=T.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let o=0;o<n;o++){r=e[o];let l;if(i=r,!GP(r)&&(i=xc[(l=String(r)).toLowerCase()],i===void 0))throw new N(`Unknown adapter '${l}'`);if(i&&(T.isFunction(i)||(i=i.get(t))))break;s[l||"#"+o]=i}if(!i){const o=Object.entries(s).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
|
|
169
|
-
`+o.map(gh).join(`
|
|
170
|
-
`):" "+gh(o[0]):"as no adapter specified";throw new N("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const Hg={getAdapter:QP,adapters:xc};function Tl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ii(null,e)}function vh(e){return Tl(e),e.headers=Me.from(e.headers),e.data=El.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hg.getAdapter(e.adapter||Vi.adapter,e)(e).then(function(r){return Tl(e),r.data=El.call(e,e.transformResponse,r),r.headers=Me.from(r.headers),r},function(r){return zg(r)||(Tl(e),r&&r.response&&(r.response.data=El.call(e,e.transformResponse,r.response),r.response.headers=Me.from(r.response.headers))),Promise.reject(r)})}const Kg="1.13.5",No={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{No[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wh={};No.transitional=function(t,n,r){function i(s,o){return"[Axios v"+Kg+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,l)=>{if(t===!1)throw new N(i(o," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!wh[o]&&(wh[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,l):!0}};No.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function XP(e,t,n){if(typeof e!="object")throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const l=e[s],a=l===void 0||o(l,s,e);if(a!==!0)throw new N("option "+s+" must be "+a,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+s,N.ERR_BAD_OPTION)}}const Ps={assertOptions:XP,validators:No},Qe=Ps.validators;let xn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lh,response:new lh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
171
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=kn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Ps.assertOptions(r,{silentJSONParsing:Qe.transitional(Qe.boolean),forcedJSONParsing:Qe.transitional(Qe.boolean),clarifyTimeoutError:Qe.transitional(Qe.boolean),legacyInterceptorReqResOrdering:Qe.transitional(Qe.boolean)},!1),i!=null&&(T.isFunction(i)?n.paramsSerializer={serialize:i}:Ps.assertOptions(i,{encode:Qe.function,serialize:Qe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ps.assertOptions(n,{baseUrl:Qe.spelling("baseURL"),withXsrfToken:Qe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&T.merge(s.common,s[n.method]);s&&T.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=Me.concat(o,s);const l=[];let a=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;a=a&&v.synchronous;const w=n.transitional||vc;w&&w.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!a){const m=[vh.bind(this),void 0];for(m.unshift(...l),m.push(...u),d=m.length,c=Promise.resolve(n);f<d;)c=c.then(m[f++],m[f++]);return c}d=l.length;let g=n;for(;f<d;){const m=l[f++],v=l[f++];try{g=m(g)}catch(w){v.call(this,w);break}}try{c=vh.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=kn(this.defaults,t);const n=bg(t.baseURL,t.url,t.allowAbsoluteUrls);return Fg(n,t.params,t.paramsSerializer)}};T.forEach(["delete","get","head","options"],function(t){xn.prototype[t]=function(n,r){return this.request(kn(r||{},{method:t,url:n,data:(r||{}).data}))}});T.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,l){return this.request(kn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}xn.prototype[t]=n(),xn.prototype[t+"Form"]=n(!0)});let qP=class Gg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(l=>{r.subscribe(l),s=l}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,l){r.reason||(r.reason=new Ii(s,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Gg(function(i){t=i}),cancel:t}}};function YP(e){return function(n){return e.apply(null,n)}}function JP(e){return T.isObject(e)&&e.isAxiosError===!0}const Fa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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(Fa).forEach(([e,t])=>{Fa[t]=e});function Qg(e){const t=new xn(e),n=Rg(xn.prototype.request,t);return T.extend(n,xn.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Qg(kn(e,i))},n}const re=Qg(Vi);re.Axios=xn;re.CanceledError=Ii;re.CancelToken=qP;re.isCancel=zg;re.VERSION=Kg;re.toFormData=Mo;re.AxiosError=N;re.Cancel=re.CanceledError;re.all=function(t){return Promise.all(t)};re.spread=YP;re.isAxiosError=JP;re.mergeConfig=kn;re.AxiosHeaders=Me;re.formToJSON=e=>Bg(T.isHTMLForm(e)?new FormData(e):e);re.getAdapter=Hg.getAdapter;re.HttpStatusCode=Fa;re.default=re;const{Axios:Vk,AxiosError:Ik,CanceledError:Fk,isCancel:Bk,CancelToken:zk,VERSION:Uk,all:bk,Cancel:$k,isAxiosError:Wk,spread:Hk,toFormData:Kk,AxiosHeaders:Gk,HttpStatusCode:Qk,formToJSON:Xk,getAdapter:qk,mergeConfig:Yk}=re,Xg=re.create({baseURL:Pg.API_BASE,timeout:1e4});Xg.interceptors.response.use(e=>(e.data&&typeof e.data=="object"&&"success"in e.data&&(e.data=e.data.data),e));const ZP={development:"bg-green-100 text-green-700",staging:"bg-yellow-100 text-yellow-700",production:"bg-red-100 text-red-700"};function ek(){const e=Se(s=>s.isMobile),{theme:t,toggleTheme:n}=TC(),[r,i]=S.useState(null);return S.useEffect(()=>{Xg.get("/config").then(s=>{var o;return i(((o=s.data)==null?void 0:o.mode)??null)}).catch(()=>{})},[]),A.jsxs(dr.div,{initial:{opacity:0,height:0,overflow:"hidden"},animate:{opacity:1,height:"60px",overflow:"visible"},exit:{opacity:0,height:0,overflow:"hidden"},className:`
|
|
172
|
-
h-[60px] w-full py-[10px]
|
|
173
|
-
${e?"px-[10px]":""}
|
|
174
|
-
relative flex bg-secondary
|
|
175
|
-
items-center justify-between
|
|
176
|
-
gap-4 transition-all duration-300 ease-in-out
|
|
177
|
-
border-b border-primary
|
|
178
|
-
`,children:[A.jsxs("div",{className:"flex items-center gap-3 pl-4",children:[e&&A.jsx(SC,{}),r&&A.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-semibold ${ZP[r]??"bg-gray-100 text-gray-700"}`,children:r})]}),A.jsx("div",{className:"mr-4 flex items-center gap-3",children:A.jsx("button",{onClick:n,className:"flex size-8 items-center justify-center rounded-secondary border border-primary transition-colors hover:bg-primary",children:t==="light"?A.jsx(fC,{size:16,className:"text-primary"}):A.jsx(pC,{size:16,className:"text-primary"})})})]},"header")}function xh(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function tk({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,o]=S.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=S.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s,orientationHandler:null}),a=e?typeof e=="number"?e:e.scroll:null,u=e?typeof e=="number"?e:e.resize:null,c=S.useRef(!1);S.useEffect(()=>(c.current=!0,()=>void(c.current=!1)));const[f,d,g]=S.useMemo(()=>{const h=()=>{if(!l.current.element)return;const{left:p,top:y,width:x,height:E,bottom:C,right:k,x:P,y:j}=l.current.element.getBoundingClientRect(),L={left:p,top:y,width:x,height:E,bottom:C,right:k,x:P,y:j};l.current.element instanceof HTMLElement&&r&&(L.height=l.current.element.offsetHeight,L.width=l.current.element.offsetWidth),Object.freeze(L),c.current&&!sk(l.current.lastBounds,L)&&o(l.current.lastBounds=L)};return[h,u?xh(h,u):h,a?xh(h,a):h]},[o,r,a,u]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(h=>h.removeEventListener("scroll",g,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null),l.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",l.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",l.current.orientationHandler))}function v(){l.current.element&&(l.current.resizeObserver=new i(g),l.current.resizeObserver.observe(l.current.element),t&&l.current.scrollContainers&&l.current.scrollContainers.forEach(h=>h.addEventListener("scroll",g,{capture:!0,passive:!0})),l.current.orientationHandler=()=>{g()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",l.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",l.current.orientationHandler))}const w=h=>{!h||h===l.current.element||(m(),l.current.element=h,l.current.scrollContainers=qg(h),v())};return rk(g,!!t),nk(d),S.useEffect(()=>{m(),v()},[t,g,d]),S.useEffect(()=>m,[]),[w,s,f]}function nk(e){S.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function rk(e,t){S.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function qg(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(s=>s==="auto"||s==="scroll")&&t.push(e),[...t,...qg(e.parentElement)]}const ik=["x","y","top","bottom","left","right","width","height"],sk=(e,t)=>ik.every(n=>e[n]===t[n]);function ok({width:e}){return A.jsx("div",{className:`
|
|
179
|
-
rounded-full
|
|
180
|
-
border-8 border-primry
|
|
181
|
-
border-t-blue-500
|
|
182
|
-
animate-spin
|
|
183
|
-
ease-linear
|
|
184
|
-
${!e&&"size-20"}
|
|
185
|
-
|
|
186
|
-
`,style:{width:e?e+"px":"96px",height:e?e+"px":"96px",borderWidth:e?e>40?"8px":"4px":"8px"}})}function Ba(){return A.jsx("div",{className:"flex h-screen items-center justify-center",children:A.jsx(ok,{})})}const Sc=Tg(e=>({toasts:[],addToast:t=>e(n=>{const r={...t,id:crypto.randomUUID(),duration:t.duration??3e3};return{toasts:[...n.toasts,r].slice(-5)}}),removeToast:t=>e(n=>({toasts:n.toasts.filter(r=>r.id!==t)}))})),Jk=()=>({addToast:Sc(t=>t.addToast)}),lk={success:oC,error:sC,info:aC},ak={success:"text-green-600",error:"text-red-500",info:"text-blue-500"},uk={success:"border-green-200",error:"border-red-200",info:"border-blue-200"};function ck({toast:e}){const t=Sc(r=>r.removeToast),n=lk[e.type];return S.useEffect(()=>{const r=setTimeout(()=>t(e.id),e.duration);return()=>clearTimeout(r)},[e.id,e.duration,t]),A.jsxs(dr.div,{layout:!0,initial:{opacity:0,x:80,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:80,scale:.95},transition:{type:"spring",stiffness:400,damping:30},className:`flex items-start gap-3 rounded-primary border bg-secondary px-4 py-3 shadow-medium ${uk[e.type]}`,style:{minWidth:280,maxWidth:400},children:[A.jsx(n,{className:`mt-0.5 size-4 shrink-0 ${ak[e.type]}`}),A.jsx("p",{className:"flex-1 text-sm text-primary",children:e.message}),A.jsx("button",{onClick:()=>t(e.id),className:"shrink-0 text-secondary transition-colors hover:text-primary",children:A.jsx(Eg,{className:"size-3.5"})})]})}function fk(){const e=Sc(t=>t.toasts);return A.jsx("div",{className:"pointer-events-none fixed bottom-6 right-6 z-50 flex flex-col-reverse gap-2",children:A.jsx(vi,{mode:"popLayout",children:e.map(t=>A.jsx("div",{className:"pointer-events-auto",children:A.jsx(ck,{toast:t})},t.id))})})}function dk(){const e=Se(n=>n.isSideBarOpen),t=Se(n=>n.setIsSideBarOpen);return A.jsx("div",{className:"ease absolute -right-[10px] top-[50%] flex size-[25px] -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-primary bg-secondary text-primary opacity-40 transition-all group-hover:opacity-100",onClick:()=>t(!e),children:A.jsx(iC,{size:14,className:`${e?"rotate-0":"-rotate-180"} transition-all duration-300 ease-in-out`})})}function Yg(e){return A.jsx("div",{className:`
|
|
187
|
-
flex max-h-[40px] min-h-[40px] w-[50px] min-w-[50px] max-w-[50px] items-center justify-center
|
|
188
|
-
`,style:e.style,children:e.children})}function Jg(e){const t=Se(n=>n.isSideBarOpen);return A.jsx(vi,{mode:"wait",children:t&&A.jsx(dr.div,{className:"h-fit w-full overflow-hidden whitespace-nowrap",initial:{opacity:0,width:0},animate:{opacity:1,width:"100%"},exit:{opacity:0,width:0},transition:{duration:.3},style:e.style,children:e.children},e.childKey?e.childKey:0)})}function hk(){return A.jsxs("div",{className:"mb-[10px] flex h-fit w-full items-center gap-4 overflow-hidden py-[12px] transition-all duration-300 ease-in-out",children:[A.jsx(Yg,{children:A.jsx("div",{className:"flex size-[45px] items-center justify-center rounded-full bg-primary",children:A.jsx(mC,{className:"size-5 text-primary"})})}),A.jsx(Jg,{childKey:"sidebarBrandChild",children:A.jsxs("div",{className:"flex flex-col justify-center gap-0.5 text-primary",children:[A.jsx("span",{className:"text-sm font-semibold",children:"Wecon DevTools"}),A.jsx("span",{className:"text-xs text-secondary",children:"Development Panel"})]})},"sidebarBrand")]})}const pk=[{key:"overview",label:"Overview",icon:uC,path:"/"},{key:"modules",label:"Modules",icon:rC,path:"/modules"},{key:"routes",label:"Routes",icon:dC,path:"/routes"},{key:"config",label:"Config",icon:hC,path:"/config"},{key:"i18n",label:"Translations",icon:lC,path:"/i18n"}];function mk({item:e}){const t=Se(a=>a.isMobile),n=Se(a=>a.setIsSideBarOpen),r=Se(a=>a.activeSection),i=Se(a=>a.setActiveSection),s=iw(),o=r===e.key,l=e.icon;return A.jsxs("div",{onClick:()=>{i(e.key),s(e.path),t&&n(!1)},className:`
|
|
189
|
-
flex w-full cursor-pointer items-center rounded-secondary
|
|
190
|
-
py-[5px] transition-all duration-300 ease-in-out relative
|
|
191
|
-
${o?`bg-btn-active-primary text-btn-primary shadow-light
|
|
192
|
-
before:absolute before:min-h-[25px] before:min-w-[7px] before:rounded-r-[30px] before:bg-secondary`:"hover:bg-primary hover:text-primary"}
|
|
193
|
-
`,children:[A.jsx(Yg,{style:{fontSize:"14px"},children:A.jsx(l,{size:18})}),A.jsx(Jg,{style:{fontSize:"14px"},children:e.label},e.path)]})}function yk(){return A.jsx("div",{className:"my-auto flex size-full flex-col gap-2 overflow-hidden",children:A.jsx("div",{className:"mb-[10px] flex size-full flex-col gap-2 overflow-hidden overflow-y-auto",children:pk.map(e=>A.jsx(mk,{item:e},e.key))})})}const gk=()=>{const e=Se(i=>i.isSideBarOpen),t=Se(i=>i.setIsSideBarOpen),n=Se(i=>i.isMobile),r=S.useRef(null);return S.useEffect(()=>{const i=s=>{n&&e&&r.current&&!r.current.contains(s.target)&&t(!1)};return window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)},[n,e,t]),A.jsxs("div",{ref:r,className:`
|
|
194
|
-
h-full ${e?"w-[300px]":"w-[68px]"}
|
|
195
|
-
text-primary
|
|
196
|
-
group relative
|
|
197
|
-
flex flex-col gap-2
|
|
198
|
-
border-r border-primary
|
|
199
|
-
bg-secondary p-[8px]
|
|
200
|
-
transition-all duration-300 ease-in-out
|
|
201
|
-
`,children:[A.jsx(dk,{}),A.jsx(hk,{}),A.jsx("div",{className:"h-[24px] min-h-[24px] w-full",children:A.jsx(vi,{mode:"wait",children:e?A.jsx(dr.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"flex h-[24px] min-h-[24px] w-full items-center justify-start overflow-hidden px-[10px] text-[14px] font-medium text-secondary",children:"Menu"},"menu-title"):A.jsx(dr.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"24px"},exit:{opacity:0,height:0},transition:{duration:.3},className:"mx-auto flex h-[24px] w-[80%] items-center justify-center",children:A.jsx("div",{className:"h-px w-full bg-primary"})},"menu-title-line")})}),A.jsx(yk,{})]})};function vk(){const e=Se(s=>s.isSideBarOpen),t=Se(s=>s.isMobile),n=Se(s=>s.setIsMobile),[r,i]=tk();return S.useEffect(()=>{i.width!==0&&n(i.width<768)},[i.width,n]),A.jsxs("div",{ref:r,className:"flex h-lvh min-h-lvh w-full overflow-hidden bg-primary",children:[A.jsx("div",{className:`h-dvh max-h-dvh ${t?e?"ml-0 min-w-[300px]":"-ml-[300px] min-w-[300px]":e?"min-w-[300px]":"min-w-[68px]"} transition-all duration-300 ease-in-out`,children:A.jsx(gk,{})}),A.jsxs("div",{className:`${e?t?"min-w-full":"w-[calc(100%-300px)]":t?"w-full":"w-[calc(100%-68px)]"} flex max-h-[100dvh] flex-col gap-2 overflow-hidden overflow-y-auto transition-all duration-300 ease-in-out`,children:[A.jsx(vi,{mode:"wait",children:A.jsx(ek,{})}),A.jsx("div",{className:"size-full",children:A.jsx(vi,{mode:"wait",children:A.jsx(S.Suspense,{fallback:A.jsx(Ba,{}),children:A.jsx(Ew,{})})})})]}),A.jsx(fk,{})]})}const wk="modulepreload",xk=function(e,t){return new URL(e,t).href},Sh={},On=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=xk(u,r),u in Sh)return;Sh[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let m=o.length-1;m>=0;m--){const v=o[m];if(v.href===u&&(!c||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":wk,c||(g.as="script"),g.crossOrigin="",g.href=u,a&&g.setAttribute("nonce",a),document.head.appendChild(g),c)return new Promise((m,v)=>{g.addEventListener("load",m),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})},Sk=S.lazy(()=>On(()=>import("./index-B42p6IVr.js"),__vite__mapDeps([0,1]),import.meta.url)),Ek=S.lazy(()=>On(()=>import("./index-Dfe66IW7.js"),__vite__mapDeps([2,1,3]),import.meta.url)),Tk=S.lazy(()=>On(()=>import("./ModuleDetail-Dx6eU87l.js"),__vite__mapDeps([4,5,6,1,7]),import.meta.url)),Ck=S.lazy(()=>On(()=>import("./index-CnAObNgT.js"),__vite__mapDeps([8,5,6,1,3]),import.meta.url)),Pk=S.lazy(()=>On(()=>import("./index-DvvGoEUv.js"),__vite__mapDeps([9,1,3,6,10]),import.meta.url)),kk=S.lazy(()=>On(()=>import("./TranslationEditor-Bj654a_E.js"),__vite__mapDeps([11,1,7,10,12]),import.meta.url)),Rk=S.lazy(()=>On(()=>import("./index-CSkGspzD.js"),__vite__mapDeps([13,5,6,1,12]),import.meta.url)),Ak=[{path:"/",name:"Overview",component:Sk},{path:"/modules",name:"Modules",component:Ek},{path:"/modules/:name",name:"Module Detail",component:Tk},{path:"/config",name:"Config",component:Ck},{path:"/i18n",name:"I18n",component:Pk},{path:"/i18n/:namespace/:lang",name:"Translation Editor",component:kk},{path:"/routes",name:"Routes",component:Rk}];function _k(){return A.jsx(EC,{children:A.jsx(Cw,{children:A.jsx(ws,{element:A.jsx(vk,{}),children:Ak.map(e=>e.path==="/"?A.jsx(ws,{index:!0,element:A.jsx(S.Suspense,{fallback:A.jsx(Ba,{}),children:A.jsx(e.component,{})})},e.path):A.jsx(ws,{path:e.path,element:A.jsx(S.Suspense,{fallback:A.jsx(Ba,{}),children:A.jsx(e.component,{})})},e.path))})})})}function Ok(){return A.jsx(Rw,{basename:"/dev/devtools/ui",children:A.jsx(_k,{})})}Nm(document.getElementById("root")).render(A.jsx(S.StrictMode,{children:A.jsx(Ok,{})}));export{vi as A,rC as B,lC as G,dC as R,hC as S,Eg as X,Xg as a,Lk as b,Ne as c,Jk as d,A as j,dr as m,S as r,iw as u};
|