53 lines
273 KiB
JavaScript
53 lines
273 KiB
JavaScript
(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)}})();var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ld={exports:{}},$s={},ad={exports:{}},U={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var li=Symbol.for("react.element"),ag=Symbol.for("react.portal"),ug=Symbol.for("react.fragment"),cg=Symbol.for("react.strict_mode"),fg=Symbol.for("react.profiler"),dg=Symbol.for("react.provider"),hg=Symbol.for("react.context"),pg=Symbol.for("react.forward_ref"),mg=Symbol.for("react.suspense"),gg=Symbol.for("react.memo"),vg=Symbol.for("react.lazy"),Ru=Symbol.iterator;function yg(e){return e===null||typeof e!="object"?null:(e=Ru&&e[Ru]||e["@@iterator"],typeof e=="function"?e:null)}var ud={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cd=Object.assign,fd={};function er(e,t,n){this.props=e,this.context=t,this.refs=fd,this.updater=n||ud}er.prototype.isReactComponent={};er.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")};er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dd(){}dd.prototype=er.prototype;function ia(e,t,n){this.props=e,this.context=t,this.refs=fd,this.updater=n||ud}var sa=ia.prototype=new dd;sa.constructor=ia;cd(sa,er.prototype);sa.isPureReactComponent=!0;var Vu=Array.isArray,hd=Object.prototype.hasOwnProperty,oa={current:null},pd={key:!0,ref:!0,__self:!0,__source:!0};function md(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)hd.call(t,r)&&!pd.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:li,type:e,key:s,ref:o,props:i,_owner:oa.current}}function wg(e,t){return{$$typeof:li,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function la(e){return typeof e=="object"&&e!==null&&e.$$typeof===li}function Sg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $u=/\/+/g;function ro(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Sg(""+e.key):t.toString(36)}function Bi(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 li:case ag:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ro(o,0):r,Vu(i)?(n="",e!=null&&(n=e.replace($u,"$&/")+"/"),Bi(i,t,n,"",function(u){return u})):i!=null&&(la(i)&&(i=wg(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace($u,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Vu(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+ro(s,l);o+=Bi(s,t,n,a,i)}else if(a=yg(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+ro(s,l++),o+=Bi(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 yi(e,t,n){if(e==null)return e;var r=[],i=0;return Bi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function xg(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 Ce={current:null},Ui={transition:null},Pg={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:Ui,ReactCurrentOwner:oa};function gd(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:yi,forEach:function(e,t,n){yi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yi(e,function(){t++}),t},toArray:function(e){return yi(e,function(t){return t})||[]},only:function(e){if(!la(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=er;U.Fragment=ug;U.Profiler=fg;U.PureComponent=ia;U.StrictMode=cg;U.Suspense=mg;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pg;U.act=gd;U.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=cd({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=oa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)hd.call(t,a)&&!pd.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:li,type:e.type,key:i,ref:s,props:r,_owner:o}};U.createContext=function(e){return e={$$typeof:hg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:dg,_context:e},e.Consumer=e};U.createElement=md;U.createFactory=function(e){var t=md.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:pg,render:e}};U.isValidElement=la;U.lazy=function(e){return{$$typeof:vg,_payload:{_status:-1,_result:e},_init:xg}};U.memo=function(e,t){return{$$typeof:gg,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=Ui.transition;Ui.transition={};try{e()}finally{Ui.transition=t}};U.unstable_act=gd;U.useCallback=function(e,t){return Ce.current.useCallback(e,t)};U.useContext=function(e){return Ce.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Ce.current.useDeferredValue(e)};U.useEffect=function(e,t){return Ce.current.useEffect(e,t)};U.useId=function(){return Ce.current.useId()};U.useImperativeHandle=function(e,t,n){return Ce.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Ce.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Ce.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Ce.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Ce.current.useReducer(e,t,n)};U.useRef=function(e){return Ce.current.useRef(e)};U.useState=function(e){return Ce.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Ce.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Ce.current.useTransition()};U.version="18.3.1";ad.exports=U;var E=ad.exports;const ue=Vs(E);/**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Tg=E,kg=Symbol.for("react.element"),Cg=Symbol.for("react.fragment"),Eg=Object.prototype.hasOwnProperty,Mg=Tg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dg={key:!0,ref:!0,__self:!0,__source:!0};function vd(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)Eg.call(t,r)&&!Dg.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:kg,type:e,key:s,ref:o,props:i,_owner:Mg.current}}$s.Fragment=Cg;$s.jsx=vd;$s.jsxs=vd;ld.exports=$s;var N=ld.exports;function Ag(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=E.createContext(void 0);i.displayName=r;function s(){var o;const l=E.useContext(i);if(!l&&t){const a=new Error(n);throw a.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,a,s),a}return l}return[i.Provider,s,i]}var[Lg]=Ag({name:"ProviderContext",strict:!1});const _g=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Rg=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yd(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return _g.has(n.script)}let t=e.split("-")[0];return Rg.has(t)}const wd={prefix:String(Math.round(Math.random()*1e10)),current:0},Sd=ue.createContext(wd),Vg=ue.createContext(!1);let io=new WeakMap;function $g(e=!1){let t=E.useContext(Sd),n=E.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let o=io.get(s);o==null?io.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,io.delete(s))}n.current=++t.current}return n.current}function Ng(e){let t=E.useContext(Sd),n=$g(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function jg(e){let t=ue.useId(),[n]=E.useState(xd()),r=n?"react-aria":`react-aria${wd.prefix}`;return e||`${r}-${t}`}ue.useId;function Og(){return!1}function zg(){return!0}function Fg(e){return()=>{}}function xd(){return typeof ue.useSyncExternalStore=="function"?ue.useSyncExternalStore(Fg,Og,zg):E.useContext(Vg)}const Pd=Symbol.for("react-aria.i18n.locale");function Td(){let e=typeof window<"u"&&window[Pd]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:yd(e)?"rtl":"ltr"}}let Ko=Td(),gr=new Set;function Nu(){Ko=Td();for(let e of gr)e(Ko)}function Ig(){let e=xd(),[t,n]=E.useState(Ko);return E.useEffect(()=>(gr.size===0&&window.addEventListener("languagechange",Nu),gr.add(n),()=>{gr.delete(n),gr.size===0&&window.removeEventListener("languagechange",Nu)}),[]),e?{locale:typeof window<"u"&&window[Pd]||"en-US",direction:"ltr"}:t}const kd=ue.createContext(null);function Bg(e){let{locale:t,children:n}=e,r=ue.useMemo(()=>({locale:t,direction:yd(t)?"rtl":"ltr"}),[t]);return ue.createElement(kd.Provider,{value:r},n)}function Ug(e){let{children:t}=e,n=Ig();return ue.createElement(kd.Provider,{value:n},t)}function Wg(e){let{locale:t,children:n}=e;return t?ue.createElement(Bg,{locale:t,children:n}):ue.createElement(Ug,{children:n})}function Hg(e){if(Kg())e.focus({preventScroll:!0});else{let t=Yg(e);e.focus(),Gg(t)}}let wi=null;function Kg(){if(wi==null){wi=!1;try{document.createElement("div").focus({get preventScroll(){return wi=!0,!0}})}catch{}}return wi}function Yg(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Gg(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function aa(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Cd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ai(e){let t=null;return()=>(t==null&&(t=e()),t)}const Yo=ai(function(){return Cd(/^Mac/i)}),Qg=ai(function(){return Cd(/^iPad/i)||Yo()&&navigator.maxTouchPoints>1}),Xg=ai(function(){return aa(/AppleWebKit/i)&&!Zg()}),Zg=ai(function(){return aa(/Chrome/i)}),qg=ai(function(){return aa(/Firefox/i)}),Jg=E.createContext({isNative:!0,open:tv,useHref:e=>e});function bg(e){let{children:t,navigate:n,useHref:r}=e,i=E.useMemo(()=>({isNative:!1,open:(s,o,l,a)=>{Ed(s,u=>{ev(u,o)?n(l,a):Or(u,o)})},useHref:r||(s=>s)}),[n,r]);return ue.createElement(Jg.Provider,{value:i},t)}function ev(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Or(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:l,shiftKey:a}=t;qg()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Yo()?s=!0:o=!0);let u=Xg()&&Yo()&&!Qg()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:l,shiftKey:a}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:l,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Or.isOpening=n,Hg(e),e.dispatchEvent(u),Or.isOpening=!1}Or.isOpening=!1;function Ed(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function tv(e,t){Ed(e,n=>Or(n,t))}var Md={exports:{}},Be={},Dd={exports:{}},Ad={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){function t(S,M){var A=S.length;S.push(M);e:for(;0<A;){var z=A-1>>>1,B=S[z];if(0<i(B,M))S[z]=M,S[A]=B,A=z;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var M=S[0],A=S.pop();if(A!==M){S[0]=A;e:for(var z=0,B=S.length,q=B>>>1;z<q;){var X=2*(z+1)-1,ge=S[X],Me=X+1,We=S[Me];if(0>i(ge,A))Me<B&&0>i(We,ge)?(S[z]=We,S[Me]=A,z=Me):(S[z]=ge,S[X]=A,z=X);else if(Me<B&&0>i(We,A))S[z]=We,S[Me]=A,z=Me;else break e}}return M}function i(S,M){var A=S.sortIndex-M.sortIndex;return A!==0?A:S.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,d=null,f=3,g=!1,v=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(S){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=S)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function w(S){if(y=!1,m(S),!v)if(n(a)!==null)v=!0,L(x);else{var M=n(u);M!==null&&_(w,M.startTime-S)}}function x(S,M){v=!1,y&&(y=!1,p(k),k=-1),g=!0;var A=f;try{for(m(M),d=n(a);d!==null&&(!(d.expirationTime>M)||S&&!F());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var B=z(d.expirationTime<=M);M=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(a)&&r(a),m(M)}else r(a);d=n(a)}if(d!==null)var q=!0;else{var X=n(u);X!==null&&_(w,X.startTime-M),q=!1}return q}finally{d=null,f=A,g=!1}}var P=!1,D=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-R<I)}function $e(){if(D!==null){var S=e.unstable_now();R=S;var M=!0;try{M=D(!0,S)}finally{M?ot():(P=!1,D=null)}}else P=!1}var ot;if(typeof h=="function")ot=function(){h($e)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,V=j.port2;j.port1.onmessage=$e,ot=function(){V.postMessage(null)}}else ot=function(){T($e,0)};function L(S){D=S,P||(P=!0,ot())}function _(S,M){k=T(function(){S(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(S){S.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,L(x))},e.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(S){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var A=f;f=M;try{return S()}finally{f=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,M){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var A=f;f=S;try{return M()}finally{f=A}},e.unstable_scheduleCallback=function(S,M,A){var z=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?z+A:z):A=z,S){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=A+B,S={id:c++,callback:M,priorityLevel:S,startTime:A,expirationTime:B,sortIndex:-1},A>z?(S.sortIndex=A,t(u,S),n(a)===null&&S===n(u)&&(y?(p(k),k=-1):y=!0,_(w,A-z))):(S.sortIndex=B,t(a,S),v||g||(v=!0,L(x))),S},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(S){var M=f;return function(){var A=f;f=M;try{return S.apply(this,arguments)}finally{f=A}}}})(Ad);Dd.exports=Ad;var nv=Dd.exports;/**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var rv=E,Fe=nv;function C(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 Ld=new Set,zr={};function vn(e,t){Hn(e,t),Hn(e+"Capture",t)}function Hn(e,t){for(zr[e]=t,e=0;e<t.length;e++)Ld.add(t[e])}var xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Go=Object.prototype.hasOwnProperty,iv=/^[: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]*$/,ju={},Ou={};function sv(e){return Go.call(Ou,e)?!0:Go.call(ju,e)?!1:iv.test(e)?Ou[e]=!0:(ju[e]=!0,!1)}function ov(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 lv(e,t,n,r){if(t===null||typeof t>"u"||ov(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 Ee(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 me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ee(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){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var ua=/[\-:]([a-z])/g;function ca(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(ua,ca);me[t]=new Ee(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(ua,ca);me[t]=new Ee(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(ua,ca);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function fa(e,t,n,r){var i=me.hasOwnProperty(t)?me[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(lv(t,n,i,r)&&(n=null),r||i===null?sv(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 Et=rv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Si=Symbol.for("react.element"),xn=Symbol.for("react.portal"),Pn=Symbol.for("react.fragment"),da=Symbol.for("react.strict_mode"),Qo=Symbol.for("react.profiler"),_d=Symbol.for("react.provider"),Rd=Symbol.for("react.context"),ha=Symbol.for("react.forward_ref"),Xo=Symbol.for("react.suspense"),Zo=Symbol.for("react.suspense_list"),pa=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),Vd=Symbol.for("react.offscreen"),zu=Symbol.iterator;function lr(e){return e===null||typeof e!="object"?null:(e=zu&&e[zu]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,so;function vr(e){if(so===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);so=t&&t[1]||""}return`
|
|
`+so+e}var oo=!1;function lo(e,t){if(!e||oo)return"";oo=!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(`
|
|
`),s=r.stack.split(`
|
|
`),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=`
|
|
`+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{oo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function av(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=lo(e.type,!1),e;case 11:return e=lo(e.type.render,!1),e;case 1:return e=lo(e.type,!0),e;default:return""}}function qo(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 Pn:return"Fragment";case xn:return"Portal";case Qo:return"Profiler";case da:return"StrictMode";case Xo:return"Suspense";case Zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rd:return(e.displayName||"Context")+".Consumer";case _d:return(e._context.displayName||"Context")+".Provider";case ha:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pa:return t=e.displayName||null,t!==null?t:qo(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return qo(e(t))}catch{}}return null}function uv(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 qo(t);case 8:return t===da?"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 Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cv(e){var t=$d(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 xi(e){e._valueTracker||(e._valueTracker=cv(e))}function Nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$d(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ns(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 Jo(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(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 jd(e,t){t=t.checked,t!=null&&fa(e,"checked",t,!1)}function bo(e,t){jd(e,t);var n=Ht(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")?el(e,t.type,n):t.hasOwnProperty("defaultValue")&&el(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Iu(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 el(e,t,n){(t!=="number"||ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function zn(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=""+Ht(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 tl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(yr(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ht(n)}}function Od(e,t){var n=Ht(t.value),r=Ht(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 Uu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zd(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 nl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pi,Fd=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(Pi=Pi||document.createElement("div"),Pi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},fv=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function Id(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Bd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Id(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dv=te({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 rl(e,t){if(t){if(dv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function il(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 sl=null;function ma(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ol=null,Fn=null,In=null;function Wu(e){if(e=fi(e)){if(typeof ol!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Fs(t),ol(e.stateNode,e.type,t))}}function Ud(e){Fn?In?In.push(e):In=[e]:Fn=e}function Wd(){if(Fn){var e=Fn,t=In;if(In=Fn=null,Wu(e),t)for(e=0;e<t.length;e++)Wu(t[e])}}function Hd(e,t){return e(t)}function Kd(){}var ao=!1;function Yd(e,t,n){if(ao)return e(t,n);ao=!0;try{return Hd(e,t,n)}finally{ao=!1,(Fn!==null||In!==null)&&(Kd(),Wd())}}function Ir(e,t){var n=e.stateNode;if(n===null)return null;var r=Fs(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(C(231,t,typeof n));return n}var ll=!1;if(xt)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){ll=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{ll=!1}function hv(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 Cr=!1,rs=null,is=!1,al=null,pv={onError:function(e){Cr=!0,rs=e}};function mv(e,t,n,r,i,s,o,l,a){Cr=!1,rs=null,hv.apply(pv,arguments)}function gv(e,t,n,r,i,s,o,l,a){if(mv.apply(this,arguments),Cr){if(Cr){var u=rs;Cr=!1,rs=null}else throw Error(C(198));is||(is=!0,al=u)}}function yn(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 Gd(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 Hu(e){if(yn(e)!==e)throw Error(C(188))}function vv(e){var t=e.alternate;if(!t){if(t=yn(e),t===null)throw Error(C(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 Hu(i),e;if(s===r)return Hu(i),t;s=s.sibling}throw Error(C(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(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Qd(e){return e=vv(e),e!==null?Xd(e):null}function Xd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Xd(e);if(t!==null)return t;e=e.sibling}return null}var Zd=Fe.unstable_scheduleCallback,Ku=Fe.unstable_cancelCallback,yv=Fe.unstable_shouldYield,wv=Fe.unstable_requestPaint,se=Fe.unstable_now,Sv=Fe.unstable_getCurrentPriorityLevel,ga=Fe.unstable_ImmediatePriority,qd=Fe.unstable_UserBlockingPriority,ss=Fe.unstable_NormalPriority,xv=Fe.unstable_LowPriority,Jd=Fe.unstable_IdlePriority,Ns=null,ct=null;function Pv(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ns,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:Cv,Tv=Math.log,kv=Math.LN2;function Cv(e){return e>>>=0,e===0?32:31-(Tv(e)/kv|0)|0}var Ti=64,ki=4194304;function wr(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=wr(l):(s&=o,s!==0&&(r=wr(s)))}else o=n&~i,o!==0?r=wr(o):s!==0&&(r=wr(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-rt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ev(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 Mv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-rt(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Ev(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function ul(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bd(){var e=Ti;return Ti<<=1,!(Ti&4194240)&&(Ti=64),e}function uo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Dv(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-rt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function va(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var H=0;function eh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var th,ya,nh,rh,ih,cl=!1,Ci=[],jt=null,Ot=null,zt=null,Br=new Map,Ur=new Map,Rt=[],Av="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 Yu(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Br.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ur.delete(t.pointerId)}}function ur(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=fi(t),t!==null&&ya(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lv(e,t,n,r,i){switch(t){case"focusin":return jt=ur(jt,e,t,n,r,i),!0;case"dragenter":return Ot=ur(Ot,e,t,n,r,i),!0;case"mouseover":return zt=ur(zt,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Br.set(s,ur(Br.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Ur.set(s,ur(Ur.get(s)||null,e,t,n,r,i)),!0}return!1}function sh(e){var t=sn(e.target);if(t!==null){var n=yn(t);if(n!==null){if(t=n.tag,t===13){if(t=Gd(n),t!==null){e.blockedOn=t,ih(e.priority,function(){nh(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 Wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sl=r,n.target.dispatchEvent(r),sl=null}else return t=fi(n),t!==null&&ya(t),e.blockedOn=n,!1;t.shift()}return!0}function Gu(e,t,n){Wi(e)&&n.delete(t)}function _v(){cl=!1,jt!==null&&Wi(jt)&&(jt=null),Ot!==null&&Wi(Ot)&&(Ot=null),zt!==null&&Wi(zt)&&(zt=null),Br.forEach(Gu),Ur.forEach(Gu)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,cl||(cl=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,_v)))}function Wr(e){function t(i){return cr(i,e)}if(0<Ci.length){cr(Ci[0],e);for(var n=1;n<Ci.length;n++){var r=Ci[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jt!==null&&cr(jt,e),Ot!==null&&cr(Ot,e),zt!==null&&cr(zt,e),Br.forEach(t),Ur.forEach(t),n=0;n<Rt.length;n++)r=Rt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&(n=Rt[0],n.blockedOn===null);)sh(n),n.blockedOn===null&&Rt.shift()}var Bn=Et.ReactCurrentBatchConfig,ls=!0;function Rv(e,t,n,r){var i=H,s=Bn.transition;Bn.transition=null;try{H=1,wa(e,t,n,r)}finally{H=i,Bn.transition=s}}function Vv(e,t,n,r){var i=H,s=Bn.transition;Bn.transition=null;try{H=4,wa(e,t,n,r)}finally{H=i,Bn.transition=s}}function wa(e,t,n,r){if(ls){var i=fl(e,t,n,r);if(i===null)So(e,t,r,as,n),Yu(e,r);else if(Lv(i,e,t,n,r))r.stopPropagation();else if(Yu(e,r),t&4&&-1<Av.indexOf(e)){for(;i!==null;){var s=fi(i);if(s!==null&&th(s),s=fl(e,t,n,r),s===null&&So(e,t,r,as,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else So(e,t,r,null,n)}}var as=null;function fl(e,t,n,r){if(as=null,e=ma(r),e=sn(e),e!==null)if(t=yn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Gd(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 as=e,null}function oh(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(Sv()){case ga:return 1;case qd:return 4;case ss:case xv:return 16;case Jd:return 536870912;default:return 16}default:return 16}}var $t=null,Sa=null,Hi=null;function lh(){if(Hi)return Hi;var e,t=Sa,n=t.length,r,i="value"in $t?$t.value:$t.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 Hi=i.slice(e,1<r?1-r:void 0)}function Ki(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 Ei(){return!0}function Qu(){return!1}function Ue(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)?Ei:Qu,this.isPropagationStopped=Qu,this}return te(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=Ei)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),t}var tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xa=Ue(tr),ci=te({},tr,{view:0,detail:0}),$v=Ue(ci),co,fo,fr,js=te({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pa,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!==fr&&(fr&&e.type==="mousemove"?(co=e.screenX-fr.screenX,fo=e.screenY-fr.screenY):fo=co=0,fr=e),co)},movementY:function(e){return"movementY"in e?e.movementY:fo}}),Xu=Ue(js),Nv=te({},js,{dataTransfer:0}),jv=Ue(Nv),Ov=te({},ci,{relatedTarget:0}),ho=Ue(Ov),zv=te({},tr,{animationName:0,elapsedTime:0,pseudoElement:0}),Fv=Ue(zv),Iv=te({},tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bv=Ue(Iv),Uv=te({},tr,{data:0}),Zu=Ue(Uv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hv={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"},Kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kv[e])?!!t[e]:!1}function Pa(){return Yv}var Gv=te({},ci,{key:function(e){if(e.key){var t=Wv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ki(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pa,charCode:function(e){return e.type==="keypress"?Ki(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ki(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qv=Ue(Gv),Xv=te({},js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qu=Ue(Xv),Zv=te({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pa}),qv=Ue(Zv),Jv=te({},tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),bv=Ue(Jv),ey=te({},js,{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}),ty=Ue(ey),ny=[9,13,27,32],Ta=xt&&"CompositionEvent"in window,Er=null;xt&&"documentMode"in document&&(Er=document.documentMode);var ry=xt&&"TextEvent"in window&&!Er,ah=xt&&(!Ta||Er&&8<Er&&11>=Er),Ju=" ",bu=!1;function uh(e,t){switch(e){case"keyup":return ny.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function iy(e,t){switch(e){case"compositionend":return ch(t);case"keypress":return t.which!==32?null:(bu=!0,Ju);case"textInput":return e=t.data,e===Ju&&bu?null:e;default:return null}}function sy(e,t){if(Tn)return e==="compositionend"||!Ta&&uh(e,t)?(e=lh(),Hi=Sa=$t=null,Tn=!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 ah&&t.locale!=="ko"?null:t.data;default:return null}}var oy={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 ec(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oy[e.type]:t==="textarea"}function fh(e,t,n,r){Ud(r),t=us(t,"onChange"),0<t.length&&(n=new xa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mr=null,Hr=null;function ly(e){Ph(e,0)}function Os(e){var t=En(e);if(Nd(t))return e}function ay(e,t){if(e==="change")return t}var dh=!1;if(xt){var po;if(xt){var mo="oninput"in document;if(!mo){var tc=document.createElement("div");tc.setAttribute("oninput","return;"),mo=typeof tc.oninput=="function"}po=mo}else po=!1;dh=po&&(!document.documentMode||9<document.documentMode)}function nc(){Mr&&(Mr.detachEvent("onpropertychange",hh),Hr=Mr=null)}function hh(e){if(e.propertyName==="value"&&Os(Hr)){var t=[];fh(t,Hr,e,ma(e)),Yd(ly,t)}}function uy(e,t,n){e==="focusin"?(nc(),Mr=t,Hr=n,Mr.attachEvent("onpropertychange",hh)):e==="focusout"&&nc()}function cy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(Hr)}function fy(e,t){if(e==="click")return Os(t)}function dy(e,t){if(e==="input"||e==="change")return Os(t)}function hy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:hy;function Kr(e,t){if(st(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(!Go.call(t,i)||!st(e[i],t[i]))return!1}return!0}function rc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ic(e,t){var n=rc(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=rc(n)}}function ph(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ph(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mh(){for(var e=window,t=ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ns(e.document)}return t}function ka(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 py(e){var t=mh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ph(n.ownerDocument.documentElement,n)){if(r!==null&&ka(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=ic(n,s);var o=ic(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 my=xt&&"documentMode"in document&&11>=document.documentMode,kn=null,dl=null,Dr=null,hl=!1;function sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hl||kn==null||kn!==ns(r)||(r=kn,"selectionStart"in r&&ka(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}),Dr&&Kr(Dr,r)||(Dr=r,r=us(dl,"onSelect"),0<r.length&&(t=new xa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=kn)))}function Mi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cn={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},go={},gh={};xt&&(gh=document.createElement("div").style,"AnimationEvent"in window||(delete Cn.animationend.animation,delete Cn.animationiteration.animation,delete Cn.animationstart.animation),"TransitionEvent"in window||delete Cn.transitionend.transition);function zs(e){if(go[e])return go[e];if(!Cn[e])return e;var t=Cn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gh)return go[e]=t[n];return e}var vh=zs("animationend"),yh=zs("animationiteration"),wh=zs("animationstart"),Sh=zs("transitionend"),xh=new Map,oc="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 Qt(e,t){xh.set(e,t),vn(t,[e])}for(var vo=0;vo<oc.length;vo++){var yo=oc[vo],gy=yo.toLowerCase(),vy=yo[0].toUpperCase()+yo.slice(1);Qt(gy,"on"+vy)}Qt(vh,"onAnimationEnd");Qt(yh,"onAnimationIteration");Qt(wh,"onAnimationStart");Qt("dblclick","onDoubleClick");Qt("focusin","onFocus");Qt("focusout","onBlur");Qt(Sh,"onTransitionEnd");Hn("onMouseEnter",["mouseout","mouseover"]);Hn("onMouseLeave",["mouseout","mouseover"]);Hn("onPointerEnter",["pointerout","pointerover"]);Hn("onPointerLeave",["pointerout","pointerover"]);vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="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(" "),yy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function lc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,gv(r,t,void 0,e),e.currentTarget=null}function Ph(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;lc(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;lc(i,l,u),s=a}}}if(is)throw e=al,is=!1,al=null,e}function Y(e,t){var n=t[yl];n===void 0&&(n=t[yl]=new Set);var r=e+"__bubble";n.has(r)||(Th(t,e,2,!1),n.add(r))}function wo(e,t,n){var r=0;t&&(r|=4),Th(n,e,r,t)}var Di="_reactListening"+Math.random().toString(36).slice(2);function Yr(e){if(!e[Di]){e[Di]=!0,Ld.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||wo(n,!1,e),wo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Di]||(t[Di]=!0,wo("selectionchange",!1,t))}}function Th(e,t,n,r){switch(oh(t)){case 1:var i=Rv;break;case 4:i=Vv;break;default:i=wa}n=i.bind(null,t,n,e),i=void 0,!ll||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 So(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=sn(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}Yd(function(){var u=s,c=ma(n),d=[];e:{var f=xh.get(e);if(f!==void 0){var g=xa,v=e;switch(e){case"keypress":if(Ki(n)===0)break e;case"keydown":case"keyup":g=Qv;break;case"focusin":v="focus",g=ho;break;case"focusout":v="blur",g=ho;break;case"beforeblur":case"afterblur":g=ho;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=Xu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=qv;break;case vh:case yh:case wh:g=Fv;break;case Sh:g=bv;break;case"scroll":g=$v;break;case"wheel":g=ty;break;case"copy":case"cut":case"paste":g=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=qu}var y=(t&4)!==0,T=!y&&e==="scroll",p=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,m;h!==null;){m=h;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,p!==null&&(w=Ir(h,p),w!=null&&y.push(Gr(h,w,m)))),T)break;h=h.return}0<y.length&&(f=new g(f,v,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&n!==sl&&(v=n.relatedTarget||n.fromElement)&&(sn(v)||v[Pt]))break e;if((g||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?sn(v):null,v!==null&&(T=yn(v),v!==T||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(y=Xu,w="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=qu,w="onPointerLeave",p="onPointerEnter",h="pointer"),T=g==null?f:En(g),m=v==null?f:En(v),f=new y(w,h+"leave",g,n,c),f.target=T,f.relatedTarget=m,w=null,sn(c)===u&&(y=new y(p,h+"enter",v,n,c),y.target=m,y.relatedTarget=T,w=y),T=w,g&&v)t:{for(y=g,p=v,h=0,m=y;m;m=Sn(m))h++;for(m=0,w=p;w;w=Sn(w))m++;for(;0<h-m;)y=Sn(y),h--;for(;0<m-h;)p=Sn(p),m--;for(;h--;){if(y===p||p!==null&&y===p.alternate)break t;y=Sn(y),p=Sn(p)}y=null}else y=null;g!==null&&ac(d,f,g,y,!1),v!==null&&T!==null&&ac(d,T,v,y,!0)}}e:{if(f=u?En(u):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var x=ay;else if(ec(f))if(dh)x=dy;else{x=cy;var P=uy}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(x=fy);if(x&&(x=x(e,u))){fh(d,x,n,c);break e}P&&P(e,f,u),e==="focusout"&&(P=f._wrapperState)&&P.controlled&&f.type==="number"&&el(f,"number",f.value)}switch(P=u?En(u):window,e){case"focusin":(ec(P)||P.contentEditable==="true")&&(kn=P,dl=u,Dr=null);break;case"focusout":Dr=dl=kn=null;break;case"mousedown":hl=!0;break;case"contextmenu":case"mouseup":case"dragend":hl=!1,sc(d,n,c);break;case"selectionchange":if(my)break;case"keydown":case"keyup":sc(d,n,c)}var D;if(Ta)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Tn?uh(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(ah&&n.locale!=="ko"&&(Tn||k!=="onCompositionStart"?k==="onCompositionEnd"&&Tn&&(D=lh()):($t=c,Sa="value"in $t?$t.value:$t.textContent,Tn=!0)),P=us(u,k),0<P.length&&(k=new Zu(k,e,null,n,c),d.push({event:k,listeners:P}),D?k.data=D:(D=ch(n),D!==null&&(k.data=D)))),(D=ry?iy(e,n):sy(e,n))&&(u=us(u,"onBeforeInput"),0<u.length&&(c=new Zu("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=D))}Ph(d,t)})}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function us(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ir(e,n),s!=null&&r.unshift(Gr(e,s,i)),s=Ir(e,t),s!=null&&r.push(Gr(e,s,i))),e=e.return}return r}function Sn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ac(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=Ir(n,s),a!=null&&o.unshift(Gr(n,a,l))):i||(a=Ir(n,s),a!=null&&o.push(Gr(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var wy=/\r\n?/g,Sy=/\u0000|\uFFFD/g;function uc(e){return(typeof e=="string"?e:""+e).replace(wy,`
|
|
`).replace(Sy,"")}function Ai(e,t,n){if(t=uc(t),uc(e)!==t&&n)throw Error(C(425))}function cs(){}var pl=null,ml=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 vl=typeof setTimeout=="function"?setTimeout:void 0,xy=typeof clearTimeout=="function"?clearTimeout:void 0,cc=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof cc<"u"?function(e){return cc.resolve(null).then(e).catch(Ty)}:vl;function Ty(e){setTimeout(function(){throw e})}function xo(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),Wr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wr(t)}function Ft(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 fc(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 nr=Math.random().toString(36).slice(2),ut="__reactFiber$"+nr,Qr="__reactProps$"+nr,Pt="__reactContainer$"+nr,yl="__reactEvents$"+nr,ky="__reactListeners$"+nr,Cy="__reactHandles$"+nr;function sn(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fc(e);e!==null;){if(n=e[ut])return n;e=fc(e)}return t}e=n,n=e.parentNode}return null}function fi(e){return e=e[ut]||e[Pt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Fs(e){return e[Qr]||null}var wl=[],Mn=-1;function Xt(e){return{current:e}}function G(e){0>Mn||(e.current=wl[Mn],wl[Mn]=null,Mn--)}function K(e,t){Mn++,wl[Mn]=e.current,e.current=t}var Kt={},Pe=Xt(Kt),_e=Xt(!1),dn=Kt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Kt;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 Re(e){return e=e.childContextTypes,e!=null}function fs(){G(_e),G(Pe)}function dc(e,t,n){if(Pe.current!==Kt)throw Error(C(168));K(Pe,t),K(_e,n)}function kh(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(C(108,uv(e)||"Unknown",i));return te({},n,r)}function ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,dn=Pe.current,K(Pe,e),K(_e,_e.current),!0}function hc(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=kh(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,G(_e),G(Pe),K(Pe,e)):G(_e),K(_e,n)}var mt=null,Is=!1,Po=!1;function Ch(e){mt===null?mt=[e]:mt.push(e)}function Ey(e){Is=!0,Ch(e)}function Zt(){if(!Po&&mt!==null){Po=!0;var e=0,t=H;try{var n=mt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,Is=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),Zd(ga,Zt),i}finally{H=t,Po=!1}}return null}var Dn=[],An=0,hs=null,ps=0,Ye=[],Ge=0,hn=null,gt=1,vt="";function en(e,t){Dn[An++]=ps,Dn[An++]=hs,hs=e,ps=t}function Eh(e,t,n){Ye[Ge++]=gt,Ye[Ge++]=vt,Ye[Ge++]=hn,hn=e;var r=gt;e=vt;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var s=32-rt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,gt=1<<32-rt(t)+i|n<<i|r,vt=s+e}else gt=1<<s|n<<i|r,vt=e}function Ca(e){e.return!==null&&(en(e,1),Eh(e,1,0))}function Ea(e){for(;e===hs;)hs=Dn[--An],Dn[An]=null,ps=Dn[--An],Dn[An]=null;for(;e===hn;)hn=Ye[--Ge],Ye[Ge]=null,vt=Ye[--Ge],Ye[Ge]=null,gt=Ye[--Ge],Ye[Ge]=null}var Oe=null,je=null,Z=!1,nt=null;function Mh(e,t){var n=Qe(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 pc(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,Oe=e,je=Ft(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Oe=e,je=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=hn!==null?{id:gt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oe=e,je=null,!0):!1;default:return!1}}function Sl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xl(e){if(Z){var t=je;if(t){var n=t;if(!pc(e,t)){if(Sl(e))throw Error(C(418));t=Ft(n.nextSibling);var r=Oe;t&&pc(e,t)?Mh(r,n):(e.flags=e.flags&-4097|2,Z=!1,Oe=e)}}else{if(Sl(e))throw Error(C(418));e.flags=e.flags&-4097|2,Z=!1,Oe=e}}}function mc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oe=e}function Li(e){if(e!==Oe)return!1;if(!Z)return mc(e),Z=!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=je)){if(Sl(e))throw Dh(),Error(C(418));for(;t;)Mh(e,t),t=Ft(t.nextSibling)}if(mc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){je=Ft(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}je=null}}else je=Oe?Ft(e.stateNode.nextSibling):null;return!0}function Dh(){for(var e=je;e;)e=Ft(e.nextSibling)}function Yn(){je=Oe=null,Z=!1}function Ma(e){nt===null?nt=[e]:nt.push(e)}var My=Et.ReactCurrentBatchConfig;function dr(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(C(309));var r=n.stateNode}if(!r)throw Error(C(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(C(284));if(!n._owner)throw Error(C(290,e))}return e}function _i(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gc(e){var t=e._init;return t(e._payload)}function Ah(e){function t(p,h){if(e){var m=p.deletions;m===null?(p.deletions=[h],p.flags|=16):m.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=Wt(p,h),p.index=0,p.sibling=null,p}function s(p,h,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<h?(p.flags|=2,h):m):(p.flags|=2,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,h,m,w){return h===null||h.tag!==6?(h=Ao(m,p.mode,w),h.return=p,h):(h=i(h,m),h.return=p,h)}function a(p,h,m,w){var x=m.type;return x===Pn?c(p,h,m.props.children,w,m.key):h!==null&&(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Lt&&gc(x)===h.type)?(w=i(h,m.props),w.ref=dr(p,h,m),w.return=p,w):(w=Ji(m.type,m.key,m.props,null,p.mode,w),w.ref=dr(p,h,m),w.return=p,w)}function u(p,h,m,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=Lo(m,p.mode,w),h.return=p,h):(h=i(h,m.children||[]),h.return=p,h)}function c(p,h,m,w,x){return h===null||h.tag!==7?(h=cn(m,p.mode,w,x),h.return=p,h):(h=i(h,m),h.return=p,h)}function d(p,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Ao(""+h,p.mode,m),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Si:return m=Ji(h.type,h.key,h.props,null,p.mode,m),m.ref=dr(p,null,h),m.return=p,m;case xn:return h=Lo(h,p.mode,m),h.return=p,h;case Lt:var w=h._init;return d(p,w(h._payload),m)}if(yr(h)||lr(h))return h=cn(h,p.mode,m,null),h.return=p,h;_i(p,h)}return null}function f(p,h,m,w){var x=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return x!==null?null:l(p,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Si:return m.key===x?a(p,h,m,w):null;case xn:return m.key===x?u(p,h,m,w):null;case Lt:return x=m._init,f(p,h,x(m._payload),w)}if(yr(m)||lr(m))return x!==null?null:c(p,h,m,w,null);_i(p,m)}return null}function g(p,h,m,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(m)||null,l(h,p,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Si:return p=p.get(w.key===null?m:w.key)||null,a(h,p,w,x);case xn:return p=p.get(w.key===null?m:w.key)||null,u(h,p,w,x);case Lt:var P=w._init;return g(p,h,m,P(w._payload),x)}if(yr(w)||lr(w))return p=p.get(m)||null,c(h,p,w,x,null);_i(h,w)}return null}function v(p,h,m,w){for(var x=null,P=null,D=h,k=h=0,I=null;D!==null&&k<m.length;k++){D.index>k?(I=D,D=null):I=D.sibling;var R=f(p,D,m[k],w);if(R===null){D===null&&(D=I);break}e&&D&&R.alternate===null&&t(p,D),h=s(R,h,k),P===null?x=R:P.sibling=R,P=R,D=I}if(k===m.length)return n(p,D),Z&&en(p,k),x;if(D===null){for(;k<m.length;k++)D=d(p,m[k],w),D!==null&&(h=s(D,h,k),P===null?x=D:P.sibling=D,P=D);return Z&&en(p,k),x}for(D=r(p,D);k<m.length;k++)I=g(D,p,k,m[k],w),I!==null&&(e&&I.alternate!==null&&D.delete(I.key===null?k:I.key),h=s(I,h,k),P===null?x=I:P.sibling=I,P=I);return e&&D.forEach(function(F){return t(p,F)}),Z&&en(p,k),x}function y(p,h,m,w){var x=lr(m);if(typeof x!="function")throw Error(C(150));if(m=x.call(m),m==null)throw Error(C(151));for(var P=x=null,D=h,k=h=0,I=null,R=m.next();D!==null&&!R.done;k++,R=m.next()){D.index>k?(I=D,D=null):I=D.sibling;var F=f(p,D,R.value,w);if(F===null){D===null&&(D=I);break}e&&D&&F.alternate===null&&t(p,D),h=s(F,h,k),P===null?x=F:P.sibling=F,P=F,D=I}if(R.done)return n(p,D),Z&&en(p,k),x;if(D===null){for(;!R.done;k++,R=m.next())R=d(p,R.value,w),R!==null&&(h=s(R,h,k),P===null?x=R:P.sibling=R,P=R);return Z&&en(p,k),x}for(D=r(p,D);!R.done;k++,R=m.next())R=g(D,p,k,R.value,w),R!==null&&(e&&R.alternate!==null&&D.delete(R.key===null?k:R.key),h=s(R,h,k),P===null?x=R:P.sibling=R,P=R);return e&&D.forEach(function($e){return t(p,$e)}),Z&&en(p,k),x}function T(p,h,m,w){if(typeof m=="object"&&m!==null&&m.type===Pn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Si:e:{for(var x=m.key,P=h;P!==null;){if(P.key===x){if(x=m.type,x===Pn){if(P.tag===7){n(p,P.sibling),h=i(P,m.props.children),h.return=p,p=h;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Lt&&gc(x)===P.type){n(p,P.sibling),h=i(P,m.props),h.ref=dr(p,P,m),h.return=p,p=h;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===Pn?(h=cn(m.props.children,p.mode,w,m.key),h.return=p,p=h):(w=Ji(m.type,m.key,m.props,null,p.mode,w),w.ref=dr(p,h,m),w.return=p,p=w)}return o(p);case xn:e:{for(P=m.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Lo(m,p.mode,w),h.return=p,p=h}return o(p);case Lt:return P=m._init,T(p,h,P(m._payload),w)}if(yr(m))return v(p,h,m,w);if(lr(m))return y(p,h,m,w);_i(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=Ao(m,p.mode,w),h.return=p,p=h),o(p)):n(p,h)}return T}var Gn=Ah(!0),Lh=Ah(!1),ms=Xt(null),gs=null,Ln=null,Da=null;function Aa(){Da=Ln=gs=null}function La(e){var t=ms.current;G(ms),e._currentValue=t}function Pl(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 Un(e,t){gs=e,Da=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(Da!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(gs===null)throw Error(C(308));Ln=e,gs.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var on=null;function _a(e){on===null?on=[e]:on.push(e)}function _h(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,_a(t)):(n.next=i.next,i.next=n),t.interleaved=n,Tt(e,r)}function Tt(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 _t=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rh(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 yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function It(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Tt(e,n)}return i=r.interleaved,i===null?(t.next=t,_a(r)):(t.next=i.next,i.next=t),r.interleaved=t,Tt(e,n)}function Yi(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,va(e,n)}}function vc(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 vs(e,t,n,r){var i=e.updateQueue;_t=!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 d=i.baseState;o=0,c=u=a=null,l=s;do{var f=l.lane,g=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,y=l;switch(f=t,g=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(g,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(g,d,f):v,f==null)break e;d=te({},d,f);break e;case 2:_t=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=d):c=c.next=g,o|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(a=d),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);mn|=o,e.lanes=o,e.memoizedState=d}}function yc(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(C(191,i));i.call(r)}}}var di={},ft=Xt(di),Xr=Xt(di),Zr=Xt(di);function ln(e){if(e===di)throw Error(C(174));return e}function Va(e,t){switch(K(Zr,t),K(Xr,e),K(ft,di),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nl(t,e)}G(ft),K(ft,t)}function Qn(){G(ft),G(Xr),G(Zr)}function Vh(e){ln(Zr.current);var t=ln(ft.current),n=nl(t,e.type);t!==n&&(K(Xr,e),K(ft,n))}function $a(e){Xr.current===e&&(G(ft),G(Xr))}var J=Xt(0);function ys(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 To=[];function Na(){for(var e=0;e<To.length;e++)To[e]._workInProgressVersionPrimary=null;To.length=0}var Gi=Et.ReactCurrentDispatcher,ko=Et.ReactCurrentBatchConfig,pn=0,ee=null,le=null,ce=null,ws=!1,Ar=!1,qr=0,Dy=0;function ve(){throw Error(C(321))}function ja(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!st(e[n],t[n]))return!1;return!0}function Oa(e,t,n,r,i,s){if(pn=s,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=e===null||e.memoizedState===null?Ry:Vy,e=n(r,i),Ar){s=0;do{if(Ar=!1,qr=0,25<=s)throw Error(C(301));s+=1,ce=le=null,t.updateQueue=null,Gi.current=$y,e=n(r,i)}while(Ar)}if(Gi.current=Ss,t=le!==null&&le.next!==null,pn=0,ce=le=ee=null,ws=!1,t)throw Error(C(300));return e}function za(){var e=qr!==0;return qr=0,e}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?ee.memoizedState=ce=e:ce=ce.next=e,ce}function qe(){if(le===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=le.next;var t=ce===null?ee.memoizedState:ce.next;if(t!==null)ce=t,le=e;else{if(e===null)throw Error(C(310));le=e,e={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},ce===null?ee.memoizedState=ce=e:ce=ce.next=e}return ce}function Jr(e,t){return typeof t=="function"?t(e):t}function Co(e){var t=qe(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=le,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((pn&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 d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,o=r):a=a.next=d,ee.lanes|=c,mn|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,st(r,t.memoizedState)||(Le=!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,ee.lanes|=s,mn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Eo(e){var t=qe(),n=t.queue;if(n===null)throw Error(C(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);st(s,t.memoizedState)||(Le=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function $h(){}function Nh(e,t){var n=ee,r=qe(),i=t(),s=!st(r.memoizedState,i);if(s&&(r.memoizedState=i,Le=!0),r=r.queue,Fa(zh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,br(9,Oh.bind(null,n,r,i,t),void 0,null),fe===null)throw Error(C(349));pn&30||jh(n,t,i)}return i}function jh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Oh(e,t,n,r){t.value=n,t.getSnapshot=r,Fh(t)&&Ih(e)}function zh(e,t,n){return n(function(){Fh(t)&&Ih(e)})}function Fh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!st(e,n)}catch{return!0}}function Ih(e){var t=Tt(e,1);t!==null&&it(t,e,1,-1)}function wc(e){var t=at();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:e},t.queue=e,e=e.dispatch=_y.bind(null,ee,e),[t.memoizedState,e]}function br(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.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 Bh(){return qe().memoizedState}function Qi(e,t,n,r){var i=at();ee.flags|=e,i.memoizedState=br(1|t,n,void 0,r===void 0?null:r)}function Bs(e,t,n,r){var i=qe();r=r===void 0?null:r;var s=void 0;if(le!==null){var o=le.memoizedState;if(s=o.destroy,r!==null&&ja(r,o.deps)){i.memoizedState=br(t,n,s,r);return}}ee.flags|=e,i.memoizedState=br(1|t,n,s,r)}function Sc(e,t){return Qi(8390656,8,e,t)}function Fa(e,t){return Bs(2048,8,e,t)}function Uh(e,t){return Bs(4,2,e,t)}function Wh(e,t){return Bs(4,4,e,t)}function Hh(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 Kh(e,t,n){return n=n!=null?n.concat([e]):null,Bs(4,4,Hh.bind(null,t,e),n)}function Ia(){}function Yh(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ja(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gh(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ja(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qh(e,t,n){return pn&21?(st(n,t)||(n=bd(),ee.lanes|=n,mn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Le=!0),e.memoizedState=n)}function Ay(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{H=n,ko.transition=r}}function Xh(){return qe().memoizedState}function Ly(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zh(e))qh(t,n);else if(n=_h(e,t,n,r),n!==null){var i=ke();it(n,e,r,i),Jh(n,t,r)}}function _y(e,t,n){var r=Ut(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zh(e))qh(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,st(l,o)){var a=t.interleaved;a===null?(i.next=i,_a(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=_h(e,t,i,r),n!==null&&(i=ke(),it(n,e,r,i),Jh(n,t,r))}}function Zh(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function qh(e,t){Ar=ws=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,va(e,n)}}var Ss={readContext:Ze,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Ry={readContext:Ze,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Sc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qi(4194308,4,Hh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qi(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();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=Ly.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:wc,useDebugValue:Ia,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=wc(!1),t=e[0];return e=Ay.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,i=at();if(Z){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),fe===null)throw Error(C(349));pn&30||jh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Sc(zh.bind(null,r,s,e),[e]),r.flags|=2048,br(9,Oh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=at(),t=fe.identifierPrefix;if(Z){var n=vt,r=gt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Dy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vy={readContext:Ze,useCallback:Yh,useContext:Ze,useEffect:Fa,useImperativeHandle:Kh,useInsertionEffect:Uh,useLayoutEffect:Wh,useMemo:Gh,useReducer:Co,useRef:Bh,useState:function(){return Co(Jr)},useDebugValue:Ia,useDeferredValue:function(e){var t=qe();return Qh(t,le.memoizedState,e)},useTransition:function(){var e=Co(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:$h,useSyncExternalStore:Nh,useId:Xh,unstable_isNewReconciler:!1},$y={readContext:Ze,useCallback:Yh,useContext:Ze,useEffect:Fa,useImperativeHandle:Kh,useInsertionEffect:Uh,useLayoutEffect:Wh,useMemo:Gh,useReducer:Eo,useRef:Bh,useState:function(){return Eo(Jr)},useDebugValue:Ia,useDeferredValue:function(e){var t=qe();return le===null?t.memoizedState=e:Qh(t,le.memoizedState,e)},useTransition:function(){var e=Eo(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:$h,useSyncExternalStore:Nh,useId:Xh,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Tl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={isMounted:function(e){return(e=e._reactInternals)?yn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ke(),i=Ut(e),s=yt(r,i);s.payload=t,n!=null&&(s.callback=n),t=It(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ke(),i=Ut(e),s=yt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=It(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ke(),r=Ut(e),i=yt(n,r);i.tag=2,t!=null&&(i.callback=t),t=It(e,i,r),t!==null&&(it(t,e,r,n),Yi(t,e,r))}};function xc(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?!Kr(n,r)||!Kr(i,s):!0}function bh(e,t,n){var r=!1,i=Kt,s=t.contextType;return typeof s=="object"&&s!==null?s=Ze(s):(i=Re(t)?dn:Pe.current,r=t.contextTypes,s=(r=r!=null)?Kn(e,i):Kt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Us,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Pc(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&&Us.enqueueReplaceState(t,t.state,null)}function kl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ra(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ze(s):(s=Re(t)?dn:Pe.current,i.context=Kn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Tl(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&&Us.enqueueReplaceState(i,i.state,null),vs(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Xn(e,t){try{var n="",r=t;do n+=av(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
Error generating stack: `+s.message+`
|
|
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Mo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ny=typeof WeakMap=="function"?WeakMap:Map;function ep(e,t,n){n=yt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ps||(Ps=!0,Nl=r),Cl(e,t)},n}function tp(e,t,n){n=yt(-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(){Cl(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Cl(e,t),typeof r!="function"&&(Bt===null?Bt=new Set([this]):Bt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Tc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ny;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=Xy.bind(null,e,t,n),t.then(e,e))}function kc(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 Cc(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=yt(-1,1),t.tag=2,It(n,t,1))),n.lanes|=1),e)}var jy=Et.ReactCurrentOwner,Le=!1;function Te(e,t,n,r){t.child=e===null?Lh(t,null,n,r):Gn(t,e.child,n,r)}function Ec(e,t,n,r,i){n=n.render;var s=t.ref;return Un(t,i),r=Oa(e,t,n,r,s,i),n=za(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(Z&&n&&Ca(t),t.flags|=1,Te(e,t,r,i),t.child)}function Mc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Qa(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,np(e,t,s,r,i)):(e=Ji(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:Kr,n(o,r)&&e.ref===t.ref)return kt(e,t,i)}return t.flags|=1,e=Wt(s,r),e.ref=t.ref,e.return=t,t.child=e}function np(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Kr(s,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,kt(e,t,i)}return El(e,t,n,r,i)}function rp(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},K(Rn,Ne),Ne|=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,K(Rn,Ne),Ne|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,K(Rn,Ne),Ne|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,K(Rn,Ne),Ne|=r;return Te(e,t,i,n),t.child}function ip(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function El(e,t,n,r,i){var s=Re(n)?dn:Pe.current;return s=Kn(t,s),Un(t,i),n=Oa(e,t,n,r,s,i),r=za(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(Z&&r&&Ca(t),t.flags|=1,Te(e,t,n,i),t.child)}function Dc(e,t,n,r,i){if(Re(n)){var s=!0;ds(t)}else s=!1;if(Un(t,i),t.stateNode===null)Xi(e,t),bh(t,n,r),kl(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=Ze(u):(u=Re(n)?dn:Pe.current,u=Kn(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Pc(t,o,r,u),_t=!1;var f=t.memoizedState;o.state=f,vs(t,r,o,i),a=t.memoizedState,l!==r||f!==a||_e.current||_t?(typeof c=="function"&&(Tl(t,n,c,r),a=t.memoizedState),(l=_t||xc(t,n,l,r,f,a,u))?(d||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,Rh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:et(t.type,l),o.props=u,d=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ze(a):(a=Re(n)?dn:Pe.current,a=Kn(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==d||f!==a)&&Pc(t,o,r,a),_t=!1,f=t.memoizedState,o.state=f,vs(t,r,o,i);var v=t.memoizedState;l!==d||f!==v||_e.current||_t?(typeof g=="function"&&(Tl(t,n,g,r),v=t.memoizedState),(u=_t||xc(t,n,u,r,f,v,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ml(e,t,n,r,s,i)}function Ml(e,t,n,r,i,s){ip(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&hc(t,n,!1),kt(e,t,s);r=t.stateNode,jy.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Gn(t,e.child,null,s),t.child=Gn(t,null,l,s)):Te(e,t,l,s),t.memoizedState=r.state,i&&hc(t,n,!0),t.child}function sp(e){var t=e.stateNode;t.pendingContext?dc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dc(e,t.context,!1),Va(e,t.containerInfo)}function Ac(e,t,n,r,i){return Yn(),Ma(i),t.flags|=256,Te(e,t,n,r),t.child}var Dl={dehydrated:null,treeContext:null,retryLane:0};function Al(e){return{baseLanes:e,cachePool:null,transitions:null}}function op(e,t,n){var r=t.pendingProps,i=J.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),K(J,i&1),e===null)return xl(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=Ks(o,r,0,null),e=cn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Al(n),t.memoizedState=Dl,e):Ba(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Oy(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=Wt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Wt(l,s):(s=cn(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?Al(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Dl,r}return s=e.child,e=s.sibling,r=Wt(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 Ba(e,t){return t=Ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ri(e,t,n,r){return r!==null&&Ma(r),Gn(t,e.child,null,n),e=Ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oy(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Mo(Error(C(422))),Ri(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ks({mode:"visible",children:r.children},i,0,null),s=cn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Gn(t,e.child,null,o),t.child.memoizedState=Al(o),t.memoizedState=Dl,s);if(!(t.mode&1))return Ri(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(C(419)),r=Mo(s,r,void 0),Ri(e,t,o,r)}if(l=(o&e.childLanes)!==0,Le||l){if(r=fe,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,Tt(e,i),it(r,e,i,-1))}return Ga(),r=Mo(Error(C(421))),Ri(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Zy.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,je=Ft(i.nextSibling),Oe=t,Z=!0,nt=null,e!==null&&(Ye[Ge++]=gt,Ye[Ge++]=vt,Ye[Ge++]=hn,gt=e.id,vt=e.overflow,hn=t),t=Ba(t,r.children),t.flags|=4096,t)}function Lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pl(e.return,t,n)}function Do(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 lp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Te(e,t,r.children,n),r=J.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&&Lc(e,n,t);else if(e.tag===19)Lc(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(K(J,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&&ys(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Do(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&&ys(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Do(t,!0,n,null,s);break;case"together":Do(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zy(e,t,n){switch(t.tag){case 3:sp(t),Yn();break;case 5:Vh(t);break;case 1:Re(t.type)&&ds(t);break;case 4:Va(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(ms,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?op(e,t,n):(K(J,J.current&1),e=kt(e,t,n),e!==null?e.sibling:null);K(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,rp(e,t,n)}return kt(e,t,n)}var ap,Ll,up,cp;ap=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}};Ll=function(){};up=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ln(ft.current);var s=null;switch(n){case"input":i=Jo(e,i),r=Jo(e,r),s=[];break;case"select":i=te({},i,{value:void 0}),r=te({},r,{value:void 0}),s=[];break;case"textarea":i=tl(e,i),r=tl(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cs)}rl(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"&&Y("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)}};cp=function(e,t,n,r){n!==r&&(t.flags|=4)};function hr(e,t){if(!Z)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 Fy(e,t,n){var r=t.pendingProps;switch(Ea(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 Re(t.type)&&fs(),ye(t),null;case 3:return r=t.stateNode,Qn(),G(_e),G(Pe),Na(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(zl(nt),nt=null))),Ll(e,t),ye(t),null;case 5:$a(t);var i=ln(Zr.current);if(n=t.type,e!==null&&t.stateNode!=null)up(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ye(t),null}if(e=ln(ft.current),Li(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ut]=t,r[Qr]=s,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(i=0;i<Sr.length;i++)Y(Sr[i],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":Fu(r,s),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Y("invalid",r);break;case"textarea":Bu(r,s),Y("invalid",r)}rl(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&&Ai(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Ai(r.textContent,l,e),i=["children",""+l]):zr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Y("scroll",r)}switch(n){case"input":xi(r),Iu(r,s,!0);break;case"textarea":xi(r),Uu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=cs)}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=zd(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[ut]=t,e[Qr]=r,ap(e,t,!1,!1),t.stateNode=e;e:{switch(o=il(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)Y(Sr[i],e);i=r;break;case"source":Y("error",e),i=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),i=r;break;case"details":Y("toggle",e),i=r;break;case"input":Fu(e,r),i=Jo(e,r),Y("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=te({},r,{value:void 0}),Y("invalid",e);break;case"textarea":Bu(e,r),i=tl(e,r),Y("invalid",e);break;default:i=r}rl(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Bd(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Fd(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fr(e,a):typeof a=="number"&&Fr(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(zr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&Y("scroll",e):a!=null&&fa(e,s,a,o))}switch(n){case"input":xi(e),Iu(e,r,!1);break;case"textarea":xi(e),Uu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ht(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?zn(e,!!r.multiple,s,!1):r.defaultValue!=null&&zn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=cs)}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)cp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=ln(Zr.current),ln(ft.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(s=r.nodeValue!==n)&&(e=Oe,e!==null))switch(e.tag){case 3:Ai(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ai(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return ye(t),null;case 13:if(G(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&je!==null&&t.mode&1&&!(t.flags&128))Dh(),Yn(),t.flags|=98560,s=!1;else if(s=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(C(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(C(317));s[ut]=t}else Yn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ye(t),s=!1}else nt!==null&&(zl(nt),nt=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||J.current&1?ae===0&&(ae=3):Ga())),t.updateQueue!==null&&(t.flags|=4),ye(t),null);case 4:return Qn(),Ll(e,t),e===null&&Yr(t.stateNode.containerInfo),ye(t),null;case 10:return La(t.type._context),ye(t),null;case 17:return Re(t.type)&&fs(),ye(t),null;case 19:if(G(J),s=t.memoizedState,s===null)return ye(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)hr(s,!1);else{if(ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ys(e),o!==null){for(t.flags|=128,hr(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 K(J,J.current&1|2),t.child}e=e.sibling}s.tail!==null&&se()>Zn&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ys(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Z)return ye(t),null}else 2*se()-s.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,hr(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=se(),t.sibling=null,n=J.current,K(J,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return Ya(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Iy(e,t){switch(Ea(t),t.tag){case 1:return Re(t.type)&&fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),G(_e),G(Pe),Na(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $a(t),null;case 13:if(G(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(J),null;case 4:return Qn(),null;case 10:return La(t.type._context),null;case 22:case 23:return Ya(),null;case 24:return null;default:return null}}var Vi=!1,Se=!1,By=typeof WeakSet=="function"?WeakSet:Set,$=null;function _n(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function _l(e,t,n){try{n()}catch(r){re(e,t,r)}}var _c=!1;function Uy(e,t){if(pl=ls,e=mh(),ka(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,d=e,f=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==s||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++c===r&&(a=o),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ml={focusedElem:e,selectionRange:n},ls=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,T=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:et(t.type,y),T);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return v=_c,_c=!1,v}function Lr(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&&_l(t,n,s)}i=i.next}while(i!==r)}}function Ws(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 Rl(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 fp(e){var t=e.alternate;t!==null&&(e.alternate=null,fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Qr],delete t[yl],delete t[ky],delete t[Cy])),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 dp(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dp(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 Vl(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=cs));else if(r!==4&&(e=e.child,e!==null))for(Vl(e,t,n),e=e.sibling;e!==null;)Vl(e,t,n),e=e.sibling}function $l(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($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var de=null,tt=!1;function Dt(e,t,n){for(n=n.child;n!==null;)hp(e,t,n),n=n.sibling}function hp(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ns,n)}catch{}switch(n.tag){case 5:Se||_n(n,t);case 6:var r=de,i=tt;de=null,Dt(e,t,n),de=r,tt=i,de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?xo(e.parentNode,n):e.nodeType===1&&xo(e,n),Wr(e)):xo(de,n.stateNode));break;case 4:r=de,i=tt,de=n.stateNode.containerInfo,tt=!0,Dt(e,t,n),de=r,tt=i;break;case 0:case 11:case 14:case 15:if(!Se&&(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)&&_l(n,t,o),i=i.next}while(i!==r)}Dt(e,t,n);break;case 1:if(!Se&&(_n(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){re(n,t,l)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Dt(e,t,n),Se=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function Vc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new By),t.forEach(function(r){var i=qy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(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:de=l.stateNode,tt=!1;break e;case 3:de=l.stateNode.containerInfo,tt=!0;break e;case 4:de=l.stateNode.containerInfo,tt=!0;break e}l=l.return}if(de===null)throw Error(C(160));hp(s,o,i),de=null,tt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){re(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)pp(t,e),t=t.sibling}function pp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Je(t,e),lt(e),r&4){try{Lr(3,e,e.return),Ws(3,e)}catch(y){re(e,e.return,y)}try{Lr(5,e,e.return)}catch(y){re(e,e.return,y)}}break;case 1:Je(t,e),lt(e),r&512&&n!==null&&_n(n,n.return);break;case 5:if(Je(t,e),lt(e),r&512&&n!==null&&_n(n,n.return),e.flags&32){var i=e.stateNode;try{Fr(i,"")}catch(y){re(e,e.return,y)}}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&&jd(i,s),il(l,o);var u=il(l,s);for(o=0;o<a.length;o+=2){var c=a[o],d=a[o+1];c==="style"?Bd(i,d):c==="dangerouslySetInnerHTML"?Fd(i,d):c==="children"?Fr(i,d):fa(i,c,d,u)}switch(l){case"input":bo(i,s);break;case"textarea":Od(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?zn(i,!!s.multiple,g,!1):f!==!!s.multiple&&(s.defaultValue!=null?zn(i,!!s.multiple,s.defaultValue,!0):zn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Qr]=s}catch(y){re(e,e.return,y)}}break;case 6:if(Je(t,e),lt(e),r&4){if(e.stateNode===null)throw Error(C(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){re(e,e.return,y)}}break;case 3:if(Je(t,e),lt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wr(t.containerInfo)}catch(y){re(e,e.return,y)}break;case 4:Je(t,e),lt(e);break;case 13:Je(t,e),lt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Ha=se())),r&4&&Vc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(u=Se)||c,Je(t,e),Se=u):Je(t,e),lt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for($=e,c=e.child;c!==null;){for(d=$=c;$!==null;){switch(f=$,g=f.child,f.tag){case 0:case 11:case 14:case 15:Lr(4,f,f.return);break;case 1:_n(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){re(r,n,y)}}break;case 5:_n(f,f.return);break;case 22:if(f.memoizedState!==null){Nc(d);continue}}g!==null?(g.return=f,$=g):Nc(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Id("display",o))}catch(y){re(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){re(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Je(t,e),lt(e),r&4&&Vc(e);break;case 21:break;default:Je(t,e),lt(e)}}function lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dp(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Fr(i,""),r.flags&=-33);var s=Rc(e);$l(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Rc(e);Vl(e,l,o);break;default:throw Error(C(161))}}catch(a){re(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wy(e,t,n){$=e,mp(e)}function mp(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var i=$,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Vi;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Se;l=Vi;var u=Se;if(Vi=o,(Se=a)&&!u)for($=i;$!==null;)o=$,a=o.child,o.tag===22&&o.memoizedState!==null?jc(i):a!==null?(a.return=o,$=a):jc(i);for(;s!==null;)$=s,mp(s),s=s.sibling;$=i,Vi=l,Se=u}$c(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,$=s):$c(e)}}function $c(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||Ws(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&yc(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}yc(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 d=c.dehydrated;d!==null&&Wr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}Se||t.flags&512&&Rl(t)}catch(f){re(t,t.return,f)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Nc(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function jc(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ws(4,t)}catch(a){re(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){re(t,i,a)}}var s=t.return;try{Rl(t)}catch(a){re(t,s,a)}break;case 5:var o=t.return;try{Rl(t)}catch(a){re(t,o,a)}}}catch(a){re(t,t.return,a)}if(t===e){$=null;break}var l=t.sibling;if(l!==null){l.return=t.return,$=l;break}$=t.return}}var Hy=Math.ceil,xs=Et.ReactCurrentDispatcher,Ua=Et.ReactCurrentOwner,Xe=Et.ReactCurrentBatchConfig,W=0,fe=null,oe=null,pe=0,Ne=0,Rn=Xt(0),ae=0,ei=null,mn=0,Hs=0,Wa=0,_r=null,Ae=null,Ha=0,Zn=1/0,pt=null,Ps=!1,Nl=null,Bt=null,$i=!1,Nt=null,Ts=0,Rr=0,jl=null,Zi=-1,qi=0;function ke(){return W&6?se():Zi!==-1?Zi:Zi=se()}function Ut(e){return e.mode&1?W&2&&pe!==0?pe&-pe:My.transition!==null?(qi===0&&(qi=bd()),qi):(e=H,e!==0||(e=window.event,e=e===void 0?16:oh(e.type)),e):1}function it(e,t,n,r){if(50<Rr)throw Rr=0,jl=null,Error(C(185));ui(e,n,r),(!(W&2)||e!==fe)&&(e===fe&&(!(W&2)&&(Hs|=n),ae===4&&Vt(e,pe)),Ve(e,r),n===1&&W===0&&!(t.mode&1)&&(Zn=se()+500,Is&&Zt()))}function Ve(e,t){var n=e.callbackNode;Mv(e,t);var r=os(e,e===fe?pe:0);if(r===0)n!==null&&Ku(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ku(n),t===1)e.tag===0?Ey(Oc.bind(null,e)):Ch(Oc.bind(null,e)),Py(function(){!(W&6)&&Zt()}),n=null;else{switch(eh(r)){case 1:n=ga;break;case 4:n=qd;break;case 16:n=ss;break;case 536870912:n=Jd;break;default:n=ss}n=Tp(n,gp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gp(e,t){if(Zi=-1,qi=0,W&6)throw Error(C(327));var n=e.callbackNode;if(Wn()&&e.callbackNode!==n)return null;var r=os(e,e===fe?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ks(e,r);else{t=r;var i=W;W|=2;var s=yp();(fe!==e||pe!==t)&&(pt=null,Zn=se()+500,un(e,t));do try{Gy();break}catch(l){vp(e,l)}while(!0);Aa(),xs.current=s,W=i,oe!==null?t=0:(fe=null,pe=0,t=ae)}if(t!==0){if(t===2&&(i=ul(e),i!==0&&(r=i,t=Ol(e,i))),t===1)throw n=ei,un(e,0),Vt(e,r),Ve(e,se()),n;if(t===6)Vt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Ky(i)&&(t=ks(e,r),t===2&&(s=ul(e),s!==0&&(r=s,t=Ol(e,s))),t===1))throw n=ei,un(e,0),Vt(e,r),Ve(e,se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:tn(e,Ae,pt);break;case 3:if(Vt(e,r),(r&130023424)===r&&(t=Ha+500-se(),10<t)){if(os(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ke(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=vl(tn.bind(null,e,Ae,pt),t);break}tn(e,Ae,pt);break;case 4:if(Vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-rt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hy(r/1960))-r,10<r){e.timeoutHandle=vl(tn.bind(null,e,Ae,pt),r);break}tn(e,Ae,pt);break;case 5:tn(e,Ae,pt);break;default:throw Error(C(329))}}}return Ve(e,se()),e.callbackNode===n?gp.bind(null,e):null}function Ol(e,t){var n=_r;return e.current.memoizedState.isDehydrated&&(un(e,t).flags|=256),e=ks(e,t),e!==2&&(t=Ae,Ae=n,t!==null&&zl(t)),e}function zl(e){Ae===null?Ae=e:Ae.push.apply(Ae,e)}function Ky(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(!st(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 Vt(e,t){for(t&=~Wa,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function Oc(e){if(W&6)throw Error(C(327));Wn();var t=os(e,0);if(!(t&1))return Ve(e,se()),null;var n=ks(e,t);if(e.tag!==0&&n===2){var r=ul(e);r!==0&&(t=r,n=Ol(e,r))}if(n===1)throw n=ei,un(e,0),Vt(e,t),Ve(e,se()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tn(e,Ae,pt),Ve(e,se()),null}function Ka(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(Zn=se()+500,Is&&Zt())}}function gn(e){Nt!==null&&Nt.tag===0&&!(W&6)&&Wn();var t=W;W|=1;var n=Xe.transition,r=H;try{if(Xe.transition=null,H=1,e)return e()}finally{H=r,Xe.transition=n,W=t,!(W&6)&&Zt()}}function Ya(){Ne=Rn.current,G(Rn)}function un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xy(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(Ea(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fs();break;case 3:Qn(),G(_e),G(Pe),Na();break;case 5:$a(r);break;case 4:Qn();break;case 13:G(J);break;case 19:G(J);break;case 10:La(r.type._context);break;case 22:case 23:Ya()}n=n.return}if(fe=e,oe=e=Wt(e.current,null),pe=Ne=t,ae=0,ei=null,Wa=Hs=mn=0,Ae=_r=null,on!==null){for(t=0;t<on.length;t++)if(n=on[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}on=null}return e}function vp(e,t){do{var n=oe;try{if(Aa(),Gi.current=Ss,ws){for(var r=ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ws=!1}if(pn=0,ce=le=ee=null,Ar=!1,qr=0,Ua.current=null,n===null||n.return===null){ae=1,ei=t,oe=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=pe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=kc(o);if(g!==null){g.flags&=-257,Cc(g,o,l,s,t),g.mode&1&&Tc(s,u,t),t=g,a=u;var v=t.updateQueue;if(v===null){var y=new Set;y.add(a),t.updateQueue=y}else v.add(a);break e}else{if(!(t&1)){Tc(s,u,t),Ga();break e}a=Error(C(426))}}else if(Z&&l.mode&1){var T=kc(o);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Cc(T,o,l,s,t),Ma(Xn(a,l));break e}}s=a=Xn(a,l),ae!==4&&(ae=2),_r===null?_r=[s]:_r.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=ep(s,a,t);vc(s,p);break e;case 1:l=a;var h=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Bt===null||!Bt.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=tp(s,l,t);vc(s,w);break e}}s=s.return}while(s!==null)}Sp(n)}catch(x){t=x,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function yp(){var e=xs.current;return xs.current=Ss,e===null?Ss:e}function Ga(){(ae===0||ae===3||ae===2)&&(ae=4),fe===null||!(mn&268435455)&&!(Hs&268435455)||Vt(fe,pe)}function ks(e,t){var n=W;W|=2;var r=yp();(fe!==e||pe!==t)&&(pt=null,un(e,t));do try{Yy();break}catch(i){vp(e,i)}while(!0);if(Aa(),W=n,xs.current=r,oe!==null)throw Error(C(261));return fe=null,pe=0,ae}function Yy(){for(;oe!==null;)wp(oe)}function Gy(){for(;oe!==null&&!yv();)wp(oe)}function wp(e){var t=Pp(e.alternate,e,Ne);e.memoizedProps=e.pendingProps,t===null?Sp(e):oe=t,Ua.current=null}function Sp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Iy(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ae=6,oe=null;return}}else if(n=Fy(n,t,Ne),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);ae===0&&(ae=5)}function tn(e,t,n){var r=H,i=Xe.transition;try{Xe.transition=null,H=1,Qy(e,t,n,r)}finally{Xe.transition=i,H=r}return null}function Qy(e,t,n,r){do Wn();while(Nt!==null);if(W&6)throw Error(C(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(C(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Dv(e,s),e===fe&&(oe=fe=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$i||($i=!0,Tp(ss,function(){return Wn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Xe.transition,Xe.transition=null;var o=H;H=1;var l=W;W|=4,Ua.current=null,Uy(e,n),pp(n,e),py(ml),ls=!!pl,ml=pl=null,e.current=n,Wy(n),wv(),W=l,H=o,Xe.transition=s}else e.current=n;if($i&&($i=!1,Nt=e,Ts=i),s=e.pendingLanes,s===0&&(Bt=null),Pv(n.stateNode),Ve(e,se()),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(Ps)throw Ps=!1,e=Nl,Nl=null,e;return Ts&1&&e.tag!==0&&Wn(),s=e.pendingLanes,s&1?e===jl?Rr++:(Rr=0,jl=e):Rr=0,Zt(),null}function Wn(){if(Nt!==null){var e=eh(Ts),t=Xe.transition,n=H;try{if(Xe.transition=null,H=16>e?16:e,Nt===null)var r=!1;else{if(e=Nt,Nt=null,Ts=0,W&6)throw Error(C(331));var i=W;for(W|=4,$=e.current;$!==null;){var s=$,o=s.child;if($.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for($=u;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:Lr(8,c,s)}var d=c.child;if(d!==null)d.return=c,$=d;else for(;$!==null;){c=$;var f=c.sibling,g=c.return;if(fp(c),c===u){$=null;break}if(f!==null){f.return=g,$=f;break}$=g}}}var v=s.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var T=y.sibling;y.sibling=null,y=T}while(y!==null)}}$=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,$=o;else e:for(;$!==null;){if(s=$,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Lr(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,$=p;break e}$=s.return}}var h=e.current;for($=h;$!==null;){o=$;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,$=m;else e:for(o=h;$!==null;){if(l=$,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ws(9,l)}}catch(x){re(l,l.return,x)}if(l===o){$=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,$=w;break e}$=l.return}}if(W=i,Zt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ns,e)}catch{}r=!0}return r}finally{H=n,Xe.transition=t}}return!1}function zc(e,t,n){t=Xn(n,t),t=ep(e,t,1),e=It(e,t,1),t=ke(),e!==null&&(ui(e,1,t),Ve(e,t))}function re(e,t,n){if(e.tag===3)zc(e,e,n);else for(;t!==null;){if(t.tag===3){zc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bt===null||!Bt.has(r))){e=Xn(n,e),e=tp(t,e,1),t=It(t,e,1),e=ke(),t!==null&&(ui(t,1,e),Ve(t,e));break}}t=t.return}}function Xy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ke(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(pe&n)===n&&(ae===4||ae===3&&(pe&130023424)===pe&&500>se()-Ha?un(e,0):Wa|=n),Ve(e,t)}function xp(e,t){t===0&&(e.mode&1?(t=ki,ki<<=1,!(ki&130023424)&&(ki=4194304)):t=1);var n=ke();e=Tt(e,t),e!==null&&(ui(e,t,n),Ve(e,n))}function Zy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xp(e,n)}function qy(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(C(314))}r!==null&&r.delete(t),xp(e,n)}var Pp;Pp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,zy(e,t,n);Le=!!(e.flags&131072)}else Le=!1,Z&&t.flags&1048576&&Eh(t,ps,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var i=Kn(t,Pe.current);Un(t,n),i=Oa(null,t,r,e,i,n);var s=za();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,Re(r)?(s=!0,ds(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ra(t),i.updater=Us,t.stateNode=i,i._reactInternals=t,kl(t,r,e,n),t=Ml(null,t,r,!0,s,n)):(t.tag=0,Z&&s&&Ca(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=by(r),e=et(r,e),i){case 0:t=El(null,t,r,e,n);break e;case 1:t=Dc(null,t,r,e,n);break e;case 11:t=Ec(null,t,r,e,n);break e;case 14:t=Mc(null,t,r,et(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),El(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Dc(e,t,r,i,n);case 3:e:{if(sp(t),e===null)throw Error(C(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Rh(e,t),vs(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=Xn(Error(C(423)),t),t=Ac(e,t,r,n,i);break e}else if(r!==i){i=Xn(Error(C(424)),t),t=Ac(e,t,r,n,i);break e}else for(je=Ft(t.stateNode.containerInfo.firstChild),Oe=t,Z=!0,nt=null,n=Lh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),r===i){t=kt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return Vh(t),e===null&&xl(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),ip(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&xl(t),null;case 13:return op(e,t,n);case 4:return Va(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gn(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:et(r,i),Ec(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,K(ms,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!_e.current){t=kt(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=yt(-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),Pl(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(C(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Pl(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,Un(t,n),i=Ze(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Mc(e,t,r,i,n);case 15:return np(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Xi(e,t),t.tag=1,Re(r)?(e=!0,ds(t)):e=!1,Un(t,n),bh(t,r,i),kl(t,r,i,n),Ml(null,t,r,!0,e,n);case 19:return lp(e,t,n);case 22:return rp(e,t,n)}throw Error(C(156,t.tag))};function Tp(e,t){return Zd(e,t)}function Jy(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 Qe(e,t,n,r){return new Jy(e,t,n,r)}function Qa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function by(e){if(typeof e=="function")return Qa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ha)return 11;if(e===pa)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Qe(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 Ji(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Qa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return cn(n.children,i,s,t);case da:o=8,i|=8;break;case Qo:return e=Qe(12,n,t,i|2),e.elementType=Qo,e.lanes=s,e;case Xo:return e=Qe(13,n,t,i),e.elementType=Xo,e.lanes=s,e;case Zo:return e=Qe(19,n,t,i),e.elementType=Zo,e.lanes=s,e;case Vd:return Ks(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _d:o=10;break e;case Rd:o=9;break e;case ha:o=11;break e;case pa:o=14;break e;case Lt:o=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function cn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function Ks(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Vd,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function Lo(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e0(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=uo(0),this.expirationTimes=uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xa(e,t,n,r,i,s,o,l,a){return e=new e0(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Qe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(s),e}function t0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function kp(e){if(!e)return Kt;e=e._reactInternals;e:{if(yn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Re(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Re(n))return kh(e,n,t)}return t}function Cp(e,t,n,r,i,s,o,l,a){return e=Xa(n,r,!0,e,i,s,o,l,a),e.context=kp(null),n=e.current,r=ke(),i=Ut(n),s=yt(r,i),s.callback=t??null,It(n,s,i),e.current.lanes=i,ui(e,i,r),Ve(e,r),e}function Ys(e,t,n,r){var i=t.current,s=ke(),o=Ut(i);return n=kp(n),t.context===null?t.context=n:t.pendingContext=n,t=yt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=It(i,t,o),e!==null&&(it(e,i,o,s),Yi(e,i,o)),o}function Cs(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 Fc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Za(e,t){Fc(e,t),(e=e.alternate)&&Fc(e,t)}function n0(){return null}var Ep=typeof reportError=="function"?reportError:function(e){console.error(e)};function qa(e){this._internalRoot=e}Gs.prototype.render=qa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Ys(e,t,null,null)};Gs.prototype.unmount=qa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){Ys(null,e,null,null)}),t[Pt]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=rh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&t!==0&&t<Rt[n].priority;n++);Rt.splice(n,0,e),n===0&&sh(e)}};function Ja(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ic(){}function r0(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Cs(o);s.call(u)}}var o=Cp(t,r,e,0,null,!1,!1,"",Ic);return e._reactRootContainer=o,e[Pt]=o.current,Yr(e.nodeType===8?e.parentNode:e),gn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Cs(a);l.call(u)}}var a=Xa(e,0,!1,null,null,!1,!1,"",Ic);return e._reactRootContainer=a,e[Pt]=a.current,Yr(e.nodeType===8?e.parentNode:e),gn(function(){Ys(t,a,n,r)}),a}function Xs(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=Cs(o);l.call(a)}}Ys(t,o,e,i)}else o=r0(n,t,e,i,r);return Cs(o)}th=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wr(t.pendingLanes);n!==0&&(va(t,n|1),Ve(t,se()),!(W&6)&&(Zn=se()+500,Zt()))}break;case 13:gn(function(){var r=Tt(e,1);if(r!==null){var i=ke();it(r,e,1,i)}}),Za(e,1)}};ya=function(e){if(e.tag===13){var t=Tt(e,134217728);if(t!==null){var n=ke();it(t,e,134217728,n)}Za(e,134217728)}};nh=function(e){if(e.tag===13){var t=Ut(e),n=Tt(e,t);if(n!==null){var r=ke();it(n,e,t,r)}Za(e,t)}};rh=function(){return H};ih=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};ol=function(e,t,n){switch(t){case"input":if(bo(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=Fs(r);if(!i)throw Error(C(90));Nd(r),bo(r,i)}}}break;case"textarea":Od(e,n);break;case"select":t=n.value,t!=null&&zn(e,!!n.multiple,t,!1)}};Hd=Ka;Kd=gn;var i0={usingClientEntryPoint:!1,Events:[fi,En,Fs,Ud,Wd,Ka]},pr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},s0={bundleType:pr.bundleType,version:pr.version,rendererPackageName:pr.rendererPackageName,rendererConfig:pr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qd(e),e===null?null:e.stateNode},findFiberByHostInstance:pr.findFiberByHostInstance||n0,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 Ni=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ni.isDisabled&&Ni.supportsFiber)try{Ns=Ni.inject(s0),ct=Ni}catch{}}Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i0;Be.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ja(t))throw Error(C(200));return t0(e,t,null,n)};Be.createRoot=function(e,t){if(!Ja(e))throw Error(C(299));var n=!1,r="",i=Ep;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Xa(e,1,!1,null,null,n,!1,r,i),e[Pt]=t.current,Yr(e.nodeType===8?e.parentNode:e),new qa(t)};Be.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Qd(t),e=e===null?null:e.stateNode,e};Be.flushSync=function(e){return gn(e)};Be.hydrate=function(e,t,n){if(!Qs(t))throw Error(C(200));return Xs(null,e,t,!0,n)};Be.hydrateRoot=function(e,t,n){if(!Ja(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Ep;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Cp(t,null,e,1,n??null,i,!1,s,o),e[Pt]=t.current,Yr(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 Gs(t)};Be.render=function(e,t,n){if(!Qs(t))throw Error(C(200));return Xs(null,e,t,!1,n)};Be.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(C(40));return e._reactRootContainer?(gn(function(){Xs(null,null,e,!1,function(){e._reactRootContainer=null,e[Pt]=null})}),!0):!1};Be.unstable_batchedUpdates=Ka;Be.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Xs(e,t,n,!1,r)};Be.version="18.3.1-next-f1338f8080-20240426";function Mp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mp)}catch(e){console.error(e)}}Mp(),Md.exports=Be;var o0=Md.exports;const ba=E.createContext({});function Zs(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const qs=E.createContext(null),ti=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class l0 extends E.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 a0({children:e,isPresent:t}){const n=E.useId(),r=E.useRef(null),i=E.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=E.useContext(ti);return E.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(`
|
|
[data-motion-pop-id="${n}"] {
|
|
position: absolute !important;
|
|
width: ${o}px !important;
|
|
height: ${l}px !important;
|
|
top: ${a}px !important;
|
|
left: ${u}px !important;
|
|
}
|
|
`),()=>{document.head.removeChild(c)}},[t]),N.jsx(l0,{isPresent:t,childRef:r,sizeRef:i,children:E.cloneElement(e,{ref:r})})}const u0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=Zs(c0),a=E.useId(),u=E.useCallback(d=>{l.set(d,!0);for(const f of l.values())if(!f)return;r&&r()},[l,r]),c=E.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:d=>(l.set(d,!1),()=>l.delete(d))}),s?[Math.random(),u]:[n,u]);return E.useMemo(()=>{l.forEach((d,f)=>l.set(f,!1))},[n]),E.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=N.jsx(a0,{isPresent:n,children:e})),N.jsx(qs.Provider,{value:c,children:e})};function c0(){return new Map}function Dp(e=!0){const t=E.useContext(qs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=E.useId();E.useEffect(()=>{e&&i(s)},[e]);const o=E.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const ji=e=>e.key||"";function Bc(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const eu=typeof window<"u",Ap=eu?E.useLayoutEffect:E.useEffect,Uc=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[l,a]=Dp(o),u=E.useMemo(()=>Bc(e),[e]),c=o&&!l?[]:u.map(ji),d=E.useRef(!0),f=E.useRef(u),g=Zs(()=>new Map),[v,y]=E.useState(u),[T,p]=E.useState(u);Ap(()=>{d.current=!1,f.current=u;for(let w=0;w<T.length;w++){const x=ji(T[w]);c.includes(x)?g.delete(x):g.get(x)!==!0&&g.set(x,!1)}},[T,c.length,c.join("-")]);const h=[];if(u!==v){let w=[...u];for(let x=0;x<T.length;x++){const P=T[x],D=ji(P);c.includes(D)||(w.splice(x,0,P),h.push(P))}s==="wait"&&h.length&&(w=h),p(Bc(w)),y(u);return}const{forceRender:m}=E.useContext(ba);return N.jsx(N.Fragment,{children:T.map(w=>{const x=ji(w),P=o&&!l?!1:u===T||c.includes(x),D=()=>{if(g.has(x))g.set(x,!0);else return;let k=!0;g.forEach(I=>{I||(k=!1)}),k&&(m==null||m(),p(f.current),o&&(a==null||a()),r&&r())};return N.jsx(u0,{isPresent:P,initial:!d.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:P?void 0:D,children:w},x)})})},ze=e=>e;let Lp=ze;function tu(e){let t;return()=>(t===void 0&&(t=e()),t)}const qn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wt=e=>e*1e3,St=e=>e/1e3,nu={skipAnimations:!1,useManualTiming:!1};function f0(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,d=!1)=>{const g=d&&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 Oi=["read","resolveKeyframes","update","preRender","render","postRender"],d0=40;function _p(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Oi.reduce((p,h)=>(p[h]=f0(s),p),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:d,postRender:f}=o,g=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,d0),1),i.timestamp=p,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Oi.reduce((p,h)=>{const m=o[h];return p[h]=(w,x=!1,P=!1)=>(n||v(),m.schedule(w,x,P)),p},{}),cancel:p=>{for(let h=0;h<Oi.length;h++)o[Oi[h]].cancel(p)},state:i,steps:o}}const{schedule:Q,cancel:Yt,state:he,steps:_o}=_p(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),Rp=E.createContext({strict:!1}),Wc={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"]},Jn={};for(const e in Wc)Jn[e]={isEnabled:t=>Wc[e].some(n=>!!t[n])};function h0(e){for(const t in e)Jn[t]={...Jn[t],...e[t]}}const p0=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 Es(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||p0.has(e)}let Vp=e=>!Es(e);function $p(e){e&&(Vp=t=>t.startsWith("on")?!Es(t):e(t))}try{$p(require("@emotion/is-prop-valid").default)}catch{}function m0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Vp(i)||n===!0&&Es(i)||!t&&!Es(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function g0({children:e,isValidProp:t,...n}){t&&$p(t),n={...E.useContext(ti),...n},n.isStatic=Zs(()=>n.isStatic);const r=E.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return N.jsx(ti.Provider,{value:r,children:e})}function v0(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 Js=E.createContext({});function ni(e){return typeof e=="string"||Array.isArray(e)}function bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ru=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iu=["initial",...ru];function eo(e){return bs(e.animate)||iu.some(t=>ni(e[t]))}function Np(e){return!!(eo(e)||e.variants)}function y0(e,t){if(eo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ni(n)?n:void 0,animate:ni(r)?r:void 0}}return e.inherit!==!1?t:{}}function w0(e){const{initial:t,animate:n}=y0(e,E.useContext(Js));return E.useMemo(()=>({initial:t,animate:n}),[Hc(t),Hc(n)])}function Hc(e){return Array.isArray(e)?e.join(" "):e}const S0=Symbol.for("motionComponentSymbol");function Vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function x0(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vn(n)&&(n.current=r))},[t])}const su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),P0="framerAppearId",jp="data-"+su(P0),{schedule:ou}=_p(queueMicrotask,!1),Op=E.createContext({});function T0(e,t,n,r,i){var s,o;const{visualElement:l}=E.useContext(Js),a=E.useContext(Rp),u=E.useContext(qs),c=E.useContext(ti).reducedMotion,d=E.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,g=E.useContext(Op);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&k0(d.current,n,i,g);const v=E.useRef(!1);E.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const y=n[jp],T=E.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return Ap(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ou.render(f.render),T.current&&f.animationState&&f.animationState.animateChanges())}),E.useEffect(()=>{f&&(!T.current&&f.animationState&&f.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),T.current=!1))}),f}function k0(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:zp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&Vn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function zp(e){if(e)return e.options.allowProjection!==!1?e.projection:zp(e.parent)}function C0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&h0(e);function l(u,c){let d;const f={...E.useContext(ti),...u,layoutId:E0(u)},{isStatic:g}=f,v=w0(u),y=r(u,g);if(!g&&eu){M0();const T=D0(f);d=T.MeasureLayout,v.visualElement=T0(i,y,f,t,T.ProjectionNode)}return N.jsxs(Js.Provider,{value:v,children:[d&&v.visualElement?N.jsx(d,{visualElement:v.visualElement,...f}):null,n(i,u,x0(y,v.visualElement,c),y,g,v.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=E.forwardRef(l);return a[S0]=i,a}function E0({layoutId:e}){const t=E.useContext(ba).id;return t&&e!==void 0?t+"-"+e:e}function M0(e,t){E.useContext(Rp).strict}function D0(e){const{drag:t,layout:n}=Jn;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 A0=["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 lu(e){return typeof e!="string"||e.includes("-")?!1:!!(A0.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function au(e,t,n,r){if(typeof t=="function"){const[i,s]=Kc(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]=Kc(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Fl=e=>Array.isArray(e),L0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),_0=e=>Fl(e)?e[e.length-1]||0:e,xe=e=>!!(e&&e.getVelocity);function bi(e){const t=xe(e)?e.get():e;return L0(t)?t.toValue():t}function R0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:V0(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const Fp=e=>(t,n)=>{const r=E.useContext(Js),i=E.useContext(qs),s=()=>R0(e,t,r,i);return n?s():Zs(s)};function V0(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=bi(s[f]);let{initial:o,animate:l}=e;const a=eo(e),u=Np(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 d=c?l:o;if(d&&typeof d!="boolean"&&!bs(d)){const f=Array.isArray(d)?d:[d];for(let g=0;g<f.length;g++){const v=au(e,f[g]);if(v){const{transitionEnd:y,transition:T,...p}=v;for(const h in p){let m=p[h];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(i[h]=m)}for(const h in y)i[h]=y[h]}}}return i}const rr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(rr),Ip=e=>t=>typeof t=="string"&&t.startsWith(e),Bp=Ip("--"),$0=Ip("var(--"),uu=e=>$0(e)?N0.test(e.split("/*")[0].trim()):!1,N0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Up=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ct=(e,t,n)=>n>t?t:n<e?e:n,ir={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ri={...ir,transform:e=>Ct(0,1,e)},zi={...ir,default:1},hi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),At=hi("deg"),dt=hi("%"),O=hi("px"),j0=hi("vh"),O0=hi("vw"),Yc={...dt,parse:e=>dt.parse(e)/100,transform:e=>dt.transform(e*100)},z0={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},F0={rotate:At,rotateX:At,rotateY:At,rotateZ:At,scale:zi,scaleX:zi,scaleY:zi,scaleZ:zi,skew:At,skewX:At,skewY:At,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:ri,originX:Yc,originY:Yc,originZ:O},Gc={...ir,transform:Math.round},cu={...z0,...F0,zIndex:Gc,size:O,fillOpacity:ri,strokeOpacity:ri,numOctaves:Gc},I0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B0=rr.length;function U0(e,t,n){let r="",i=!0;for(let s=0;s<B0;s++){const o=rr[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=Up(l,cu[o]);if(!a){i=!1;const c=I0[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function fu(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(wn.has(a)){o=!0;continue}else if(Bp(a)){i[a]=u;continue}else{const c=Up(u,cu[a]);a.startsWith("origin")?(l=!0,s[a]=c):r[a]=c}}if(t.transform||(o||n?r.transform=U0(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 W0={offset:"stroke-dashoffset",array:"stroke-dasharray"},H0={offset:"strokeDashoffset",array:"strokeDasharray"};function K0(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?W0:H0;e[s.offset]=O.transform(-r);const o=O.transform(t),l=O.transform(n);e[s.array]=`${o} ${l}`}function Qc(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function Y0(e,t,n){const r=Qc(t,e.x,e.width),i=Qc(n,e.y,e.height);return`${r} ${i}`}function du(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},c,d){if(fu(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:g,dimensions:v}=e;f.transform&&(v&&(g.transform=f.transform),delete f.transform),v&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=Y0(v,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&K0(f,o,l,a,!1)}const hu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Wp=()=>({...hu(),attrs:{}}),pu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hp(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 Kp=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 Yp(e,t,n,r){Hp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Kp.has(i)?i:su(i),t.attrs[i])}const Ms={};function G0(e){Object.assign(Ms,e)}function Gp(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ms[e]||e==="opacity")}function mu(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(xe(i[o])||t.style&&xe(t.style[o])||Gp(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 Qp(e,t,n){const r=mu(e,t,n);for(const i in e)if(xe(e[i])||xe(t[i])){const s=rr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function Q0(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 Xc=["x","y","width","height","cx","cy","r"],X0={useVisualState:Fp({scrapeMotionValuesFromProps:Qp,createRenderState:Wp,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(wn.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l<Xc.length;l++){const a=Xc[l];e[a]!==t[a]&&(o=!0)}o&&Q.read(()=>{Q0(n,r),Q.render(()=>{du(r,i,pu(n.tagName),e.transformTemplate),Yp(n,r)})})}})},Z0={useVisualState:Fp({scrapeMotionValuesFromProps:mu,createRenderState:hu})};function Xp(e,t,n){for(const r in t)!xe(t[r])&&!Gp(r,n)&&(e[r]=t[r])}function q0({transformTemplate:e},t){return E.useMemo(()=>{const n=hu();return fu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function J0(e,t){const n=e.style||{},r={};return Xp(r,n,e),Object.assign(r,q0(e,t)),r}function b0(e,t){const n={},r=J0(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 e1(e,t,n,r){const i=E.useMemo(()=>{const s=Wp();return du(s,t,pu(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Xp(s,e.style,e),i.style={...s,...i.style}}return i}function t1(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(lu(n)?e1:b0)(r,s,o,n),u=m0(r,typeof n=="string",e),c=n!==E.Fragment?{...u,...a,ref:i}:{},{children:d}=r,f=E.useMemo(()=>xe(d)?d.get():d,[d]);return E.createElement(n,{...c,children:f})}}function n1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...lu(r)?X0:Z0,preloadedFeatures:e,useRender:t1(i),createVisualElement:t,Component:r};return C0(o)}}function Zp(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 to(e,t,n){const r=e.getProps();return au(r,t,n!==void 0?n:r.custom,e)}const r1=tu(()=>window.ScrollTimeline!==void 0);class i1{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(r1()&&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 s1 extends i1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function gu(e,t){return e?e[t]||e.default||e:void 0}const Il=2e4;function qp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Il;)t+=n,r=e.next(t);return t>=Il?1/0:t}function vu(e){return typeof e=="function"}function Zc(e,t){e.timeline=t,e.onfinish=null}const yu=e=>Array.isArray(e)&&typeof e[0]=="number",o1={linearEasing:void 0};function l1(e,t){const n=tu(e);return()=>{var r;return(r=o1[t])!==null&&r!==void 0?r:n()}}const Ds=l1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Jp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(qn(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function bp(e){return!!(typeof e=="function"&&Ds()||!e||typeof e=="string"&&(e in Bl||Ds())||yu(e)||Array.isArray(e)&&e.every(bp))}const xr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xr([0,.65,.55,1]),circOut:xr([.55,0,1,.45]),backIn:xr([.31,.01,.66,-.59]),backOut:xr([.33,1.53,.69,.99])};function em(e,t){if(e)return typeof e=="function"&&Ds()?Jp(e,t):yu(e)?xr(e):Array.isArray(e)?e.map(n=>em(n,t)||Bl.easeOut):Bl[e]}const be={x:!1,y:!1};function tm(){return be.x||be.y}function a1(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 nm(e,t){const n=a1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function qc(e){return t=>{t.pointerType==="touch"||tm()||e(t)}}function u1(e,t,n={}){const[r,i,s]=nm(e,n),o=qc(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=qc(d=>{u(d),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const rm=(e,t)=>t?e===t?!0:rm(e,t.parentElement):!1,wu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,c1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function f1(e){return c1.has(e.tagName)||e.tabIndex!==-1}const Pr=new WeakSet;function Jc(e){return t=>{t.key==="Enter"&&e(t)}}function Ro(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const d1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Jc(()=>{if(Pr.has(n))return;Ro(n,"down");const i=Jc(()=>{Ro(n,"up")}),s=()=>Ro(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 bc(e){return wu(e)&&!tm()}function h1(e,t,n={}){const[r,i,s]=nm(e,n),o=l=>{const a=l.currentTarget;if(!bc(l)||Pr.has(a))return;Pr.add(a);const u=t(l),c=(g,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!bc(g)||!Pr.has(a))&&(Pr.delete(a),typeof u=="function"&&u(g,{success:v}))},d=g=>{c(g,n.useGlobalTarget||rm(a,g.target))},f=g=>{c(g,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(l=>{!f1(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>d1(u,i),i)}),s}function p1(e){return e==="x"||e==="y"?be[e]?null:(be[e]=!0,()=>{be[e]=!1}):be.x||be.y?null:(be.x=be.y=!0,()=>{be.x=be.y=!1})}const im=new Set(["width","height","top","left","right","bottom",...rr]);let es;function m1(){es=void 0}const ht={now:()=>(es===void 0&&ht.set(he.isProcessing||nu.useManualTiming?he.timestamp:performance.now()),es),set:e=>{es=e,queueMicrotask(m1)}};function Su(e,t){e.indexOf(t)===-1&&e.push(t)}function xu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Pu{constructor(){this.subscriptions=[]}add(t){return Su(this.subscriptions,t),()=>xu(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 sm(e,t){return t?e*(1e3/t):0}const ef=30,g1=e=>!isNaN(parseFloat(e));class v1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ht.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=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=g1(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 Pu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.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=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ef)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ef);return sm(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 ii(e,t){return new v1(e,t)}function y1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ii(n))}function w1(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=_0(s[o]);y1(e,o,l)}}function S1(e){return!!(xe(e)&&e.add)}function Ul(e,t){const n=e.getValue("willChange");if(S1(n))return n.add(t)}function om(e){return e.props[jp]}const lm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,x1=1e-7,P1=12;function T1(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=lm(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>x1&&++l<P1);return o}function pi(e,t,n,r){if(e===t&&n===r)return ze;const i=s=>T1(s,0,1,e,n);return s=>s===0||s===1?s:lm(i(s),t,r)}const am=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,um=e=>t=>1-e(1-t),cm=pi(.33,1.53,.69,.99),Tu=um(cm),fm=am(Tu),dm=e=>(e*=2)<1?.5*Tu(e):.5*(2-Math.pow(2,-10*(e-1))),ku=e=>1-Math.sin(Math.acos(e)),hm=um(ku),pm=am(ku),mm=e=>/^0[^.\s]+$/u.test(e);function k1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||mm(e):!0}const Vr=e=>Math.round(e*1e5)/1e5,Cu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function C1(e){return e==null}const E1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Eu=(e,t)=>n=>!!(typeof n=="string"&&E1.test(n)&&n.startsWith(e)||t&&!C1(n)&&Object.prototype.hasOwnProperty.call(n,t)),gm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(Cu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},M1=e=>Ct(0,255,e),Vo={...ir,transform:e=>Math.round(M1(e))},an={test:Eu("rgb","red"),parse:gm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vo.transform(e)+", "+Vo.transform(t)+", "+Vo.transform(n)+", "+Vr(ri.transform(r))+")"};function D1(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 Wl={test:Eu("#"),parse:D1,transform:an.transform},$n={test:Eu("hsl","hue"),parse:gm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dt.transform(Vr(t))+", "+dt.transform(Vr(n))+", "+Vr(ri.transform(r))+")"},we={test:e=>an.test(e)||Wl.test(e)||$n.test(e),parse:e=>an.test(e)?an.parse(e):$n.test(e)?$n.parse(e):Wl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?an.transform(e):$n.transform(e)},A1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function L1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Cu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A1))===null||n===void 0?void 0:n.length)||0)>0}const vm="number",ym="color",_1="var",R1="var(",tf="${}",V1=/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 si(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace(V1,a=>(we.test(a)?(r.color.push(s),i.push(ym),n.push(we.parse(a))):a.startsWith(R1)?(r.var.push(s),i.push(_1),n.push(a)):(r.number.push(s),i.push(vm),n.push(parseFloat(a))),++s,tf)).split(tf);return{values:n,split:l,indexes:r,types:i}}function wm(e){return si(e).values}function Sm(e){const{split:t,types:n}=si(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===vm?s+=Vr(i[o]):l===ym?s+=we.transform(i[o]):s+=i[o]}return s}}const $1=e=>typeof e=="number"?0:e;function N1(e){const t=wm(e);return Sm(e)(t.map($1))}const Gt={test:L1,parse:wm,createTransformer:Sm,getAnimatableNone:N1},j1=new Set(["brightness","contrast","saturate","opacity"]);function O1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cu)||[];if(!r)return e;const i=n.replace(r,"");let s=j1.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const z1=/\b([a-z-]*)\(.*?\)/gu,Hl={...Gt,getAnimatableNone:e=>{const t=e.match(z1);return t?t.map(O1).join(" "):e}},F1={...cu,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:Hl,WebkitFilter:Hl},Mu=e=>F1[e];function xm(e,t){let n=Mu(e);return n!==Hl&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I1=new Set(["auto","none","0"]);function B1(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!I1.has(s)&&si(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=xm(n,i)}const nf=e=>e===ir||e===O,rf=(e,t)=>parseFloat(e.split(", ")[t]),sf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return rf(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?rf(s[1],e):0}},U1=new Set(["x","y","z"]),W1=rr.filter(e=>!U1.has(e));function H1(e){const t=[];return W1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bn={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:sf(4,13),y:sf(5,14)};bn.translateX=bn.x;bn.translateY=bn.y;const fn=new Set;let Kl=!1,Yl=!1;function Pm(){if(Yl){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=H1(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)})}Yl=!1,Kl=!1,fn.forEach(e=>e.complete()),fn.clear()}function Tm(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yl=!0)})}function K1(){Tm(),Pm()}class Du{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?(fn.add(this),Kl||(Kl=!0,Q.read(Tm),Q.resolveKeyframes(Pm))):(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),fn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const km=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G1(e){const t=Y1.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Cm(e,t,n=1){const[r,i]=G1(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return km(o)?parseFloat(o):o}return uu(i)?Cm(i,t,n+1):i}const Em=e=>t=>t.test(e),Q1={test:e=>e==="auto",parse:e=>e},Mm=[ir,O,dt,At,O0,j0,Q1],of=e=>Mm.find(Em(e));class Dm extends Du{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(),uu(u))){const c=Cm(u,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!im.has(r)||t.length!==2)return;const[i,s]=t,o=of(i),l=of(s);if(o!==l)if(nf(o)&&nf(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++)k1(t[i])&&r.push(i);r.length&&B1(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=bn[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]=bn[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 lf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function X1(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 Z1(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=lf(i,t),l=lf(s,t);return!o||!l?!1:X1(e)||(n==="spring"||vu(n))&&r}const q1=e=>e!==null;function no(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(q1),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const J1=40;class Am{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=ht.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>J1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&K1(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ht.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!Z1(t,r,i,s))if(o)this.options.duration=0;else{a&&a(no(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 b=(e,t,n)=>e+(t-e)*n;function $o(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 b1({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=$o(a,l,e+1/3),s=$o(a,l,e),o=$o(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function As(e,t){return n=>n>0?t:e}const No=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ew=[Wl,an,$n],tw=e=>ew.find(t=>t.test(e));function af(e){const t=tw(e);if(!t)return!1;let n=t.parse(e);return t===$n&&(n=b1(n)),n}const uf=(e,t)=>{const n=af(e),r=af(t);if(!n||!r)return As(e,t);const i={...n};return s=>(i.red=No(n.red,r.red,s),i.green=No(n.green,r.green,s),i.blue=No(n.blue,r.blue,s),i.alpha=b(n.alpha,r.alpha,s),an.transform(i))},nw=(e,t)=>n=>t(e(n)),mi=(...e)=>e.reduce(nw),Gl=new Set(["none","hidden"]);function rw(e,t){return Gl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iw(e,t){return n=>b(e,t,n)}function Au(e){return typeof e=="number"?iw:typeof e=="string"?uu(e)?As:we.test(e)?uf:lw:Array.isArray(e)?Lm:typeof e=="object"?we.test(e)?uf:sw:As}function Lm(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Au(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function sw(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Au(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function ow(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 lw=(e,t)=>{const n=Gt.createTransformer(t),r=si(e),i=si(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?Gl.has(e)&&!i.values.length||Gl.has(t)&&!r.values.length?rw(e,t):mi(Lm(ow(r,i),i.values),n):As(e,t)};function _m(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?b(e,t,n):Au(e)(e,t)}const aw=5;function Rm(e,t,n){const r=Math.max(t-aw,0);return sm(n-e(r),t-r)}const ne={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},jo=.001;function uw({duration:e=ne.duration,bounce:t=ne.bounce,velocity:n=ne.velocity,mass:r=ne.mass}){let i,s,o=1-t;o=Ct(ne.minDamping,ne.maxDamping,o),e=Ct(ne.minDuration,ne.maxDuration,St(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,g=Ql(u,o),v=Math.exp(-d);return jo-f/g*v},s=u=>{const d=u*o*e,f=d*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=Ql(Math.pow(u,2),o);return(-i(u)+jo>0?-1:1)*((f-g)*v)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-jo+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const l=5/e,a=fw(i,s,l);if(e=wt(e),isNaN(a))return{stiffness:ne.stiffness,damping:ne.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const cw=12;function fw(e,t,n){let r=n;for(let i=1;i<cw;i++)r=r-e(r)/t(r);return r}function Ql(e,t){return e*Math.sqrt(1-t*t)}const dw=["duration","bounce"],hw=["stiffness","damping","mass"];function cf(e,t){return t.some(n=>e[n]!==void 0)}function pw(e){let t={velocity:ne.velocity,stiffness:ne.stiffness,damping:ne.damping,mass:ne.mass,isResolvedFromDuration:!1,...e};if(!cf(e,hw)&&cf(e,dw))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ct(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ne.mass,stiffness:i,damping:s}}else{const n=uw(e);t={...t,...n,mass:ne.mass},t.isResolvedFromDuration=!0}return t}function Vm(e=ne.visualDuration,t=ne.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:d,velocity:f,isResolvedFromDuration:g}=pw({...n,velocity:-St(n.velocity||0)}),v=f||0,y=u/(2*Math.sqrt(a*c)),T=o-s,p=St(Math.sqrt(a/c)),h=Math.abs(T)<5;r||(r=h?ne.restSpeed.granular:ne.restSpeed.default),i||(i=h?ne.restDelta.granular:ne.restDelta.default);let m;if(y<1){const x=Ql(p,y);m=P=>{const D=Math.exp(-y*p*P);return o-D*((v+y*p*T)/x*Math.sin(x*P)+T*Math.cos(x*P))}}else if(y===1)m=x=>o-Math.exp(-p*x)*(T+(v+p*T)*x);else{const x=p*Math.sqrt(y*y-1);m=P=>{const D=Math.exp(-y*p*P),k=Math.min(x*P,300);return o-D*((v+y*p*T)*Math.sinh(k)+x*T*Math.cosh(k))/x}}const w={calculatedDuration:g&&d||null,next:x=>{const P=m(x);if(g)l.done=x>=d;else{let D=0;y<1&&(D=x===0?wt(v):Rm(m,x,P));const k=Math.abs(D)<=r,I=Math.abs(o-P)<=i;l.done=k&&I}return l.value=l.done?o:P,l},toString:()=>{const x=Math.min(qp(w),Il),P=Jp(D=>w.next(x*D).value,x,30);return x+"ms "+P}};return w}function ff({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 d=e[0],f={done:!1,value:d},g=k=>l!==void 0&&k<l||a!==void 0&&k>a,v=k=>l===void 0?a:a===void 0||Math.abs(l-k)<Math.abs(a-k)?l:a;let y=n*t;const T=d+y,p=o===void 0?T:o(T);p!==T&&(y=p-d);const h=k=>-y*Math.exp(-k/r),m=k=>p+h(k),w=k=>{const I=h(k),R=m(k);f.done=Math.abs(I)<=u,f.value=f.done?p:R};let x,P;const D=k=>{g(f.value)&&(x=k,P=Vm({keyframes:[f.value,v(f.value)],velocity:Rm(m,k,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:k=>{let I=!1;return!P&&x===void 0&&(I=!0,w(k),D(k)),x!==void 0&&k>=x?P.next(k-x):(!I&&w(k),f)}}}const mw=pi(.42,0,1,1),gw=pi(0,0,.58,1),$m=pi(.42,0,.58,1),vw=e=>Array.isArray(e)&&typeof e[0]!="number",yw={linear:ze,easeIn:mw,easeInOut:$m,easeOut:gw,circIn:ku,circInOut:pm,circOut:hm,backIn:Tu,backInOut:fm,backOut:cm,anticipate:dm},df=e=>{if(yu(e)){Lp(e.length===4);const[t,n,r,i]=e;return pi(t,n,r,i)}else if(typeof e=="string")return yw[e];return e};function ww(e,t,n){const r=[],i=n||_m,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]||ze:t;l=mi(a,l)}r.push(l)}return r}function Sw(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Lp(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=ww(t,r,i),a=l.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=qn(e[d],e[d+1],c);return l[d](f)};return n?c=>u(Ct(e[0],e[s-1],c)):u}function xw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=qn(0,t,r);e.push(b(n,1,i))}}function Pw(e){const t=[0];return xw(t,e.length-1),t}function Tw(e,t){return e.map(n=>n*t)}function kw(e,t){return e.map(()=>t||$m).splice(0,e.length-1)}function Ls({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=vw(r)?r.map(df):df(r),s={done:!1,value:t[0]},o=Tw(n&&n.length===t.length?n:Pw(t),e),l=Sw(o,t,{ease:Array.isArray(i)?i:kw(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}const Cw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>Yt(t),now:()=>he.isProcessing?he.timestamp:ht.now()}},Ew={decay:ff,inertia:ff,tween:Ls,keyframes:Ls,spring:Vm},Mw=e=>e/100;class Lu extends Am{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)||Du,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=vu(n)?n:Ew[n]||Ls;let a,u;l!==Ls&&typeof t[0]!="number"&&(a=mi(Mw,_m(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=qp(c));const{calculatedDuration:d}=c,f=d+i,g=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,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:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:g,repeatType:v,repeatDelay:y,onUpdate:T}=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 p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,w=s;if(g){const k=Math.min(this.currentTime,c)/d;let I=Math.floor(k),R=k%1;!R&&k>=1&&(R=1),R===1&&I--,I=Math.min(I,g+1),!!(I%2)&&(v==="reverse"?(R=1-R,y&&(R-=y/d)):v==="mirror"&&(w=o)),m=Ct(0,1,R)*d}const x=h?{done:!1,value:a[0]}:w.next(m);l&&(x.value=l(x.value));let{done:P}=x;!h&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&i!==void 0&&(x.value=no(a,this.options,i)),T&&T(x.value),D&&this.finish(),x}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=wt(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=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Cw,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 Dw=new Set(["opacity","clipPath","filter","transform"]);function Aw(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=em(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 Lw=tu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_s=10,_w=2e4;function Rw(e){return vu(e.type)||e.type==="spring"||!bp(e.ease)}function Vw(e,t){const n=new Lu({...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<_w;)r=n.sample(s),i.push(r.value),s+=_s;return{times:void 0,keyframes:i,duration:s-_s,ease:"linear"}}const Nm={anticipate:dm,backInOut:fm,circInOut:pm};function $w(e){return e in Nm}class hf extends Am{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Dm(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"&&Ds()&&$w(s)&&(s=Nm[s]),Rw(this.options)){const{onComplete:d,onUpdate:f,motionValue:g,element:v,...y}=this.options,T=Vw(t,y);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,s=T.ease,o="keyframes"}const c=Aw(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Zc(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(no(t,this.options,n)),d&&d(),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 St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wt(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 ze;const{animation:r}=n;Zc(r,t)}return ze}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:d,element:f,...g}=this.options,v=new Lu({...g,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),y=wt(this.time);u.setWithVelocity(v.sample(y-_s).value,v.sample(y).value,_s)}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 Lw()&&r&&Dw.has(r)&&!a&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const Nw={type:"spring",stiffness:500,damping:25,restSpeed:10},jw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ow={type:"keyframes",duration:.8},zw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fw=(e,{keyframes:t})=>t.length>2?Ow:wn.has(e)?e.startsWith("scale")?jw(t[1]):Nw:zw;function Iw({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 _u=(e,t,n,r={},i,s)=>o=>{const l=gu(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-wt(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};Iw(l)||(c={...c,...Fw(e,c)}),c.duration&&(c.duration=wt(c.duration)),c.repeatDelay&&(c.repeatDelay=wt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),nu.skipAnimations&&(d=!0,c.duration=0,c.delay=0),d&&!s&&t.get()!==void 0){const f=no(c.keyframes,l);if(f!==void 0)return Q.update(()=>{c.onUpdate(f),c.onComplete()}),new s1([])}return!s&&hf.supports(c)?new hf(c):new Lu(c)};function Bw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function jm(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 d in a){const f=e.getValue(d,(s=e.latestValues[d])!==null&&s!==void 0?s:null),g=a[d];if(g===void 0||c&&Bw(c,d))continue;const v={delay:n,...gu(o||{},d)};let y=!1;if(window.MotionHandoffAnimation){const p=om(e);if(p){const h=window.MotionHandoffAnimation(p,d,Q);h!==null&&(v.startTime=h,y=!0)}}Ul(e,d),f.start(_u(d,f,g,e.shouldReduceMotion&&im.has(d)?{type:!1}:v,e,y));const T=f.animation;T&&u.push(T)}return l&&Promise.all(u).then(()=>{Q.update(()=>{l&&w1(e,l)})}),u}function Xl(e,t,n={}){var r;const i=to(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(jm(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return Uw(e,t,c+u,d,f,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 Uw(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(Ww).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(Xl(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function Ww(e,t){return e.sortNodePosition(t)}function Hw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Xl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Xl(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(jm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Kw=iu.length;function Om(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Om(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Kw;n++){const r=iu[n],i=e.props[r];(ni(i)||i===!1)&&(t[r]=i)}return t}const Yw=[...ru].reverse(),Gw=ru.length;function Qw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Hw(e,n,r)))}function Xw(e){let t=Qw(e),n=pf(),r=!0;const i=a=>(u,c)=>{var d;const f=to(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:v,...y}=f;u={...u,...y,...v}}return u};function s(a){t=a(e)}function o(a){const{props:u}=e,c=Om(e.parent)||{},d=[],f=new Set;let g={},v=1/0;for(let T=0;T<Gw;T++){const p=Yw[T],h=n[p],m=u[p]!==void 0?u[p]:c[p],w=ni(m),x=p===a?h.isActive:null;x===!1&&(v=T);let P=m===c[p]&&m!==u[p]&&w;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),h.protectedKeys={...g},!h.isActive&&x===null||!m&&!h.prevProp||bs(m)||typeof m=="boolean")continue;const D=Zw(h.prevProp,m);let k=D||p===a&&h.isActive&&!P&&w||T>v&&w,I=!1;const R=Array.isArray(m)?m:[m];let F=R.reduce(i(p),{});x===!1&&(F={});const{prevResolvedValues:$e={}}=h,ot={...$e,...F},j=_=>{k=!0,f.has(_)&&(I=!0,f.delete(_)),h.needsAnimating[_]=!0;const S=e.getValue(_);S&&(S.liveStyle=!1)};for(const _ in ot){const S=F[_],M=$e[_];if(g.hasOwnProperty(_))continue;let A=!1;Fl(S)&&Fl(M)?A=!Zp(S,M):A=S!==M,A?S!=null?j(_):f.add(_):S!==void 0&&f.has(_)?j(_):h.protectedKeys[_]=!0}h.prevProp=m,h.prevResolvedValues=F,h.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(P&&D)||I)&&d.push(...R.map(_=>({animation:_,options:{type:p}})))}if(f.size){const T={};f.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),T[p]=h??null}),d.push({animation:T})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):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(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(a,u)}),n[a].isActive=u;const d=o(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=pf(),r=!0}}}function Zw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zp(t,e):!1}function bt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pf(){return{animate:bt(!0),whileInView:bt(),whileHover:bt(),whileTap:bt(),whileDrag:bt(),whileFocus:bt(),exit:bt()}}class qt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class qw extends qt{constructor(t){super(t),t.animationState||(t.animationState=Xw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bs(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 Jw=0;class bw extends qt{constructor(){super(...arguments),this.id=Jw++}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 eS={animation:{Feature:qw},exit:{Feature:bw}};function oi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e){return{point:{x:e.pageX,y:e.pageY}}}const tS=e=>t=>wu(t)&&e(t,gi(t));function $r(e,t,n,r){return oi(e,t,tS(n),r)}const mf=(e,t)=>Math.abs(e-t);function nS(e,t){const n=mf(e.x,t.x),r=mf(e.y,t.y);return Math.sqrt(n**2+r**2)}class zm{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 d=zo(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=nS(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:v}=d,{timestamp:y}=he;this.history.push({...v,timestamp:y});const{onStart:T,onMove:p}=this.handlers;f||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Oo(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=zo(d.type==="pointercancel"?this.lastMoveEventInfo:Oo(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,T),v&&v(d,T)},!wu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=gi(t),l=Oo(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=he;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,zo(l,this.history)),this.removeListeners=mi($r(this.contextWindow,"pointermove",this.handlePointerMove),$r(this.contextWindow,"pointerup",this.handlePointerUp),$r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Yt(this.updatePoint)}}function Oo(e,t){return t?{point:t(e.point)}:e}function gf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zo({point:e},t){return{point:e,delta:gf(e,Fm(t)),offset:gf(e,rS(t)),velocity:iS(t,.1)}}function rS(e){return e[0]}function Fm(e){return e[e.length-1]}function iS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const s=St(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 Im=1e-4,sS=1-Im,oS=1+Im,Bm=.01,lS=0-Bm,aS=0+Bm;function Ie(e){return e.max-e.min}function uS(e,t,n){return Math.abs(e-t)<=n}function vf(e,t,n,r=.5){e.origin=r,e.originPoint=b(t.min,t.max,e.origin),e.scale=Ie(n)/Ie(t),e.translate=b(n.min,n.max,e.origin)-e.originPoint,(e.scale>=sS&&e.scale<=oS||isNaN(e.scale))&&(e.scale=1),(e.translate>=lS&&e.translate<=aS||isNaN(e.translate))&&(e.translate=0)}function Nr(e,t,n,r){vf(e.x,t.x,n.x,r?r.originX:void 0),vf(e.y,t.y,n.y,r?r.originY:void 0)}function yf(e,t,n){e.min=n.min+t.min,e.max=e.min+Ie(t)}function cS(e,t,n){yf(e.x,t.x,n.x),yf(e.y,t.y,n.y)}function wf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ie(t)}function jr(e,t,n){wf(e.x,t.x,n.x),wf(e.y,t.y,n.y)}function fS(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?b(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?b(n,e,r.max):Math.min(e,n)),e}function Sf(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 dS(e,{top:t,left:n,bottom:r,right:i}){return{x:Sf(e.x,n,i),y:Sf(e.y,t,r)}}function xf(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 hS(e,t){return{x:xf(e.x,t.x),y:xf(e.y,t.y)}}function pS(e,t){let n=.5;const r=Ie(e),i=Ie(t);return i>r?n=qn(t.min,t.max-r,e.min):r>i&&(n=qn(e.min,e.max-i,t.min)),Ct(0,1,n)}function mS(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 Zl=.35;function gS(e=Zl){return e===!1?e=0:e===!0&&(e=Zl),{x:Pf(e,"left","right"),y:Pf(e,"top","bottom")}}function Pf(e,t,n){return{min:Tf(e,t),max:Tf(e,n)}}function Tf(e,t){return typeof e=="number"?e:e[t]||0}const kf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nn=()=>({x:kf(),y:kf()}),Cf=()=>({min:0,max:0}),ie=()=>({x:Cf(),y:Cf()});function Ke(e){return[e("x"),e("y")]}function Um({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yS(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 Fo(e){return e===void 0||e===1}function ql({scale:e,scaleX:t,scaleY:n}){return!Fo(e)||!Fo(t)||!Fo(n)}function nn(e){return ql(e)||Wm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Wm(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Rs(e,t,n){const r=e-n,i=t*r;return n+i}function Mf(e,t,n,r,i){return i!==void 0&&(e=Rs(e,i,r)),Rs(e,n,r)+t}function Jl(e,t=0,n=1,r,i){e.min=Mf(e.min,t,n,r,i),e.max=Mf(e.max,t,n,r,i)}function Hm(e,{x:t,y:n}){Jl(e.x,t.translate,t.scale,t.originPoint),Jl(e.y,n.translate,n.scale,n.originPoint)}const Df=.999999999999,Af=1.0000000000001;function wS(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&&On(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Hm(e,o)),r&&nn(s.latestValues)&&On(e,s.latestValues))}t.x<Af&&t.x>Df&&(t.x=1),t.y<Af&&t.y>Df&&(t.y=1)}function jn(e,t){e.min=e.min+t,e.max=e.max+t}function Lf(e,t,n,r,i=.5){const s=b(e.min,e.max,i);Jl(e,t,n,s,r)}function On(e,t){Lf(e.x,t.x,t.scaleX,t.scale,t.originX),Lf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Km(e,t){return Um(yS(e.getBoundingClientRect(),t))}function SS(e,t,n){const r=Km(e,n),{scroll:i}=t;return i&&(jn(r.x,i.offset.x),jn(r.y,i.offset.y)),r}const Ym=({current:e})=>e?e.ownerDocument.defaultView:null,xS=new WeakMap;class PS{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=ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gi(c).point)},s=(c,d)=>{const{drag:f,dragPropagation:g,onDragStart:v}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=p1(f),!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),Ke(T=>{let p=this.getAxisMotionValue(T).get()||0;if(dt.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[T];m&&(p=Ie(m)*(parseFloat(p)/100))}}this.originPoint[T]=p}),v&&Q.postRender(()=>v(c,d)),Ul(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:T}=d;if(g&&this.currentDirection===null){this.currentDirection=TS(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,T),this.updateAxis("y",d.point,T),this.visualElement.render(),y&&y(c,d)},l=(c,d)=>this.stop(c,d),a=()=>Ke(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ym(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&&Q.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||!Fi(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=fS(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&&Vn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=dS(i.layoutBox,n):this.constraints=!1,this.elastic=gS(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ke(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=mS(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=SS(r,i.root,this.visualElement.getTransformPagePoint());let o=hS(i.layout.layoutBox,s);if(n){const l=n(vS(o));this.hasMutatedConstraints=!!l,l&&(o=Um(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Ke(c=>{if(!Fi(c,n,this.currentDirection))return;let d=a&&a[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ul(this.visualElement,t),r.start(_u(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ke(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){Ke(n=>{const{drag:r}=this.getProps();if(!Fi(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]-b(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ke(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const a=l.get();i[o]=pS({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(),Ke(o=>{if(!Fi(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(b(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;xS.set(this.visualElement,this);const t=this.visualElement.current,n=$r(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Vn(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()),Q.read(r);const o=oi(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ke(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.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=Zl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function Fi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function TS(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kS extends qt{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new PS(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const _f=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class CS extends qt{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new zm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ym(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_f(t),onStart:_f(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Q.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=$r(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 ts={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=Rf(e,t.target.x),r=Rf(e,t.target.y);return`${n}% ${r}%`}},ES={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Gt.parse(e);if(i.length>5)return r;const s=Gt.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=b(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 MS extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;G0(DS),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()})),ts.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()||Q.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ou.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 Gm(e){const[t,n]=Dp(),r=E.useContext(ba);return N.jsx(MS,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Op),isPresent:t,safeToRemove:n})}const DS={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:ES};function AS(e,t,n){const r=xe(e)?e:ii(e);return r.start(_u("",r,t,n)),r.animation}function LS(e){return e instanceof SVGElement&&e.tagName!=="svg"}const _S=(e,t)=>e.depth-t.depth;class RS{constructor(){this.children=[],this.isDirty=!1}add(t){Su(this.children,t),this.isDirty=!0}remove(t){xu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_S),this.isDirty=!1,this.children.forEach(t)}}function VS(e,t){const n=ht.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Yt(r),e(s-t))};return Q.read(r,!0),()=>Yt(r)}const Qm=["TopLeft","TopRight","BottomLeft","BottomRight"],$S=Qm.length,Vf=e=>typeof e=="string"?parseFloat(e):e,$f=e=>typeof e=="number"||O.test(e);function NS(e,t,n,r,i,s){i?(e.opacity=b(0,n.opacity!==void 0?n.opacity:1,jS(r)),e.opacityExit=b(t.opacity!==void 0?t.opacity:1,0,OS(r))):s&&(e.opacity=b(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<$S;o++){const l=`border${Qm[o]}Radius`;let a=Nf(t,l),u=Nf(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||$f(a)===$f(u)?(e[l]=Math.max(b(Vf(a),Vf(u),r),0),(dt.test(u)||dt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=b(t.rotate||0,n.rotate||0,r))}function Nf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const jS=Xm(0,.5,hm),OS=Xm(.5,.95,ze);function Xm(e,t,n){return r=>r<e?0:r>t?1:n(qn(e,t,r))}function jf(e,t){e.min=t.min,e.max=t.max}function He(e,t){jf(e.x,t.x),jf(e.y,t.y)}function Of(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zf(e,t,n,r,i){return e-=t,e=Rs(e,1/n,r),i!==void 0&&(e=Rs(e,1/i,r)),e}function zS(e,t=0,n=1,r=.5,i,s=e,o=e){if(dt.test(t)&&(t=parseFloat(t),t=b(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=b(s.min,s.max,r);e===s&&(l-=t),e.min=zf(e.min,t,n,l,i),e.max=zf(e.max,t,n,l,i)}function Ff(e,t,[n,r,i],s,o){zS(e,t[n],t[r],t[i],t.scale,s,o)}const FS=["x","scaleX","originX"],IS=["y","scaleY","originY"];function If(e,t,n,r){Ff(e.x,t,FS,n?n.x:void 0,r?r.x:void 0),Ff(e.y,t,IS,n?n.y:void 0,r?r.y:void 0)}function Bf(e){return e.translate===0&&e.scale===1}function Zm(e){return Bf(e.x)&&Bf(e.y)}function Uf(e,t){return e.min===t.min&&e.max===t.max}function BS(e,t){return Uf(e.x,t.x)&&Uf(e.y,t.y)}function Wf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qm(e,t){return Wf(e.x,t.x)&&Wf(e.y,t.y)}function Hf(e){return Ie(e.x)/Ie(e.y)}function Kf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class US{constructor(){this.members=[]}add(t){Su(this.members,t),t.scheduleRender()}remove(t){if(xu(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 WS(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:d,rotateY:f,skewX:g,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}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 rn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tr=typeof window<"u"&&window.MotionDebug!==void 0,Io=["","X","Y","Z"],HS={visibility:"hidden"},Yf=1e3;let KS=0;function Bo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=om(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Jm(r)}function bm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=KS++,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,Tr&&(rn.totalNodes=rn.resolvedTargetDeltas=rn.recalculatedProjection=0),this.nodes.forEach(QS),this.nodes.forEach(bS),this.nodes.forEach(ex),this.nodes.forEach(XS),Tr&&window.MotionDebug.record(rn)},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 RS)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Pu),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=LS(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 d;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=VS(f,250),ts.hasAnimatedSinceResize&&(ts.hasAnimatedSinceResize=!1,this.nodes.forEach(Qf))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||sx,{onLayoutAnimationStart:T,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!qm(this.targetLayout,v)||g,m=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const w={...gu(y,"layout"),onPlay:T,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Qf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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(tx),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&&Jm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.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(Gf);return}this.isUpdating||this.nodes.forEach(qS),this.isUpdating=!1,this.nodes.forEach(JS),this.nodes.forEach(YS),this.nodes.forEach(GS),this.clearAllSnapshots();const l=ht.now();he.delta=Ct(0,1e3/60,l-he.timestamp),he.timestamp=l,he.isProcessing=!0,_o.update.process(he),_o.preRender.process(he),_o.render.process(he),he.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ou.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZS),this.sharedNodes.forEach(nx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.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=ie(),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&&!Zm(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(l||nn(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)),ox(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return ie();const a=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(lx))){const{scroll:c}=this.root;c&&(jn(a.x,c.offset.x),jn(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=ie();if(He(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:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&He(a,o),jn(a.x,d.offset.x),jn(a.y,d.offset.y))}return a}applyTransform(o,l=!1){const a=ie();He(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&&On(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),nn(c.latestValues)&&On(a,c.latestValues)}return nn(this.latestValues)&&On(a,this.latestValues),a}removeTransform(o){const l=ie();He(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!nn(u.latestValues))continue;ql(u.latestValues)&&u.updateSnapshot();const c=ie(),d=u.measurePageBox();He(c,d),If(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return nn(this.latestValues)&&If(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!==he.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:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=he.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),jr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cS(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):He(this.target,this.layout.layoutBox),Hm(this.target,this.targetDelta)):He(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=ie(),this.relativeTargetOrigin=ie(),jr(this.relativeTargetOrigin,this.target,g.target),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Tr&&rn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ql(this.parent.latestValues)||Wm(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===he.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=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||d))return;He(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,g=this.treeScale.y;wS(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=ie());const{target:v}=l;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Of(this.prevProjectionDelta.x,this.projectionDelta.x),Of(this.prevProjectionDelta.y,this.projectionDelta.y)),Nr(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!Kf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Tr&&rn.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=Nn(),this.projectionDelta=Nn(),this.projectionDeltaWithTransform=Nn()}setAnimationOrigin(o,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},d=Nn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=ie(),g=a?a.source:void 0,v=this.layout?this.layout.source:void 0,y=g!==v,T=this.getStack(),p=!T||T.members.length<=1,h=!!(y&&!p&&this.options.crossfade===!0&&!this.path.some(ix));this.animationProgress=0;let m;this.mixTargetDelta=w=>{const x=w/1e3;Xf(d.x,o.x,x),Xf(d.y,o.y,x),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rx(this.relativeTarget,this.relativeTargetOrigin,f,x),m&&BS(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ie()),He(m,this.relativeTarget)),y&&(this.animationValues=c,NS(c,u,this.latestValues,x,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},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=Q.update(()=>{ts.hasAnimatedSinceResize=!0,this.currentAnimation=AS(0,Yf,{...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(Yf),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&&eg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ie();const d=Ie(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+d;const f=Ie(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+f}He(l,a),On(l,c),Nr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new US),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&&Bo("z",o,u,this.animationValues);for(let c=0;c<Io.length;c++)Bo(`rotate${Io[c]}`,o,u,this.animationValues),Bo(`skew${Io[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 HS;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=bi(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=bi(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!nn(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=WS(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:g,y:v}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,d.animationValues?u.opacity=d===this?(a=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in Ms){if(f[y]===void 0)continue;const{correct:T,applyTo:p}=Ms[y],h=u.transform==="none"?f[y]:T(f[y],d);if(p){const m=p.length;for(let w=0;w<m;w++)u[p[w]]=h}else u[y]=h}return this.options.layoutId&&(u.pointerEvents=d===this?bi(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(Gf),this.root.sharedNodes.clear()}}}function YS(e){e.updateLayout()}function GS(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"?Ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=Ie(f);f.min=r[d].min,f.max=f.min+g}):eg(s,n.layoutBox,r)&&Ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=Ie(r[d]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const l=Nn();Nr(l,r,n.layoutBox);const a=Nn();o?Nr(a,e.applyTransform(i,!0),n.measuredBox):Nr(a,r,n.layoutBox);const u=!Zm(l);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:g}=d;if(f&&g){const v=ie();jr(v,n.layoutBox,f.layoutBox);const y=ie();jr(y,r,g.layoutBox),qm(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=d)}}}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 QS(e){Tr&&rn.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 XS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZS(e){e.clearSnapshot()}function Gf(e){e.clearMeasurements()}function qS(e){e.isLayoutDirty=!1}function JS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Qf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bS(e){e.resolveTargetDelta()}function ex(e){e.calcProjection()}function tx(e){e.resetSkewAndRotation()}function nx(e){e.removeLeadSnapshot()}function Xf(e,t,n){e.translate=b(t.translate,0,n),e.scale=b(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zf(e,t,n,r){e.min=b(t.min,n.min,r),e.max=b(t.max,n.max,r)}function rx(e,t,n,r){Zf(e.x,t.x,n.x,r),Zf(e.y,t.y,n.y,r)}function ix(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sx={duration:.45,ease:[.4,0,.1,1]},qf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jf=qf("applewebkit/")&&!qf("chrome/")?Math.round:ze;function bf(e){e.min=Jf(e.min),e.max=Jf(e.max)}function ox(e){bf(e.x),bf(e.y)}function eg(e,t,n){return e==="position"||e==="preserve-aspect"&&!uS(Hf(t),Hf(n),.2)}function lx(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ax=bm({attachResizeListener:(e,t)=>oi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Uo={current:void 0},tg=bm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Uo.current){const e=new ax({});e.mount(window),e.setOptions({layoutScroll:!0}),Uo.current=e}return Uo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ux={pan:{Feature:CS},drag:{Feature:kS,ProjectionNode:tg,MeasureLayout:Gm}};function ed(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&&Q.postRender(()=>s(t,gi(t)))}class cx extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=u1(t,n=>(ed(this.node,n,"Start"),r=>ed(this.node,r,"End"))))}unmount(){}}class fx extends qt{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=mi(oi(this.node.current,"focus",()=>this.onFocus()),oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function td(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&&Q.postRender(()=>s(t,gi(t)))}class dx extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=h1(t,n=>(td(this.node,n,"Start"),(r,{success:i})=>td(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bl=new WeakMap,Wo=new WeakMap,hx=e=>{const t=bl.get(e.target);t&&t(e)},px=e=>{e.forEach(hx)};function mx({root:e,...t}){const n=e||document;Wo.has(n)||Wo.set(n,{});const r=Wo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(px,{root:e,...t})),r[i]}function gx(e,t,n){const r=mx(t);return bl.set(e,n),r.observe(e),()=>{bl.delete(e),r.unobserve(e)}}const vx={some:0,all:1};class yx extends qt{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:vx[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:d}=this.node.getProps(),f=u?c:d;f&&f(a)};return gx(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(wx(t,n))&&this.startObserver()}unmount(){}}function wx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sx={inView:{Feature:yx},tap:{Feature:dx},focus:{Feature:fx},hover:{Feature:cx}},xx={layout:{ProjectionNode:tg,MeasureLayout:Gm}},ea={current:null},ng={current:!1};function Px(){if(ng.current=!0,!!eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ea.current=e.matches;e.addListener(t),t()}else ea.current=!1}const Tx=[...Mm,we,Gt],kx=e=>Tx.find(Em(e)),nd=new WeakMap;function Cx(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,ii(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,ii(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ex{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=Du,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=ht.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Q.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=eo(n),this.isVariantNode=Np(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const v=f[g];a[g]!==void 0&&xe(v)&&v.set(a[g],!1)}}mount(t){this.current=t,nd.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)),ng.current||Px(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ea.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){nd.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=wn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Q.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 Jn){const n=Jn[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):ie()}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<rd.length;r++){const i=rd[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=Cx(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=ii(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"&&(km(i)||mm(i))?i=parseFloat(i):!kx(i)&&Gt.test(n)&&(i=xm(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=au(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 Pu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rg extends Ex{constructor(){super(...arguments),this.KeyframeResolver=Dm}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 Mx(e){return window.getComputedStyle(e)}class Dx extends rg{constructor(){super(...arguments),this.type="html",this.renderInstance=Hp}readValueFromInstance(t,n){if(wn.has(n)){const r=Mu(n);return r&&r.default||0}else{const r=Mx(t),i=(Bp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Km(t,n)}build(t,n,r){fu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return mu(t,n,r)}}class Ax extends rg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=Mu(n);return r&&r.default||0}return n=Kp.has(n)?n:su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Qp(t,n,r)}build(t,n,r){du(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Yp(t,n,r,i)}mount(t){this.isSVGTag=pu(t.tagName),super.mount(t)}}const Lx=(e,t)=>lu(e)?new Ax(t):new Dx(t,{allowProjection:e!==E.Fragment}),_x=n1({...eS,...Sx,...ux,...xx},Lx),id=v0(_x),ta=ue.createContext(null);function Rx(e){let{children:t}=e,n=E.useContext(ta),[r,i]=E.useState(0),s=E.useMemo(()=>({parent:n,modalCount:r,addModal(){i(o=>o+1),n&&n.addModal()},removeModal(){i(o=>o-1),n&&n.removeModal()}}),[n,r]);return ue.createElement(ta.Provider,{value:s},t)}function Vx(){let e=E.useContext(ta);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function $x(e){let{modalProviderProps:t}=Vx();return ue.createElement("div",{"data-overlay-container":!0,...e,...t})}function Nx(e){return ue.createElement(Rx,null,ue.createElement($x,e))}var jx=({children:e,navigate:t,disableAnimation:n,useHref:r,disableRipple:i=!1,skipFramerMotionAnimations:s=n,reducedMotion:o="never",validationBehavior:l,locale:a="en-US",labelPlacement:u,defaultDates:c,createCalendar:d,spinnerVariant:f,...g})=>{let v=e;t&&(v=N.jsx(bg,{navigate:t,useHref:r,children:v}));const y=E.useMemo(()=>(n&&s&&(nu.skipAnimations=!0),{createCalendar:d,defaultDates:c,disableAnimation:n,disableRipple:i,validationBehavior:l,labelPlacement:u,spinnerVariant:f}),[d,c==null?void 0:c.maxDate,c==null?void 0:c.minDate,n,i,l,u,f]);return N.jsx(Lg,{value:y,children:N.jsx(Wg,{locale:a,children:N.jsx(g0,{reducedMotion:o,children:N.jsx(Nx,{...g,children:v})})})})},Ho={exports:{}},sd;function ig(){return sd||(sd=1,function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",l="minute",a="hour",u="day",c="week",d="month",f="quarter",g="year",v="date",y="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var V=["th","st","nd","rd"],L=j%100;return"["+j+(V[(L-20)%10]||V[L]||V[0])+"]"}},m=function(j,V,L){var _=String(j);return!_||_.length>=V?j:""+Array(V+1-_.length).join(L)+j},w={s:m,z:function(j){var V=-j.utcOffset(),L=Math.abs(V),_=Math.floor(L/60),S=L%60;return(V<=0?"+":"-")+m(_,2,"0")+":"+m(S,2,"0")},m:function j(V,L){if(V.date()<L.date())return-j(L,V);var _=12*(L.year()-V.year())+(L.month()-V.month()),S=V.clone().add(_,d),M=L-S<0,A=V.clone().add(_+(M?-1:1),d);return+(-(_+(L-S)/(M?S-A:A-S))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:d,y:g,w:c,d:u,D:v,h:a,m:l,s:o,ms:s,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},x="en",P={};P[x]=h;var D="$isDayjsObject",k=function(j){return j instanceof $e||!(!j||!j[D])},I=function j(V,L,_){var S;if(!V)return x;if(typeof V=="string"){var M=V.toLowerCase();P[M]&&(S=M),L&&(P[M]=L,S=M);var A=V.split("-");if(!S&&A.length>1)return j(A[0])}else{var z=V.name;P[z]=V,S=z}return!_&&S&&(x=S),S||!_&&x},R=function(j,V){if(k(j))return j.clone();var L=typeof V=="object"?V:{};return L.date=j,L.args=arguments,new $e(L)},F=w;F.l=I,F.i=k,F.w=function(j,V){return R(j,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var $e=function(){function j(L){this.$L=I(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[D]=!0}var V=j.prototype;return V.parse=function(L){this.$d=function(_){var S=_.date,M=_.utc;if(S===null)return new Date(NaN);if(F.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var A=S.match(T);if(A){var z=A[2]-1||0,B=(A[7]||"0").substring(0,3);return M?new Date(Date.UTC(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,B)):new Date(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,B)}}return new Date(S)}(L),this.init()},V.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(L,_){var S=R(L);return this.startOf(_)<=S&&S<=this.endOf(_)},V.isAfter=function(L,_){return R(L)<this.startOf(_)},V.isBefore=function(L,_){return this.endOf(_)<R(L)},V.$g=function(L,_,S){return F.u(L)?this[_]:this.set(S,L)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(L,_){var S=this,M=!!F.u(_)||_,A=F.p(L),z=function(Jt,De){var Mt=F.w(S.$u?Date.UTC(S.$y,De,Jt):new Date(S.$y,De,Jt),S);return M?Mt:Mt.endOf(u)},B=function(Jt,De){return F.w(S.toDate()[Jt].apply(S.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(De)),S)},q=this.$W,X=this.$M,ge=this.$D,Me="set"+(this.$u?"UTC":"");switch(A){case g:return M?z(1,0):z(31,11);case d:return M?z(1,X):z(0,X+1);case c:var We=this.$locale().weekStart||0,sr=(q<We?q+7:q)-We;return z(M?ge-sr:ge+(6-sr),X);case u:case v:return B(Me+"Hours",0);case a:return B(Me+"Minutes",1);case l:return B(Me+"Seconds",2);case o:return B(Me+"Milliseconds",3);default:return this.clone()}},V.endOf=function(L){return this.startOf(L,!1)},V.$set=function(L,_){var S,M=F.p(L),A="set"+(this.$u?"UTC":""),z=(S={},S[u]=A+"Date",S[v]=A+"Date",S[d]=A+"Month",S[g]=A+"FullYear",S[a]=A+"Hours",S[l]=A+"Minutes",S[o]=A+"Seconds",S[s]=A+"Milliseconds",S)[M],B=M===u?this.$D+(_-this.$W):_;if(M===d||M===g){var q=this.clone().set(v,1);q.$d[z](B),q.init(),this.$d=q.set(v,Math.min(this.$D,q.daysInMonth())).$d}else z&&this.$d[z](B);return this.init(),this},V.set=function(L,_){return this.clone().$set(L,_)},V.get=function(L){return this[F.p(L)]()},V.add=function(L,_){var S,M=this;L=Number(L);var A=F.p(_),z=function(X){var ge=R(M);return F.w(ge.date(ge.date()+Math.round(X*L)),M)};if(A===d)return this.set(d,this.$M+L);if(A===g)return this.set(g,this.$y+L);if(A===u)return z(1);if(A===c)return z(7);var B=(S={},S[l]=r,S[a]=i,S[o]=n,S)[A]||1,q=this.$d.getTime()+L*B;return F.w(q,this)},V.subtract=function(L,_){return this.add(-1*L,_)},V.format=function(L){var _=this,S=this.$locale();if(!this.isValid())return S.invalidDate||y;var M=L||"YYYY-MM-DDTHH:mm:ssZ",A=F.z(this),z=this.$H,B=this.$m,q=this.$M,X=S.weekdays,ge=S.months,Me=S.meridiem,We=function(De,Mt,or,vi){return De&&(De[Mt]||De(_,M))||or[Mt].slice(0,vi)},sr=function(De){return F.s(z%12||12,De,"0")},Jt=Me||function(De,Mt,or){var vi=De<12?"AM":"PM";return or?vi.toLowerCase():vi};return M.replace(p,function(De,Mt){return Mt||function(or){switch(or){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return q+1;case"MM":return F.s(q+1,2,"0");case"MMM":return We(S.monthsShort,q,ge,3);case"MMMM":return We(ge,q);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return We(S.weekdaysMin,_.$W,X,2);case"ddd":return We(S.weekdaysShort,_.$W,X,3);case"dddd":return X[_.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return sr(1);case"hh":return sr(2);case"a":return Jt(z,B,!0);case"A":return Jt(z,B,!1);case"m":return String(B);case"mm":return F.s(B,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return A}return null}(De)||A.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(L,_,S){var M,A=this,z=F.p(_),B=R(L),q=(B.utcOffset()-this.utcOffset())*r,X=this-B,ge=function(){return F.m(A,B)};switch(z){case g:M=ge()/12;break;case d:M=ge();break;case f:M=ge()/3;break;case c:M=(X-q)/6048e5;break;case u:M=(X-q)/864e5;break;case a:M=X/i;break;case l:M=X/r;break;case o:M=X/n;break;default:M=X}return S?M:F.a(M)},V.daysInMonth=function(){return this.endOf(d).$D},V.$locale=function(){return P[this.$L]},V.locale=function(L,_){if(!L)return this.$L;var S=this.clone(),M=I(L,_,!0);return M&&(S.$L=M),S},V.clone=function(){return F.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},j}(),ot=$e.prototype;return R.prototype=ot,[["$ms",s],["$s",o],["$m",l],["$H",a],["$W",u],["$M",d],["$y",g],["$D",v]].forEach(function(j){ot[j[1]]=function(V){return this.$g(V,j[0],j[1])}}),R.extend=function(j,V){return j.$i||(j(V,$e,R),j.$i=!0),R},R.locale=I,R.isDayjs=k,R.unix=function(j){return R(1e3*j)},R.en=P[x],R.Ls=P,R.p={},R})}(Ho)),Ho.exports}var Ox=ig();const sg=Vs(Ox);var og={exports:{}};(function(e,t){(function(n,r){e.exports=r(ig())})(ra,function(n){function r(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}var i=r(n);function s(f){return f%10<5&&f%10>1&&~~(f/10)%10!=1}function o(f,g,v){var y=f+" ";switch(v){case"m":return g?"minuta":"minutę";case"mm":return y+(s(f)?"minuty":"minut");case"h":return g?"godzina":"godzinę";case"hh":return y+(s(f)?"godziny":"godzin");case"MM":return y+(s(f)?"miesiące":"miesięcy");case"yy":return y+(s(f)?"lata":"lat")}}var l="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),u=/D MMMM/,c=function(f,g){return u.test(g)?l[f.month()]:a[f.month()]};c.s=a,c.f=l;var d={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:c,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(f){return f+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return i.default.locale(d,null,!0),d})})(og);var zx=og.exports;const Fx=Vs(zx);var na={},od=o0;na.createRoot=od.createRoot,na.hydrateRoot=od.hydrateRoot;const Ix=()=>{},Ii=(e,t)=>{const n=E.useRef(Ix);E.useEffect(()=>{n.current=t},[t]),E.useEffect(()=>{const r=i=>{const{action:s,data:o}=i.data;n.current&&s===e&&n.current(o)};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[e])},Bx=()=>{const[e,t]=E.useState([]),[n,r]=E.useState({}),[i,s]=E.useState(null),[o,l]=E.useState("center"),[a,u]=E.useState("");Ii("open",f=>{t(f.screws);const g=f.screws.find(v=>v.available);s((g==null?void 0:g.id)||null),l(f.location||"center"),r(f.locales||{})}),Ii("setHint",f=>{u(f)}),Ii("selectScrew",f=>{s(f)}),Ii("close",()=>{t([]),s(null)});const c=()=>{switch(o){case"top-left":return"items-start justify-start";case"top-right":return"items-start justify-end";case"bottom-left":return"items-end justify-start";case"bottom-right":return"items-end justify-end";case"middle-left":return"items-center justify-start";case"middle-right":return"items-center justify-end";case"center":return"items-center justify-center";default:return"items-center justify-center"}},d=()=>{switch(o){case"top-left":case"top-right":return{y:-20};case"bottom-left":case"bottom-right":return{y:20};case"middle-left":return{x:-20};case"middle-right":return{x:20};default:return{scale:.9,y:10}}};return N.jsxs(N.Fragment,{children:[N.jsx(Uc,{children:a&&N.jsx(id.div,{initial:{opacity:0,y:-10,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:-10,x:"-50%"},transition:{duration:.2},className:"fixed -translate-x-1/2 top-8 left-1/2",children:N.jsxs("div",{className:"relative px-5 py-2.5 bg-zinc-900/95 border border-blue-500/30 rounded-lg",children:[N.jsx("div",{className:"absolute inset-0 rounded-lg bg-gradient-to-r from-transparent via-blue-500/5 to-transparent"}),N.jsx("div",{className:"relative text-sm font-medium text-white",children:a.split(`
|
|
`).map((f,g)=>N.jsx("p",{className:`${g>0?"mt-1":""} text-center`,children:f},g))})]})})}),N.jsx("div",{className:`flex w-screen h-screen p-8 ${c()}`,children:N.jsx(Uc,{children:e.length>0&&N.jsxs(id.div,{initial:{opacity:0,...d()},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,...d()},transition:{duration:.3,ease:[.4,0,.2,1]},className:"flex flex-col gap-3 p-4 border shadow-2xl w-fit rounded-xl bg-zinc-900/95 border-zinc-800/50",children:[N.jsx("div",{className:"pb-2 border-b border-zinc-800/50",children:N.jsx("h2",{className:"text-sm font-semibold text-white",children:n.title||"Select screw"})}),N.jsx("div",{className:"flex flex-col gap-1.5",children:e.map(f=>N.jsxs("div",{className:`
|
|
relative px-3 py-2.5 rounded-lg border transition-all duration-200
|
|
${i===f.id?"bg-gradient-to-r border-transparent from-blue-600 to-blue-500 shadow-md shadow-blue-500/20":f.available?"bg-zinc-800/60 border-zinc-700/40":"bg-zinc-800/30 opacity-40 border-zinc-700/20"}
|
|
`,children:[i===f.id&&N.jsx("div",{className:"absolute w-0.5 h-6 -translate-y-1/2 bg-white rounded-full left-1 top-1/2"}),N.jsxs("div",{className:"flex items-center justify-between ml-2",children:[N.jsx("div",{className:"flex items-center gap-2",children:N.jsx("span",{className:`text-sm font-medium ${i===f.id?"text-white":"text-zinc-300"}`,children:f.label})}),N.jsx("div",{className:`w-2 h-2 rounded-full ${i===f.id?"bg-white":f.available?"bg-green-400":"bg-zinc-600"}`})]})]},f.id))}),N.jsxs("div",{className:"flex items-center justify-center gap-3 pt-2 mt-1 border-t border-zinc-800/50",children:[N.jsxs("div",{className:"flex items-center gap-1.5",children:[N.jsx("div",{className:"flex items-center justify-center w-5 h-5 text-xs font-semibold text-white bg-blue-600 rounded",children:"E"}),N.jsx("span",{className:"text-[11px] text-zinc-400",children:n.select||"Select"})]}),N.jsx("div",{className:"w-px h-4 bg-zinc-700/50"}),N.jsxs("div",{className:"flex items-center gap-1.5",children:[N.jsx("div",{className:"flex items-center justify-center w-5 h-5 text-xs font-semibold text-white bg-blue-600 rounded",children:"X"}),N.jsx("span",{className:"text-[11px] text-zinc-400",children:n.cancel||"Cancel"})]}),N.jsx("div",{className:"w-px h-4 bg-zinc-700/50"}),N.jsxs("div",{className:"flex items-center gap-1.5",children:[N.jsx("div",{className:"flex items-center justify-center w-5 h-5 bg-blue-600 rounded",children:N.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 15l5 5 5-5M7 9l5-5 5 5"})})}),N.jsx("span",{className:"text-[11px] text-zinc-400",children:n.change_selection||"Scroll"})]})]})]})})})]})};var lg={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){return function(n,r,i){n=n||{};var s=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,c,d,f){return s.fromToBase(u,c,d,f)}i.en.relativeTime=o,s.fromToBase=function(u,c,d,f,g){for(var v,y,T,p=d.$locale().relativeTime||o,h=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,w=0;w<m;w+=1){var x=h[w];x.d&&(v=f?i(u).diff(d,x.d,!0):d.diff(u,x.d,!0));var P=(n.rounding||Math.round)(Math.abs(v));if(T=v>0,P<=x.r||!x.r){P<=1&&w>0&&(x=h[w-1]);var D=p[x.l];g&&(P=g(""+P)),y=typeof D=="string"?D.replace("%d",P):D(P,c,x.l,T);break}}if(c)return y;var k=T?p.future:p.past;return typeof k=="function"?k(y):k.replace("%s",y)},s.to=function(u,c){return l(u,c,this,!0)},s.from=function(u,c){return l(u,c,this)};var a=function(u){return u.$u?i.utc():i()};s.toNow=function(u){return this.to(a(this),u)},s.fromNow=function(u){return this.from(a(this),u)}}})})(lg);var Ux=lg.exports;const Wx=Vs(Ux);sg.locale(Fx);sg.extend(Wx);na.createRoot(document.getElementById("root")).render(N.jsx(jx,{children:N.jsx(Bx,{})}));
|