ultyt/assets/index-a21ae36a.js

133 lines
429 KiB
JavaScript

function eb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Am={exports:{}},fa={},Om={exports:{}},ee={};/**
* @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 mi=Symbol.for("react.element"),tb=Symbol.for("react.portal"),nb=Symbol.for("react.fragment"),rb=Symbol.for("react.strict_mode"),ob=Symbol.for("react.profiler"),ib=Symbol.for("react.provider"),sb=Symbol.for("react.context"),ab=Symbol.for("react.forward_ref"),lb=Symbol.for("react.suspense"),ub=Symbol.for("react.memo"),cb=Symbol.for("react.lazy"),xf=Symbol.iterator;function db(e){return e===null||typeof e!="object"?null:(e=xf&&e[xf]||e["@@iterator"],typeof e=="function"?e:null)}var jm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_m=Object.assign,Dm={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Dm,this.updater=n||jm}Jr.prototype.isReactComponent={};Jr.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")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Im(){}Im.prototype=Jr.prototype;function Mc(e,t,n){this.props=e,this.context=t,this.refs=Dm,this.updater=n||jm}var Lc=Mc.prototype=new Im;Lc.constructor=Mc;_m(Lc,Jr.prototype);Lc.isPureReactComponent=!0;var wf=Array.isArray,Fm=Object.prototype.hasOwnProperty,Ac={current:null},Vm={key:!0,ref:!0,__self:!0,__source:!0};function Bm(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Fm.call(t,r)&&!Vm.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:mi,type:e,key:i,ref:s,props:o,_owner:Ac.current}}function fb(e,t){return{$$typeof:mi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oc(e){return typeof e=="object"&&e!==null&&e.$$typeof===mi}function pb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sf=/\/+/g;function Ya(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pb(""+e.key):t.toString(36)}function ts(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case mi:case tb:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Ya(s,0):r,wf(o)?(n="",e!=null&&(n=e.replace(Sf,"$&/")+"/"),ts(o,t,n,"",function(u){return u})):o!=null&&(Oc(o)&&(o=fb(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Sf,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",wf(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Ya(i,a);s+=ts(i,t,n,l,o)}else if(l=db(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Ya(i,a++),s+=ts(i,t,n,l,o);else if(i==="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 s}function Ri(e,t,n){if(e==null)return e;var r=[],o=0;return ts(e,r,"","",function(i){return t.call(n,i,o++)}),r}function hb(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 Xe={current:null},ns={transition:null},mb={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:ns,ReactCurrentOwner:Ac};ee.Children={map:Ri,forEach:function(e,t,n){Ri(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ri(e,function(){t++}),t},toArray:function(e){return Ri(e,function(t){return t})||[]},only:function(e){if(!Oc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=Jr;ee.Fragment=nb;ee.Profiler=ob;ee.PureComponent=Mc;ee.StrictMode=rb;ee.Suspense=lb;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mb;ee.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=_m({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Ac.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Fm.call(t,l)&&!Vm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:mi,type:e.type,key:o,ref:i,props:r,_owner:s}};ee.createContext=function(e){return e={$$typeof:sb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ib,_context:e},e.Consumer=e};ee.createElement=Bm;ee.createFactory=function(e){var t=Bm.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:ab,render:e}};ee.isValidElement=Oc;ee.lazy=function(e){return{$$typeof:cb,_payload:{_status:-1,_result:e},_init:hb}};ee.memo=function(e,t){return{$$typeof:ub,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=ns.transition;ns.transition={};try{e()}finally{ns.transition=t}};ee.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ee.useCallback=function(e,t){return Xe.current.useCallback(e,t)};ee.useContext=function(e){return Xe.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Xe.current.useEffect(e,t)};ee.useId=function(){return Xe.current.useId()};ee.useImperativeHandle=function(e,t,n){return Xe.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Xe.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Xe.current.useReducer(e,t,n)};ee.useRef=function(e){return Xe.current.useRef(e)};ee.useState=function(e){return Xe.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Xe.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Xe.current.useTransition()};ee.version="18.2.0";Om.exports=ee;var g=Om.exports;const ie=Lm(g),gb=eb({__proto__:null,default:ie},[g]);/**
* @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 vb=g,yb=Symbol.for("react.element"),bb=Symbol.for("react.fragment"),xb=Object.prototype.hasOwnProperty,wb=vb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sb={key:!0,ref:!0,__self:!0,__source:!0};function zm(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)xb.call(t,r)&&!Sb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:yb,type:e,key:i,ref:s,props:o,_owner:wb.current}}fa.Fragment=bb;fa.jsx=zm;fa.jsxs=zm;Am.exports=fa;var E=Am.exports,Yl={},Um={exports:{}},ct={},Wm={exports:{}},Hm={};/**
* @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(O,L){var I=O.length;O.push(L);e:for(;0<I;){var w=I-1>>>1,k=O[w];if(0<o(k,L))O[w]=L,O[I]=k,I=w;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var L=O[0],I=O.pop();if(I!==L){O[0]=I;e:for(var w=0,k=O.length,_=k>>>1;w<_;){var V=2*(w+1)-1,W=O[V],H=V+1,Q=O[H];if(0>o(W,I))H<k&&0>o(Q,W)?(O[w]=Q,O[H]=I,w=H):(O[w]=W,O[V]=I,w=V);else if(H<k&&0>o(Q,I))O[w]=Q,O[H]=I,w=H;else break e}}return L}function o(O,L){var I=O.sortIndex-L.sortIndex;return I!==0?I:O.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,m=!1,y=!1,P=typeof setTimeout=="function"?setTimeout:null,b=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 v(O){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=O)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function S(O){if(y=!1,v(O),!m)if(n(l)!==null)m=!0,Y(C);else{var L=n(u);L!==null&&oe(S,L.startTime-O)}}function C(O,L){m=!1,y&&(y=!1,b(x),x=-1),p=!0;var I=f;try{for(v(L),d=n(l);d!==null&&(!(d.expirationTime>L)||O&&!M());){var w=d.callback;if(typeof w=="function"){d.callback=null,f=d.priorityLevel;var k=w(d.expirationTime<=L);L=e.unstable_now(),typeof k=="function"?d.callback=k:d===n(l)&&r(l),v(L)}else r(l);d=n(l)}if(d!==null)var _=!0;else{var V=n(u);V!==null&&oe(S,V.startTime-L),_=!1}return _}finally{d=null,f=I,p=!1}}var R=!1,T=null,x=-1,N=5,F=-1;function M(){return!(e.unstable_now()-F<N)}function B(){if(T!==null){var O=e.unstable_now();F=O;var L=!0;try{L=T(!0,O)}finally{L?A():(R=!1,T=null)}}else R=!1}var A;if(typeof h=="function")A=function(){h(B)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,U=j.port2;j.port1.onmessage=B,A=function(){U.postMessage(null)}}else A=function(){P(B,0)};function Y(O){T=O,R||(R=!0,A())}function oe(O,L){x=P(function(){O(e.unstable_now())},L)}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(O){O.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,Y(C))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var I=f;f=L;try{return O()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,L){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=f;f=O;try{return L()}finally{f=I}},e.unstable_scheduleCallback=function(O,L,I){var w=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?w+I:w):I=w,O){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=I+k,O={id:c++,callback:L,priorityLevel:O,startTime:I,expirationTime:k,sortIndex:-1},I>w?(O.sortIndex=I,t(u,O),n(l)===null&&O===n(u)&&(y?(b(x),x=-1):y=!0,oe(S,I-w))):(O.sortIndex=k,t(l,O),m||p||(m=!0,Y(C))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var L=f;return function(){var I=f;f=L;try{return O.apply(this,arguments)}finally{f=I}}}})(Hm);Wm.exports=Hm;var Pb=Wm.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 Km=g,lt=Pb;function D(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 Gm=new Set,Ho={};function or(e,t){zr(e,t),zr(e+"Capture",t)}function zr(e,t){for(Ho[e]=t,e=0;e<t.length;e++)Gm.add(t[e])}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ql=Object.prototype.hasOwnProperty,Cb=/^[: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]*$/,Pf={},Cf={};function Eb(e){return ql.call(Cf,e)?!0:ql.call(Pf,e)?!1:Cb.test(e)?Cf[e]=!0:(Pf[e]=!0,!1)}function kb(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 Tb(e,t,n,r){if(t===null||typeof t>"u"||kb(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 Ye(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ye(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){De[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var jc=/[\-:]([a-z])/g;function _c(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(jc,_c);De[t]=new Ye(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(jc,_c);De[t]=new Ye(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(jc,_c);De[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dc(e,t,n,r){var o=De.hasOwnProperty(t)?De[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Tb(t,n,o,r)&&(n=null),r||o===null?Eb(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var rn=Km.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ni=Symbol.for("react.element"),yr=Symbol.for("react.portal"),br=Symbol.for("react.fragment"),Ic=Symbol.for("react.strict_mode"),Jl=Symbol.for("react.profiler"),Qm=Symbol.for("react.provider"),Xm=Symbol.for("react.context"),Fc=Symbol.for("react.forward_ref"),Zl=Symbol.for("react.suspense"),eu=Symbol.for("react.suspense_list"),Vc=Symbol.for("react.memo"),cn=Symbol.for("react.lazy"),Ym=Symbol.for("react.offscreen"),Ef=Symbol.iterator;function uo(e){return e===null||typeof e!="object"?null:(e=Ef&&e[Ef]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,qa;function Co(e){if(qa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qa=t&&t[1]||""}return`
`+qa+e}var Ja=!1;function Za(e,t){if(!e||Ja)return"";Ja=!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 o=u.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ja=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Co(e):""}function Rb(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=Za(e.type,!1),e;case 11:return e=Za(e.type.render,!1),e;case 1:return e=Za(e.type,!0),e;default:return""}}function tu(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 br:return"Fragment";case yr:return"Portal";case Jl:return"Profiler";case Ic:return"StrictMode";case Zl:return"Suspense";case eu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xm:return(e.displayName||"Context")+".Consumer";case Qm:return(e._context.displayName||"Context")+".Provider";case Fc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vc:return t=e.displayName||null,t!==null?t:tu(e.type)||"Memo";case cn:t=e._payload,e=e._init;try{return tu(e(t))}catch{}}return null}function Nb(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 tu(t);case 8:return t===Ic?"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 $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $b(e){var t=qm(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $i(e){e._valueTracker||(e._valueTracker=$b(e))}function Jm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ps(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 nu(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$n(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 Zm(e,t){t=t.checked,t!=null&&Dc(e,"checked",t,!1)}function ru(e,t){Zm(e,t);var n=$n(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")?ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&ou(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tf(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 ou(e,t,n){(t!=="number"||Ps(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Eo=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$n(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function iu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Rf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Eo(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$n(n)}}function eg(e,t){var n=$n(t.value),r=$n(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 Nf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tg(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 su(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mi,ng=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mi=Mi||document.createElement("div"),Mi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ko(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lo={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},Mb=["Webkit","ms","Moz","O"];Object.keys(Lo).forEach(function(e){Mb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lo[t]=Lo[e]})});function rg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lo.hasOwnProperty(e)&&Lo[e]?(""+t).trim():t+"px"}function og(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Lb=Se({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 au(e,t){if(t){if(Lb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function lu(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 uu=null;function Bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cu=null,Dr=null,Ir=null;function $f(e){if(e=yi(e)){if(typeof cu!="function")throw Error(D(280));var t=e.stateNode;t&&(t=va(t),cu(e.stateNode,e.type,t))}}function ig(e){Dr?Ir?Ir.push(e):Ir=[e]:Dr=e}function sg(){if(Dr){var e=Dr,t=Ir;if(Ir=Dr=null,$f(e),t)for(e=0;e<t.length;e++)$f(t[e])}}function ag(e,t){return e(t)}function lg(){}var el=!1;function ug(e,t,n){if(el)return e(t,n);el=!0;try{return ag(e,t,n)}finally{el=!1,(Dr!==null||Ir!==null)&&(lg(),sg())}}function Go(e,t){var n=e.stateNode;if(n===null)return null;var r=va(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(D(231,t,typeof n));return n}var du=!1;if(Jt)try{var co={};Object.defineProperty(co,"passive",{get:function(){du=!0}}),window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{du=!1}function Ab(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ao=!1,Cs=null,Es=!1,fu=null,Ob={onError:function(e){Ao=!0,Cs=e}};function jb(e,t,n,r,o,i,s,a,l){Ao=!1,Cs=null,Ab.apply(Ob,arguments)}function _b(e,t,n,r,o,i,s,a,l){if(jb.apply(this,arguments),Ao){if(Ao){var u=Cs;Ao=!1,Cs=null}else throw Error(D(198));Es||(Es=!0,fu=u)}}function ir(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 cg(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 Mf(e){if(ir(e)!==e)throw Error(D(188))}function Db(e){var t=e.alternate;if(!t){if(t=ir(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Mf(o),e;if(i===r)return Mf(o),t;i=i.sibling}throw Error(D(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function dg(e){return e=Db(e),e!==null?fg(e):null}function fg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fg(e);if(t!==null)return t;e=e.sibling}return null}var pg=lt.unstable_scheduleCallback,Lf=lt.unstable_cancelCallback,Ib=lt.unstable_shouldYield,Fb=lt.unstable_requestPaint,ke=lt.unstable_now,Vb=lt.unstable_getCurrentPriorityLevel,zc=lt.unstable_ImmediatePriority,hg=lt.unstable_UserBlockingPriority,ks=lt.unstable_NormalPriority,Bb=lt.unstable_LowPriority,mg=lt.unstable_IdlePriority,pa=null,Ot=null;function zb(e){if(Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(pa,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:Hb,Ub=Math.log,Wb=Math.LN2;function Hb(e){return e>>>=0,e===0?32:31-(Ub(e)/Wb|0)|0}var Li=64,Ai=4194304;function ko(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 Ts(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=ko(a):(i&=s,i!==0&&(r=ko(i)))}else s=n&~o,s!==0?r=ko(s):i!==0&&(r=ko(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-Et(t),o=1<<n,r|=e[n],t&=~o;return r}function Kb(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 Gb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Et(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=Kb(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function pu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gg(){var e=Li;return Li<<=1,!(Li&4194240)&&(Li=64),e}function tl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function Qb(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 o=31-Et(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Uc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var se=0;function vg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var yg,Wc,bg,xg,wg,hu=!1,Oi=[],bn=null,xn=null,wn=null,Qo=new Map,Xo=new Map,pn=[],Xb="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 Af(e,t){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":xn=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":Qo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xo.delete(t.pointerId)}}function fo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=yi(t),t!==null&&Wc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Yb(e,t,n,r,o){switch(t){case"focusin":return bn=fo(bn,e,t,n,r,o),!0;case"dragenter":return xn=fo(xn,e,t,n,r,o),!0;case"mouseover":return wn=fo(wn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Qo.set(i,fo(Qo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Xo.set(i,fo(Xo.get(i)||null,e,t,n,r,o)),!0}return!1}function Sg(e){var t=Un(e.target);if(t!==null){var n=ir(t);if(n!==null){if(t=n.tag,t===13){if(t=cg(n),t!==null){e.blockedOn=t,wg(e.priority,function(){bg(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 rs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);uu=r,n.target.dispatchEvent(r),uu=null}else return t=yi(n),t!==null&&Wc(t),e.blockedOn=n,!1;t.shift()}return!0}function Of(e,t,n){rs(e)&&n.delete(t)}function qb(){hu=!1,bn!==null&&rs(bn)&&(bn=null),xn!==null&&rs(xn)&&(xn=null),wn!==null&&rs(wn)&&(wn=null),Qo.forEach(Of),Xo.forEach(Of)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,hu||(hu=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,qb)))}function Yo(e){function t(o){return po(o,e)}if(0<Oi.length){po(Oi[0],e);for(var n=1;n<Oi.length;n++){var r=Oi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bn!==null&&po(bn,e),xn!==null&&po(xn,e),wn!==null&&po(wn,e),Qo.forEach(t),Xo.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)Sg(n),n.blockedOn===null&&pn.shift()}var Fr=rn.ReactCurrentBatchConfig,Rs=!0;function Jb(e,t,n,r){var o=se,i=Fr.transition;Fr.transition=null;try{se=1,Hc(e,t,n,r)}finally{se=o,Fr.transition=i}}function Zb(e,t,n,r){var o=se,i=Fr.transition;Fr.transition=null;try{se=4,Hc(e,t,n,r)}finally{se=o,Fr.transition=i}}function Hc(e,t,n,r){if(Rs){var o=mu(e,t,n,r);if(o===null)dl(e,t,r,Ns,n),Af(e,r);else if(Yb(o,e,t,n,r))r.stopPropagation();else if(Af(e,r),t&4&&-1<Xb.indexOf(e)){for(;o!==null;){var i=yi(o);if(i!==null&&yg(i),i=mu(e,t,n,r),i===null&&dl(e,t,r,Ns,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else dl(e,t,r,null,n)}}var Ns=null;function mu(e,t,n,r){if(Ns=null,e=Bc(r),e=Un(e),e!==null)if(t=ir(e),t===null)e=null;else if(n=t.tag,n===13){if(e=cg(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 Ns=e,null}function Pg(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(Vb()){case zc:return 1;case hg:return 4;case ks:case Bb:return 16;case mg:return 536870912;default:return 16}default:return 16}}var mn=null,Kc=null,os=null;function Cg(){if(os)return os;var e,t=Kc,n=t.length,r,o="value"in mn?mn.value:mn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return os=o.slice(e,1<r?1-r:void 0)}function is(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 ji(){return!0}function jf(){return!1}function dt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ji:jf,this.isPropagationStopped=jf,this}return Se(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=ji)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var Zr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gc=dt(Zr),vi=Se({},Zr,{view:0,detail:0}),ex=dt(vi),nl,rl,ho,ha=Se({},vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,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!==ho&&(ho&&e.type==="mousemove"?(nl=e.screenX-ho.screenX,rl=e.screenY-ho.screenY):rl=nl=0,ho=e),nl)},movementY:function(e){return"movementY"in e?e.movementY:rl}}),_f=dt(ha),tx=Se({},ha,{dataTransfer:0}),nx=dt(tx),rx=Se({},vi,{relatedTarget:0}),ol=dt(rx),ox=Se({},Zr,{animationName:0,elapsedTime:0,pseudoElement:0}),ix=dt(ox),sx=Se({},Zr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ax=dt(sx),lx=Se({},Zr,{data:0}),Df=dt(lx),ux={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cx={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"},dx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dx[e])?!!t[e]:!1}function Qc(){return fx}var px=Se({},vi,{key:function(e){if(e.key){var t=ux[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(e){return e.type==="keypress"?is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hx=dt(px),mx=Se({},ha,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=dt(mx),gx=Se({},vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),vx=dt(gx),yx=Se({},Zr,{propertyName:0,elapsedTime:0,pseudoElement:0}),bx=dt(yx),xx=Se({},ha,{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}),wx=dt(xx),Sx=[9,13,27,32],Xc=Jt&&"CompositionEvent"in window,Oo=null;Jt&&"documentMode"in document&&(Oo=document.documentMode);var Px=Jt&&"TextEvent"in window&&!Oo,Eg=Jt&&(!Xc||Oo&&8<Oo&&11>=Oo),Ff=String.fromCharCode(32),Vf=!1;function kg(e,t){switch(e){case"keyup":return Sx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function Cx(e,t){switch(e){case"compositionend":return Tg(t);case"keypress":return t.which!==32?null:(Vf=!0,Ff);case"textInput":return e=t.data,e===Ff&&Vf?null:e;default:return null}}function Ex(e,t){if(xr)return e==="compositionend"||!Xc&&kg(e,t)?(e=Cg(),os=Kc=mn=null,xr=!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 Eg&&t.locale!=="ko"?null:t.data;default:return null}}var kx={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 Bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kx[e.type]:t==="textarea"}function Rg(e,t,n,r){ig(r),t=$s(t,"onChange"),0<t.length&&(n=new Gc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jo=null,qo=null;function Tx(e){Fg(e,0)}function ma(e){var t=Pr(e);if(Jm(t))return e}function Rx(e,t){if(e==="change")return t}var Ng=!1;if(Jt){var il;if(Jt){var sl="oninput"in document;if(!sl){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),sl=typeof zf.oninput=="function"}il=sl}else il=!1;Ng=il&&(!document.documentMode||9<document.documentMode)}function Uf(){jo&&(jo.detachEvent("onpropertychange",$g),qo=jo=null)}function $g(e){if(e.propertyName==="value"&&ma(qo)){var t=[];Rg(t,qo,e,Bc(e)),ug(Tx,t)}}function Nx(e,t,n){e==="focusin"?(Uf(),jo=t,qo=n,jo.attachEvent("onpropertychange",$g)):e==="focusout"&&Uf()}function $x(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ma(qo)}function Mx(e,t){if(e==="click")return ma(t)}function Lx(e,t){if(e==="input"||e==="change")return ma(t)}function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Ax;function Jo(e,t){if(Tt(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 o=n[r];if(!ql.call(t,o)||!Tt(e[o],t[o]))return!1}return!0}function Wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hf(e,t){var n=Wf(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=Wf(n)}}function Mg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lg(){for(var e=window,t=Ps();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ps(e.document)}return t}function Yc(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 Ox(e){var t=Lg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mg(n.ownerDocument.documentElement,n)){if(r!==null&&Yc(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Hf(n,i);var s=Hf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 jx=Jt&&"documentMode"in document&&11>=document.documentMode,wr=null,gu=null,_o=null,vu=!1;function Kf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vu||wr==null||wr!==Ps(r)||(r=wr,"selectionStart"in r&&Yc(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}),_o&&Jo(_o,r)||(_o=r,r=$s(gu,"onSelect"),0<r.length&&(t=new Gc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wr)))}function _i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionend:_i("Transition","TransitionEnd")},al={},Ag={};Jt&&(Ag=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function ga(e){if(al[e])return al[e];if(!Sr[e])return e;var t=Sr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ag)return al[e]=t[n];return e}var Og=ga("animationend"),jg=ga("animationiteration"),_g=ga("animationstart"),Dg=ga("transitionend"),Ig=new Map,Gf="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 On(e,t){Ig.set(e,t),or(t,[e])}for(var ll=0;ll<Gf.length;ll++){var ul=Gf[ll],_x=ul.toLowerCase(),Dx=ul[0].toUpperCase()+ul.slice(1);On(_x,"on"+Dx)}On(Og,"onAnimationEnd");On(jg,"onAnimationIteration");On(_g,"onAnimationStart");On("dblclick","onDoubleClick");On("focusin","onFocus");On("focusout","onBlur");On(Dg,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);or("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));or("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));or("onBeforeInput",["compositionend","keypress","textInput","paste"]);or("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));or("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));or("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),Ix=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function Qf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,_b(r,t,void 0,e),e.currentTarget=null}function Fg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Qf(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Qf(o,a,u),i=l}}}if(Es)throw e=fu,Es=!1,fu=null,e}function fe(e,t){var n=t[Su];n===void 0&&(n=t[Su]=new Set);var r=e+"__bubble";n.has(r)||(Vg(t,e,2,!1),n.add(r))}function cl(e,t,n){var r=0;t&&(r|=4),Vg(n,e,r,t)}var Di="_reactListening"+Math.random().toString(36).slice(2);function Zo(e){if(!e[Di]){e[Di]=!0,Gm.forEach(function(n){n!=="selectionchange"&&(Ix.has(n)||cl(n,!1,e),cl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Di]||(t[Di]=!0,cl("selectionchange",!1,t))}}function Vg(e,t,n,r){switch(Pg(t)){case 1:var o=Jb;break;case 4:o=Zb;break;default:o=Hc}n=o.bind(null,t,n,e),o=void 0,!du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function dl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Un(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}ug(function(){var u=i,c=Bc(n),d=[];e:{var f=Ig.get(e);if(f!==void 0){var p=Gc,m=e;switch(e){case"keypress":if(is(n)===0)break e;case"keydown":case"keyup":p=hx;break;case"focusin":m="focus",p=ol;break;case"focusout":m="blur",p=ol;break;case"beforeblur":case"afterblur":p=ol;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":p=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=vx;break;case Og:case jg:case _g:p=ix;break;case Dg:p=bx;break;case"scroll":p=ex;break;case"wheel":p=wx;break;case"copy":case"cut":case"paste":p=ax;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=If}var y=(t&4)!==0,P=!y&&e==="scroll",b=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,v;h!==null;){v=h;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,b!==null&&(S=Go(h,b),S!=null&&y.push(ei(h,S,v)))),P)break;h=h.return}0<y.length&&(f=new p(f,m,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==uu&&(m=n.relatedTarget||n.fromElement)&&(Un(m)||m[Zt]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Un(m):null,m!==null&&(P=ir(m),m!==P||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=_f,S="onMouseLeave",b="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=If,S="onPointerLeave",b="onPointerEnter",h="pointer"),P=p==null?f:Pr(p),v=m==null?f:Pr(m),f=new y(S,h+"leave",p,n,c),f.target=P,f.relatedTarget=v,S=null,Un(c)===u&&(y=new y(b,h+"enter",m,n,c),y.target=v,y.relatedTarget=P,S=y),P=S,p&&m)t:{for(y=p,b=m,h=0,v=y;v;v=cr(v))h++;for(v=0,S=b;S;S=cr(S))v++;for(;0<h-v;)y=cr(y),h--;for(;0<v-h;)b=cr(b),v--;for(;h--;){if(y===b||b!==null&&y===b.alternate)break t;y=cr(y),b=cr(b)}y=null}else y=null;p!==null&&Xf(d,f,p,y,!1),m!==null&&P!==null&&Xf(d,P,m,y,!0)}}e:{if(f=u?Pr(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var C=Rx;else if(Bf(f))if(Ng)C=Lx;else{C=$x;var R=Nx}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Mx);if(C&&(C=C(e,u))){Rg(d,C,n,c);break e}R&&R(e,f,u),e==="focusout"&&(R=f._wrapperState)&&R.controlled&&f.type==="number"&&ou(f,"number",f.value)}switch(R=u?Pr(u):window,e){case"focusin":(Bf(R)||R.contentEditable==="true")&&(wr=R,gu=u,_o=null);break;case"focusout":_o=gu=wr=null;break;case"mousedown":vu=!0;break;case"contextmenu":case"mouseup":case"dragend":vu=!1,Kf(d,n,c);break;case"selectionchange":if(jx)break;case"keydown":case"keyup":Kf(d,n,c)}var T;if(Xc)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else xr?kg(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(Eg&&n.locale!=="ko"&&(xr||x!=="onCompositionStart"?x==="onCompositionEnd"&&xr&&(T=Cg()):(mn=c,Kc="value"in mn?mn.value:mn.textContent,xr=!0)),R=$s(u,x),0<R.length&&(x=new Df(x,e,null,n,c),d.push({event:x,listeners:R}),T?x.data=T:(T=Tg(n),T!==null&&(x.data=T)))),(T=Px?Cx(e,n):Ex(e,n))&&(u=$s(u,"onBeforeInput"),0<u.length&&(c=new Df("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=T))}Fg(d,t)})}function ei(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $s(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Go(e,n),i!=null&&r.unshift(ei(e,i,o)),i=Go(e,t),i!=null&&r.push(ei(e,i,o))),e=e.return}return r}function cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xf(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Go(n,i),l!=null&&s.unshift(ei(n,l,a))):o||(l=Go(n,i),l!=null&&s.push(ei(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Fx=/\r\n?/g,Vx=/\u0000|\uFFFD/g;function Yf(e){return(typeof e=="string"?e:""+e).replace(Fx,`
`).replace(Vx,"")}function Ii(e,t,n){if(t=Yf(t),Yf(e)!==t&&n)throw Error(D(425))}function Ms(){}var yu=null,bu=null;function xu(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 wu=typeof setTimeout=="function"?setTimeout:void 0,Bx=typeof clearTimeout=="function"?clearTimeout:void 0,qf=typeof Promise=="function"?Promise:void 0,zx=typeof queueMicrotask=="function"?queueMicrotask:typeof qf<"u"?function(e){return qf.resolve(null).then(e).catch(Ux)}:wu;function Ux(e){setTimeout(function(){throw e})}function fl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Yo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Yo(t)}function Sn(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 Jf(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 eo=Math.random().toString(36).slice(2),Mt="__reactFiber$"+eo,ti="__reactProps$"+eo,Zt="__reactContainer$"+eo,Su="__reactEvents$"+eo,Wx="__reactListeners$"+eo,Hx="__reactHandles$"+eo;function Un(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jf(e);e!==null;){if(n=e[Mt])return n;e=Jf(e)}return t}e=n,n=e.parentNode}return null}function yi(e){return e=e[Mt]||e[Zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function va(e){return e[ti]||null}var Pu=[],Cr=-1;function jn(e){return{current:e}}function pe(e){0>Cr||(e.current=Pu[Cr],Pu[Cr]=null,Cr--)}function ce(e,t){Cr++,Pu[Cr]=e.current,e.current=t}var Mn={},We=jn(Mn),Ze=jn(!1),qn=Mn;function Ur(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function et(e){return e=e.childContextTypes,e!=null}function Ls(){pe(Ze),pe(We)}function Zf(e,t,n){if(We.current!==Mn)throw Error(D(168));ce(We,t),ce(Ze,n)}function Bg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,Nb(e)||"Unknown",o));return Se({},n,r)}function As(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,qn=We.current,ce(We,e),ce(Ze,Ze.current),!0}function ep(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Bg(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,pe(Ze),pe(We),ce(We,e)):pe(Ze),ce(Ze,n)}var Ut=null,ya=!1,pl=!1;function zg(e){Ut===null?Ut=[e]:Ut.push(e)}function Kx(e){ya=!0,zg(e)}function _n(){if(!pl&&Ut!==null){pl=!0;var e=0,t=se;try{var n=Ut;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ut=null,ya=!1}catch(o){throw Ut!==null&&(Ut=Ut.slice(e+1)),pg(zc,_n),o}finally{se=t,pl=!1}}return null}var Er=[],kr=0,Os=null,js=0,pt=[],ht=0,Jn=null,Wt=1,Ht="";function Fn(e,t){Er[kr++]=js,Er[kr++]=Os,Os=e,js=t}function Ug(e,t,n){pt[ht++]=Wt,pt[ht++]=Ht,pt[ht++]=Jn,Jn=e;var r=Wt;e=Ht;var o=32-Et(r)-1;r&=~(1<<o),n+=1;var i=32-Et(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Wt=1<<32-Et(t)+o|n<<o|r,Ht=i+e}else Wt=1<<i|n<<o|r,Ht=e}function qc(e){e.return!==null&&(Fn(e,1),Ug(e,1,0))}function Jc(e){for(;e===Os;)Os=Er[--kr],Er[kr]=null,js=Er[--kr],Er[kr]=null;for(;e===Jn;)Jn=pt[--ht],pt[ht]=null,Ht=pt[--ht],pt[ht]=null,Wt=pt[--ht],pt[ht]=null}var at=null,st=null,me=!1,Ct=null;function Wg(e,t){var n=mt(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 tp(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,at=e,st=Sn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,st=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jn!==null?{id:Wt,overflow:Ht}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,st=null,!0):!1;default:return!1}}function Cu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eu(e){if(me){var t=st;if(t){var n=t;if(!tp(e,t)){if(Cu(e))throw Error(D(418));t=Sn(n.nextSibling);var r=at;t&&tp(e,t)?Wg(r,n):(e.flags=e.flags&-4097|2,me=!1,at=e)}}else{if(Cu(e))throw Error(D(418));e.flags=e.flags&-4097|2,me=!1,at=e}}}function np(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function Fi(e){if(e!==at)return!1;if(!me)return np(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xu(e.type,e.memoizedProps)),t&&(t=st)){if(Cu(e))throw Hg(),Error(D(418));for(;t;)Wg(e,t),t=Sn(t.nextSibling)}if(np(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){st=Sn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}st=null}}else st=at?Sn(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=st;e;)e=Sn(e.nextSibling)}function Wr(){st=at=null,me=!1}function Zc(e){Ct===null?Ct=[e]:Ct.push(e)}var Gx=rn.ReactCurrentBatchConfig;function St(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var _s=jn(null),Ds=null,Tr=null,ed=null;function td(){ed=Tr=Ds=null}function nd(e){var t=_s.current;pe(_s),e._currentValue=t}function ku(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 Vr(e,t){Ds=e,ed=Tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Je=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(ed!==e)if(e={context:e,memoizedValue:t,next:null},Tr===null){if(Ds===null)throw Error(D(308));Tr=e,Ds.dependencies={lanes:0,firstContext:e}}else Tr=Tr.next=e;return t}var Wn=null;function rd(e){Wn===null?Wn=[e]:Wn.push(e)}function Kg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,rd(t)):(n.next=o.next,o.next=n),t.interleaved=n,en(e,r)}function en(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 dn=!1;function od(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gg(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 Qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,en(e,n)}return o=r.interleaved,o===null?(t.next=t,rd(r)):(t.next=o.next,o.next=t),r.interleaved=t,en(e,n)}function ss(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,Uc(e,n)}}function rp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Is(e,t,n,r){var o=e.updateQueue;dn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(f=t,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=Se({},d,f);break e;case 2:dn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);er|=s,e.lanes=s,e.memoizedState=d}}function op(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(D(191,o));o.call(r)}}}var Qg=new Km.Component().refs;function Tu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ba={isMounted:function(e){return(e=e._reactInternals)?ir(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Qe(),o=En(e),i=Qt(r,o);i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,o),t!==null&&(kt(t,e,o,r),ss(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Qe(),o=En(e),i=Qt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,o),t!==null&&(kt(t,e,o,r),ss(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qe(),r=En(e),o=Qt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Pn(e,o,r),t!==null&&(kt(t,e,r,n),ss(t,e,r))}};function ip(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Jo(n,r)||!Jo(o,i):!0}function Xg(e,t,n){var r=!1,o=Mn,i=t.contextType;return typeof i=="object"&&i!==null?i=yt(i):(o=et(t)?qn:We.current,r=t.contextTypes,i=(r=r!=null)?Ur(e,o):Mn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ba,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function sp(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&&ba.enqueueReplaceState(t,t.state,null)}function Ru(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Qg,od(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=yt(i):(i=et(t)?qn:We.current,o.context=Ur(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Tu(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ba.enqueueReplaceState(o,o.state,null),Is(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function mo(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(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===Qg&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ap(e){var t=e._init;return t(e._payload)}function Yg(e){function t(b,h){if(e){var v=b.deletions;v===null?(b.deletions=[h],b.flags|=16):v.push(h)}}function n(b,h){if(!e)return null;for(;h!==null;)t(b,h),h=h.sibling;return null}function r(b,h){for(b=new Map;h!==null;)h.key!==null?b.set(h.key,h):b.set(h.index,h),h=h.sibling;return b}function o(b,h){return b=kn(b,h),b.index=0,b.sibling=null,b}function i(b,h,v){return b.index=v,e?(v=b.alternate,v!==null?(v=v.index,v<h?(b.flags|=2,h):v):(b.flags|=2,h)):(b.flags|=1048576,h)}function s(b){return e&&b.alternate===null&&(b.flags|=2),b}function a(b,h,v,S){return h===null||h.tag!==6?(h=xl(v,b.mode,S),h.return=b,h):(h=o(h,v),h.return=b,h)}function l(b,h,v,S){var C=v.type;return C===br?c(b,h,v.props.children,S,v.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cn&&ap(C)===h.type)?(S=o(h,v.props),S.ref=mo(b,h,v),S.return=b,S):(S=fs(v.type,v.key,v.props,null,b.mode,S),S.ref=mo(b,h,v),S.return=b,S)}function u(b,h,v,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==v.containerInfo||h.stateNode.implementation!==v.implementation?(h=wl(v,b.mode,S),h.return=b,h):(h=o(h,v.children||[]),h.return=b,h)}function c(b,h,v,S,C){return h===null||h.tag!==7?(h=Yn(v,b.mode,S,C),h.return=b,h):(h=o(h,v),h.return=b,h)}function d(b,h,v){if(typeof h=="string"&&h!==""||typeof h=="number")return h=xl(""+h,b.mode,v),h.return=b,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ni:return v=fs(h.type,h.key,h.props,null,b.mode,v),v.ref=mo(b,null,h),v.return=b,v;case yr:return h=wl(h,b.mode,v),h.return=b,h;case cn:var S=h._init;return d(b,S(h._payload),v)}if(Eo(h)||uo(h))return h=Yn(h,b.mode,v,null),h.return=b,h;Vi(b,h)}return null}function f(b,h,v,S){var C=h!==null?h.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return C!==null?null:a(b,h,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ni:return v.key===C?l(b,h,v,S):null;case yr:return v.key===C?u(b,h,v,S):null;case cn:return C=v._init,f(b,h,C(v._payload),S)}if(Eo(v)||uo(v))return C!==null?null:c(b,h,v,S,null);Vi(b,v)}return null}function p(b,h,v,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(v)||null,a(h,b,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ni:return b=b.get(S.key===null?v:S.key)||null,l(h,b,S,C);case yr:return b=b.get(S.key===null?v:S.key)||null,u(h,b,S,C);case cn:var R=S._init;return p(b,h,v,R(S._payload),C)}if(Eo(S)||uo(S))return b=b.get(v)||null,c(h,b,S,C,null);Vi(h,S)}return null}function m(b,h,v,S){for(var C=null,R=null,T=h,x=h=0,N=null;T!==null&&x<v.length;x++){T.index>x?(N=T,T=null):N=T.sibling;var F=f(b,T,v[x],S);if(F===null){T===null&&(T=N);break}e&&T&&F.alternate===null&&t(b,T),h=i(F,h,x),R===null?C=F:R.sibling=F,R=F,T=N}if(x===v.length)return n(b,T),me&&Fn(b,x),C;if(T===null){for(;x<v.length;x++)T=d(b,v[x],S),T!==null&&(h=i(T,h,x),R===null?C=T:R.sibling=T,R=T);return me&&Fn(b,x),C}for(T=r(b,T);x<v.length;x++)N=p(T,b,x,v[x],S),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?x:N.key),h=i(N,h,x),R===null?C=N:R.sibling=N,R=N);return e&&T.forEach(function(M){return t(b,M)}),me&&Fn(b,x),C}function y(b,h,v,S){var C=uo(v);if(typeof C!="function")throw Error(D(150));if(v=C.call(v),v==null)throw Error(D(151));for(var R=C=null,T=h,x=h=0,N=null,F=v.next();T!==null&&!F.done;x++,F=v.next()){T.index>x?(N=T,T=null):N=T.sibling;var M=f(b,T,F.value,S);if(M===null){T===null&&(T=N);break}e&&T&&M.alternate===null&&t(b,T),h=i(M,h,x),R===null?C=M:R.sibling=M,R=M,T=N}if(F.done)return n(b,T),me&&Fn(b,x),C;if(T===null){for(;!F.done;x++,F=v.next())F=d(b,F.value,S),F!==null&&(h=i(F,h,x),R===null?C=F:R.sibling=F,R=F);return me&&Fn(b,x),C}for(T=r(b,T);!F.done;x++,F=v.next())F=p(T,b,x,F.value,S),F!==null&&(e&&F.alternate!==null&&T.delete(F.key===null?x:F.key),h=i(F,h,x),R===null?C=F:R.sibling=F,R=F);return e&&T.forEach(function(B){return t(b,B)}),me&&Fn(b,x),C}function P(b,h,v,S){if(typeof v=="object"&&v!==null&&v.type===br&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ni:e:{for(var C=v.key,R=h;R!==null;){if(R.key===C){if(C=v.type,C===br){if(R.tag===7){n(b,R.sibling),h=o(R,v.props.children),h.return=b,b=h;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cn&&ap(C)===R.type){n(b,R.sibling),h=o(R,v.props),h.ref=mo(b,R,v),h.return=b,b=h;break e}n(b,R);break}else t(b,R);R=R.sibling}v.type===br?(h=Yn(v.props.children,b.mode,S,v.key),h.return=b,b=h):(S=fs(v.type,v.key,v.props,null,b.mode,S),S.ref=mo(b,h,v),S.return=b,b=S)}return s(b);case yr:e:{for(R=v.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(b,h.sibling),h=o(h,v.children||[]),h.return=b,b=h;break e}else{n(b,h);break}else t(b,h);h=h.sibling}h=wl(v,b.mode,S),h.return=b,b=h}return s(b);case cn:return R=v._init,P(b,h,R(v._payload),S)}if(Eo(v))return m(b,h,v,S);if(uo(v))return y(b,h,v,S);Vi(b,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(b,h.sibling),h=o(h,v),h.return=b,b=h):(n(b,h),h=xl(v,b.mode,S),h.return=b,b=h),s(b)):n(b,h)}return P}var Hr=Yg(!0),qg=Yg(!1),bi={},jt=jn(bi),ni=jn(bi),ri=jn(bi);function Hn(e){if(e===bi)throw Error(D(174));return e}function id(e,t){switch(ce(ri,t),ce(ni,e),ce(jt,bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:su(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=su(t,e)}pe(jt),ce(jt,t)}function Kr(){pe(jt),pe(ni),pe(ri)}function Jg(e){Hn(ri.current);var t=Hn(jt.current),n=su(t,e.type);t!==n&&(ce(ni,e),ce(jt,n))}function sd(e){ni.current===e&&(pe(jt),pe(ni))}var ye=jn(0);function Fs(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 hl=[];function ad(){for(var e=0;e<hl.length;e++)hl[e]._workInProgressVersionPrimary=null;hl.length=0}var as=rn.ReactCurrentDispatcher,ml=rn.ReactCurrentBatchConfig,Zn=0,xe=null,$e=null,Ae=null,Vs=!1,Do=!1,oi=0,Qx=0;function Fe(){throw Error(D(321))}function ld(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function ud(e,t,n,r,o,i){if(Zn=i,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,as.current=e===null||e.memoizedState===null?Jx:Zx,e=n(r,o),Do){i=0;do{if(Do=!1,oi=0,25<=i)throw Error(D(301));i+=1,Ae=$e=null,t.updateQueue=null,as.current=ew,e=n(r,o)}while(Do)}if(as.current=Bs,t=$e!==null&&$e.next!==null,Zn=0,Ae=$e=xe=null,Vs=!1,t)throw Error(D(300));return e}function cd(){var e=oi!==0;return oi=0,e}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?xe.memoizedState=Ae=e:Ae=Ae.next=e,Ae}function bt(){if($e===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Ae===null?xe.memoizedState:Ae.next;if(t!==null)Ae=t,$e=e;else{if(e===null)throw Error(D(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Ae===null?xe.memoizedState=Ae=e:Ae=Ae.next=e}return Ae}function ii(e,t){return typeof t=="function"?t(e):t}function gl(e){var t=bt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=$e,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((Zn&c)===c)l!==null&&(l=l.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};l===null?(a=l=d,s=r):l=l.next=d,xe.lanes|=c,er|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,Tt(r,t.memoizedState)||(Je=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,xe.lanes|=i,er|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vl(e){var t=bt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Tt(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Zg(){}function ev(e,t){var n=xe,r=bt(),o=t(),i=!Tt(r.memoizedState,o);if(i&&(r.memoizedState=o,Je=!0),r=r.queue,dd(rv.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ae!==null&&Ae.memoizedState.tag&1){if(n.flags|=2048,si(9,nv.bind(null,n,r,o,t),void 0,null),Oe===null)throw Error(D(349));Zn&30||tv(n,t,o)}return o}function tv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nv(e,t,n,r){t.value=n,t.getSnapshot=r,ov(t)&&iv(e)}function rv(e,t,n){return n(function(){ov(t)&&iv(e)})}function ov(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function iv(e){var t=en(e,1);t!==null&&kt(t,e,1,-1)}function lp(e){var t=Nt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:e},t.queue=e,e=e.dispatch=qx.bind(null,xe,e),[t.memoizedState,e]}function si(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.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 sv(){return bt().memoizedState}function ls(e,t,n,r){var o=Nt();xe.flags|=e,o.memoizedState=si(1|t,n,void 0,r===void 0?null:r)}function xa(e,t,n,r){var o=bt();r=r===void 0?null:r;var i=void 0;if($e!==null){var s=$e.memoizedState;if(i=s.destroy,r!==null&&ld(r,s.deps)){o.memoizedState=si(t,n,i,r);return}}xe.flags|=e,o.memoizedState=si(1|t,n,i,r)}function up(e,t){return ls(8390656,8,e,t)}function dd(e,t){return xa(2048,8,e,t)}function av(e,t){return xa(4,2,e,t)}function lv(e,t){return xa(4,4,e,t)}function uv(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 cv(e,t,n){return n=n!=null?n.concat([e]):null,xa(4,4,uv.bind(null,t,e),n)}function fd(){}function dv(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ld(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fv(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ld(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pv(e,t,n){return Zn&21?(Tt(n,t)||(n=gg(),xe.lanes|=n,er|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Je=!0),e.memoizedState=n)}function Xx(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{se=n,ml.transition=r}}function hv(){return bt().memoizedState}function Yx(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mv(e))gv(t,n);else if(n=Kg(e,t,n,r),n!==null){var o=Qe();kt(n,e,r,o),vv(n,t,r)}}function qx(e,t,n){var r=En(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mv(e))gv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Tt(a,s)){var l=t.interleaved;l===null?(o.next=o,rd(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Kg(e,t,o,r),n!==null&&(o=Qe(),kt(n,e,r,o),vv(n,t,r))}}function mv(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function gv(e,t){Do=Vs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uc(e,n)}}var Bs={readContext:yt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Jx={readContext:yt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:up,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ls(4194308,4,uv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return ls(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();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=Yx.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:lp,useDebugValue:fd,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=lp(!1),t=e[0];return e=Xx.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=Nt();if(me){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Oe===null)throw Error(D(349));Zn&30||tv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,up(rv.bind(null,r,i,e),[e]),r.flags|=2048,si(9,nv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nt(),t=Oe.identifierPrefix;if(me){var n=Ht,r=Wt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Qx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zx={readContext:yt,useCallback:dv,useContext:yt,useEffect:dd,useImperativeHandle:cv,useInsertionEffect:av,useLayoutEffect:lv,useMemo:fv,useReducer:gl,useRef:sv,useState:function(){return gl(ii)},useDebugValue:fd,useDeferredValue:function(e){var t=bt();return pv(t,$e.memoizedState,e)},useTransition:function(){var e=gl(ii)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Zg,useSyncExternalStore:ev,useId:hv,unstable_isNewReconciler:!1},ew={readContext:yt,useCallback:dv,useContext:yt,useEffect:dd,useImperativeHandle:cv,useInsertionEffect:av,useLayoutEffect:lv,useMemo:fv,useReducer:vl,useRef:sv,useState:function(){return vl(ii)},useDebugValue:fd,useDeferredValue:function(e){var t=bt();return $e===null?t.memoizedState=e:pv(t,$e.memoizedState,e)},useTransition:function(){var e=vl(ii)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Zg,useSyncExternalStore:ev,useId:hv,unstable_isNewReconciler:!1};function Gr(e,t){try{var n="",r=t;do n+=Rb(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function yl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Nu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tw=typeof WeakMap=="function"?WeakMap:Map;function yv(e,t,n){n=Qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,Fu=r),Nu(e,t)},n}function bv(e,t,n){n=Qt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Nu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Nu(e,t),typeof r!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function cp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=mw.bind(null,e,t,n),t.then(e,e))}function dp(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 fp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=Qt(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var nw=rn.ReactCurrentOwner,Je=!1;function Ge(e,t,n,r){t.child=e===null?qg(t,null,n,r):Hr(t,e.child,n,r)}function pp(e,t,n,r,o){n=n.render;var i=t.ref;return Vr(t,o),r=ud(e,t,n,r,i,o),n=cd(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tn(e,t,o)):(me&&n&&qc(t),t.flags|=1,Ge(e,t,r,o),t.child)}function hp(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!xd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,xv(e,t,i,r,o)):(e=fs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Jo,n(s,r)&&e.ref===t.ref)return tn(e,t,o)}return t.flags|=1,e=kn(i,r),e.ref=t.ref,e.return=t,t.child=e}function xv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Jo(i,r)&&e.ref===t.ref)if(Je=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Je=!0);else return t.lanes=e.lanes,tn(e,t,o)}return $u(e,t,n,r,o)}function wv(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(Nr,it),it|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(Nr,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ce(Nr,it),it|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ce(Nr,it),it|=r;return Ge(e,t,o,n),t.child}function Sv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $u(e,t,n,r,o){var i=et(n)?qn:We.current;return i=Ur(t,i),Vr(t,o),n=ud(e,t,n,r,i,o),r=cd(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tn(e,t,o)):(me&&r&&qc(t),t.flags|=1,Ge(e,t,n,o),t.child)}function mp(e,t,n,r,o){if(et(n)){var i=!0;As(t)}else i=!1;if(Vr(t,o),t.stateNode===null)us(e,t),Xg(t,n,r),Ru(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=yt(u):(u=et(n)?qn:We.current,u=Ur(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&sp(t,s,r,u),dn=!1;var f=t.memoizedState;s.state=f,Is(t,r,s,o),l=t.memoizedState,a!==r||f!==l||Ze.current||dn?(typeof c=="function"&&(Tu(t,n,c,r),l=t.memoizedState),(a=dn||ip(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Gg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=yt(l):(l=et(n)?qn:We.current,l=Ur(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&sp(t,s,r,l),dn=!1,f=t.memoizedState,s.state=f,Is(t,r,s,o);var m=t.memoizedState;a!==d||f!==m||Ze.current||dn?(typeof p=="function"&&(Tu(t,n,p,r),m=t.memoizedState),(u=dn||ip(t,n,u,r,f,m,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Mu(e,t,n,r,i,o)}function Mu(e,t,n,r,o,i){Sv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&ep(t,n,!1),tn(e,t,i);r=t.stateNode,nw.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Hr(t,e.child,null,i),t.child=Hr(t,null,a,i)):Ge(e,t,a,i),t.memoizedState=r.state,o&&ep(t,n,!0),t.child}function Pv(e){var t=e.stateNode;t.pendingContext?Zf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zf(e,t.context,!1),id(e,t.containerInfo)}function gp(e,t,n,r,o){return Wr(),Zc(o),t.flags|=256,Ge(e,t,n,r),t.child}var Lu={dehydrated:null,treeContext:null,retryLane:0};function Au(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cv(e,t,n){var r=t.pendingProps,o=ye.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ce(ye,o&1),e===null)return Eu(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Pa(s,r,0,null),e=Yn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Au(n),t.memoizedState=Lu,e):pd(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return rw(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=kn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=kn(a,i):(i=Yn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Au(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Lu,r}return i=e.child,e=i.sibling,r=kn(i,{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 pd(e,t){return t=Pa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bi(e,t,n,r){return r!==null&&Zc(r),Hr(t,e.child,null,n),e=pd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rw(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=yl(Error(D(422))),Bi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Pa({mode:"visible",children:r.children},o,0,null),i=Yn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Hr(t,e.child,null,s),t.child.memoizedState=Au(s),t.memoizedState=Lu,i);if(!(t.mode&1))return Bi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(D(419)),r=yl(i,r,void 0),Bi(e,t,s,r)}if(a=(s&e.childLanes)!==0,Je||a){if(r=Oe,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,en(e,o),kt(r,e,o,-1))}return bd(),r=yl(Error(D(421))),Bi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=gw.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,st=Sn(o.nextSibling),at=t,me=!0,Ct=null,e!==null&&(pt[ht++]=Wt,pt[ht++]=Ht,pt[ht++]=Jn,Wt=e.id,Ht=e.overflow,Jn=t),t=pd(t,r.children),t.flags|=4096,t)}function vp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ku(e.return,t,n)}function bl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ev(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ge(e,t,r.children,n),r=ye.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&&vp(e,n,t);else if(e.tag===19)vp(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(ce(ye,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Fs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Fs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}bl(t,!0,n,null,i);break;case"together":bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function us(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),er|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ow(e,t,n){switch(t.tag){case 3:Pv(t),Wr();break;case 5:Jg(t);break;case 1:et(t.type)&&As(t);break;case 4:id(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ce(_s,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?Cv(e,t,n):(ce(ye,ye.current&1),e=tn(e,t,n),e!==null?e.sibling:null);ce(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ev(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ce(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,wv(e,t,n)}return tn(e,t,n)}var kv,Ou,Tv,Rv;kv=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}};Ou=function(){};Tv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Hn(jt.current);var i=null;switch(n){case"input":o=nu(e,o),r=nu(e,r),i=[];break;case"select":o=Se({},o,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":o=iu(e,o),r=iu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ms)}au(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ho.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ho.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&fe("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Rv=function(e,t,n,r){n!==r&&(t.flags|=4)};function go(e,t){if(!me)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 Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iw(e,t,n){var r=t.pendingProps;switch(Jc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return et(t.type)&&Ls(),Ve(t),null;case 3:return r=t.stateNode,Kr(),pe(Ze),pe(We),ad(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(zu(Ct),Ct=null))),Ou(e,t),Ve(t),null;case 5:sd(t);var o=Hn(ri.current);if(n=t.type,e!==null&&t.stateNode!=null)Tv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ve(t),null}if(e=Hn(jt.current),Fi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mt]=t,r[ti]=i,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(o=0;o<To.length;o++)fe(To[o],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":kf(r,i),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},fe("invalid",r);break;case"textarea":Rf(r,i),fe("invalid",r)}au(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ii(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ii(r.textContent,a,e),o=["children",""+a]):Ho.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&fe("scroll",r)}switch(n){case"input":$i(r),Tf(r,i,!0);break;case"textarea":$i(r),Nf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ms)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tg(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mt]=t,e[ti]=r,kv(e,t,!1,!1),t.stateNode=e;e:{switch(s=lu(n,r),n){case"dialog":fe("cancel",e),fe("close",e),o=r;break;case"iframe":case"object":case"embed":fe("load",e),o=r;break;case"video":case"audio":for(o=0;o<To.length;o++)fe(To[o],e);o=r;break;case"source":fe("error",e),o=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),o=r;break;case"details":fe("toggle",e),o=r;break;case"input":kf(e,r),o=nu(e,r),fe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Se({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Rf(e,r),o=iu(e,r),fe("invalid",e);break;default:o=r}au(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?og(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ng(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ko(e,l):typeof l=="number"&&Ko(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ho.hasOwnProperty(i)?l!=null&&i==="onScroll"&&fe("scroll",e):l!=null&&Dc(e,i,l,s))}switch(n){case"input":$i(e),Tf(e,r,!1);break;case"textarea":$i(e),Nf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$n(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?_r(e,!!r.multiple,i,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ms)}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 Ve(t),null;case 6:if(e&&t.stateNode!=null)Rv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Hn(ri.current),Hn(jt.current),Fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mt]=t,(i=r.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:Ii(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ii(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mt]=t,t.stateNode=r}return Ve(t),null;case 13:if(pe(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&st!==null&&t.mode&1&&!(t.flags&128))Hg(),Wr(),t.flags|=98560,i=!1;else if(i=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[Mt]=t}else Wr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ve(t),i=!1}else Ct!==null&&(zu(Ct),Ct=null),i=!0;if(!i)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||ye.current&1?Me===0&&(Me=3):bd())),t.updateQueue!==null&&(t.flags|=4),Ve(t),null);case 4:return Kr(),Ou(e,t),e===null&&Zo(t.stateNode.containerInfo),Ve(t),null;case 10:return nd(t.type._context),Ve(t),null;case 17:return et(t.type)&&Ls(),Ve(t),null;case 19:if(pe(ye),i=t.memoizedState,i===null)return Ve(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)go(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Fs(e),s!==null){for(t.flags|=128,go(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ce(ye,ye.current&1|2),t.child}e=e.sibling}i.tail!==null&&ke()>Qr&&(t.flags|=128,r=!0,go(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!me)return Ve(t),null}else 2*ke()-i.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,go(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=ye.current,ce(ye,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return yd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?it&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function sw(e,t){switch(Jc(t),t.tag){case 1:return et(t.type)&&Ls(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kr(),pe(Ze),pe(We),ad(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sd(t),null;case 13:if(pe(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ye),null;case 4:return Kr(),null;case 10:return nd(t.type._context),null;case 22:case 23:return yd(),null;case 24:return null;default:return null}}var zi=!1,ze=!1,aw=typeof WeakSet=="function"?WeakSet:Set,z=null;function Rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function ju(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var yp=!1;function lw(e,t){if(yu=Rs,e=Lg(),Yc(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(bu={focusedElem:e,selectionRange:n},Rs=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,P=m.memoizedState,b=t.stateNode,h=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:St(t.type,y),P);b.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){Pe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=yp,yp=!1,m}function Io(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ju(t,n,i)}o=o.next}while(o!==r)}}function wa(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 _u(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 Nv(e){var t=e.alternate;t!==null&&(e.alternate=null,Nv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[ti],delete t[Su],delete t[Wx],delete t[Hx])),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 $v(e){return e.tag===5||e.tag===3||e.tag===4}function bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$v(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 Du(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=Ms));else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}function Iu(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(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}var je=null,Pt=!1;function sn(e,t,n){for(n=n.child;n!==null;)Mv(e,t,n),n=n.sibling}function Mv(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(pa,n)}catch{}switch(n.tag){case 5:ze||Rr(n,t);case 6:var r=je,o=Pt;je=null,sn(e,t,n),je=r,Pt=o,je!==null&&(Pt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Pt?(e=je,n=n.stateNode,e.nodeType===8?fl(e.parentNode,n):e.nodeType===1&&fl(e,n),Yo(e)):fl(je,n.stateNode));break;case 4:r=je,o=Pt,je=n.stateNode.containerInfo,Pt=!0,sn(e,t,n),je=r,Pt=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ju(n,t,s),o=o.next}while(o!==r)}sn(e,t,n);break;case 1:if(!ze&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,sn(e,t,n),ze=r):sn(e,t,n);break;default:sn(e,t,n)}}function xp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aw),t.forEach(function(r){var o=vw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:je=a.stateNode,Pt=!1;break e;case 3:je=a.stateNode.containerInfo,Pt=!0;break e;case 4:je=a.stateNode.containerInfo,Pt=!0;break e}a=a.return}if(je===null)throw Error(D(160));Mv(i,s,o),je=null,Pt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Pe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lv(t,e),t=t.sibling}function Lv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),Rt(e),r&4){try{Io(3,e,e.return),wa(3,e)}catch(y){Pe(e,e.return,y)}try{Io(5,e,e.return)}catch(y){Pe(e,e.return,y)}}break;case 1:xt(t,e),Rt(e),r&512&&n!==null&&Rr(n,n.return);break;case 5:if(xt(t,e),Rt(e),r&512&&n!==null&&Rr(n,n.return),e.flags&32){var o=e.stateNode;try{Ko(o,"")}catch(y){Pe(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Zm(o,i),lu(a,s);var u=lu(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?og(o,d):c==="dangerouslySetInnerHTML"?ng(o,d):c==="children"?Ko(o,d):Dc(o,c,d,u)}switch(a){case"input":ru(o,i);break;case"textarea":eg(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?_r(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?_r(o,!!i.multiple,i.defaultValue,!0):_r(o,!!i.multiple,i.multiple?[]:"",!1))}o[ti]=i}catch(y){Pe(e,e.return,y)}}break;case 6:if(xt(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error(D(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){Pe(e,e.return,y)}}break;case 3:if(xt(t,e),Rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yo(t.containerInfo)}catch(y){Pe(e,e.return,y)}break;case 4:xt(t,e),Rt(e);break;case 13:xt(t,e),Rt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(gd=ke())),r&4&&xp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(u=ze)||c,xt(t,e),ze=u):xt(t,e),Rt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(f=z,p=f.child,f.tag){case 0:case 11:case 14:case 15:Io(4,f,f.return);break;case 1:Rr(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Pe(r,n,y)}}break;case 5:Rr(f,f.return);break;case 22:if(f.memoizedState!==null){Sp(d);continue}}p!==null?(p.return=f,z=p):Sp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=rg("display",s))}catch(y){Pe(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){Pe(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:xt(t,e),Rt(e),r&4&&xp(e);break;case 21:break;default:xt(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($v(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ko(o,""),r.flags&=-33);var i=bp(e);Iu(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=bp(e);Du(e,a,s);break;default:throw Error(D(161))}}catch(l){Pe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uw(e,t,n){z=e,Av(e)}function Av(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var o=z,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||zi;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||ze;a=zi;var u=ze;if(zi=s,(ze=l)&&!u)for(z=o;z!==null;)s=z,l=s.child,s.tag===22&&s.memoizedState!==null?Pp(o):l!==null?(l.return=s,z=l):Pp(o);for(;i!==null;)z=i,Av(i),i=i.sibling;z=o,zi=a,ze=u}wp(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,z=i):wp(e)}}function wp(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||wa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&op(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}op(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.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&&Yo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}ze||t.flags&512&&_u(t)}catch(f){Pe(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function Sp(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Pp(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wa(4,t)}catch(l){Pe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Pe(t,o,l)}}var i=t.return;try{_u(t)}catch(l){Pe(t,i,l)}break;case 5:var s=t.return;try{_u(t)}catch(l){Pe(t,s,l)}}}catch(l){Pe(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var cw=Math.ceil,zs=rn.ReactCurrentDispatcher,hd=rn.ReactCurrentOwner,gt=rn.ReactCurrentBatchConfig,re=0,Oe=null,Ne=null,_e=0,it=0,Nr=jn(0),Me=0,ai=null,er=0,Sa=0,md=0,Fo=null,qe=null,gd=0,Qr=1/0,zt=null,Us=!1,Fu=null,Cn=null,Ui=!1,gn=null,Ws=0,Vo=0,Vu=null,cs=-1,ds=0;function Qe(){return re&6?ke():cs!==-1?cs:cs=ke()}function En(e){return e.mode&1?re&2&&_e!==0?_e&-_e:Gx.transition!==null?(ds===0&&(ds=gg()),ds):(e=se,e!==0||(e=window.event,e=e===void 0?16:Pg(e.type)),e):1}function kt(e,t,n,r){if(50<Vo)throw Vo=0,Vu=null,Error(D(185));gi(e,n,r),(!(re&2)||e!==Oe)&&(e===Oe&&(!(re&2)&&(Sa|=n),Me===4&&hn(e,_e)),tt(e,r),n===1&&re===0&&!(t.mode&1)&&(Qr=ke()+500,ya&&_n()))}function tt(e,t){var n=e.callbackNode;Gb(e,t);var r=Ts(e,e===Oe?_e:0);if(r===0)n!==null&&Lf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Lf(n),t===1)e.tag===0?Kx(Cp.bind(null,e)):zg(Cp.bind(null,e)),zx(function(){!(re&6)&&_n()}),n=null;else{switch(vg(r)){case 1:n=zc;break;case 4:n=hg;break;case 16:n=ks;break;case 536870912:n=mg;break;default:n=ks}n=Bv(n,Ov.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ov(e,t){if(cs=-1,ds=0,re&6)throw Error(D(327));var n=e.callbackNode;if(Br()&&e.callbackNode!==n)return null;var r=Ts(e,e===Oe?_e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hs(e,r);else{t=r;var o=re;re|=2;var i=_v();(Oe!==e||_e!==t)&&(zt=null,Qr=ke()+500,Xn(e,t));do try{pw();break}catch(a){jv(e,a)}while(1);td(),zs.current=i,re=o,Ne!==null?t=0:(Oe=null,_e=0,t=Me)}if(t!==0){if(t===2&&(o=pu(e),o!==0&&(r=o,t=Bu(e,o))),t===1)throw n=ai,Xn(e,0),hn(e,r),tt(e,ke()),n;if(t===6)hn(e,r);else{if(o=e.current.alternate,!(r&30)&&!dw(o)&&(t=Hs(e,r),t===2&&(i=pu(e),i!==0&&(r=i,t=Bu(e,i))),t===1))throw n=ai,Xn(e,0),hn(e,r),tt(e,ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Vn(e,qe,zt);break;case 3:if(hn(e,r),(r&130023424)===r&&(t=gd+500-ke(),10<t)){if(Ts(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Qe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=wu(Vn.bind(null,e,qe,zt),t);break}Vn(e,qe,zt);break;case 4:if(hn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Et(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cw(r/1960))-r,10<r){e.timeoutHandle=wu(Vn.bind(null,e,qe,zt),r);break}Vn(e,qe,zt);break;case 5:Vn(e,qe,zt);break;default:throw Error(D(329))}}}return tt(e,ke()),e.callbackNode===n?Ov.bind(null,e):null}function Bu(e,t){var n=Fo;return e.current.memoizedState.isDehydrated&&(Xn(e,t).flags|=256),e=Hs(e,t),e!==2&&(t=qe,qe=n,t!==null&&zu(t)),e}function zu(e){qe===null?qe=e:qe.push.apply(qe,e)}function dw(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!Tt(i(),o))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 hn(e,t){for(t&=~md,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Cp(e){if(re&6)throw Error(D(327));Br();var t=Ts(e,0);if(!(t&1))return tt(e,ke()),null;var n=Hs(e,t);if(e.tag!==0&&n===2){var r=pu(e);r!==0&&(t=r,n=Bu(e,r))}if(n===1)throw n=ai,Xn(e,0),hn(e,t),tt(e,ke()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e,qe,zt),tt(e,ke()),null}function vd(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Qr=ke()+500,ya&&_n())}}function tr(e){gn!==null&&gn.tag===0&&!(re&6)&&Br();var t=re;re|=1;var n=gt.transition,r=se;try{if(gt.transition=null,se=1,e)return e()}finally{se=r,gt.transition=n,re=t,!(re&6)&&_n()}}function yd(){it=Nr.current,pe(Nr)}function Xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Bx(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Jc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ls();break;case 3:Kr(),pe(Ze),pe(We),ad();break;case 5:sd(r);break;case 4:Kr();break;case 13:pe(ye);break;case 19:pe(ye);break;case 10:nd(r.type._context);break;case 22:case 23:yd()}n=n.return}if(Oe=e,Ne=e=kn(e.current,null),_e=it=t,Me=0,ai=null,md=Sa=er=0,qe=Fo=null,Wn!==null){for(t=0;t<Wn.length;t++)if(n=Wn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Wn=null}return e}function jv(e,t){do{var n=Ne;try{if(td(),as.current=Bs,Vs){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vs=!1}if(Zn=0,Ae=$e=xe=null,Do=!1,oi=0,hd.current=null,n===null||n.return===null){Me=1,ai=t,Ne=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=_e,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,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 p=dp(s);if(p!==null){p.flags&=-257,fp(p,s,a,i,t),p.mode&1&&cp(i,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){cp(i,u,t),bd();break e}l=Error(D(426))}}else if(me&&a.mode&1){var P=dp(s);if(P!==null){!(P.flags&65536)&&(P.flags|=256),fp(P,s,a,i,t),Zc(Gr(l,a));break e}}i=l=Gr(l,a),Me!==4&&(Me=2),Fo===null?Fo=[i]:Fo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=yv(i,l,t);rp(i,b);break e;case 1:a=l;var h=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Cn===null||!Cn.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=bv(i,a,t);rp(i,S);break e}}i=i.return}while(i!==null)}Iv(n)}catch(C){t=C,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(1)}function _v(){var e=zs.current;return zs.current=Bs,e===null?Bs:e}function bd(){(Me===0||Me===3||Me===2)&&(Me=4),Oe===null||!(er&268435455)&&!(Sa&268435455)||hn(Oe,_e)}function Hs(e,t){var n=re;re|=2;var r=_v();(Oe!==e||_e!==t)&&(zt=null,Xn(e,t));do try{fw();break}catch(o){jv(e,o)}while(1);if(td(),re=n,zs.current=r,Ne!==null)throw Error(D(261));return Oe=null,_e=0,Me}function fw(){for(;Ne!==null;)Dv(Ne)}function pw(){for(;Ne!==null&&!Ib();)Dv(Ne)}function Dv(e){var t=Vv(e.alternate,e,it);e.memoizedProps=e.pendingProps,t===null?Iv(e):Ne=t,hd.current=null}function Iv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=sw(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Ne=null;return}}else if(n=iw(n,t,it),n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Me===0&&(Me=5)}function Vn(e,t,n){var r=se,o=gt.transition;try{gt.transition=null,se=1,hw(e,t,n,r)}finally{gt.transition=o,se=r}return null}function hw(e,t,n,r){do Br();while(gn!==null);if(re&6)throw Error(D(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Qb(e,i),e===Oe&&(Ne=Oe=null,_e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ui||(Ui=!0,Bv(ks,function(){return Br(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=gt.transition,gt.transition=null;var s=se;se=1;var a=re;re|=4,hd.current=null,lw(e,n),Lv(n,e),Ox(bu),Rs=!!yu,bu=yu=null,e.current=n,uw(n),Fb(),re=a,se=s,gt.transition=i}else e.current=n;if(Ui&&(Ui=!1,gn=e,Ws=o),i=e.pendingLanes,i===0&&(Cn=null),zb(n.stateNode),tt(e,ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Us)throw Us=!1,e=Fu,Fu=null,e;return Ws&1&&e.tag!==0&&Br(),i=e.pendingLanes,i&1?e===Vu?Vo++:(Vo=0,Vu=e):Vo=0,_n(),null}function Br(){if(gn!==null){var e=vg(Ws),t=gt.transition,n=se;try{if(gt.transition=null,se=16>e?16:e,gn===null)var r=!1;else{if(e=gn,gn=null,Ws=0,re&6)throw Error(D(331));var o=re;for(re|=4,z=e.current;z!==null;){var i=z,s=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:Io(8,c,i)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var f=c.sibling,p=c.return;if(Nv(c),c===u){z=null;break}if(f!==null){f.return=p,z=f;break}z=p}}}var m=i.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var P=y.sibling;y.sibling=null,y=P}while(y!==null)}}z=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,z=s;else e:for(;z!==null;){if(i=z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Io(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,z=b;break e}z=i.return}}var h=e.current;for(z=h;z!==null;){s=z;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,z=v;else e:for(s=h;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:wa(9,a)}}catch(C){Pe(a,a.return,C)}if(a===s){z=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,z=S;break e}z=a.return}}if(re=o,_n(),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(pa,e)}catch{}r=!0}return r}finally{se=n,gt.transition=t}}return!1}function Ep(e,t,n){t=Gr(n,t),t=yv(e,t,1),e=Pn(e,t,1),t=Qe(),e!==null&&(gi(e,1,t),tt(e,t))}function Pe(e,t,n){if(e.tag===3)Ep(e,e,n);else for(;t!==null;){if(t.tag===3){Ep(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Cn===null||!Cn.has(r))){e=Gr(n,e),e=bv(t,e,1),t=Pn(t,e,1),e=Qe(),t!==null&&(gi(t,1,e),tt(t,e));break}}t=t.return}}function mw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Qe(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&(_e&n)===n&&(Me===4||Me===3&&(_e&130023424)===_e&&500>ke()-gd?Xn(e,0):md|=n),tt(e,t)}function Fv(e,t){t===0&&(e.mode&1?(t=Ai,Ai<<=1,!(Ai&130023424)&&(Ai=4194304)):t=1);var n=Qe();e=en(e,t),e!==null&&(gi(e,t,n),tt(e,n))}function gw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fv(e,n)}function vw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),Fv(e,n)}var Vv;Vv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)Je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Je=!1,ow(e,t,n);Je=!!(e.flags&131072)}else Je=!1,me&&t.flags&1048576&&Ug(t,js,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;us(e,t),e=t.pendingProps;var o=Ur(t,We.current);Vr(t,n),o=ud(null,t,r,e,o,n);var i=cd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(r)?(i=!0,As(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,od(t),o.updater=ba,t.stateNode=o,o._reactInternals=t,Ru(t,r,e,n),t=Mu(null,t,r,!0,i,n)):(t.tag=0,me&&i&&qc(t),Ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(us(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=bw(r),e=St(r,e),o){case 0:t=$u(null,t,r,e,n);break e;case 1:t=mp(null,t,r,e,n);break e;case 11:t=pp(null,t,r,e,n);break e;case 14:t=hp(null,t,r,St(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),$u(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),mp(e,t,r,o,n);case 3:e:{if(Pv(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Gg(e,t),Is(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Gr(Error(D(423)),t),t=gp(e,t,r,n,o);break e}else if(r!==o){o=Gr(Error(D(424)),t),t=gp(e,t,r,n,o);break e}else for(st=Sn(t.stateNode.containerInfo.firstChild),at=t,me=!0,Ct=null,n=qg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wr(),r===o){t=tn(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return Jg(t),e===null&&Eu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,xu(r,o)?s=null:i!==null&&xu(r,i)&&(t.flags|=32),Sv(e,t),Ge(e,t,s,n),t.child;case 6:return e===null&&Eu(t),null;case 13:return Cv(e,t,n);case 4:return id(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hr(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),pp(e,t,r,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ce(_s,r._currentValue),r._currentValue=s,i!==null)if(Tt(i.value,s)){if(i.children===o.children&&!Ze.current){t=tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Qt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ku(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(D(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ku(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vr(t,n),o=yt(o),r=r(o),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,o=St(r,t.pendingProps),o=St(r.type,o),hp(e,t,r,o,n);case 15:return xv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),us(e,t),t.tag=1,et(r)?(e=!0,As(t)):e=!1,Vr(t,n),Xg(t,r,o),Ru(t,r,o,n),Mu(null,t,r,!0,e,n);case 19:return Ev(e,t,n);case 22:return wv(e,t,n)}throw Error(D(156,t.tag))};function Bv(e,t){return pg(e,t)}function yw(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 mt(e,t,n,r){return new yw(e,t,n,r)}function xd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bw(e){if(typeof e=="function")return xd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fc)return 11;if(e===Vc)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=mt(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 fs(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")xd(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case br:return Yn(n.children,o,i,t);case Ic:s=8,o|=8;break;case Jl:return e=mt(12,n,t,o|2),e.elementType=Jl,e.lanes=i,e;case Zl:return e=mt(13,n,t,o),e.elementType=Zl,e.lanes=i,e;case eu:return e=mt(19,n,t,o),e.elementType=eu,e.lanes=i,e;case Ym:return Pa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qm:s=10;break e;case Xm:s=9;break e;case Fc:s=11;break e;case Vc:s=14;break e;case cn:s=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=mt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Yn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Pa(e,t,n,r){return e=mt(22,e,r,t),e.elementType=Ym,e.lanes=n,e.stateNode={isHidden:!1},e}function xl(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function wl(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xw(e,t,n,r,o){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=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wd(e,t,n,r,o,i,s,a,l){return e=new xw(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},od(i),e}function ww(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zv(e){if(!e)return Mn;e=e._reactInternals;e:{if(ir(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(et(n))return Bg(e,n,t)}return t}function Uv(e,t,n,r,o,i,s,a,l){return e=wd(n,r,!0,e,o,i,s,a,l),e.context=zv(null),n=e.current,r=Qe(),o=En(n),i=Qt(r,o),i.callback=t??null,Pn(n,i,o),e.current.lanes=o,gi(e,o,r),tt(e,r),e}function Ca(e,t,n,r){var o=t.current,i=Qe(),s=En(o);return n=zv(n),t.context===null?t.context=n:t.pendingContext=n,t=Qt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pn(o,t,s),e!==null&&(kt(e,o,s,i),ss(e,o,s)),s}function Ks(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 kp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sd(e,t){kp(e,t),(e=e.alternate)&&kp(e,t)}function Sw(){return null}var Wv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Pd(e){this._internalRoot=e}Ea.prototype.render=Pd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Ca(e,t,null,null)};Ea.prototype.unmount=Pd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;tr(function(){Ca(null,e,null,null)}),t[Zt]=null}};function Ea(e){this._internalRoot=e}Ea.prototype.unstable_scheduleHydration=function(e){if(e){var t=xg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pn.length&&t!==0&&t<pn[n].priority;n++);pn.splice(n,0,e),n===0&&Sg(e)}};function Cd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ka(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tp(){}function Pw(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Ks(s);i.call(u)}}var s=Uv(t,r,e,0,null,!1,!1,"",Tp);return e._reactRootContainer=s,e[Zt]=s.current,Zo(e.nodeType===8?e.parentNode:e),tr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Ks(l);a.call(u)}}var l=wd(e,0,!1,null,null,!1,!1,"",Tp);return e._reactRootContainer=l,e[Zt]=l.current,Zo(e.nodeType===8?e.parentNode:e),tr(function(){Ca(t,l,n,r)}),l}function Ta(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Ks(s);a.call(l)}}Ca(t,s,e,o)}else s=Pw(n,t,e,o,r);return Ks(s)}yg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ko(t.pendingLanes);n!==0&&(Uc(t,n|1),tt(t,ke()),!(re&6)&&(Qr=ke()+500,_n()))}break;case 13:tr(function(){var r=en(e,1);if(r!==null){var o=Qe();kt(r,e,1,o)}}),Sd(e,1)}};Wc=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=Qe();kt(t,e,134217728,n)}Sd(e,134217728)}};bg=function(e){if(e.tag===13){var t=En(e),n=en(e,t);if(n!==null){var r=Qe();kt(n,e,t,r)}Sd(e,t)}};xg=function(){return se};wg=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};cu=function(e,t,n){switch(t){case"input":if(ru(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 o=va(r);if(!o)throw Error(D(90));Jm(r),ru(r,o)}}}break;case"textarea":eg(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};ag=vd;lg=tr;var Cw={usingClientEntryPoint:!1,Events:[yi,Pr,va,ig,sg,vd]},vo={findFiberByHostInstance:Un,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Ew={bundleType:vo.bundleType,version:vo.version,rendererPackageName:vo.rendererPackageName,rendererConfig:vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dg(e),e===null?null:e.stateNode},findFiberByHostInstance:vo.findFiberByHostInstance||Sw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{pa=Wi.inject(Ew),Ot=Wi}catch{}}ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cw;ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cd(t))throw Error(D(200));return ww(e,t,null,n)};ct.createRoot=function(e,t){if(!Cd(e))throw Error(D(299));var n=!1,r="",o=Wv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=wd(e,1,!1,null,null,n,!1,r,o),e[Zt]=t.current,Zo(e.nodeType===8?e.parentNode:e),new Pd(t)};ct.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=dg(t),e=e===null?null:e.stateNode,e};ct.flushSync=function(e){return tr(e)};ct.hydrate=function(e,t,n){if(!ka(t))throw Error(D(200));return Ta(null,e,t,!0,n)};ct.hydrateRoot=function(e,t,n){if(!Cd(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Wv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Uv(t,null,e,1,n??null,o,!1,i,s),e[Zt]=t.current,Zo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ea(t)};ct.render=function(e,t,n){if(!ka(t))throw Error(D(200));return Ta(null,e,t,!1,n)};ct.unmountComponentAtNode=function(e){if(!ka(e))throw Error(D(40));return e._reactRootContainer?(tr(function(){Ta(null,null,e,!1,function(){e._reactRootContainer=null,e[Zt]=null})}),!0):!1};ct.unstable_batchedUpdates=vd;ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ka(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Ta(e,t,n,!1,r)};ct.version="18.2.0-next-9e3b772b8-20220608";function Hv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hv)}catch(e){console.error(e)}}Hv(),Um.exports=ct;var Kv=Um.exports;const kw=Lm(Kv);var Rp=Kv;Yl.createRoot=Rp.createRoot,Yl.hydrateRoot=Rp.hydrateRoot;var Ed={};function Gv(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tw}=Object.prototype,{getPrototypeOf:kd}=Object,Ra=(e=>t=>{const n=Tw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dt=e=>(e=e.toLowerCase(),t=>Ra(t)===e),Na=e=>t=>typeof t===e,{isArray:to}=Array,li=Na("undefined");function Rw(e){return e!==null&&!li(e)&&e.constructor!==null&&!li(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qv=Dt("ArrayBuffer");function Nw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qv(e.buffer),t}const $w=Na("string"),vt=Na("function"),Xv=Na("number"),$a=e=>e!==null&&typeof e=="object",Mw=e=>e===!0||e===!1,ps=e=>{if(Ra(e)!=="object")return!1;const t=kd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lw=Dt("Date"),Aw=Dt("File"),Ow=Dt("Blob"),jw=Dt("FileList"),_w=e=>$a(e)&&vt(e.pipe),Dw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=Ra(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},Iw=Dt("URLSearchParams"),Fw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),to(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function Yv(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const qv=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Xl)(),Jv=e=>!li(e)&&e!==qv;function Uu(){const{caseless:e}=Jv(this)&&this||{},t={},n=(r,o)=>{const i=e&&Yv(t,o)||o;ps(t[i])&&ps(r)?t[i]=Uu(t[i],r):ps(r)?t[i]=Uu({},r):to(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&xi(arguments[r],n);return t}const Vw=(e,t,n,{allOwnKeys:r}={})=>(xi(t,(o,i)=>{n&&vt(o)?e[i]=Gv(o,n):e[i]=o},{allOwnKeys:r}),e),Bw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Uw=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&kd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ww=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Hw=e=>{if(!e)return null;if(to(e))return e;let t=e.length;if(!Xv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Kw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kd(Uint8Array)),Gw=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Qw=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Xw=Dt("HTMLFormElement"),Yw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Np=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qw=Dt("RegExp"),Zv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};xi(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},Jw=e=>{Zv(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zw=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return to(e)?r(e):r(String(e).split(t)),n},eS=()=>{},tS=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Sl="abcdefghijklmnopqrstuvwxyz",$p="0123456789",ey={DIGIT:$p,ALPHA:Sl,ALPHA_DIGIT:Sl+Sl.toUpperCase()+$p},nS=(e=16,t=ey.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function rS(e){return!!(e&&vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const oS=e=>{const t=new Array(10),n=(r,o)=>{if($a(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=to(r)?[]:{};return xi(r,(s,a)=>{const l=n(s,o+1);!li(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},iS=Dt("AsyncFunction"),sS=e=>e&&($a(e)||vt(e))&&vt(e.then)&&vt(e.catch);var $={isArray:to,isArrayBuffer:Qv,isBuffer:Rw,isFormData:Dw,isArrayBufferView:Nw,isString:$w,isNumber:Xv,isBoolean:Mw,isObject:$a,isPlainObject:ps,isUndefined:li,isDate:Lw,isFile:Aw,isBlob:Ow,isRegExp:qw,isFunction:vt,isStream:_w,isURLSearchParams:Iw,isTypedArray:Kw,isFileList:jw,forEach:xi,merge:Uu,extend:Vw,trim:Fw,stripBOM:Bw,inherits:zw,toFlatObject:Uw,kindOf:Ra,kindOfTest:Dt,endsWith:Ww,toArray:Hw,forEachEntry:Gw,matchAll:Qw,isHTMLForm:Xw,hasOwnProperty:Np,hasOwnProp:Np,reduceDescriptors:Zv,freezeMethods:Jw,toObjectSet:Zw,toCamelCase:Yw,noop:eS,toFiniteNumber:tS,findKey:Yv,global:qv,isContextDefined:Jv,ALPHABET:ey,generateString:nS,isSpecCompliantForm:rS,toJSONObject:oS,isAsyncFn:iS,isThenable:sS};function ne(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}$.inherits(ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ty=ne.prototype,ny={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ny[e]={value:e}});Object.defineProperties(ne,ny);Object.defineProperty(ty,"isAxiosError",{value:!0});ne.from=(e,t,n,r,o,i)=>{const s=Object.create(ty);return $.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ne.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var aS=null;function Wu(e){return $.isPlainObject(e)||$.isArray(e)}function ry(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Mp(e,t,n){return e?e.concat(t).map(function(o,i){return o=ry(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function lS(e){return $.isArray(e)&&!e.some(Wu)}const uS=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Ma(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,P){return!$.isUndefined(P[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if($.isDate(m))return m.toISOString();if(!l&&$.isBlob(m))throw new ne("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(m)||$.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,P){let b=m;if(m&&!P&&typeof m=="object"){if($.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&lS(m)||($.isFileList(m)||$.endsWith(y,"[]"))&&(b=$.toArray(m)))return y=ry(y),b.forEach(function(v,S){!($.isUndefined(v)||v===null)&&t.append(s===!0?Mp([y],S,i):s===null?y:y+"[]",u(v))}),!1}return Wu(m)?!0:(t.append(Mp(P,y,i),u(m)),!1)}const d=[],f=Object.assign(uS,{defaultVisitor:c,convertValue:u,isVisitable:Wu});function p(m,y){if(!$.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),$.forEach(m,function(b,h){(!($.isUndefined(b)||b===null)&&o.call(t,b,$.isString(h)?h.trim():h,y,f))===!0&&p(b,y?y.concat(h):[h])}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Lp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Td(e,t){this._pairs=[],e&&Ma(e,this,t)}const oy=Td.prototype;oy.append=function(t,n){this._pairs.push([t,n])};oy.toString=function(t){const n=t?function(r){return t.call(this,r,Lp)}:Lp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function cS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iy(e,t,n){if(!t)return e;const r=n&&n.encode||cS,o=n&&n.serialize;let i;if(o?i=o(t,n):i=$.isURLSearchParams(t)?t.toString():new Td(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class dS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(r){r!==null&&t(r)})}}var Ap=dS,sy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fS=typeof URLSearchParams<"u"?URLSearchParams:Td,pS=typeof FormData<"u"?FormData:null,hS=typeof Blob<"u"?Blob:null;const mS=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gS=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var At={isBrowser:!0,classes:{URLSearchParams:fS,FormData:pS,Blob:hS},isStandardBrowserEnv:mS,isStandardBrowserWebWorkerEnv:gS,protocols:["http","https","file","blob","url","data"]};function vS(e,t){return Ma(e,new At.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return At.isNode&&$.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yS(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bS(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function ay(e){function t(n,r,o,i){let s=n[i++];const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&$.isArray(o)?o.length:s,l?($.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!$.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&$.isArray(o[s])&&(o[s]=bS(o[s])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(r,o)=>{t(yS(r),o,n,0)}),n}return null}const xS={"Content-Type":void 0};function wS(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const La={transitional:sy,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o&&o?JSON.stringify(ay(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vS(t,this.formSerializer).toString();if((a=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ma(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),wS(t)):t}],transformResponse:[function(t){const n=this.transitional||La.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&$.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?ne.from(a,ne.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:At.classes.FormData,Blob:At.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],function(t){La.headers[t]={}});$.forEach(["post","put","patch"],function(t){La.headers[t]=$.merge(xS)});var Rd=La;const SS=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var PS=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&SS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const Op=Symbol("internals");function yo(e){return e&&String(e).trim().toLowerCase()}function hs(e){return e===!1||e==null?e:$.isArray(e)?e.map(hs):String(e)}function CS(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ES=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pl(e,t,n,r,o){if($.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function kS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function TS(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Aa{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=yo(l);if(!c)throw new Error("header name must be a non-empty string");const d=$.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=hs(a))}const s=(a,l)=>$.forEach(a,(u,c)=>i(u,c,l));return $.isPlainObject(t)||t instanceof this.constructor?s(t,n):$.isString(t)&&(t=t.trim())&&!ES(t)?s(PS(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=yo(t),t){const r=$.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return CS(o);if($.isFunction(n))return n.call(this,o,r);if($.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=yo(t),t){const r=$.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Pl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=yo(s),s){const a=$.findKey(r,s);a&&(!n||Pl(r,r[a],a,n))&&(delete r[a],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Pl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return $.forEach(this,(o,i)=>{const s=$.findKey(r,i);if(s){n[s]=hs(o),delete n[i];return}const a=t?kS(i):String(i).trim();a!==i&&delete n[i],n[a]=hs(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&$.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Op]=this[Op]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=yo(s);r[a]||(TS(o,s),r[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}Aa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.freezeMethods(Aa.prototype);$.freezeMethods(Aa);var Xt=Aa;function Cl(e,t){const n=this||Rd,r=t||n,o=Xt.from(r.headers);let i=r.data;return $.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ly(e){return!!(e&&e.__CANCEL__)}function wi(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(wi,ne,{__CANCEL__:!0});function RS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var NS=At.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),$.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),$.isString(i)&&l.push("path="+i),$.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function $S(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function MS(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function uy(e,t){return e&&!$S(t)?MS(e,t):t}var LS=At.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=$.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function AS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function jp(e,t){let n=0;const r=OS(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),u=i<=s;n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const jS=typeof XMLHttpRequest<"u";var _S=jS&&function(e){return new Promise(function(n,r){let o=e.data;const i=Xt.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}$.isFormData(o)&&(At.isStandardBrowserEnv||At.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const c=uy(e.baseURL,e.url);u.open(e.method.toUpperCase(),iy(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=Xt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};RS(function(b){n(b),l()},function(b){r(b),l()},y),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new ne("Request aborted",ne.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||sy;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new ne(m,y.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,u)),u=null},At.isStandardBrowserEnv){const p=(e.withCredentials||LS(c))&&e.xsrfCookieName&&NS.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&$.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),$.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",jp(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",jp(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(r(!p||p.type?new wi(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=AS(c);if(f&&At.protocols.indexOf(f)===-1){r(new ne("Unsupported protocol "+f+":",ne.ERR_BAD_REQUEST,e));return}u.send(o||null)})};const ms={http:aS,xhr:_S};$.forEach(ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var DS={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=$.isString(n)?ms[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new ne(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error($.hasOwnProp(ms,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!$.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:ms};function El(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wi(null,e)}function _p(e){return El(e),e.headers=Xt.from(e.headers),e.data=Cl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),DS.getAdapter(e.adapter||Rd.adapter)(e).then(function(r){return El(e),r.data=Cl.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return ly(r)||(El(e),r&&r.response&&(r.response.data=Cl.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Dp=e=>e instanceof Xt?e.toJSON():e;function Xr(e,t){t=t||{};const n={};function r(u,c,d){return $.isPlainObject(u)&&$.isPlainObject(c)?$.merge.call({caseless:d},u,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function o(u,c,d){if($.isUndefined(c)){if(!$.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!$.isUndefined(c))return r(void 0,c)}function s(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(Dp(u),Dp(c),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);$.isUndefined(f)&&d!==a||(n[c]=f)}),n}const cy="1.4.0",Nd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ip={};Nd.transitional=function(t,n,r){function o(i,s){return"[Axios v"+cy+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new ne(o(s," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!Ip[s]&&(Ip[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function IS(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new ne("option "+i+" must be "+l,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+i,ne.ERR_BAD_OPTION)}}var Hu={assertOptions:IS,validators:Nd};const an=Hu.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Ap,response:new Ap}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Hu.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),o!=null&&($.isFunction(o)?n.paramsSerializer={serialize:o}:Hu.assertOptions(o,{encode:an.function,serialize:an.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=i&&$.merge(i.common,i[n.method]),s&&$.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,f;if(!l){const m=[_p.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d<f;)c=c.then(m[d++],m[d++]);return c}f=a.length;let p=n;for(d=0;d<f;){const m=a[d++],y=a[d++];try{p=m(p)}catch(P){y.call(this,P);break}}try{c=_p.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Xr(this.defaults,t);const n=uy(t.baseURL,t.url);return iy(n,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){Gs.prototype[t]=function(n,r){return this.request(Xr(r||{},{method:t,url:n,data:(r||{}).data}))}});$.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Xr(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Gs.prototype[t]=n(),Gs.prototype[t+"Form"]=n(!0)});var gs=Gs;class $d{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new wi(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new $d(function(o){t=o}),cancel:t}}}var FS=$d;function VS(e){return function(n){return e.apply(null,n)}}function BS(e){return $.isObject(e)&&e.isAxiosError===!0}const Ku={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ku).forEach(([e,t])=>{Ku[t]=e});var zS=Ku;function dy(e){const t=new gs(e),n=Gv(gs.prototype.request,t);return $.extend(n,gs.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return dy(Xr(e,o))},n}const Le=dy(Rd);Le.Axios=gs;Le.CanceledError=wi;Le.CancelToken=FS;Le.isCancel=ly;Le.VERSION=cy;Le.toFormData=Ma;Le.AxiosError=ne;Le.Cancel=Le.CanceledError;Le.all=function(t){return Promise.all(t)};Le.spread=VS;Le.isAxiosError=BS;Le.mergeConfig=Xr;Le.AxiosHeaders=Xt;Le.formToJSON=e=>ay($.isHTMLForm(e)?new FormData(e):e);Le.HttpStatusCode=zS;Le.default=Le;var US=Le,WS=Xl&&Xl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ed,"__esModule",{value:!0});var fy=Ed.PipedAPI=void 0;const HS=WS(US);class KS{constructor(t="https://pipedapi.kavin.rocks"){this.host=t}async _get(t){return(await HS.default.get(`${this.host}${t}`)).data}async trending(t){return await this._get(`/trending?region=${t}`)}async streams(t){return await this._get(`/streams/${t}`)}async comments(t,n){return n?await this._get(`/nextpage/comments/${t}?nextpage=${n}`):await this._get(`/comments/${t}`)}async channel(t,n){return n?await this._get(`/nextpage/channel/${t}?nextpage=${n}`):await this._get(`/channel/${t}`)}async channelTabs(t){return await this._get(`/channels/tabs/?data=${t}`)}async channelByName(t){return await this._get(`/c/${t}`)}async user(t){return await this._get(`/user/${t}`)}async playlist(t,n){return n?await this._get(`/nextpage/playlists/${t}?nextpage=${n}`):await this._get(`/playlists/${t}`)}async suggestions(t){return await this._get(`/suggestions?query=${t}`)}async sponsors(t,n=["sponsor"]){return await this._get(`/sponsors/${t}?category=${JSON.stringify(n)}`)}async search(t,n="all"){return await this._get(`/search?q=${t}&filter=${n}`)}}fy=Ed.PipedAPI=KS;/**
* @remix-run/router v1.7.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(this,arguments)}var vn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vn||(vn={}));const Fp="popstate";function GS(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:l=""}=sr(o.location.hash.substr(1));return Gu("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");a=u===-1?l:l.slice(0,u)}return a+"#"+(typeof i=="string"?i:Qs(i))}function r(o,i){Oa(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return XS(t,n,r,e)}function Te(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QS(){return Math.random().toString(36).substr(2,8)}function Vp(e,t){return{usr:e.state,key:e.key,idx:t}}function Gu(e,t,n,r){return n===void 0&&(n=null),ui({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sr(t):t,{state:n,key:t&&t.key||r||QS()})}function Qs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function sr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function XS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=vn.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(ui({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=vn.Pop;let P=c(),b=P==null?null:P-u;u=P,l&&l({action:a,location:y.location,delta:b})}function f(P,b){a=vn.Push;let h=Gu(y.location,P,b);n&&n(h,P),u=c()+1;let v=Vp(h,u),S=y.createHref(h);try{s.pushState(v,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}i&&l&&l({action:a,location:y.location,delta:1})}function p(P,b){a=vn.Replace;let h=Gu(y.location,P,b);n&&n(h,P),u=c();let v=Vp(h,u),S=y.createHref(h);s.replaceState(v,"",S),i&&l&&l({action:a,location:y.location,delta:0})}function m(P){let b=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof P=="string"?P:Qs(P);return Te(b,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,b)}let y={get action(){return a},get location(){return e(o,s)},listen(P){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Fp,d),l=P,()=>{o.removeEventListener(Fp,d),l=null}},createHref(P){return t(o,P)},createURL:m,encodeLocation(P){let b=m(P);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:p,go(P){return s.go(P)}};return y}var Bp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Bp||(Bp={}));function YS(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?sr(t):t,o=Md(r.pathname||"/",n);if(o==null)return null;let i=py(e);qS(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=sP(i[a],uP(o));return s}function py(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Te(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Tn([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),py(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:oP(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of hy(i.path))o(i,s,l)}),t}function hy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=hy(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function qS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JS=/^:\w+$/,ZS=3,eP=2,tP=1,nP=10,rP=-2,zp=e=>e==="*";function oP(e,t){let n=e.split("/"),r=n.length;return n.some(zp)&&(r+=rP),t&&(r+=eP),n.filter(o=>!zp(o)).reduce((o,i)=>o+(JS.test(i)?ZS:i===""?tP:nP),r)}function iP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=aP({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);let d=a.route;i.push({params:r,pathname:Tn([o,c.pathname]),pathnameBase:pP(Tn([o,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(o=Tn([o,c.pathnameBase]))}return i}function aP(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=lP(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,d)=>{if(c==="*"){let f=a[d]||"";s=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=cP(a[d]||"",c),u},{}),pathname:i,pathnameBase:s,pattern:e}}function lP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Oa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function uP(e){try{return decodeURI(e)}catch(t){return Oa(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cP(e,t){try{return decodeURIComponent(e)}catch(n){return Oa(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Md(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?sr(e):e;return{pathname:n?n.startsWith("/")?n:fP(n,t):t,search:hP(r),hash:mP(o)}}function fP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function kl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ld(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ad(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=sr(e):(o=ui({},e),Te(!o.pathname||!o.pathname.includes("?"),kl("?","pathname","search",o)),Te(!o.pathname||!o.pathname.includes("#"),kl("#","pathname","hash",o)),Te(!o.search||!o.search.includes("#"),kl("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(r||s==null)a=n;else{let d=t.length-1;if(s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=dP(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Tn=e=>e.join("/").replace(/\/\/+/g,"/"),pP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const my=["post","put","patch","delete"];new Set(my);const vP=["get",...my];new Set(vP);/**
* React Router v6.14.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(this,arguments)}const Od=g.createContext(null),yP=g.createContext(null),no=g.createContext(null),ja=g.createContext(null),on=g.createContext({outlet:null,matches:[],isDataRoute:!1}),gy=g.createContext(null);function bP(e,t){let{relative:n}=t===void 0?{}:t;ro()||Te(!1);let{basename:r,navigator:o}=g.useContext(no),{hash:i,pathname:s,search:a}=yy(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Tn([r,s])),o.createHref({pathname:l,search:a,hash:i})}function ro(){return g.useContext(ja)!=null}function oo(){return ro()||Te(!1),g.useContext(ja).location}function vy(e){g.useContext(no).static||g.useLayoutEffect(e)}function _a(){let{isDataRoute:e}=g.useContext(on);return e?AP():xP()}function xP(){ro()||Te(!1);let e=g.useContext(Od),{basename:t,navigator:n}=g.useContext(no),{matches:r}=g.useContext(on),{pathname:o}=oo(),i=JSON.stringify(Ld(r).map(l=>l.pathnameBase)),s=g.useRef(!1);return vy(()=>{s.current=!0}),g.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let c=Ad(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Tn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}function wP(){let{matches:e}=g.useContext(on),t=e[e.length-1];return t?t.params:{}}function yy(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=g.useContext(on),{pathname:o}=oo(),i=JSON.stringify(Ld(r).map(s=>s.pathnameBase));return g.useMemo(()=>Ad(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function SP(e,t){return PP(e,t)}function PP(e,t,n){ro()||Te(!1);let{navigator:r}=g.useContext(no),{matches:o}=g.useContext(on),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let l=oo(),u;if(t){var c;let y=typeof t=="string"?sr(t):t;a==="/"||(c=y.pathname)!=null&&c.startsWith(a)||Te(!1),u=y}else u=l;let d=u.pathname||"/",f=a==="/"?d:d.slice(a.length)||"/",p=YS(e,{pathname:f}),m=RP(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:Tn([a,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:Tn([a,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n);return t&&m?g.createElement(ja.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:vn.Pop}},m):m}function CP(){let e=LP(),t=gP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:o},n):null,i)}const EP=g.createElement(CP,null);class kP extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?g.createElement(on.Provider,{value:this.props.routeContext},g.createElement(gy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function TP(e){let{routeContext:t,match:n,children:r}=e,o=g.useContext(Od);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(on.Provider,{value:t},r)}function RP(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let a=i.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id]));a>=0||Te(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,l,u)=>{let c=l.route.id?s==null?void 0:s[l.route.id]:null,d=null;n&&(d=l.route.errorElement||EP);let f=t.concat(i.slice(0,u+1)),p=()=>{let m;return c?m=d:l.route.Component?m=g.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,g.createElement(TP,{match:l,routeContext:{outlet:a,matches:f,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?g.createElement(kP,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var Qu;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Qu||(Qu={}));var ci;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(ci||(ci={}));function NP(e){let t=g.useContext(Od);return t||Te(!1),t}function $P(e){let t=g.useContext(yP);return t||Te(!1),t}function MP(e){let t=g.useContext(on);return t||Te(!1),t}function by(e){let t=MP(),n=t.matches[t.matches.length-1];return n.route.id||Te(!1),n.route.id}function LP(){var e;let t=g.useContext(gy),n=$P(ci.UseRouteError),r=by(ci.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function AP(){let{router:e}=NP(Qu.UseNavigateStable),t=by(ci.UseNavigateStable),n=g.useRef(!1);return vy(()=>{n.current=!0}),g.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Xs({fromRouteId:t},i)))},[e,t])}function OP(e){let{to:t,replace:n,state:r,relative:o}=e;ro()||Te(!1);let{matches:i}=g.useContext(on),{pathname:s}=oo(),a=_a(),l=Ad(t,Ld(i).map(c=>c.pathnameBase),s,o==="path"),u=JSON.stringify(l);return g.useEffect(()=>a(JSON.parse(u),{replace:n,state:r,relative:o}),[a,u,o,n,r]),null}function vs(e){Te(!1)}function jP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=vn.Pop,navigator:i,static:s=!1}=e;ro()&&Te(!1);let a=t.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=sr(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:p="default"}=r,m=g.useMemo(()=>{let y=Md(u,a);return y==null?null:{location:{pathname:y,search:c,hash:d,state:f,key:p},navigationType:o}},[a,u,c,d,f,p,o]);return m==null?null:g.createElement(no.Provider,{value:l},g.createElement(ja.Provider,{children:n,value:m}))}function _P(e){let{children:t,location:n}=e;return SP(Xu(t),n)}var Up;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Up||(Up={}));new Promise(()=>{});function Xu(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,o)=>{if(!g.isValidElement(r))return;let i=[...t,o];if(r.type===g.Fragment){n.push.apply(n,Xu(r.props.children,i));return}r.type!==vs&&Te(!1),!r.props.index||!r.props.children||Te(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Xu(r.props.children,i)),n.push(s)}),n}/**
* React Router DOM v6.14.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Yu(){return Yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yu.apply(this,arguments)}function DP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function IP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function FP(e,t){return e.button===0&&(!t||t==="_self")&&!IP(e)}function qu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function VP(e,t){let n=qu(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const BP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],zP="startTransition",Wp=gb[zP];function UP(e){let{basename:t,children:n,future:r,window:o}=e,i=g.useRef();i.current==null&&(i.current=GS({window:o,v5Compat:!0}));let s=i.current,[a,l]=g.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=g.useCallback(d=>{u&&Wp?Wp(()=>l(d)):l(d)},[l,u]);return g.useLayoutEffect(()=>s.listen(c),[s,c]),g.createElement(jP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s})}const WP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ro=g.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,d=DP(t,BP),{basename:f}=g.useContext(no),p,m=!1;if(typeof u=="string"&&HP.test(u)&&(p=u,WP))try{let h=new URL(window.location.href),v=u.startsWith("//")?new URL(h.protocol+u):new URL(u),S=Md(v.pathname,f);v.origin===h.origin&&S!=null?u=S+v.search+v.hash:m=!0}catch{}let y=bP(u,{relative:o}),P=KP(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o});function b(h){r&&r(h),h.defaultPrevented||P(h)}return g.createElement("a",Yu({},d,{href:p||y,onClick:m||i?r:b,ref:n,target:l}))});var Hp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Hp||(Hp={}));var Kp;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kp||(Kp={}));function KP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=_a(),l=oo(),u=yy(e,{relative:s});return g.useCallback(c=>{if(FP(c,n)){c.preventDefault();let d=r!==void 0?r:Qs(l)===Qs(u);a(e,{replace:d,state:o,preventScrollReset:i,relative:s})}},[l,a,u,r,o,n,e,i,s])}function GP(e){let t=g.useRef(qu(e)),n=g.useRef(!1),r=oo(),o=g.useMemo(()=>VP(r.search,n.current?null:t.current),[r.search]),i=_a(),s=g.useCallback((a,l)=>{const u=qu(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,l)},[i,o]);return[o,s]}const jd={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},_d=ie.createContext(jd);let QP=!!(typeof window<"u"&&window.document&&window.document.createElement),Tl=new WeakMap;function XP(e=!1){let t=g.useContext(_d),n=g.useRef(null);if(n.current===null&&!e){var r,o;let i=(r=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(o=r.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(i){let s=Tl.get(i);s==null?Tl.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Tl.delete(i))}n.current=++t.current}return n.current}function YP(e){let t=g.useContext(_d);t===jd&&!QP&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=XP(!!e);return e||`react-aria${t.prefix}-${n}`}function qP(e){let t=ie.useId(),[n]=g.useState(Dd()),r=n?"react-aria":`react-aria${jd.prefix}`;return e||`${r}-${t}`}const JP=typeof ie.useId=="function"?qP:YP;function ZP(){return!1}function eC(){return!0}function tC(e){return()=>{}}function Dd(){return typeof ie.useSyncExternalStore=="function"?ie.useSyncExternalStore(tC,ZP,eC):g.useContext(_d).isSSR}function Id(e,t,n){let[r,o]=g.useState(e||t),i=g.useRef(e!==void 0),s=e!==void 0;g.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=g.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(a,f)||n(f,...p)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...m)=>{let y=u(s?a:p,...m);return d(y,...c),s?p:y})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function xy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=xy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function nC(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=xy(e))&&(r&&(r+=" "),r+=t);return r}const nt=typeof window<"u"?ie.useLayoutEffect:()=>{};function rC(e){let[t,n]=g.useState(e),r=g.useRef(t),o=g.useRef(null),i=g.useCallback(()=>{let a=o.current.next();for(;!a.done&&r.current===a.value;)a=o.current.next();if(a.done){o.current=null;return}n(a.value),r.current=a.value},[n,r,o]);nt(()=>{o.current&&i()});let s=g.useCallback(a=>{o.current=a(r.current),i()},[i,o,r]);return[t,s]}let Ys=new Map;function qs(e){let[t,n]=g.useState(e),r=g.useRef(null),o=JP(t),i=g.useCallback(s=>{r.current=s},[]);return Ys.set(o,i),nt(()=>{let s=o;return()=>{Ys.delete(s)}},[o]),g.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function oC(e,t){if(e===t)return e;let n=Ys.get(e);if(n)return n(t),t;let r=Ys.get(t);return r?(r(e),e):t}function Gp(e=[]){let t=qs(),[n,r]=rC(t),o=g.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return nt(o,[t,o,...e]),n}function Si(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function we(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Si(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=nC(i,s):o==="id"&&i&&s?t.id=oC(i,s):t[o]=s!==void 0?s:i}}return t}const iC=new Set(["id"]),sC=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),aC=/^(data-.*)$/;function Fd(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(iC.has(i)||n&&sC.has(i)||r!=null&&r.has(i)||aC.test(i))&&(o[i]=e[i]);return o}function $r(e){if(lC())e.focus({preventScroll:!0});else{let t=uC(e);e.focus(),cC(t)}}let Hi=null;function lC(){if(Hi==null){Hi=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Hi=!0,!0}})}catch{}}return Hi}function uC(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;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 cC(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let mr=new Map,Ju=new Set;function Qp(){if(typeof window>"u")return;let e=n=>{let r=mr.get(n.target);r||(r=new Set,mr.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=mr.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),mr.delete(n.target)),mr.size===0)){for(let o of Ju)o();Ju.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qp():document.addEventListener("DOMContentLoaded",Qp));function wy(e){requestAnimationFrame(()=>{mr.size===0?e():Ju.add(e)})}function dC(){let e=g.useRef(new Map),t=g.useCallback((o,i,s,a)=>{let l=a!=null&&a.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,s,a)},[]),n=g.useCallback((o,i,s,a)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=g.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return g.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function fC(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=qs(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function pC(){return typeof window.ResizeObserver<"u"}function hC(e){const{ref:t,onResize:n}=e;g.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(pC()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function Sy(e,t){nt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function mC(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Vd(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 Py(){return Vd(/^Mac/i)}function gC(){return Vd(/^iPhone/i)}function vC(){return Vd(/^iPad/i)||Py()&&navigator.maxTouchPoints>1}function Cy(){return gC()||vC()}function yC(){return mC(/Android/i)}function gr(e){const t=g.useRef(null);return nt(()=>{t.current=e},[e]),g.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function Zu(e){return e.mozInputSource===0&&e.isTrusted?!0:yC()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function bC(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const xC=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),wC=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ey(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return xC.has(n)}let t=e.split("-")[0];return wC.has(t)}function ky(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Ey(e)?"rtl":"ltr"}}let ec=ky(),No=new Set;function Xp(){ec=ky();for(let e of No)e(ec)}function SC(){let e=Dd(),[t,n]=g.useState(ec);return g.useEffect(()=>(No.size===0&&window.addEventListener("languagechange",Xp),No.add(n),()=>{No.delete(n),No.size===0&&window.removeEventListener("languagechange",Xp)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const PC=ie.createContext(null);function CC(e){let{locale:t,children:n}=e,r=SC(),o=t?{locale:t,direction:Ey(t)?"rtl":"ltr"}:r;return ie.createElement(PC.Provider,{value:o},n)}var Lt=function(){return Lt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Lt.apply(this,arguments)};function Ty(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function EC(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}let Mr="default",tc="",ys=new WeakMap;function Yp(e){Cy()?(Mr==="default"&&(tc=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Mr="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(ys.set(e,e.style.userSelect),e.style.userSelect="none")}function Ki(e){if(Cy()){if(Mr!=="disabled")return;Mr="restoring",setTimeout(()=>{wy(()=>{Mr==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=tc||""),tc="",Mr="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ys.has(e)){let t=ys.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ys.delete(e)}}const Ry=ie.createContext(null);Ry.displayName="PressResponderContext";function kC(e){let t=g.useContext(Ry);if(t){let{register:n,...r}=t;e=we(r,e),n()}return Sy(t,e.ref),e}function Bd(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=kC(e),[p,m]=g.useState(!1),y=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:P,removeAllGlobalListeners:b}=dC(),h=gr((x,N)=>{let F=y.current;s||F.didFirePressStart||(r&&r({type:"pressstart",pointerType:N,target:x.currentTarget,shiftKey:x.shiftKey,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey}),n&&n(!0),F.didFirePressStart=!0,m(!0))}),v=gr((x,N,F=!0)=>{let M=y.current;M.didFirePressStart&&(M.ignoreClickAfterPress=!0,M.didFirePressStart=!1,o&&o({type:"pressend",pointerType:N,target:x.currentTarget,shiftKey:x.shiftKey,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey}),n&&n(!1),m(!1),t&&F&&!s&&t({type:"press",pointerType:N,target:x.currentTarget,shiftKey:x.shiftKey,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey}))}),S=gr((x,N)=>{s||i&&i({type:"pressup",pointerType:N,target:x.currentTarget,shiftKey:x.shiftKey,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey})}),C=gr(x=>{let N=y.current;N.isPressed&&(N.isOverTarget&&v(Bt(N.target,x),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,b(),c||Ki(N.target))}),R=gr(x=>{u&&C(x)}),T=g.useMemo(()=>{let x=y.current,N={onKeyDown(M){Rl(M.nativeEvent,M.currentTarget)&&M.currentTarget.contains(M.target)?(Jp(M.target,M.key)&&M.preventDefault(),M.stopPropagation(),!x.isPressed&&!M.repeat&&(x.target=M.currentTarget,x.isPressed=!0,h(M,"keyboard"),P(document,"keyup",F,!1))):M.key==="Enter"&&nc(M.currentTarget)&&M.stopPropagation()},onKeyUp(M){Rl(M.nativeEvent,M.currentTarget)&&!M.repeat&&M.currentTarget.contains(M.target)&&S(Bt(x.target,M),"keyboard")},onClick(M){M&&!M.currentTarget.contains(M.target)||M&&M.button===0&&(M.stopPropagation(),s&&M.preventDefault(),!x.ignoreClickAfterPress&&!x.ignoreEmulatedMouseEvents&&(x.pointerType==="virtual"||Zu(M.nativeEvent))&&(!s&&!l&&$r(M.currentTarget),h(M,"virtual"),S(M,"virtual"),v(M,"virtual")),x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1)}},F=M=>{if(x.isPressed&&Rl(M,x.target)){Jp(M.target,M.key)&&M.preventDefault(),M.stopPropagation(),x.isPressed=!1;let B=M.target;v(Bt(x.target,M),"keyboard",x.target.contains(B)),b(),x.target instanceof HTMLElement&&x.target.contains(B)&&(nc(x.target)||x.target.getAttribute("role")==="link")&&x.target.click()}};if(typeof PointerEvent<"u"){N.onPointerDown=j=>{if(!(j.button!==0||!j.currentTarget.contains(j.target))){if(bC(j.nativeEvent)){x.pointerType="virtual";return}Nl(j.currentTarget)&&j.preventDefault(),x.pointerType=j.pointerType,j.stopPropagation(),x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=j.pointerId,x.target=j.currentTarget,!s&&!l&&$r(j.currentTarget),c||Yp(x.target),h(j,x.pointerType),P(document,"pointermove",M,!1),P(document,"pointerup",B,!1),P(document,"pointercancel",A,!1))}},N.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Nl(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},N.onPointerUp=j=>{!j.currentTarget.contains(j.target)||x.pointerType==="virtual"||j.button===0&&dr(j,j.currentTarget)&&S(j,x.pointerType||j.pointerType)};let M=j=>{j.pointerId===x.activePointerId&&(dr(j,x.target)?x.isOverTarget||(x.isOverTarget=!0,h(Bt(x.target,j),x.pointerType)):x.isOverTarget&&(x.isOverTarget=!1,v(Bt(x.target,j),x.pointerType,!1),R(j)))},B=j=>{j.pointerId===x.activePointerId&&x.isPressed&&j.button===0&&(dr(j,x.target)?v(Bt(x.target,j),x.pointerType):x.isOverTarget&&v(Bt(x.target,j),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,b(),c||Ki(x.target))},A=j=>{C(j)};N.onDragStart=j=>{j.currentTarget.contains(j.target)&&C(j)}}else{N.onMouseDown=A=>{A.button!==0||!A.currentTarget.contains(A.target)||(Nl(A.currentTarget)&&A.preventDefault(),A.stopPropagation(),!x.ignoreEmulatedMouseEvents&&(x.isPressed=!0,x.isOverTarget=!0,x.target=A.currentTarget,x.pointerType=Zu(A.nativeEvent)?"virtual":"mouse",!s&&!l&&$r(A.currentTarget),h(A,x.pointerType),P(document,"mouseup",M,!1)))},N.onMouseEnter=A=>{A.currentTarget.contains(A.target)&&(A.stopPropagation(),x.isPressed&&!x.ignoreEmulatedMouseEvents&&(x.isOverTarget=!0,h(A,x.pointerType)))},N.onMouseLeave=A=>{A.currentTarget.contains(A.target)&&(A.stopPropagation(),x.isPressed&&!x.ignoreEmulatedMouseEvents&&(x.isOverTarget=!1,v(A,x.pointerType,!1),R(A)))},N.onMouseUp=A=>{A.currentTarget.contains(A.target)&&!x.ignoreEmulatedMouseEvents&&A.button===0&&S(A,x.pointerType)};let M=A=>{if(A.button===0){if(x.isPressed=!1,b(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}dr(A,x.target)?v(Bt(x.target,A),x.pointerType):x.isOverTarget&&v(Bt(x.target,A),x.pointerType,!1),x.isOverTarget=!1}};N.onTouchStart=A=>{if(!A.currentTarget.contains(A.target))return;A.stopPropagation();let j=TC(A.nativeEvent);j&&(x.activePointerId=j.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=A.currentTarget,x.pointerType="touch",!s&&!l&&$r(A.currentTarget),c||Yp(x.target),h(A,x.pointerType),P(window,"scroll",B,!0))},N.onTouchMove=A=>{if(!A.currentTarget.contains(A.target)||(A.stopPropagation(),!x.isPressed))return;let j=qp(A.nativeEvent,x.activePointerId);j&&dr(j,A.currentTarget)?x.isOverTarget||(x.isOverTarget=!0,h(A,x.pointerType)):x.isOverTarget&&(x.isOverTarget=!1,v(A,x.pointerType,!1),R(A))},N.onTouchEnd=A=>{if(!A.currentTarget.contains(A.target)||(A.stopPropagation(),!x.isPressed))return;let j=qp(A.nativeEvent,x.activePointerId);j&&dr(j,A.currentTarget)?(S(A,x.pointerType),v(A,x.pointerType)):x.isOverTarget&&v(A,x.pointerType,!1),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,c||Ki(x.target),b()},N.onTouchCancel=A=>{A.currentTarget.contains(A.target)&&(A.stopPropagation(),x.isPressed&&C(A))};let B=A=>{x.isPressed&&A.target.contains(x.target)&&C({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};N.onDragStart=A=>{A.currentTarget.contains(A.target)&&C(A)}}return N},[P,s,l,b,c,C,R,v,h,S]);return g.useEffect(()=>()=>{c||Ki(y.current.target)},[c]),{isPressed:a||p,pressProps:we(f,T)}}function nc(e){return e.tagName==="A"&&e.hasAttribute("href")}function Rl(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof HTMLInputElement&&!Ny(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!nc(o)||i==="button"&&n!=="Enter")&&!(i==="link"&&n!=="Enter")}function TC(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function qp(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Bt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function RC(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function NC(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function dr(e,t){let n=t.getBoundingClientRect(),r=RC(e);return NC(n,r)}function Nl(e){return!(e instanceof HTMLElement)||!e.draggable}function Jp(e,t){return e instanceof HTMLInputElement?!Ny(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const $C=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ny(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":$C.has(e.type)}class MC{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function $y(e){let t=g.useRef({isFocused:!1,observer:null});nt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gr(r=>{e==null||e(r)});return g.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new MC("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function My(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=g.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=$y(i),a=g.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let io=null,rc=new Set,Zp=!1,nr=!1,oc=!1;const LC={Tab:!0,Escape:!0};function zd(e,t){for(let n of rc)n(e,t)}function AC(e){return!(e.metaKey||!Py()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function eh(e){nr=!0,AC(e)&&(io="keyboard",zd("keyboard",e))}function fr(e){io="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(nr=!0,zd("pointer",e))}function OC(e){Zu(e)&&(nr=!0,io="virtual")}function jC(e){e.target===window||e.target===document||(!nr&&!oc&&(io="virtual",zd("virtual",e)),nr=!1,oc=!1)}function _C(){nr=!1,oc=!0}function ic(){if(typeof window>"u"||Zp)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){nr=!0,e.apply(this,arguments)},document.addEventListener("keydown",eh,!0),document.addEventListener("keyup",eh,!0),document.addEventListener("click",OC,!0),window.addEventListener("focus",jC,!0),window.addEventListener("blur",_C,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",fr,!0),document.addEventListener("pointermove",fr,!0),document.addEventListener("pointerup",fr,!0)):(document.addEventListener("mousedown",fr,!0),document.addEventListener("mousemove",fr,!0),document.addEventListener("mouseup",fr,!0)),Zp=!0}typeof document<"u"&&(document.readyState!=="loading"?ic():document.addEventListener("DOMContentLoaded",ic));function Ly(){return io!=="pointer"}function DC(){return io}function IC(e,t,n){return!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!LC[n.key])}function FC(e,t,n){ic(),g.useEffect(()=>{let r=(o,i)=>{IC(n==null?void 0:n.isTextInput,o,i)&&e(Ly())};return rc.add(r),()=>{rc.delete(r)}},t)}function VC(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=g.useRef({isFocusWithin:!1}),s=g.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=$y(s),l=g.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Js=!1,$l=0;function sc(){Js=!0,setTimeout(()=>{Js=!1},50)}function th(e){e.pointerType==="touch"&&sc()}function BC(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",th):document.addEventListener("touchend",sc),$l++,()=>{$l--,!($l>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",th):document.removeEventListener("touchend",sc))}}function Pi(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=g.useState(!1),a=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(BC,[]);let{hoverProps:l,triggerHoverEnd:u}=g.useMemo(()=>{let c=(p,m)=>{if(a.pointerType=m,o||m==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let y=p.currentTarget;a.target=y,t&&t({type:"hoverstart",target:y,pointerType:m}),n&&n(!0),s(!0)},d=(p,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let y=p.currentTarget;r&&r({type:"hoverend",target:y,pointerType:m}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{Js&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!Js&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,a]);return g.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function nh(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function zC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:nh(e.onKeyDown),onKeyUp:nh(e.onKeyUp)}}}function Ay(e){if(DC()==="virtual"){let t=document.activeElement;wy(()=>{document.activeElement===t&&document.contains(e)&&$r(e)})}else $r(e)}function UC(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function WC(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Oy(e,t){return e.nodeName!=="#comment"&&UC(e)&&WC(e,t)&&(!e.parentElement||Oy(e.parentElement,e))}const rh=ie.createContext(null);let he=null;function HC(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=g.useRef(),s=g.useRef(),a=g.useRef([]),{parentNode:l}=g.useContext(rh)||{},u=g.useMemo(()=>new lc({scopeRef:a}),[a]);nt(()=>{let f=l||Ee.root;if(Ee.getTreeNode(f.scopeRef)&&he&&!Zs(he,f.scopeRef)){let p=Ee.getTreeNode(he);p&&(f=p)}f.addChild(u),Ee.addNode(u)},[u,l]),nt(()=>{let f=Ee.getTreeNode(a);f.contain=n},[n]),nt(()=>{let f=i.current.nextSibling,p=[];for(;f&&f!==s.current;)p.push(f),f=f.nextSibling;a.current=p},[t]),qC(a,r,n),XC(a,n),ZC(a,r,n),YC(a,o),g.useEffect(()=>{if(a){let f=document.activeElement,p=null;if(Ue(f,a.current)){for(let m of Ee.traverse())Ue(f,m.scopeRef.current)&&(p=m);p===Ee.getTreeNode(a)&&(he=p.scopeRef)}return()=>{let m=Ee.getTreeNode(a).parent.scopeRef;(a===he||Zs(a,he))&&(!m||Ee.getTreeNode(m))&&(he=m),Ee.removeTreeNode(a)}}},[a]);let c=g.useMemo(()=>KC(a),[]),d=g.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return ie.createElement(rh.Provider,{value:d},ie.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,ie.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function KC(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[0].previousElementSibling,u=yn(Kn(n),{tabbable:o,accept:s},n);u.currentNode=Ue(a,n)?a:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&Kt(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,u=yn(Kn(n),{tabbable:o,accept:s},n);u.currentNode=Ue(a,n)?a:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&Kt(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=yn(Kn(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let s=i.nextNode();return s&&Kt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=yn(Kn(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let s=i.previousNode();return s&&Kt(s,!0),s}}}const Ud=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],GC=Ud.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ud.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const QC=Ud.join(':not([hidden]):not([tabindex="-1"]),');function Kn(e){return e[0].parentElement}function $o(e){let t=Ee.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function XC(e,t){let n=g.useRef(),r=g.useRef(null);nt(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=null);return}let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!$o(e))return;let u=document.activeElement,c=e.current;if(!Ue(u,c))return;let d=yn(Kn(c),{tabbable:!0},c);d.currentNode=u;let f=l.shiftKey?d.previousNode():d.nextNode();f||(d.currentNode=l.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,f=l.shiftKey?d.previousNode():d.nextNode()),l.preventDefault(),f&&Kt(f,!0)},s=l=>{(!he||Zs(he,e))&&Ue(l.target,e.current)?(he=e,n.current=l.target):$o(e)&&!ac(l.target,e)?n.current?n.current.focus():he&&ea(he.current):$o(e)&&(n.current=l.target)},a=l=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{$o(e)&&!ac(document.activeElement,e)&&(he=e,document.body.contains(l.target)?(n.current=l.target,n.current.focus()):he&&ea(he.current))})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",s,!1),o.forEach(l=>l.addEventListener("focusin",s,!1)),o.forEach(l=>l.addEventListener("focusout",a,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",s,!1),o.forEach(l=>l.removeEventListener("focusin",s,!1)),o.forEach(l=>l.removeEventListener("focusout",a,!1))}},[e,t]),nt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function jy(e){return ac(e)}function Ue(e,t){return t.some(n=>n.contains(e))}function ac(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ee.traverse(Ee.getTreeNode(t)))if(Ue(e,n.current))return!0;return!1}function Zs(e,t){var n;let r=(n=Ee.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Kt(e,t=!1){if(e!=null&&!t)try{Ay(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ea(e,t=!0){let n=e[0].previousElementSibling,r=yn(Kn(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();t&&!o&&(r=yn(Kn(e),{tabbable:!1},e),r.currentNode=n,o=r.nextNode()),Kt(o)}function YC(e,t){const n=ie.useRef(t);g.useEffect(()=>{n.current&&(he=e,Ue(document.activeElement,he.current)||ea(e.current)),n.current=!1},[e])}function qC(e,t,n){nt(()=>{if(t||n)return;let r=e.current,o=i=>{let s=i.target;Ue(s,e.current)?he=e:jy(s)||(he=null)};return document.addEventListener("focusin",o,!1),r.forEach(i=>i.addEventListener("focusin",o,!1)),()=>{document.removeEventListener("focusin",o,!1),r.forEach(i=>i.removeEventListener("focusin",o,!1))}},[e,t,n])}function JC(e){let t=Ee.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function ZC(e,t,n){const r=g.useRef(typeof document<"u"?document.activeElement:null);nt(()=>{let o=e.current;if(!t||n)return;let i=()=>{(!he||Zs(he,e))&&Ue(document.activeElement,e.current)&&(he=e)};return document.addEventListener("focusin",i,!1),o.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),o.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,n]),nt(()=>{if(!t)return;Ee.getTreeNode(e).nodeToRestore=r.current;let o=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!$o(e))return;let s=document.activeElement;if(!Ue(s,e.current))return;let a=Ee.getTreeNode(e).nodeToRestore,l=yn(document.body,{tabbable:!0});l.currentNode=s;let u=i.shiftKey?l.previousNode():l.nextNode();if((!document.body.contains(a)||a===document.body)&&(a=null,Ee.getTreeNode(e).nodeToRestore=null),(!u||!Ue(u,e.current))&&a){l.currentNode=a;do u=i.shiftKey?l.previousNode():l.nextNode();while(Ue(u,e.current));i.preventDefault(),i.stopPropagation(),u?Kt(u,!0):jy(a)?Kt(a,!0):s.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0);let i=Ee.getTreeNode(e).nodeToRestore;if(t&&i&&(Ue(document.activeElement,e.current)||document.activeElement===document.body&&JC(e))){let s=Ee.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let a=s.getTreeNode(e);for(;a;){if(a.nodeToRestore&&document.body.contains(a.nodeToRestore)){Kt(a.nodeToRestore);return}a=a.parent}for(a=s.getTreeNode(e);a;){if(a.scopeRef&&Ee.getTreeNode(a.scopeRef)){ea(a.scopeRef.current,!0);return}a=a.parent}}})}}},[e,t,n])}function yn(e,t,n){let r=t!=null&&t.tabbable?QC:GC,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Oy(i)&&(!n||Ue(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Wd{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null),i=new lc({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t),r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef.current&&Ue(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r.removeChild(n),o.size>0&&o.forEach(i=>r.addChild(i)),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new Wd;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new lc({scopeRef:null}),this.fastMap.set(null,this.root)}}class lc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ee=new Wd;function rr(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=g.useRef({isFocused:!1,isFocusVisible:t||Ly()}),[i,s]=g.useState(!1),[a,l]=g.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=g.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=g.useCallback(p=>{o.current.isFocused=p,s(p),u()},[u]);FC(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:d}=My({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=VC({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?f:d}}let eE=ie.createContext(null);function tE(e){let t=g.useContext(eE)||{};Sy(t,e);let{ref:n,...r}=t;return r}function Hd(e,t){let{focusProps:n}=My(e),{keyboardProps:r}=zC(e),o=we(n,r),i=tE(t),s=e.isDisabled?{}:i,a=g.useRef(e.autoFocus);return g.useEffect(()=>{a.current&&t.current&&Ay(t.current),a.current=!1},[t]),{focusableProps:we({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const uc=ie.createContext(null);function nE(e){let{children:t}=e,n=g.useContext(uc),[r,o]=g.useState(0),i=g.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return ie.createElement(uc.Provider,{value:i},t)}function rE(){let e=g.useContext(uc);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function oE(e){let{modalProviderProps:t}=rE();return ie.createElement("div",{"data-overlay-container":!0,...e,...t})}function iE(e){return ie.createElement(nE,null,ie.createElement(oE,e))}const oh=ie.createContext(null);function sE(e){let t=Dd(),{portalContainer:n=t?null:document.body}=e,[r,o]=g.useState(!1),i=g.useMemo(()=>({contain:r,setContain:o}),[r,o]);if(!n)return null;let s;return e.disableFocusManagement?s=ie.createElement(oh.Provider,{value:i},e.children):s=ie.createElement(oh.Provider,{value:i},ie.createElement(HC,{restoreFocus:!0,contain:r},e.children)),kw.createPortal(s,n)}var aE=({children:e,locale:t="en"})=>E.jsx(CC,{locale:t,children:E.jsx(iE,{children:e})});function Ie(e){return g.forwardRef(e)}var so=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]},ih=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ot=e=>!e||typeof e!="object"||Object.keys(e).length===0,lE=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function _y(e,t){e.forEach(function(n){Array.isArray(n)?_y(n,t):t.push(n)})}function Dy(e){let t=[];return _y(e,t),t}var uE=(...e)=>Dy(e).filter(Boolean),Iy=(e,t)=>{let n={};for(let r in e)t!=null&&t.hasOwnProperty(r)?n[r]=typeof e[r]=="object"?Iy(e[r],t[r]):t[r]+" "+e[r]:n[r]=e[r];for(let r in t)n.hasOwnProperty(r)||(n[r]=t[r]);return n},sh=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function cE(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Fy(t))&&(r&&(r+=" "),r+=n);return r}function Fy(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Fy(e[r]))&&(n&&(n+=" "),n+=t);return n}var Kd="-";function dE(e){var t=pE(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(a){var l=a.split(Kd);return l[0]===""&&l.length!==1&&l.shift(),Vy(l,t)||fE(a)}function s(a,l){var u=n[a]||[];return l&&o[a]?[].concat(u,o[a]):u}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function Vy(e,t){var s;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Vy(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Kd);return(s=t.validators.find(function(a){var l=a.validator;return l(i)}))==null?void 0:s.classGroupId}}var ah=/^\[(.+)\]$/;function fE(e){if(ah.test(e)){var t=ah.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function pE(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=mE(Object.entries(e.classGroups),n);return o.forEach(function(i){var s=i[0],a=i[1];cc(a,r,s,t)}),r}function cc(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:lh(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(hE(o)){cc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(s){var a=s[0],l=s[1];cc(l,lh(t,a),n,r)})})}function lh(e,t){var n=e;return t.split(Kd).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function hE(e){return e.isThemeGetter}function mE(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(a){var l=a[0],u=a[1];return[t+l,u]})):s});return[r,i]}):e}function gE(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,s){n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var By="!";function vE(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;d<s.length;d++){var f=s[d];if(l===0){if(f===r&&(n||s.slice(d,d+o)===t)){a.push(s.slice(u,d)),u=d+o;continue}if(f==="/"){c=d;continue}}f==="["?l++:f==="]"&&l--}var p=a.length===0?s:s.substring(u),m=p.startsWith(By),y=m?p.substring(1):p,P=c&&c>u?c-u:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:P}}}function yE(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function bE(e){return{cache:gE(e.cacheSize),splitModifiers:vE(e),...dE(e)}}var xE=/\s+/;function wE(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(xE).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};p=!1}var m=yE(l).join(":"),y=u?m+By:m;return{isTailwindClass:!0,modifierId:y,classGroupId:f,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function dc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,s=a;function a(u){var c=t[0],d=t.slice(1),f=d.reduce(function(p,m){return m(p)},c());return r=bE(f),o=r.cache.get,i=r.cache.set,s=l,l(u)}function l(u){var c=o(u);if(c)return c;var d=wE(u,r);return i(u,d),d}return function(){return s(cE.apply(null,arguments))}}function de(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var zy=/^\[(?:([a-z-]+):)?(.+)\]$/i,SE=/^\d+\/\d+$/,PE=new Set(["px","full","screen"]),CE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kE=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function wt(e){return Gn(e)||PE.has(e)||SE.test(e)||fc(e)}function fc(e){return ar(e,"length",LE)}function TE(e){return ar(e,"size",Uy)}function RE(e){return ar(e,"position",Uy)}function NE(e){return ar(e,"url",AE)}function Gi(e){return ar(e,"number",Gn)}function Gn(e){return!Number.isNaN(Number(e))}function $E(e){return e.endsWith("%")&&Gn(e.slice(0,-1))}function bo(e){return uh(e)||ar(e,"number",uh)}function Z(e){return zy.test(e)}function xo(){return!0}function ln(e){return CE.test(e)}function ME(e){return ar(e,"",OE)}function ar(e,t,n){var r=zy.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function LE(e){return EE.test(e)}function Uy(){return!1}function AE(e){return e.startsWith("url(")}function uh(e){return Number.isInteger(Number(e))}function OE(e){return kE.test(e)}function pc(){var e=de("colors"),t=de("spacing"),n=de("blur"),r=de("brightness"),o=de("borderColor"),i=de("borderRadius"),s=de("borderSpacing"),a=de("borderWidth"),l=de("contrast"),u=de("grayscale"),c=de("hueRotate"),d=de("invert"),f=de("gap"),p=de("gradientColorStops"),m=de("gradientColorStopPositions"),y=de("inset"),P=de("margin"),b=de("opacity"),h=de("padding"),v=de("saturate"),S=de("scale"),C=de("sepia"),R=de("skew"),T=de("space"),x=de("translate"),N=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},M=function(){return["auto",Z,t]},B=function(){return[Z,t]},A=function(){return["",wt]},j=function(){return["auto",Gn,Z]},U=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},Y=function(){return["solid","dashed","dotted","double","none"]},oe=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},O=function(){return["start","end","center","between","around","evenly","stretch"]},L=function(){return["","0",Z]},I=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},w=function(){return[Gn,Gi]},k=function(){return[Gn,Z]};return{cacheSize:500,theme:{colors:[xo],spacing:[wt],blur:["none","",ln,Z],brightness:w(),borderColor:[e],borderRadius:["none","","full",ln,Z],borderSpacing:B(),borderWidth:A(),contrast:w(),grayscale:L(),hueRotate:k(),invert:L(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[$E,fc],inset:M(),margin:M(),opacity:w(),padding:B(),saturate:w(),scale:w(),sepia:L(),skew:k(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[ln]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(U(),[Z])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bo]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",bo]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",bo]},Z]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[bo]},Z]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(O())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(O(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(O(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Z,t]}],"min-w":[{"min-w":["min","max","fit",Z,wt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[ln]},ln,Z]}],h:[{h:[Z,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Z,wt]}],"max-h":[{"max-h":[Z,t,"min","max","fit"]}],"font-size":[{text:["base",ln,fc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gi]}],"font-family":[{font:[xo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Gn,Gi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,wt]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(Y(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",wt]}],"underline-offset":[{"underline-offset":["auto",Z,wt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(U(),[RE])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[].concat(Y(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:Y()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(Y())}],"outline-offset":[{"outline-offset":[Z,wt]}],"outline-w":[{outline:[wt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[wt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,ME]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":oe()}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ln,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[bo,Z]}],"translate-x":[{"translate-x":[x]}],"translate-y":[{"translate-y":[x]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wt,Gi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function jE(e,t){for(var n in t)Wy(e,n,t[n]);return e}var _E=Object.prototype.hasOwnProperty,DE=new Set(["string","number","boolean"]);function Wy(e,t,n){if(!_E.call(e,t)||DE.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Wy(e[t],r,n[r])}}function IE(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?dc.apply(void 0,[pc,e].concat(n)):dc.apply(void 0,[function(){return jE(pc(),e)}].concat(n))}var FE=dc(pc),VE={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Hy=e=>e||void 0,ta=(...e)=>Hy(Dy(e).filter(Boolean).join(" ")),Ml=null,na={},hc=!1,wo=(...e)=>t=>t.twMerge?((!Ml||hc)&&(hc=!1,Ml=ot(na)?FE:IE(na)),Hy(Ml(ta(e)))):ta(e),ch=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=ta(e[n],t[n]):e[n]=t[n];return e},BE=(e,t)=>{var n,r,o,i,s;let{slots:a={},variants:l={},compoundVariants:u=[],compoundSlots:c=[],defaultVariants:d={}}=e,f={...VE,...t},p=ta((n=e==null?void 0:e.extend)==null?void 0:n.base,e==null?void 0:e.base),m=Iy(l,(r=e==null?void 0:e.extend)==null?void 0:r.variants),y={...(o=e==null?void 0:e.extend)==null?void 0:o.defaultVariants,...d};!ot(f.twMergeConfig)&&!lE(f.twMergeConfig,na)&&(hc=!0,na=f.twMergeConfig);let P=ot(a)?{}:{base:e==null?void 0:e.base,...a},b=ot((i=e==null?void 0:e.extend)==null?void 0:i.slots)?P:ch((s=e==null?void 0:e.extend)==null?void 0:s.slots,ot(P)?{base:e==null?void 0:e.base}:P),h=S=>{var C,R,T,x;if(ot(m)&&ot(a)&&ot((C=e==null?void 0:e.extend)==null?void 0:C.slots))return wo(p,S==null?void 0:S.class,S==null?void 0:S.className)(f);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof u}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);let N=(L,I,w=[],k)=>{let _=w;if(typeof I=="string")_.push(sh(I).split(" ").map(V=>`${L}:${V}`));else if(Array.isArray(I))_.push(I.flatMap(V=>`${L}:${V}`));else if(typeof I=="object"&&typeof k=="string"){let V=I==null?void 0:I[k];if(V&&typeof V=="string"){let W=sh(V);_[k]=_[k]?[..._[k],...W.split(" ").map(H=>`${L}:${H}`)]:W.split(" ").map(H=>`${L}:${H}`)}else Array.isArray(V)&&V.length>0&&(_[k]=V.flatMap(W=>`${L}:${W}`))}return _},F=(L,I=m,w=null)=>{let k=I==null?void 0:I[L];if(!k||ot(k))return null;let _=S==null?void 0:S[L];if(_===null)return null;let V=ih(_),W=Array.isArray(f.responsiveVariants)&&f.responsiveVariants.length>0||f.responsiveVariants===!0,H=y==null?void 0:y[L],Q=[];typeof V=="object"&&W&&(Q=Object.keys(V).reduce((q,ae)=>{let ve=V[ae],Ft=k==null?void 0:k[ve];return ae==="initial"?(H=ve,q):Array.isArray(f.responsiveVariants)&&!f.responsiveVariants.includes(ae)?q:N(ae,Ft,q,w)},[]));let te=k[V]||k[ih(H)];return typeof Q=="object"&&typeof w=="string"&&Q[w]?ch(Q,te):Q.length>0?[te,...Q]:te},M=()=>m?Object.keys(m).map(L=>F(L,m)):null,B=L=>!m||typeof m!="object"?null:Object.keys(m).reduce((I,w)=>{let k=F(w,m,L),_=L==="base"&&typeof k=="string"?k:k&&k[L];return _&&I.push(_),I},[]),A=S&&Object.fromEntries(Object.entries(S).filter(([,L])=>L!==void 0)),j=L=>{var I;let w=typeof(S==null?void 0:S[L])=="object"?{[L]:(I=S[L])==null?void 0:I.initial}:{};return{...y,...A,...w}},U=(L=[])=>L==null?void 0:L.filter(({class:I,className:w,...k})=>Object.entries(k).every(([_,V])=>{let W=j(_);return Array.isArray(V)?V.includes(W[_]):W[_]===V})).flatMap(({class:I,className:w})=>[I,w]),Y=()=>{var L;let I=U(u),w=U((L=e==null?void 0:e.extend)==null?void 0:L.compoundVariants);return uE(w,I)},oe=()=>{let L=Y();return Array.isArray(L)?L.reduce((I,w)=>{if(typeof w=="string"&&(I.base=wo(I.base,w)(f)),typeof w=="object"){let k=Object.keys(w);for(let _ of k)I[_]=wo(I[_],w[_])(f)}return I},{}):L},O=()=>c.length<1?null:c.reduce((L,I)=>{let{slots:w=[],class:k,className:_,...V}=I;if(!ot(V)){let W=Object.keys(V);for(let H of W){let Q=j(H)[H];if(!Q||Q!==V[H])return L}}for(let W of w)L[W]||(L[W]=[]),L[W].push([k,_]);return L},{});if(!ot(a)||!ot((R=e==null?void 0:e.extend)==null?void 0:R.slots)){let L=(T=oe())!=null?T:[],I=(x=O())!=null?x:[];return{...typeof b=="object"&&!ot(b)?Object.keys(b).reduce((w,k)=>(w[k]=_=>wo(b[k],B(k),L==null?void 0:L[k],I==null?void 0:I[k],_==null?void 0:_.class,_==null?void 0:_.className)(f),w),{}):{}}}return wo(p,M(),Y(),S==null?void 0:S.class,S==null?void 0:S.className)(f)},v=()=>{if(!(!m||typeof m!="object"))return Object.keys(m)};return h.variantKeys=v(),h.base=p,h.slots=b,h.variants=m,h.defaultVariants=y,h.compoundSlots=c,h.compoundVariants=u,h},zE=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Ll=zE.map(e=>`unit-${e}`),Qi=["small","medium","large"],It=(e,t)=>{var n,r,o;return BE(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...Ll],borderWidth:Qi,borderRadius:Qi},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Qi}],"font-size":[{text:["tiny",...Qi]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Ll]}],"min-h":[{"min-h":["unit",...Ll]}]}}})},ao=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],UE=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Al=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],dh=It({slots:{base:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2","data-[loaded=true]:bg-transparent","data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0"],content:["opacity-0","group-data-[loaded=true]:opacity-100"]},variants:{disableAnimation:{true:{base:"before:transition-none",content:"transition-none"},false:{base:"transition-background !duration-300 before:transition-opacity before:!duration-300",content:"transition-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{disableAnimation:!1}}),WE={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},HE={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},KE={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},GE={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},QE={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},XE={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},YE={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},G={solid:WE,shadow:HE,bordered:KE,flat:GE,faded:QE,light:XE,ghost:YE},fh=It({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),ph=It({slots:{base:"group flex flex-col",label:"block text-small font-medium text-foreground-600",mainWrapper:"",inputWrapper:"relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex h-full items-center w-full gap-1.5 box-border",input:"w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...ao],helperWrapper:"flex relative flex-col gap-1.5 pt-1 px-1",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"]},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"]}},color:{default:{},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success-600 dark:text-success"},warning:{label:"text-warning-600 dark:text-warning"},danger:{label:"text-danger dark:text-danger-500"}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{base:"data-[has-helper=true]:pb-4",label:"text-foreground pb-1.5",mainWrapper:"flex flex-col",description:"absolute left-1",errorMessage:"absolute left-1"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:pb-4",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"text-foreground pr-2",description:"absolute left-1",errorMessage:"absolute left-1"},inside:{label:"text-tiny",inputWrapper:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"}},isLabelPlaceholder:{true:{label:"absolute z-10 pointer-events-none"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-[.is-filled]:opacity-70 peer-[.is-filled]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"placeholder:text-danger text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{inputWrapper:"!h-auto",input:"resize-none py-2"}},disableAnimation:{true:{inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","transition-all","!duration-200","!ease-[cubic-bezier(0,0,0.2,1)]","motion-reduce:transition-none"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...UE]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-1"}},{isLabelPlaceholder:!0,labelPlacement:["inside","outside"],class:{label:["font-normal","text-foreground-500","group-focus-within:font-medium","group-[.is-filled]:font-medium","group-focus-within:pointer-events-auto","group-[.is-filled]:pointer-events-auto"]}},{isLabelPlaceholder:!0,labelPlacement:"inside",class:{inputWrapper:"group",label:["group-focus-within:text-foreground-600","group-[.is-filled]:text-foreground-600"]}},{isLabelPlaceholder:!0,labelPlacement:"outside",class:{base:"group relative justify-end",label:["pb-0","group-focus-within:left-0","group-[.is-filled]:left-0","group-focus-within:text-foreground","group-[.is-filled]:text-foreground"]}},{isLabelPlaceholder:!0,color:"primary",class:{label:["group-focus-within:text-primary","group-[.is-filled]:text-primary"]}},{isLabelPlaceholder:!0,color:"secondary",class:{label:["group-focus-within:text-secondary","group-[.is-filled]:text-secondary"]}},{isLabelPlaceholder:!0,color:"success",class:{label:["group-focus-within:text-success","group-[.is-filled]:text-success"]}},{isLabelPlaceholder:!0,color:"warning",class:{label:["group-focus-within:text-warning","group-[.is-filled]:text-warning"]}},{isLabelPlaceholder:!0,color:"danger",class:{label:["group-focus-within:text-danger","group-[.is-filled]:text-danger"]}},{isLabelPlaceholder:!0,variant:"underlined",class:{label:["group-focus-within:pt-0","group-[.is-filled]:pt-0"]}},{isLabelPlaceholder:!0,variant:"underlined",size:"sm",class:{label:["pt-3"]}},{isLabelPlaceholder:!0,variant:"underlined",size:"md",class:{label:["pt-4"]}},{isLabelPlaceholder:!0,variant:"underlined",size:"lg",class:{label:["pt-5"]}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:["sm","md"],class:{label:["text-small","group-focus-within:text-tiny","group-[.is-filled]:text-tiny"],input:"pt-4"}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:"sm",class:{label:["group-focus-within:-translate-y-2.5","group-[.is-filled]:-translate-y-2.5"],input:"pt-4"}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:"md",class:{label:["group-focus-within:-translate-y-3","group-[.is-filled]:-translate-y-3"],input:"pt-4"}},{isLabelPlaceholder:!0,labelPlacement:"inside",size:"lg",class:{label:["text-medium","group-focus-within:text-small","group-focus-within:-translate-y-3","group-[.is-filled]:text-small","group-[.is-filled]:-translate-y-3"],input:"pt-6"}},{isLabelPlaceholder:!0,labelPlacement:"outside",size:"sm",class:{label:["text-tiny","bottom-2","left-2","group-focus-within:bottom-10","group-[.is-filled]:bottom-10"]}},{isLabelPlaceholder:!0,labelPlacement:"outside",size:"md",class:{label:["text-small","bottom-2.5","left-3","group-focus-within:bottom-12","group-[.is-filled]:bottom-12"]}},{isLabelPlaceholder:!0,labelPlacement:"outside",size:"lg",class:{label:["text-medium","bottom-3","left-3","group-focus-within:text-small","group-[.is-filled]:bottom-sm","group-focus-within:bottom-14","group-[.is-filled]:bottom-14"]}}]}),hh=It({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...ao],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1,disableAnimation:!1}}),qE="flex mx-1 text-current self-center",mh=It({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...ao],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height)_-_1px)]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}}),JE=It({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-10",...ao],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Al,"flex","items-center","justify-center"],name:[...Al,"font-normal","text-center","text-inherit"],icon:[...Al,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:G.solid.default},primary:{base:G.solid.primary},secondary:{base:G.solid.secondary},success:{base:G.solid.success},warning:{base:G.solid.warning},danger:{base:G.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ml-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-focus"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});It({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var ZE=It({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...ao],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:G.solid.default},{variant:"solid",color:"primary",class:G.solid.primary},{variant:"solid",color:"secondary",class:G.solid.secondary},{variant:"solid",color:"success",class:G.solid.success},{variant:"solid",color:"warning",class:G.solid.warning},{variant:"solid",color:"danger",class:G.solid.danger},{variant:"shadow",color:"default",class:G.shadow.default},{variant:"shadow",color:"primary",class:G.shadow.primary},{variant:"shadow",color:"secondary",class:G.shadow.secondary},{variant:"shadow",color:"success",class:G.shadow.success},{variant:"shadow",color:"warning",class:G.shadow.warning},{variant:"shadow",color:"danger",class:G.shadow.danger},{variant:"bordered",color:"default",class:G.bordered.default},{variant:"bordered",color:"primary",class:G.bordered.primary},{variant:"bordered",color:"secondary",class:G.bordered.secondary},{variant:"bordered",color:"success",class:G.bordered.success},{variant:"bordered",color:"warning",class:G.bordered.warning},{variant:"bordered",color:"danger",class:G.bordered.danger},{variant:"flat",color:"default",class:G.flat.default},{variant:"flat",color:"primary",class:G.flat.primary},{variant:"flat",color:"secondary",class:G.flat.secondary},{variant:"flat",color:"success",class:G.flat.success},{variant:"flat",color:"warning",class:G.flat.warning},{variant:"flat",color:"danger",class:G.flat.danger},{variant:"faded",color:"default",class:G.faded.default},{variant:"faded",color:"primary",class:G.faded.primary},{variant:"faded",color:"secondary",class:G.faded.secondary},{variant:"faded",color:"success",class:G.faded.success},{variant:"faded",color:"warning",class:G.faded.warning},{variant:"faded",color:"danger",class:G.faded.danger},{variant:"light",color:"default",class:[G.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[G.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[G.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[G.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[G.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[G.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:G.ghost.default},{variant:"ghost",color:"primary",class:G.ghost.primary},{variant:"ghost",color:"secondary",class:G.ghost.secondary},{variant:"ghost",color:"success",class:G.ghost.success},{variant:"ghost",color:"warning",class:G.ghost.warning},{variant:"ghost",color:"danger",class:G.ghost.danger},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-l-small last:rounded-r-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-l-medium last:rounded-r-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-l-large last:rounded-r-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-l-full last:rounded-r-full"},{isInGroup:!0,variant:["bordered","ghost"],class:"[&:not(:first-child)]:ml-[calc(theme(borderWidth.medium)*-1)]"},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"}]});It({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var gh=It({slots:{base:["flex","flex-col","relative","overflow-hidden","height-auto","outline-none","text-foreground","box-border","bg-content1",...ao],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-5","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,disableAnimation:!1,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,disableAnimation:!1,isFooterBlurred:!1}}),ek=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),tk=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function Ky(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ky(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function le(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Ky(n))&&(o&&(o+=" "),o+=r);return o}var X=e=>e?"true":void 0;function Da(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=g.createContext(void 0);o.displayName=r;function i(){var s;const a=g.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function He(e){const t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current),t}var nk=Object.create,Gy=Object.defineProperty,rk=Object.getOwnPropertyDescriptor,Qy=Object.getOwnPropertyNames,ok=Object.getPrototypeOf,ik=Object.prototype.hasOwnProperty,Xy=(e,t)=>function(){return t||(0,e[Qy(e)[0]])((t={exports:{}}).exports,t),t.exports},sk=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qy(t))!ik.call(e,o)&&o!==n&&Gy(e,o,{get:()=>t[o],enumerable:!(r=rk(t,o))||r.enumerable});return e},ak=(e,t,n)=>(n=e!=null?nk(ok(e)):{},sk(t||!e||!e.__esModule?Gy(n,"default",{value:e,enumerable:!0}):n,e)),lk=Xy({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function p(w){return w===null||typeof w!="object"?null:(w=f&&w[f]||w["@@iterator"],typeof w=="function"?w:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,P={};function b(w,k,_){this.props=w,this.context=k,this.refs=P,this.updater=_||m}b.prototype.isReactComponent={},b.prototype.setState=function(w,k){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,k,"setState")},b.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function h(){}h.prototype=b.prototype;function v(w,k,_){this.props=w,this.context=k,this.refs=P,this.updater=_||m}var S=v.prototype=new h;S.constructor=v,y(S,b.prototype),S.isPureReactComponent=!0;var C=Array.isArray,R=Object.prototype.hasOwnProperty,T={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function N(w,k,_){var V,W={},H=null,Q=null;if(k!=null)for(V in k.ref!==void 0&&(Q=k.ref),k.key!==void 0&&(H=""+k.key),k)R.call(k,V)&&!x.hasOwnProperty(V)&&(W[V]=k[V]);var te=arguments.length-2;if(te===1)W.children=_;else if(1<te){for(var q=Array(te),ae=0;ae<te;ae++)q[ae]=arguments[ae+2];W.children=q}if(w&&w.defaultProps)for(V in te=w.defaultProps,te)W[V]===void 0&&(W[V]=te[V]);return{$$typeof:t,type:w,key:H,ref:Q,props:W,_owner:T.current}}function F(w,k){return{$$typeof:t,type:w.type,key:k,ref:w.ref,props:w.props,_owner:w._owner}}function M(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function B(w){var k={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(_){return k[_]})}var A=/\/+/g;function j(w,k){return typeof w=="object"&&w!==null&&w.key!=null?B(""+w.key):k.toString(36)}function U(w,k,_,V,W){var H=typeof w;(H==="undefined"||H==="boolean")&&(w=null);var Q=!1;if(w===null)Q=!0;else switch(H){case"string":case"number":Q=!0;break;case"object":switch(w.$$typeof){case t:case n:Q=!0}}if(Q)return Q=w,W=W(Q),w=V===""?"."+j(Q,0):V,C(W)?(_="",w!=null&&(_=w.replace(A,"$&/")+"/"),U(W,k,_,"",function(ae){return ae})):W!=null&&(M(W)&&(W=F(W,_+(!W.key||Q&&Q.key===W.key?"":(""+W.key).replace(A,"$&/")+"/")+w)),k.push(W)),1;if(Q=0,V=V===""?".":V+":",C(w))for(var te=0;te<w.length;te++){H=w[te];var q=V+j(H,te);Q+=U(H,k,_,q,W)}else if(q=p(w),typeof q=="function")for(w=q.call(w),te=0;!(H=w.next()).done;)H=H.value,q=V+j(H,te++),Q+=U(H,k,_,q,W);else if(H==="object")throw k=String(w),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.");return Q}function Y(w,k,_){if(w==null)return w;var V=[],W=0;return U(w,V,"","",function(H){return k.call(_,H,W++)}),V}function oe(w){if(w._status===-1){var k=w._result;k=k(),k.then(function(_){(w._status===0||w._status===-1)&&(w._status=1,w._result=_)},function(_){(w._status===0||w._status===-1)&&(w._status=2,w._result=_)}),w._status===-1&&(w._status=0,w._result=k)}if(w._status===1)return w._result.default;throw w._result}var O={current:null},L={transition:null},I={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:L,ReactCurrentOwner:T};e.Children={map:Y,forEach:function(w,k,_){Y(w,function(){k.apply(this,arguments)},_)},count:function(w){var k=0;return Y(w,function(){k++}),k},toArray:function(w){return Y(w,function(k){return k})||[]},only:function(w){if(!M(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},e.Component=b,e.Fragment=r,e.Profiler=i,e.PureComponent=v,e.StrictMode=o,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,e.cloneElement=function(w,k,_){if(w==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+w+".");var V=y({},w.props),W=w.key,H=w.ref,Q=w._owner;if(k!=null){if(k.ref!==void 0&&(H=k.ref,Q=T.current),k.key!==void 0&&(W=""+k.key),w.type&&w.type.defaultProps)var te=w.type.defaultProps;for(q in k)R.call(k,q)&&!x.hasOwnProperty(q)&&(V[q]=k[q]===void 0&&te!==void 0?te[q]:k[q])}var q=arguments.length-2;if(q===1)V.children=_;else if(1<q){te=Array(q);for(var ae=0;ae<q;ae++)te[ae]=arguments[ae+2];V.children=te}return{$$typeof:t,type:w.type,key:W,ref:H,props:V,_owner:Q}},e.createContext=function(w){return w={$$typeof:a,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},w.Provider={$$typeof:s,_context:w},w.Consumer=w},e.createElement=N,e.createFactory=function(w){var k=N.bind(null,w);return k.type=w,k},e.createRef=function(){return{current:null}},e.forwardRef=function(w){return{$$typeof:l,render:w}},e.isValidElement=M,e.lazy=function(w){return{$$typeof:d,_payload:{_status:-1,_result:w},_init:oe}},e.memo=function(w,k){return{$$typeof:c,type:w,compare:k===void 0?null:k}},e.startTransition=function(w){var k=L.transition;L.transition={};try{w()}finally{L.transition=k}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(w,k){return O.current.useCallback(w,k)},e.useContext=function(w){return O.current.useContext(w)},e.useDebugValue=function(){},e.useDeferredValue=function(w){return O.current.useDeferredValue(w)},e.useEffect=function(w,k){return O.current.useEffect(w,k)},e.useId=function(){return O.current.useId()},e.useImperativeHandle=function(w,k,_){return O.current.useImperativeHandle(w,k,_)},e.useInsertionEffect=function(w,k){return O.current.useInsertionEffect(w,k)},e.useLayoutEffect=function(w,k){return O.current.useLayoutEffect(w,k)},e.useMemo=function(w,k){return O.current.useMemo(w,k)},e.useReducer=function(w,k,_){return O.current.useReducer(w,k,_)},e.useRef=function(w){return O.current.useRef(w)},e.useState=function(w){return O.current.useState(w)},e.useSyncExternalStore=function(w,k,_){return O.current.useSyncExternalStore(w,k,_)},e.useTransition=function(){return O.current.useTransition()},e.version="18.2.0"}}),uk=Xy({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=lk()}}),vh=ak(uk()),ck=(e,t)=>{let n=[];const r=vh.Children.map(e,i=>(0,vh.isValidElement)(i)&&i.type===t?(n.push(i),null):i),o=n.length>=0?n:void 0;return[r,o]};/**
* @license React
* react.development.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.
*//**
* @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 dk=new Set(["id","type","className","style","title","role","tabIndex","htmlFor","width","height"]),fk=/^(data-.*)$/,pk=/^(aria-.*)$/,hk=/^(on[A-Z].*)$/;function di(e,t={labelable:!0,enabled:!0}){let{labelable:n,propNames:r}=t,o={};if(!t.enabled)return e;for(const i in e)(Object.prototype.hasOwnProperty.call(e,i)&&(dk.has(i)||n&&pk.test(i)||r!=null&&r.has(i)||fk.test(i))||hk.test(i))&&(o[i]=e[i]);return o}var mk=e=>E.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[E.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),E.jsx("path",{d:"M15 3h6v6"}),E.jsx("path",{d:"M10 14L21 3"})]}),gk=e=>E.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:E.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})});const Yy=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ia=g.createContext({}),Fa=g.createContext(null),Va=typeof document<"u",ra=Va?g.useLayoutEffect:g.useEffect,qy=g.createContext({strict:!1});function vk(e,t,n,r){const{visualElement:o}=g.useContext(Ia),i=g.useContext(qy),s=g.useContext(Fa),a=g.useContext(Yy).reducedMotion,l=g.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;return g.useInsertionEffect(()=>{u&&u.update(n,s)}),ra(()=>{u&&u.render()}),g.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?ra:g.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function Lr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yk(e,t,n){return g.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Lr(n)&&(n.current=r))},[t])}function fi(e){return typeof e=="string"||Array.isArray(e)}function Ba(e){return typeof e=="object"&&typeof e.start=="function"}const Gd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qd=["initial",...Gd];function za(e){return Ba(e.animate)||Qd.some(t=>fi(e[t]))}function Jy(e){return!!(za(e)||e.variants)}function bk(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fi(n)?n:void 0,animate:fi(r)?r:void 0}}return e.inherit!==!1?t:{}}function xk(e){const{initial:t,animate:n}=bk(e,g.useContext(Ia));return g.useMemo(()=>({initial:t,animate:n}),[yh(t),yh(n)])}function yh(e){return Array.isArray(e)?e.join(" "):e}const bh={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"]},pi={};for(const e in bh)pi[e]={isEnabled:t=>bh[e].some(n=>!!t[n])};function wk(e){for(const t in e)pi[t]={...pi[t],...e[t]}}const Xd=g.createContext({}),Zy=g.createContext({}),Sk=Symbol.for("motionComponentSymbol");function Pk({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&wk(e);function i(a,l){let u;const c={...g.useContext(Yy),...a,layoutId:Ck(a)},{isStatic:d}=c,f=xk(a),p=r(a,d);if(!d&&Va){f.visualElement=vk(o,p,c,t);const m=g.useContext(Zy),y=g.useContext(qy).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,m))}return g.createElement(Ia.Provider,{value:f},u&&f.visualElement?g.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,yk(p,f.visualElement,l),p,d,f.visualElement))}const s=g.forwardRef(i);return s[Sk]=o,s}function Ck({layoutId:e}){const t=g.useContext(Xd).id;return t&&e!==void 0?t+"-"+e:e}function Ek(e){function t(r,o={}){return Pk(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const kk=["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 Yd(e){return typeof e!="string"||e.includes("-")?!1:!!(kk.indexOf(e)>-1||/[A-Z]/.test(e))}const oa={};function Tk(e){Object.assign(oa,e)}const Ci=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lr=new Set(Ci);function e0(e,{layout:t,layoutId:n}){return lr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oa[e]||e==="opacity")}const rt=e=>!!(e&&e.getVelocity),Rk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nk=Ci.length;function $k(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<Nk;s++){const a=Ci[s];if(e[a]!==void 0){const l=Rk[a]||a;i+=`${l}(${e[a]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const t0=e=>t=>typeof t=="string"&&t.startsWith(e),n0=t0("--"),mc=t0("var(--"),Mk=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Lk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ln=(e,t,n)=>Math.min(Math.max(n,e),t),ur={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Bo={...ur,transform:e=>Ln(0,1,e)},Xi={...ur,default:1},zo=e=>Math.round(e*1e5)/1e5,Ua=/(-)?([\d]*\.?[\d])+/g,r0=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ak=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ei(e){return typeof e=="string"}const ki=e=>({test:t=>Ei(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),un=ki("deg"),_t=ki("%"),K=ki("px"),Ok=ki("vh"),jk=ki("vw"),xh={..._t,parse:e=>_t.parse(e)/100,transform:e=>_t.transform(e*100)},wh={...ur,transform:Math.round},o0={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:un,rotateX:un,rotateY:un,rotateZ:un,scale:Xi,scaleX:Xi,scaleY:Xi,scaleZ:Xi,skew:un,skewX:un,skewY:un,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Bo,originX:xh,originY:xh,originZ:K,zIndex:wh,fillOpacity:Bo,strokeOpacity:Bo,numOctaves:wh};function qd(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(n0(d)){i[d]=f;continue}const p=o0[d],m=Lk(f,p);if(lr.has(d)){if(l=!0,s[d]=m,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):o[d]=m}if(t.transform||(l||r?o.transform=$k(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const Jd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function i0(e,t,n){for(const r in t)!rt(t[r])&&!e0(r,n)&&(e[r]=t[r])}function _k({transformTemplate:e},t,n){return g.useMemo(()=>{const r=Jd();return qd(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Dk(e,t,n){const r=e.style||{},o={};return i0(o,r,e),Object.assign(o,_k(e,t,n)),e.transformValues?e.transformValues(o):o}function Ik(e,t,n){const r={},o=Dk(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Fk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ia(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Fk.has(e)}let s0=e=>!ia(e);function Vk(e){e&&(s0=t=>t.startsWith("on")?!ia(t):e(t))}try{Vk(require("@emotion/is-prop-valid").default)}catch{}function Bk(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(s0(o)||n===!0&&ia(o)||!t&&!ia(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Sh(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function zk(e,t,n){const r=Sh(t,e.x,e.width),o=Sh(n,e.y,e.height);return`${r} ${o}`}const Uk={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wk={offset:"strokeDashoffset",array:"strokeDasharray"};function Hk(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Uk:Wk;e[i.offset]=K.transform(-r);const s=K.transform(t),a=K.transform(n);e[i.array]=`${s} ${a}`}function Zd(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(qd(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=zk(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Hk(p,s,a,l,!1)}const a0=()=>({...Jd(),attrs:{}}),ef=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Kk(e,t,n,r){const o=g.useMemo(()=>{const i=a0();return Zd(i,t,{enableHardwareAcceleration:!1},ef(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};i0(i,e.style,e),o.style={...i,...o.style}}return o}function Gk(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Yd(n)?Kk:Ik)(r,i,s,n),c={...Bk(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=g.useMemo(()=>rt(d)?d.get():d,[d]);return g.createElement(n,{...c,children:f})}}const tf=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function l0(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const u0=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 c0(e,t,n,r){l0(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(u0.has(o)?o:tf(o),t.attrs[o])}function nf(e,t){const{style:n}=e,r={};for(const o in n)(rt(n[o])||t.style&&rt(t.style[o])||e0(o,e))&&(r[o]=n[o]);return r}function d0(e,t){const n=nf(e,t);for(const r in e)if(rt(e[r])||rt(t[r])){const o=Ci.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function rf(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function f0(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const sa=e=>Array.isArray(e),Qk=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Xk=e=>sa(e)?e[e.length-1]||0:e;function bs(e){const t=rt(e)?e.get():e;return Qk(t)?t.toValue():t}function Yk({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:qk(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const p0=e=>(t,n)=>{const r=g.useContext(Ia),o=g.useContext(Fa),i=()=>Yk(e,t,r,o);return n?i():f0(i)};function qk(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=bs(i[f]);let{initial:s,animate:a}=e;const l=za(e),u=Jy(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Ba(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=rf(e,p);if(!m)return;const{transitionEnd:y,transition:P,...b}=m;for(const h in b){let v=b[h];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(o[h]=v)}for(const h in y)o[h]=y[h]}),o}const Jk={useVisualState:p0({scrapeMotionValuesFromProps:d0,createRenderState:a0,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Zd(n,r,{enableHardwareAcceleration:!1},ef(t.tagName),e.transformTemplate),c0(t,n)}})},Zk={useVisualState:p0({scrapeMotionValuesFromProps:nf,createRenderState:Jd})};function eT(e,{forwardMotionProps:t=!1},n,r){return{...Yd(e)?Jk:Zk,preloadedFeatures:n,useRender:Gk(t),createVisualElement:r,Component:e}}function Gt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const h0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Wa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const tT=e=>t=>h0(t)&&e(t,Wa(t));function Yt(e,t,n,r){return Gt(e,t,tT(n),r)}const nT=(e,t)=>n=>t(e(n)),Rn=(...e)=>e.reduce(nT);function m0(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Ph=m0("dragHorizontal"),Ch=m0("dragVertical");function g0(e){let t=!1;if(e==="y")t=Ch();else if(e==="x")t=Ph();else{const n=Ph(),r=Ch();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function v0(){const e=g0(!0);return e?(e(),!1):!0}class Dn{constructor(t){this.isMounted=!1,this.node=t}update(){}}const Ce=e=>e;function rT(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(r=t.length)),l},cancel:l=>{const u=n.indexOf(l);u!==-1&&n.splice(u,1),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let u=0;u<r;u++){const c=t[u];c(l),s.has(c)&&(a.schedule(c),e())}o=!1,i&&(i=!1,a.process(l))}};return a}const Yi=["prepare","read","update","preRender","render","postRender"],oT=40;function iT(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Yi.reduce((d,f)=>(d[f]=rT(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,oT),1),o.timestamp=d,o.isProcessing=!0,Yi.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:Yi.reduce((d,f)=>{const p=i[f];return d[f]=(m,y=!1,P=!1)=>(n||l(),p.schedule(m,y,P)),d},{}),cancel:d=>Yi.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:ge,cancel:nn,state:Be,steps:Ol}=iT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);function Eh(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||v0())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&ge.update(()=>a[r](i,s))};return Yt(e.current,n,o,{passive:!e.getProps()[r]})}class sT extends Dn{mount(){this.unmount=Rn(Eh(this.node,!0),Eh(this.node,!1))}unmount(){}}class aT extends Dn{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=Rn(Gt(this.node.current,"focus",()=>this.onFocus()),Gt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const y0=(e,t)=>t?e===t?!0:y0(e,t.parentElement):!1;function jl(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Wa(n))}class lT extends Dn{constructor(){super(...arguments),this.removeStartListeners=Ce,this.removeEndListeners=Ce,this.removeAccessibleListeners=Ce,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=Yt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();ge.update(()=>{y0(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Yt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Rn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||jl("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ge.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Gt(this.node.current,"keyup",s),jl("down",(a,l)=>{this.startPress(a,l)})},n=Gt(this.node.current,"keydown",t),r=()=>{this.isPressing&&jl("cancel",(i,s)=>this.cancelPress(i,s))},o=Gt(this.node.current,"blur",r);this.removeAccessibleListeners=Rn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ge.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!v0()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ge.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Yt(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Gt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Rn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const gc=new WeakMap,_l=new WeakMap,uT=e=>{const t=gc.get(e.target);t&&t(e)},cT=e=>{e.forEach(uT)};function dT({root:e,...t}){const n=e||document;_l.has(n)||_l.set(n,{});const r=_l.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(cT,{root:e,...t})),r[o]}function fT(e,t,n){const r=dT(t);return gc.set(e,n),r.observe(e),()=>{gc.delete(e),r.unobserve(e)}}const pT={some:0,all:1};class hT extends Dn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:pT[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!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(l)};return fT(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(mT(t,n))&&this.startObserver()}unmount(){}}function mT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const gT={inView:{Feature:hT},tap:{Feature:lT},focus:{Feature:aT},hover:{Feature:sT}};function b0(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 vT(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function yT(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ha(e,t,n){const r=e.getProps();return rf(r,t,n!==void 0?n:r.custom,vT(e),yT(e))}const bT="framerAppearId",xT="data-"+tf(bT);let wT=Ce,of=Ce;const Nn=e=>e*1e3,qt=e=>e/1e3,ST={current:!1},x0=e=>Array.isArray(e)&&typeof e[0]=="number";function w0(e){return!!(!e||typeof e=="string"&&S0[e]||x0(e)||Array.isArray(e)&&e.every(w0))}const Mo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,S0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mo([0,.65,.55,1]),circOut:Mo([.55,0,1,.45]),backIn:Mo([.31,.01,.66,-.59]),backOut:Mo([.33,1.53,.69,.99])};function P0(e){if(e)return x0(e)?Mo(e):Array.isArray(e)?e.map(P0):S0[e]}function PT(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=P0(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function CT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const C0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ET=1e-7,kT=12;function TT(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=C0(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>ET&&++a<kT);return s}function Ti(e,t,n,r){if(e===t&&n===r)return Ce;const o=i=>TT(i,0,1,e,n);return i=>i===0||i===1?i:C0(o(i),t,r)}const RT=Ti(.42,0,1,1),NT=Ti(0,0,.58,1),E0=Ti(.42,0,.58,1),$T=e=>Array.isArray(e)&&typeof e[0]!="number",k0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,T0=e=>t=>1-e(1-t),R0=e=>1-Math.sin(Math.acos(e)),sf=T0(R0),MT=k0(sf),N0=Ti(.33,1.53,.69,.99),af=T0(N0),LT=k0(af),AT=e=>(e*=2)<1?.5*af(e):.5*(2-Math.pow(2,-10*(e-1))),OT={linear:Ce,easeIn:RT,easeInOut:E0,easeOut:NT,circIn:R0,circInOut:MT,circOut:sf,backIn:af,backInOut:LT,backOut:N0,anticipate:AT},kh=e=>{if(Array.isArray(e)){of(e.length===4);const[t,n,r,o]=e;return Ti(t,n,r,o)}else if(typeof e=="string")return OT[e];return e},lf=(e,t)=>n=>!!(Ei(n)&&Ak.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$0=(e,t,n)=>r=>{if(!Ei(r))return r;const[o,i,s,a]=r.match(Ua);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},jT=e=>Ln(0,255,e),Dl={...ur,transform:e=>Math.round(jT(e))},Qn={test:lf("rgb","red"),parse:$0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dl.transform(e)+", "+Dl.transform(t)+", "+Dl.transform(n)+", "+zo(Bo.transform(r))+")"};function _T(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const vc={test:lf("#"),parse:_T,transform:Qn.transform},Ar={test:lf("hsl","hue"),parse:$0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_t.transform(zo(t))+", "+_t.transform(zo(n))+", "+zo(Bo.transform(r))+")"},Ke={test:e=>Qn.test(e)||vc.test(e)||Ar.test(e),parse:e=>Qn.test(e)?Qn.parse(e):Ar.test(e)?Ar.parse(e):vc.parse(e),transform:e=>Ei(e)?e:e.hasOwnProperty("red")?Qn.transform(e):Ar.transform(e)},be=(e,t,n)=>-n*e+n*t+e;function Il(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 DT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Il(l,a,e+1/3),i=Il(l,a,e),s=Il(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Fl=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},IT=[vc,Qn,Ar],FT=e=>IT.find(t=>t.test(e));function Th(e){const t=FT(e);let n=t.parse(e);return t===Ar&&(n=DT(n)),n}const M0=(e,t)=>{const n=Th(e),r=Th(t),o={...n};return i=>(o.red=Fl(n.red,r.red,i),o.green=Fl(n.green,r.green,i),o.blue=Fl(n.blue,r.blue,i),o.alpha=be(n.alpha,r.alpha,i),Qn.transform(o))};function VT(e){var t,n;return isNaN(e)&&Ei(e)&&(((t=e.match(Ua))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r0))===null||n===void 0?void 0:n.length)||0)>0}const L0={regex:Mk,countKey:"Vars",token:"${v}",parse:Ce},A0={regex:r0,countKey:"Colors",token:"${c}",parse:Ke.parse},O0={regex:Ua,countKey:"Numbers",token:"${n}",parse:ur.parse};function Vl(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function aa(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Vl(n,L0),Vl(n,A0),Vl(n,O0),n}function j0(e){return aa(e).values}function _0(e){const{values:t,numColors:n,numVars:r,tokenised:o}=aa(e),i=t.length;return s=>{let a=o;for(let l=0;l<i;l++)l<r?a=a.replace(L0.token,s[l]):l<r+n?a=a.replace(A0.token,Ke.transform(s[l])):a=a.replace(O0.token,zo(s[l]));return a}}const BT=e=>typeof e=="number"?0:e;function zT(e){const t=j0(e);return _0(e)(t.map(BT))}const An={test:VT,parse:j0,createTransformer:_0,getAnimatableNone:zT},D0=(e,t)=>n=>`${n>0?t:e}`;function I0(e,t){return typeof e=="number"?n=>be(e,t,n):Ke.test(e)?M0(e,t):e.startsWith("var(")?D0(e,t):V0(e,t)}const F0=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>I0(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}},UT=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=I0(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},V0=(e,t)=>{const n=An.createTransformer(t),r=aa(e),o=aa(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Rn(F0(r.values,o.values),n):D0(e,t)},hi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Rh=(e,t)=>n=>be(e,t,n);function WT(e){return typeof e=="number"?Rh:typeof e=="string"?Ke.test(e)?M0:V0:Array.isArray(e)?F0:typeof e=="object"?UT:Rh}function HT(e,t,n){const r=[],o=n||WT(e[0]),i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ce:t;a=Rn(l,a)}r.push(a)}return r}function B0(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(of(i===t.length),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=HT(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const d=hi(e[c],e[c+1],u);return s[c](d)};return n?u=>l(Ln(e[0],e[i-1],u)):l}function KT(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=hi(0,t,r);e.push(be(n,1,o))}}function GT(e){const t=[0];return KT(t,e.length-1),t}function QT(e,t){return e.map(n=>n*t)}function XT(e,t){return e.map(()=>t||E0).splice(0,e.length-1)}function la({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=$T(r)?r.map(kh):kh(r),i={done:!1,value:t[0]},s=QT(n&&n.length===t.length?n:GT(t),e),a=B0(s,t,{ease:Array.isArray(o)?o:XT(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function z0(e,t){return t?e*(1e3/t):0}const YT=5;function U0(e,t,n){const r=Math.max(t-YT,0);return z0(n-e(r),t-r)}const Bl=.001,qT=.01,Nh=10,JT=.05,ZT=1;function e2({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wT(e<=Nn(Nh));let s=1-t;s=Ln(JT,ZT,s),e=Ln(qT,Nh,qt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=yc(u,s),m=Math.exp(-d);return Bl-f/p*m},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),y=yc(Math.pow(u,2),s);return(-o(u)+Bl>0?-1:1)*((f-p)*m)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Bl+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=n2(o,i,a);if(e=Nn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const t2=12;function n2(e,t,n){let r=n;for(let o=1;o<t2;o++)r=r-e(r)/t(r);return r}function yc(e,t){return e*Math.sqrt(1-t*t)}const r2=["duration","bounce"],o2=["stiffness","damping","mass"];function $h(e,t){return t.some(n=>e[n]!==void 0)}function i2(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!$h(e,o2)&&$h(e,r2)){const n=e2(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function W0({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=i2(r),p=c?-qt(c):0,m=l/(2*Math.sqrt(a*u)),y=i-o,P=qt(Math.sqrt(a/u)),b=Math.abs(y)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let h;if(m<1){const v=yc(P,m);h=S=>{const C=Math.exp(-m*P*S);return i-C*((p+m*P*y)/v*Math.sin(v*S)+y*Math.cos(v*S))}}else if(m===1)h=v=>i-Math.exp(-P*v)*(y+(p+P*y)*v);else{const v=P*Math.sqrt(m*m-1);h=S=>{const C=Math.exp(-m*P*S),R=Math.min(v*S,300);return i-C*((p+m*P*y)*Math.sinh(R)+v*y*Math.cosh(R))/v}}return{calculatedDuration:f&&d||null,next:v=>{const S=h(v);if(f)s.done=v>=d;else{let C=p;v!==0&&(m<1?C=U0(h,v,S):C=0);const R=Math.abs(C)<=n,T=Math.abs(i-S)<=t;s.done=R&&T}return s.value=s.done?i:S,s}}}function Mh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=x=>a!==void 0&&x<a||l!==void 0&&x>l,m=x=>a===void 0?l:l===void 0||Math.abs(a-x)<Math.abs(l-x)?a:l;let y=n*t;const P=d+y,b=s===void 0?P:s(P);b!==P&&(y=b-d);const h=x=>-y*Math.exp(-x/r),v=x=>b+h(x),S=x=>{const N=h(x),F=v(x);f.done=Math.abs(N)<=u,f.value=f.done?b:F};let C,R;const T=x=>{p(f.value)&&(C=x,R=W0({keyframes:[f.value,m(f.value)],velocity:U0(v,x,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:x=>{let N=!1;return!R&&C===void 0&&(N=!0,S(x),T(x)),C!==void 0&&x>C?R.next(x-C):(!N&&S(x),f)}}}const s2=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ge.update(t,!0),stop:()=>nn(t),now:()=>Be.isProcessing?Be.timestamp:performance.now()}},Lh=2e4;function Ah(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Lh;)t+=n,r=e.next(t);return t>=Lh?1/0:t}const a2={decay:Mh,inertia:Mh,tween:la,keyframes:la,spring:W0};function ua({autoplay:e=!0,delay:t=0,driver:n=s2,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,m=!1,y,P;const b=()=>{P=new Promise(w=>{y=w})};b();let h;const v=a2[o]||la;let S;v!==la&&typeof r[0]!="number"&&(S=B0([0,100],r,{clamp:!1}),r=[0,100]);const C=v({...f,keyframes:r});let R;a==="mirror"&&(R=v({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let T="idle",x=null,N=null,F=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=Ah(C));const{calculatedDuration:M}=C;let B=1/0,A=1/0;M!==null&&(B=M+s,A=B*(i+1)-s);let j=0;const U=w=>{if(N===null)return;p>0&&(N=Math.min(N,w)),p<0&&(N=Math.min(w-A/p,N)),x!==null?j=x:j=Math.round(w-N)*p;const k=j-t*(p>=0?1:-1),_=p>=0?k<0:k>A;j=Math.max(k,0),T==="finished"&&x===null&&(j=A);let V=j,W=C;if(i){const q=j/B;let ae=Math.floor(q),ve=q%1;!ve&&q>=1&&(ve=1),ve===1&&ae--,ae=Math.min(ae,i+1);const Ft=!!(ae%2);Ft&&(a==="reverse"?(ve=1-ve,s&&(ve-=s/B)):a==="mirror"&&(W=R));let ue=Ln(0,1,ve);j>A&&(ue=a==="reverse"&&Ft?1:0),V=ue*B}const H=_?{done:!1,value:r[0]}:W.next(V);S&&(H.value=S(H.value));let{done:Q}=H;!_&&M!==null&&(Q=p>=0?j>=A:j<=0);const te=x===null&&(T==="finished"||T==="running"&&Q);return d&&d(H.value),te&&O(),H},Y=()=>{h&&h.stop(),h=void 0},oe=()=>{T="idle",Y(),y(),b(),N=F=null},O=()=>{T="finished",c&&c(),Y(),y()},L=()=>{if(m)return;h||(h=n(U));const w=h.now();l&&l(),x!==null?N=w-x:(!N||T==="finished")&&(N=w),T==="finished"&&b(),F=N,x=null,T="running",h.start()};e&&L();const I={then(w,k){return P.then(w,k)},get time(){return qt(j)},set time(w){w=Nn(w),j=w,x!==null||!h||p===0?x=w:N=h.now()-w/p},get duration(){const w=C.calculatedDuration===null?Ah(C):C.calculatedDuration;return qt(w)},get speed(){return p},set speed(w){w===p||!h||(p=w,I.time=qt(j))},get state(){return T},play:L,pause:()=>{T="paused",x=j},stop:()=>{m=!0,T!=="idle"&&(T="idle",u&&u(),oe())},cancel:()=>{F!==null&&U(F),oe()},complete:()=>{T="finished"},sample:w=>(N=0,U(w))};return I}function l2(e){let t;return()=>(t===void 0&&(t=e()),t)}const u2=l2(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),c2=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),qi=10,d2=2e4,f2=(e,t)=>t.type==="spring"||e==="backgroundColor"||!w0(t.ease);function p2(e,t,{onUpdate:n,onComplete:r,...o}){if(!(u2()&&c2.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(h=>{a=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(f2(t,o)){const h=ua({...o,repeat:0,delay:0});let v={done:!1,value:c[0]};const S=[];let C=0;for(;!v.done&&C<d2;)v=h.sample(C),S.push(v.value),C+=qi;p=void 0,c=S,d=C-qi,f="linear"}const m=PT(e.owner.current,t,c,{...o,duration:d,ease:f,times:p}),y=()=>m.cancel(),P=()=>{ge.update(y),a(),u()};return m.onfinish=()=>{e.set(CT(c,o)),r&&r(),P()},{then(h,v){return l.then(h,v)},attachTimeline(h){return m.timeline=h,m.onfinish=null,Ce},get time(){return qt(m.currentTime||0)},set time(h){m.currentTime=Nn(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return qt(d)},play:()=>{s||(m.play(),nn(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const v=ua({...o,autoplay:!1});e.setWithVelocity(v.sample(h-qi).value,v.sample(h).value,qi)}P()},complete:()=>m.finish(),cancel:P}}function h2({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ce,pause:Ce,stop:Ce,then:i=>(i(),Promise.resolve()),cancel:Ce,complete:Ce});return t?ua({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const m2={type:"spring",stiffness:500,damping:25,restSpeed:10},g2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),v2={type:"keyframes",duration:.8},y2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b2=(e,{keyframes:t})=>t.length>2?v2:lr.has(e)?e.startsWith("scale")?g2(t[1]):m2:y2,bc=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(An.test(t)||t==="0")&&!t.startsWith("url(")),x2=new Set(["brightness","contrast","saturate","opacity"]);function w2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ua)||[];if(!r)return e;const o=n.replace(r,"");let i=x2.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const S2=/([a-z-]*)\(.*?\)/g,xc={...An,getAnimatableNone:e=>{const t=e.match(S2);return t?t.map(w2).join(" "):e}},P2={...o0,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:xc,WebkitFilter:xc},uf=e=>P2[e];function H0(e,t){let n=uf(e);return n!==xc&&(n=An),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const K0=e=>/^0[^.\s]+$/.test(e);function C2(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||K0(e)}function E2(e,t,n,r){const o=bc(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<i.length;u++)i[u]===null&&(i[u]=u===0?s:i[u-1]),C2(i[u])&&l.push(u),typeof i[u]=="string"&&i[u]!=="none"&&i[u]!=="0"&&(a=i[u]);if(o&&l.length&&a)for(let u=0;u<l.length;u++){const c=l[u];i[c]=H0(t,a)}return i}function k2({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function G0(e,t){return e[t]||e.default||e}const cf=(e,t,n,r={})=>o=>{const i=G0(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Nn(s);const l=E2(t,e,n,i),u=l[0],c=l[l.length-1],d=bc(e,u),f=bc(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(k2(i)||(p={...p,...b2(e,p)}),p.duration&&(p.duration=Nn(p.duration)),p.repeatDelay&&(p.repeatDelay=Nn(p.repeatDelay)),!d||!f||ST.current||i.type===!1)return h2(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=p2(t,e,p);if(m)return m}return ua(p)};function ca(e){return!!(rt(e)&&e.add)}const T2=e=>/^\-?\d*\.?\d+$/.test(e);function df(e,t){e.indexOf(t)===-1&&e.push(t)}function ff(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class pf{constructor(){this.subscriptions=[]}add(t){return df(this.subscriptions,t),()=>ff(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const R2=e=>!isNaN(parseFloat(e));class N2{constructor(t,n={}){this.version="10.15.1",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Be;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,ge.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ge.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=R2(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new pf);const r=this.events[t].add(n);return t==="change"?()=>{r(),ge.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=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?z0(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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 Yr(e,t){return new N2(e,t)}const Q0=e=>t=>t.test(e),$2={test:e=>e==="auto",parse:e=>e},X0=[ur,K,_t,un,jk,Ok,$2],So=e=>X0.find(Q0(e)),M2=[...X0,Ke,An],L2=e=>M2.find(Q0(e));function A2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yr(n))}function O2(e,t){const n=Ha(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=Xk(i[s]);A2(e,s,a)}}function j2(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;a<s;a++){const l=i[a],u=t[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),c!=null&&(typeof c=="string"&&(T2(c)||K0(c))?c=parseFloat(c):!L2(c)&&An.test(u)&&(c=H0(l,u)),e.addValue(l,Yr(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function _2(e,t){return t?(t[e]||t.default||t).from:void 0}function D2(e,t,n){const r={};for(const o in e){const i=_2(o,t);if(i!==void 0)r[o]=i;else{const s=n.getValue(o);s&&(r[o]=s.get())}}return r}function I2({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Y0(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const f=e.getValue(d),p=a[d];if(!f||p===void 0||c&&I2(c,d))continue;const m={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!f.hasAnimated){const P=e.getProps()[xT];P&&(m.elapsed=window.HandoffAppearAnimations(P,d,f,ge))}f.start(cf(d,f,p,e.shouldReduceMotion&&lr.has(d)?{type:!1}:m));const y=f.animation;ca(l)&&(l.add(d),y.then(()=>l.remove(d))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&O2(e,s)}),u}function wc(e,t,n={}){const r=Ha(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Y0(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return F2(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function F2(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(V2).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(wc(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function V2(e,t){return e.sortNodePosition(t)}function B2(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>wc(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=wc(e,t,n);else{const o=typeof t=="function"?Ha(e,t,n.custom):t;r=Promise.all(Y0(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const z2=[...Gd].reverse(),U2=Gd.length;function W2(e){return t=>Promise.all(t.map(({animation:n,options:r})=>B2(e,n,r)))}function H2(e){let t=W2(e);const n=G2();let r=!0;const o=(l,u)=>{const c=Ha(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let m={},y=1/0;for(let b=0;b<U2;b++){const h=z2[b],v=n[h],S=c[h]!==void 0?c[h]:d[h],C=fi(S),R=h===u?v.isActive:null;R===!1&&(y=b);let T=S===d[h]&&S!==c[h]&&C;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),v.protectedKeys={...m},!v.isActive&&R===null||!S&&!v.prevProp||Ba(S)||typeof S=="boolean")continue;const x=K2(v.prevProp,S);let N=x||h===u&&v.isActive&&!T&&C||b>y&&C;const F=Array.isArray(S)?S:[S];let M=F.reduce(o,{});R===!1&&(M={});const{prevResolvedValues:B={}}=v,A={...B,...M},j=U=>{N=!0,p.delete(U),v.needsAnimating[U]=!0};for(const U in A){const Y=M[U],oe=B[U];m.hasOwnProperty(U)||(Y!==oe?sa(Y)&&sa(oe)?!b0(Y,oe)||x?j(U):v.protectedKeys[U]=!0:Y!==void 0?j(U):p.add(U):Y!==void 0&&p.has(U)?j(U):v.protectedKeys[U]=!0)}v.prevProp=S,v.prevResolvedValues=M,v.isActive&&(m={...m,...M}),r&&e.blockInitialAnimation&&(N=!1),N&&!T&&f.push(...F.map(U=>({animation:U,options:{type:h,...l}})))}if(p.size){const b={};p.forEach(h=>{const v=e.getBaseTarget(h);v!==void 0&&(b[h]=v)}),f.push({animation:b})}let P=!!f.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function K2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!b0(t,e):!1}function In(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G2(){return{animate:In(!0),whileInView:In(),whileHover:In(),whileTap:In(),whileDrag:In(),whileFocus:In(),exit:In()}}class Q2 extends Dn{constructor(t){super(t),t.animationState||(t.animationState=H2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ba(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let X2=0;class Y2 extends Dn{constructor(){super(...arguments),this.id=X2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const q2={animation:{Feature:Q2},exit:{Feature:Y2}},Oh=(e,t)=>Math.abs(e-t);function J2(e,t){const n=Oh(e.x,t.x),r=Oh(e.y,t.y);return Math.sqrt(n**2+r**2)}class q0{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Ul(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=J2(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=Be;this.history.push({...f,timestamp:p});const{onStart:m,onMove:y}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=zl(c,this.transformPagePoint),ge.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=Ul(u.type==="pointercancel"?this.lastMoveEventInfo:zl(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!h0(t))return;this.handlers=n,this.transformPagePoint=r;const o=Wa(t),i=zl(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Be;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,Ul(i,this.history)),this.removeListeners=Rn(Yt(window,"pointermove",this.handlePointerMove),Yt(window,"pointerup",this.handlePointerUp),Yt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),nn(this.updatePoint)}}function zl(e,t){return t?{point:t(e.point)}:e}function jh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ul({point:e},t){return{point:e,delta:jh(e,J0(t)),offset:jh(e,Z2(t)),velocity:eR(t,.1)}}function Z2(e){return e[0]}function J0(e){return e[e.length-1]}function eR(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=J0(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const i=qt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ut(e){return e.max-e.min}function Sc(e,t=0,n=.01){return Math.abs(e-t)<=n}function _h(e,t,n,r=.5){e.origin=r,e.originPoint=be(t.min,t.max,e.origin),e.scale=ut(n)/ut(t),(Sc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=be(n.min,n.max,e.origin)-e.originPoint,(Sc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Uo(e,t,n,r){_h(e.x,t.x,n.x,r?r.originX:void 0),_h(e.y,t.y,n.y,r?r.originY:void 0)}function Dh(e,t,n){e.min=n.min+t.min,e.max=e.min+ut(t)}function tR(e,t,n){Dh(e.x,t.x,n.x),Dh(e.y,t.y,n.y)}function Ih(e,t,n){e.min=t.min-n.min,e.max=e.min+ut(t)}function Wo(e,t,n){Ih(e.x,t.x,n.x),Ih(e.y,t.y,n.y)}function nR(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?be(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?be(n,e,r.max):Math.min(e,n)),e}function Fh(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 rR(e,{top:t,left:n,bottom:r,right:o}){return{x:Fh(e.x,n,o),y:Fh(e.y,t,r)}}function Vh(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 oR(e,t){return{x:Vh(e.x,t.x),y:Vh(e.y,t.y)}}function iR(e,t){let n=.5;const r=ut(e),o=ut(t);return o>r?n=hi(t.min,t.max-r,e.min):r>o&&(n=hi(e.min,e.max-o,t.min)),Ln(0,1,n)}function sR(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 Pc=.35;function aR(e=Pc){return e===!1?e=0:e===!0&&(e=Pc),{x:Bh(e,"left","right"),y:Bh(e,"top","bottom")}}function Bh(e,t,n){return{min:zh(e,t),max:zh(e,n)}}function zh(e,t){return typeof e=="number"?e:e[t]||0}const Uh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Or=()=>({x:Uh(),y:Uh()}),Wh=()=>({min:0,max:0}),Re=()=>({x:Wh(),y:Wh()});function $t(e){return[e("x"),e("y")]}function Z0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function uR(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 Wl(e){return e===void 0||e===1}function Cc({scale:e,scaleX:t,scaleY:n}){return!Wl(e)||!Wl(t)||!Wl(n)}function Bn(e){return Cc(e)||e1(e)||e.z||e.rotate||e.rotateX||e.rotateY}function e1(e){return Hh(e.x)||Hh(e.y)}function Hh(e){return e&&e!=="0%"}function da(e,t,n){const r=e-n,o=t*r;return n+o}function Kh(e,t,n,r,o){return o!==void 0&&(e=da(e,o,r)),da(e,n,r)+t}function Ec(e,t=0,n=1,r,o){e.min=Kh(e.min,t,n,r,o),e.max=Kh(e.max,t,n,r,o)}function t1(e,{x:t,y:n}){Ec(e.x,t.translate,t.scale,t.originPoint),Ec(e.y,n.translate,n.scale,n.originPoint)}function cR(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&jr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,t1(e,s)),r&&Bn(i.latestValues)&&jr(e,i.latestValues))}t.x=Gh(t.x),t.y=Gh(t.y)}function Gh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function fn(e,t){e.min=e.min+t,e.max=e.max+t}function Qh(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=be(e.min,e.max,i);Ec(e,t[n],t[r],s,t.scale)}const dR=["x","scaleX","originX"],fR=["y","scaleY","originY"];function jr(e,t){Qh(e.x,t,dR),Qh(e.y,t,fR)}function n1(e,t){return Z0(uR(e.getBoundingClientRect(),t))}function pR(e,t,n){const r=n1(e,n),{scroll:o}=t;return o&&(fn(r.x,o.offset.x),fn(r.y,o.offset.y)),r}const hR=new WeakMap;class mR{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Re(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=l=>{this.stopAnimation(),n&&this.snapToCursor(Wa(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=g0(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$t(m=>{let y=this.getAxisMotionValue(m).get()||0;if(_t.test(y)){const{projection:P}=this.visualElement;if(P&&P.layout){const b=P.layout.layoutBox[m];b&&(y=ut(b)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&ge.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=gR(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new q0(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&ge.update(()=>i(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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ji(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=nR(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&Lr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=rR(r.layoutBox,t):this.constraints=!1,this.elastic=aR(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$t(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=sR(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Lr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=pR(r,o.root,this.visualElement.getTransformPagePoint());let s=oR(o.layout.layoutBox,i);if(n){const a=n(lR(s));this.hasMutatedConstraints=!!a,a&&(s=Z0(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=$t(c=>{if(!Ji(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(cf(t,r,0,n))}stopAnimation(){$t(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$t(n=>{const{drag:r}=this.getProps();if(!Ji(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-be(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Lr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};$t(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=iR({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$t(s=>{if(!Ji(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(be(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;hR.set(this.visualElement,this);const t=this.visualElement.current,n=Yt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Lr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Gt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&($t(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Pc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ji(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vR extends Dn{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new mR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xh=e=>(t,n)=>{e&&ge.update(()=>e(t,n))};class yR extends Dn{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new q0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Xh(t),onStart:Xh(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ge.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Yt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function bR(){const e=g.useContext(Fa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=g.useId();return g.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const xs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=Yh(e,t.target.x),r=Yh(e,t.target.y);return`${n}% ${r}%`}},xR={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=An.parse(e);if(o.length>5)return r;const i=An.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=be(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class wR extends ie.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Tk(SR),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ge.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function r1(e){const[t,n]=bR(),r=g.useContext(Xd);return ie.createElement(wR,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(Zy),isPresent:t,safeToRemove:n})}const SR={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:xR},o1=["TopLeft","TopRight","BottomLeft","BottomRight"],PR=o1.length,qh=e=>typeof e=="string"?parseFloat(e):e,Jh=e=>typeof e=="number"||K.test(e);function CR(e,t,n,r,o,i){o?(e.opacity=be(0,n.opacity!==void 0?n.opacity:1,ER(r)),e.opacityExit=be(t.opacity!==void 0?t.opacity:1,0,kR(r))):i&&(e.opacity=be(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<PR;s++){const a=`border${o1[s]}Radius`;let l=Zh(t,a),u=Zh(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Jh(l)===Jh(u)?(e[a]=Math.max(be(qh(l),qh(u),r),0),(_t.test(u)||_t.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=be(t.rotate||0,n.rotate||0,r))}function Zh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ER=i1(0,.5,sf),kR=i1(.5,.95,Ce);function i1(e,t,n){return r=>r<e?0:r>t?1:n(hi(e,t,r))}function em(e,t){e.min=t.min,e.max=t.max}function ft(e,t){em(e.x,t.x),em(e.y,t.y)}function tm(e,t,n,r,o){return e-=t,e=da(e,1/n,r),o!==void 0&&(e=da(e,1/o,r)),e}function TR(e,t=0,n=1,r=.5,o,i=e,s=e){if(_t.test(t)&&(t=parseFloat(t),t=be(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=be(i.min,i.max,r);e===i&&(a-=t),e.min=tm(e.min,t,n,a,o),e.max=tm(e.max,t,n,a,o)}function nm(e,t,[n,r,o],i,s){TR(e,t[n],t[r],t[o],t.scale,i,s)}const RR=["x","scaleX","originX"],NR=["y","scaleY","originY"];function rm(e,t,n,r){nm(e.x,t,RR,n?n.x:void 0,r?r.x:void 0),nm(e.y,t,NR,n?n.y:void 0,r?r.y:void 0)}function om(e){return e.translate===0&&e.scale===1}function s1(e){return om(e.x)&&om(e.y)}function $R(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function a1(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function im(e){return ut(e.x)/ut(e.y)}class MR{constructor(){this.members=[]}add(t){df(this.members,t),t.scheduleRender()}remove(t){if(ff(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 sm(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const LR=(e,t)=>e.depth-t.depth;class AR{constructor(){this.children=[],this.isDirty=!1}add(t){df(this.children,t),this.isDirty=!0}remove(t){ff(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(LR),this.isDirty=!1,this.children.forEach(t)}}function OR(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(nn(r),e(i-t))};return ge.read(r,!0),()=>nn(r)}function jR(e){window.MotionDebug&&window.MotionDebug.record(e)}function _R(e){return e instanceof SVGElement&&e.tagName!=="svg"}function DR(e,t,n){const r=rt(e)?e:Yr(e);return r.start(cf("",r,t,n)),r.animation}const am=["","X","Y","Z"],lm=1e3;let IR=0;const zn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function l1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=IR++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{zn.totalNodes=zn.resolvedTargetDeltas=zn.recalculatedProjection=0,this.nodes.forEach(BR),this.nodes.forEach(KR),this.nodes.forEach(GR),this.nodes.forEach(zR),jR(zn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new AR)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new pf),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_R(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=OR(f,250),xs.hasAnimatedSinceResize&&(xs.hasAnimatedSinceResize=!1,this.nodes.forEach(cm))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||JR,{onLayoutAnimationStart:P,onLayoutAnimationComplete:b}=c.getProps(),h=!this.targetLayout||!a1(this.targetLayout,m)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const S={...G0(y,"layout"),onPlay:P,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||cm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,nn(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(QR),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!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:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(um);return}this.isUpdating||this.nodes.forEach(WR),this.isUpdating=!1,this.nodes.forEach(HR),this.nodes.forEach(FR),this.nodes.forEach(VR),this.clearAllSnapshots();const a=performance.now();Be.delta=Ln(0,1e3/60,a-Be.timestamp),Be.timestamp=a,Be.isProcessing=!0,Ol.update.process(Be),Ol.preRender.process(Be),Ol.render.process(Be),Be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(UR),this.sharedNodes.forEach(XR)}scheduleUpdateProjection(){ge.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ge.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!s1(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||Bn(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),ZR(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Re();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(fn(a.x,l.offset.x),fn(a.y,l.offset.y)),a}removeElementScroll(s){const a=Re();ft(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;if(u!==this.root&&c&&d.layoutScroll){if(c.isRoot){ft(a,s);const{scroll:f}=this.root;f&&(fn(a.x,-f.offset.x),fn(a.y,-f.offset.y))}fn(a.x,c.offset.x),fn(a.y,c.offset.y)}}return a}applyTransform(s,a=!1){const l=Re();ft(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&jr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Bn(c.latestValues)&&jr(l,c.latestValues)}return Bn(this.latestValues)&&jr(l,this.latestValues),l}removeTransform(s){const a=Re();ft(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Bn(u.latestValues))continue;Cc(u.latestValues)&&u.updateSnapshot();const c=Re(),d=u.measurePageBox();ft(c,d),rm(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Bn(this.latestValues)&&rm(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Be.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Wo(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ft(this.target,this.layout.layoutBox),t1(this.target,this.targetDelta)):ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Wo(this.relativeTargetOrigin,this.target,p.target),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}zn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Cc(this.parent.latestValues)||e1(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Be.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;ft(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;cR(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=Or(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Or(),this.projectionDeltaWithTransform=Or());const y=this.projectionTransform;Uo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=sm(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==f||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),zn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Re(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,P=this.getStack(),b=!P||P.members.length<=1,h=!!(y&&!b&&this.options.crossfade===!0&&!this.path.some(qR));this.animationProgress=0;let v;this.mixTargetDelta=S=>{const C=S/1e3;dm(d.x,s.x,C),dm(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wo(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),YR(this.relativeTarget,this.relativeTargetOrigin,f,C),v&&$R(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Re()),ft(v,this.relativeTarget)),y&&(this.animationValues=c,CR(c,u,this.latestValues,C,h,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(nn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ge.update(()=>{xs.hasAnimatedSinceResize=!0,this.currentAnimation=DR(0,lm,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(lm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&u1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Re();const d=ut(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=ut(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ft(a,l),jr(a,c),Uo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new MR),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c<am.length;c++){const d="rotate"+am[c];l[d]&&(u[d]=l[d],s.setStaticValue(d,0))}s.render();for(const c in u)s.setStaticValue(c,u[c]);s.scheduleRender()}getProjectionStyles(s={}){var a,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=bs(s.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=bs(s.pointerEvents)||""),this.hasProjected&&!Bn(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=sm(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:p,y:m}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l: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 oa){if(f[y]===void 0)continue;const{correct:P,applyTo:b}=oa[y],h=u.transform==="none"?f[y]:P(f[y],d);if(b){const v=b.length;for(let S=0;S<v;S++)u[b[S]]=h}else u[y]=h}return this.options.layoutId&&(u.pointerEvents=d===this?bs(s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(um),this.root.sharedNodes.clear()}}}function FR(e){e.updateLayout()}function VR(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:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?$t(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=ut(f);f.min=r[d].min,f.max=f.min+p}):u1(i,n.layoutBox,r)&&$t(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=ut(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Or();Uo(a,r,n.layoutBox);const l=Or();s?Uo(l,e.applyTransform(o,!0),n.measuredBox):Uo(l,r,n.layoutBox);const u=!s1(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Re();Wo(m,n.layoutBox,f.layoutBox);const y=Re();Wo(y,r,p.layoutBox),a1(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function BR(e){zn.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 zR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UR(e){e.clearSnapshot()}function um(e){e.clearMeasurements()}function WR(e){e.isLayoutDirty=!1}function HR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KR(e){e.resolveTargetDelta()}function GR(e){e.calcProjection()}function QR(e){e.resetRotation()}function XR(e){e.removeLeadSnapshot()}function dm(e,t,n){e.translate=be(t.translate,0,n),e.scale=be(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fm(e,t,n,r){e.min=be(t.min,n.min,r),e.max=be(t.max,n.max,r)}function YR(e,t,n,r){fm(e.x,t.x,n.x,r),fm(e.y,t.y,n.y,r)}function qR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JR={duration:.45,ease:[.4,0,.1,1]},pm=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),hm=pm("applewebkit/")&&!pm("chrome/")?Math.round:Ce;function mm(e){e.min=hm(e.min),e.max=hm(e.max)}function ZR(e){mm(e.x),mm(e.y)}function u1(e,t,n){return e==="position"||e==="preserve-aspect"&&!Sc(im(t),im(n),.2)}const eN=l1({attachResizeListener:(e,t)=>Gt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hl={current:void 0},c1=l1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hl.current){const e=new eN({});e.mount(window),e.setOptions({layoutScroll:!0}),Hl.current=e}return Hl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tN={pan:{Feature:yR},drag:{Feature:vR,ProjectionNode:c1,MeasureLayout:r1}},nN=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rN(e){const t=nN.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function kc(e,t,n=1){const[r,o]=rN(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():mc(o)?kc(o,t,n+1):o}function oN(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!mc(i))return;const s=kc(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!mc(i))continue;const s=kc(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const iN=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),d1=e=>iN.has(e),sN=e=>Object.keys(e).some(d1),gm=e=>e===ur||e===K,vm=(e,t)=>parseFloat(e.split(", ")[t]),ym=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return vm(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?vm(i[1],e):0}},aN=new Set(["x","y","z"]),lN=Ci.filter(e=>!aN.has(e));function uN(e){const t=[];return lN.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const qr={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:ym(4,13),y:ym(5,14)};qr.translateX=qr.x;qr.translateY=qr.y;const cN=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=qr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=qr[u](l,i)}),e},dN=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(d1);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=So(c);const f=t[l];let p;if(sa(f)){const m=f.length,y=f[0]===null?1:0;c=f[y],d=So(c);for(let P=y;P<m&&f[P]!==null;P++)p?of(So(f[P])===p):p=So(f[P])}else p=So(f);if(d!==p)if(gm(d)&&gm(p)){const m=u.get();typeof m=="string"&&u.set(parseFloat(m)),typeof f=="string"?t[l]=parseFloat(f):Array.isArray(f)&&p===K&&(t[l]=f.map(parseFloat))}else d!=null&&d.transform&&(p!=null&&p.transform)&&(c===0||f===0)?c===0?u.set(p.transform(c)):t[l]=d.transform(f):(s||(i=uN(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(f))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=cN(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Va&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function fN(e,t,n,r){return sN(t)?dN(e,t,n,r):{target:t,transitionEnd:r}}const pN=(e,t,n,r)=>{const o=oN(e,t,r);return t=o.target,r=o.transitionEnd,fN(e,t,n,r)},Tc={current:null},f1={current:!1};function hN(){if(f1.current=!0,!!Va)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Tc.current=e.matches;e.addListener(t),t()}else Tc.current=!1}function mN(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(rt(i))e.addValue(o,i),ca(r)&&r.add(o);else if(rt(s))e.addValue(o,Yr(i,{owner:e})),ca(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,Yr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const bm=new WeakMap,p1=Object.keys(pi),gN=p1.length,xm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vN=Qd.length;class yN{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>ge.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=za(n),this.isVariantNode=Jy(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&rt(f)&&(f.set(a[d],!1),ca(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,bm.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)),f1.current||hN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bm.delete(this.current),this.projection&&this.projection.unmount(),nn(this.notifyUpdate),nn(this.render),this.valueSubscriptions.forEach(t=>t()),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)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=lr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ge.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;l<gN;l++){const u=p1[l],{isEnabled:c,Feature:d,ProjectionNode:f,MeasureLayout:p}=pi[u];f&&(s=f),c(n)&&(!this.features[u]&&d&&(this.features[u]=new d(this)),p&&(a=p))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||d&&Lr(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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<xm.length;r++){const o=xm[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=mN(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<vN;r++){const o=Qd[r],i=this.props[o];(fi(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(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=Yr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=rf(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!rt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class h1 extends yN{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=D2(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){j2(this,r,s);const a=pN(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function bN(e){return window.getComputedStyle(e)}class xN extends h1{readValueFromInstance(t,n){if(lr.has(n)){const r=uf(n);return r&&r.default||0}else{const r=bN(t),o=(n0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return n1(t,n)}build(t,n,r,o){qd(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return nf(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){l0(t,n,r,o)}}class wN extends h1{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(lr.has(n)){const r=uf(n);return r&&r.default||0}return n=u0.has(n)?n:tf(n),t.getAttribute(n)}measureInstanceViewportBox(){return Re()}scrapeMotionValuesFromProps(t,n){return d0(t,n)}build(t,n,r,o){Zd(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){c0(t,n,r,o)}mount(t){this.isSVGTag=ef(t.tagName),super.mount(t)}}const SN=(e,t)=>Yd(e)?new wN(t,{enableHardwareAcceleration:!1}):new xN(t,{enableHardwareAcceleration:!0}),PN={layout:{ProjectionNode:c1,MeasureLayout:r1}},CN={...q2,...gT,...tN,...PN},hf=Ek((e,t)=>eT(e,t,CN,SN));function m1(){const e=g.useRef(!1);return ra(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function EN(){const e=m1(),[t,n]=g.useState(0),r=g.useCallback(()=>{e.current&&n(t+1)},[t]);return[g.useCallback(()=>ge.postRender(r),[r]),t]}class kN extends g.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 TN({children:e,isPresent:t}){const n=g.useId(),r=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${i}px !important;
height: ${s}px !important;
top: ${a}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),g.createElement(kN,{isPresent:t,childRef:r,sizeRef:o},g.cloneElement(e,{ref:r}))}const Kl=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=f0(RN),l=g.useId(),u=g.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return g.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),g.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=g.createElement(TN,{isPresent:n},e)),g.createElement(Fa.Provider,{value:u},e)};function RN(){return new Map}function NN(e){return g.useEffect(()=>()=>e(),[])}const vr=e=>e.key||"";function $N(e,t){e.forEach(n=>{const r=vr(n);t.set(r,n)})}function MN(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const g1=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=g.useContext(Xd).forceRender||EN()[0],l=m1(),u=MN(e);let c=u;const d=g.useRef(new Map).current,f=g.useRef(c),p=g.useRef(new Map).current,m=g.useRef(!0);if(ra(()=>{m.current=!1,$N(u,p),f.current=c}),NN(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return g.createElement(g.Fragment,null,c.map(h=>g.createElement(Kl,{key:vr(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const y=f.current.map(vr),P=u.map(vr),b=y.length;for(let h=0;h<b;h++){const v=y[h];P.indexOf(v)===-1&&!d.has(v)&&d.set(v,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((h,v)=>{if(P.indexOf(v)!==-1)return;const S=p.get(v);if(!S)return;const C=y.indexOf(v);let R=h;if(!R){const T=()=>{p.delete(v),d.delete(v);const x=f.current.findIndex(N=>N.key===v);if(f.current.splice(x,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};R=g.createElement(Kl,{key:vr(S),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(v,R)}c.splice(C,0,R)}),c=c.map(h=>{const v=h.key;return d.has(v)?h:g.createElement(Kl,{key:vr(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),g.createElement(g.Fragment,null,d.size?c:c.map(h=>g.cloneElement(h)))};var wm={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},LN=()=>E.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[E.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),E.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[dM,AN]=Da({name:"AvatarGroupContext",strict:!1}),ON=globalThis!=null&&globalThis.document?g.useLayoutEffect:g.useEffect;function jN(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=g.useState("pending");g.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=g.useRef(),f=g.useCallback(()=>{if(!n)return;p();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=y=>{p(),c("loaded"),o==null||o(y)},m.onerror=y=>{p(),c("failed"),i==null||i(y)},d.current=m},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return ON(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}function _N(e={}){var t,n,r,o,i;const s=AN(),a=!!s,{as:l,ref:u,src:c,name:d,icon:f,classNames:p,fallback:m,alt:y=d||"avatar",imgRef:P,color:b=(t=s==null?void 0:s.color)!=null?t:"default",radius:h=(n=s==null?void 0:s.radius)!=null?n:"full",size:v=(r=s==null?void 0:s.size)!=null?r:"md",isBordered:S=(o=s==null?void 0:s.isBordered)!=null?o:!1,isDisabled:C=(i=s==null?void 0:s.isDisabled)!=null?i:!1,isFocusable:R=!1,getInitials:T=ek,ignoreFallback:x=!1,showFallback:N=!1,ImgComponent:F="img",imgProps:M,className:B,onError:A,...j}=e,U=l||"span",Y=He(u),oe=He(P),{isFocusVisible:O,isFocused:L,focusProps:I}=rr(),{isHovered:w,hoverProps:k}=Pi({isDisabled:C}),V=jN({src:c,onError:A,ignoreFallback:x})==="loaded",W=(!c||!V)&&N,H=g.useMemo(()=>{var ve;return JE({color:b,radius:h,size:v,isBordered:S,isDisabled:C,isInGroup:a,isInGridGroup:(ve=s==null?void 0:s.isGrid)!=null?ve:!1})},[b,h,v,S,C,a,s==null?void 0:s.isGrid]),Q=le(p==null?void 0:p.base,B),te=g.useMemo(()=>R||l==="button",[R,l]),q=g.useCallback((ve={})=>({ref:Y,tabIndex:te?0:-1,"data-hover":X(w),"data-focus":X(L),"data-focus-visible":X(O),className:H.base({class:le(Q,ve==null?void 0:ve.className)}),...we(j,k,te?I:{})}),[te,H,Q,I,j]),ae=g.useCallback((ve={})=>({ref:oe,src:c,"data-loaded":X(V),className:H.img({class:p==null?void 0:p.img}),...we(M,ve)}),[H,V,M,c,oe]);return{Component:U,ImgComponent:F,src:c,alt:y,icon:f,name:d,imgRef:oe,slots:H,classNames:p,fallback:m,isImgLoaded:V,showFallback:W,ignoreFallback:x,getInitials:T,getAvatarProps:q,getImageProps:ae}}var v1=Ie((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=E.jsx(LN,{}),alt:s,classNames:a,slots:l,name:u,showFallback:c,fallback:d,getInitials:f,getAvatarProps:p,getImageProps:m}=_N({...e,ref:t}),y=g.useMemo(()=>!c&&o?null:d?E.jsx("div",{"aria-label":s,className:l.fallback({class:a==null?void 0:a.fallback}),role:"img",children:d}):u?E.jsx("span",{"aria-label":s,className:l.name({class:a==null?void 0:a.name}),role:"img",children:f(u)}):E.jsx("span",{"aria-label":s,className:l.icon({class:a==null?void 0:a.icon}),role:"img",children:i}),[c,o,d,u,a]);return E.jsxs(n,{...p(),children:[o&&E.jsx(r,{...m(),alt:s}),y]})});v1.displayName="NextUI.Avatar";var DN=v1,[fM,IN]=Da({name:"ButtonGroupContext",strict:!1});function mf(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressChange:a,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:c,href:d,target:f,rel:p,type:m="button",allowTextSelectionOnPress:y}=e,P;n==="button"?P={type:m,disabled:r}:P={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:d,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:b,isPressed:h}=Bd({onPressStart:i,onPressEnd:s,onPressChange:a,onPress:o,isDisabled:r,preventFocusOnPress:l,allowTextSelectionOnPress:y,ref:t}),{focusableProps:v}=Hd(e,t);u&&(v.tabIndex=r?-1:v.tabIndex);let S=we(v,b,Fd(e,{labelable:!0}));return{isPressed:h,buttonProps:we(P,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:C=>{c&&c(C)}})}}var FN=(e,t,n)=>Math.min(Math.max(e,t),n),y1=({ripples:e=[],motionProps:t,color:n="currentColor",style:r})=>E.jsx(E.Fragment,{children:e.map(o=>{const i=FN(.01*o.size,.2,o.size>100?.75:.5);return E.jsx(g1,{mode:"popLayout",children:E.jsx(hf.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:o.y,left:o.x,width:`${o.size}px`,height:`${o.size}px`,...r},transition:{duration:i},...t})},o.key)})});y1.displayName="NextUI.Ripple";var b1=y1;function x1(e={}){const{removeAfter:t=1e3,...n}=e,[r,o]=g.useState([]);g.useEffect(()=>{const s=r.map((a,l)=>setTimeout(()=>{o(u=>u.filter((c,d)=>d!==l))},t));return()=>{s.forEach(a=>clearTimeout(a))}},[r]);const i=g.useCallback(s=>{const a=s.currentTarget,l=Math.max(a.clientWidth,a.clientHeight),u=a.getBoundingClientRect();o(c=>[...c,{key:new Date().getTime(),size:l,x:s.clientX-u.x-l/2,y:s.clientY-u.y-l/2}])},[]);return{ripples:r,onClick:i,...n}}function VN(e){var t,n,r,o,i,s,a,l;const u=IN(),c=!!u,{ref:d,as:f,children:p,startContent:m,endContent:y,autoFocus:P,className:b,spinner:h,fullWidth:v=(t=u==null?void 0:u.fullWidth)!=null?t:!1,size:S=(n=u==null?void 0:u.size)!=null?n:"md",color:C=(r=u==null?void 0:u.color)!=null?r:"default",variant:R=(o=u==null?void 0:u.variant)!=null?o:"solid",disableAnimation:T=(i=u==null?void 0:u.disableAnimation)!=null?i:!1,radius:x=u==null?void 0:u.radius,disableRipple:N=(s=u==null?void 0:u.disableRipple)!=null?s:!1,isDisabled:F=(a=u==null?void 0:u.isDisabled)!=null?a:!1,isIconOnly:M=(l=u==null?void 0:u.isIconOnly)!=null?l:!1,isLoading:B=!1,spinnerPlacement:A="start",onPress:j,onClick:U,...Y}=e,oe=f||"button",O=typeof oe=="string",L=He(d),{isFocusVisible:I,isFocused:w,focusProps:k}=rr({autoFocus:P}),_=F||B,V=g.useMemo(()=>ZE({size:S,color:C,variant:R,radius:x,fullWidth:v,isDisabled:_,isInGroup:c,disableAnimation:T,isIconOnly:M,className:b}),[S,C,R,x,v,_,c,M,T,b]),{onClick:W,ripples:H}=x1(),Q=g.useCallback(Vt=>{N||_||T||L.current&&W(Vt)},[N,_,T,L,W]),{buttonProps:te,isPressed:q}=mf({elementType:f,isDisabled:_,onPress:j,onClick:Si(U,Q),...Y},L),{isHovered:ae,hoverProps:ve}=Pi({isDisabled:_}),Ft=g.useCallback((Vt={})=>({"data-disabled":X(_),"data-focus":X(w),"data-pressed":X(q),"data-focus-visible":X(I),"data-hover":X(ae),"data-loading":X(B),...we(te,k,ve,di(Y,{enabled:O}),di(Vt))}),[B,_,w,q,O,I,ae,te,k,ve,Y]),ue=Vt=>g.isValidElement(Vt)?g.cloneElement(Vt,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,Ga=ue(m),Qa=ue(y),Xa=g.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[S],[S]);return{Component:oe,children:p,domRef:L,ripples:H,spinner:h,styles:V,startContent:Ga,endContent:Qa,isLoading:B,spinnerPlacement:A,spinnerSize:Xa,disableRipple:N,getButtonProps:Ft}}function BN(e){const[t,n]=so(e,fh.variantKeys),{children:r,className:o,classNames:i,label:s,...a}=t,l=g.useMemo(()=>fh({...n}),[...Object.values(n)]),u=le(i==null?void 0:i.base,o),c=s||r,d=g.useMemo(()=>c&&typeof c=="string"?c:a["aria-label"]?"":"Loading",[r,c,a["aria-label"]]),f=g.useCallback(()=>({"aria-label":d,className:l.base({class:u}),...a}),[d,l,u,a]);return{label:c,slots:l,classNames:i,getSpinnerProps:f}}var w1=Ie((e,t)=>{const{slots:n,classNames:r,label:o,getSpinnerProps:i}=BN({...e});return E.jsxs("div",{ref:t,...i(),children:[E.jsxs("div",{className:n.wrapper({class:r==null?void 0:r.wrapper}),children:[E.jsx("i",{className:n.circle1({class:r==null?void 0:r.circle1})}),E.jsx("i",{className:n.circle2({class:r==null?void 0:r.circle2})})]}),o&&E.jsx("span",{className:n.label(),children:o})]})});w1.displayName="NextUI.Spinner";var zN=w1,S1=Ie((e,t)=>{const{Component:n,domRef:r,children:o,styles:i,ripples:s,spinnerSize:a,spinner:l=E.jsx(zN,{color:"current",size:a}),spinnerPlacement:u,startContent:c,endContent:d,isLoading:f,disableRipple:p,getButtonProps:m}=VN({...e,ref:t});return E.jsxs(n,{ref:r,className:i,...m(),children:[c,f&&u==="start"&&l,o,f&&u==="end"&&l,d,!p&&E.jsx(b1,{ripples:s})]})});S1.displayName="NextUI.Button";var Sm=S1,[UN,gf]=Da({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),P1=Ie((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=He(t),{slots:u,classNames:c}=gf(),d=le(c==null?void 0:c.body,o);return E.jsx(a,{ref:l,className:(n=u.body)==null?void 0:n.call(u,{class:d}),...s,children:i})});P1.displayName="NextUI.CardBody";var C1=P1,E1=Ie((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=He(t),{slots:u,classNames:c}=gf(),d=le(c==null?void 0:c.body,o);return E.jsx(a,{ref:l,className:(n=u.footer)==null?void 0:n.call(u,{class:d}),...s,children:i})});E1.displayName="NextUI.CardFooter";var WN=E1,k1=Ie((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=He(t),{slots:u,classNames:c}=gf(),d=le(c==null?void 0:c.header,o);return E.jsx(a,{ref:l,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...s,children:i})});k1.displayName="NextUI.CardHeader";var HN=k1;function KN(e){const[t,n]=so(e,gh.variantKeys),{ref:r,as:o,children:i,disableRipple:s=!1,onClick:a,onPress:l,autoFocus:u,className:c,classNames:d,allowTextSelectionOnPress:f=!0,...p}=t,m=He(r),y=o||(e.isPressable?"button":"div"),P=typeof y=="string",b=le(d==null?void 0:d.base,c),{onClick:h,ripples:v}=x1(),S=U=>{!e.disableAnimation&&!s&&m.current&&h(U)},{buttonProps:C,isPressed:R}=mf({onPress:l,elementType:o,isDisabled:!e.isPressable,onClick:Si(a,S),allowTextSelectionOnPress:f,...p},m),{hoverProps:T,isHovered:x}=Pi({isDisabled:!e.isHoverable,...p}),{isFocusVisible:N,isFocused:F,focusProps:M}=rr({autoFocus:u}),B=g.useMemo(()=>gh({...n}),[...Object.values(n)]),A=g.useMemo(()=>({isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,disableAnimation:e.disableAnimation,fullWidth:e.fullWidth,slots:B,classNames:d}),[B,d,e.isDisabled,e.isFooterBlurred,e.disableAnimation,e.fullWidth]),j=g.useCallback((U={})=>({ref:m,className:B.base({class:b}),tabIndex:e.isPressable?0:-1,"data-hover":X(x),"data-pressed":X(R),"data-focus":X(F),"data-focus-visible":X(N),"data-disabled":X(e.isDisabled),...we(e.isPressable?{...C,...M,role:"button"}:{},e.isHoverable?T:{},di(p,{enabled:P}),di(U))}),[m,B,b,P,e.isPressable,e.isHoverable,e.isDisabled,x,R,N,C,M,T,p]);return{context:A,domRef:m,Component:y,classNames:d,children:i,ripples:v,isHovered:x,isPressed:R,isPressable:e.isPressable,isHoverable:e.isHoverable,disableAnimation:e.disableAnimation,disableRipple:s,handleClick:S,isFocusVisible:N,getCardProps:j}}var T1=Ie((e,t)=>{const{children:n,context:r,Component:o,ripples:i,isPressable:s,disableAnimation:a,disableRipple:l,getCardProps:u}=KN({...e,ref:t});return E.jsxs(o,{...u(),children:[E.jsx(UN,{value:r,children:n}),s&&!a&&!l&&E.jsx(b1,{ripples:i})]})});T1.displayName="NextUI.Card";var vf=T1;function GN(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=qs(t);let s=qs(),a={};n?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=fC({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function QN(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=GN(e),s=Gp([!!t,!!n,r]),a=Gp([!!t,!!n,r]);return i=we(i,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:a}}}function XN(e={}){let{isReadOnly:t}=e,[n,r]=Id(e.isSelected,e.defaultSelected||!1,e.onChange);function o(s){t||r(s)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function YN(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:s,isDisabled:a,...l}=e,u={};n!=="a"&&(u={role:"link",tabIndex:a?void 0:0});let{focusableProps:c}=Hd(e,t),{pressProps:d,isPressed:f}=Bd({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:a,ref:t}),p=Fd(l,{labelable:!0}),m=we(c,d);return{isPressed:f,linkProps:we(p,{...m,...u,"aria-disabled":a||void 0,"aria-current":e["aria-current"],onClick:y=>{var P;(P=d.onClick)===null||P===void 0||P.call(d,y),s&&(s(y),console.warn("onClick is deprecated, please use onPress"))}})}}function qN(e){var t,n;const[r,o]=so(e,hh.variantKeys),{ref:i,as:s,children:a,anchorIcon:l,isExternal:u=!1,showAnchorIcon:c=!1,autoFocus:d=!1,className:f,onPress:p,onPressStart:m,onPressEnd:y,onClick:P,...b}=r,h=s||"a",v=He(i),{linkProps:S}=YN({...b,onPress:p,onPressStart:m,onPressEnd:y,onClick:P,isDisabled:e.isDisabled,elementType:`${s}`},v),{isFocused:C,isFocusVisible:R,focusProps:T}=rr({autoFocus:d});u&&(b.rel=(t=b.rel)!=null?t:"noopener noreferrer",b.target=(n=b.target)!=null?n:"_blank");const x=g.useMemo(()=>hh({...o,className:f}),[...Object.values(o),f]),N=g.useCallback(()=>({ref:v,className:x,"data-focus":X(C),"data-disabled":X(e.isDisabled),"data-focus-visible":X(R),...we(T,S,b)}),[x,C,R,T,S,b]);return{Component:h,children:a,anchorIcon:l,showAnchorIcon:c,getLinkProps:N}}var R1=Ie((e,t)=>{const{Component:n,children:r,showAnchorIcon:o,anchorIcon:i=E.jsx(mk,{className:qE}),getLinkProps:s}=qN({ref:t,...e});return E.jsx(n,{...s(),children:E.jsxs(E.Fragment,{children:[r,o&&i]})})});R1.displayName="NextUI.Link";var Pm=R1;function JN(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,validationState:s,type:a="text",onChange:l=()=>{}}=e,{focusableProps:u}=Hd(e,t),{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:p}=QN(e),m=Fd(e,{labelable:!0});const y={type:a,pattern:e.pattern};return{labelProps:c,inputProps:we(m,n==="input"&&y,{disabled:r,readOnly:i,"aria-required":o||void 0,"aria-invalid":s==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:P=>l(P.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...d}),descriptionProps:f,errorMessageProps:p}}function ZN(e){var t,n;const[r,o]=so(e,ph.variantKeys),{ref:i,as:s,label:a,description:l,errorMessage:u,className:c,classNames:d,autoFocus:f,startContent:p,endContent:m,onClear:y,onChange:P,onValueChange:b=()=>{},...h}=r,v=g.useCallback(J=>{b(J??"")},[b]),[S,C]=Id((t=r.value)!=null?t:void 0,(n=r.defaultValue)!=null?n:void 0,v),R=s||"div",T=le(d==null?void 0:d.base,c,S?"is-filled":""),x=e.isMultiline,N=He(i),F=g.useCallback(()=>{C(""),N.current&&(N.current.value="",N.current.focus()),y==null||y()},[N,C,y]),{labelProps:M,inputProps:B,descriptionProps:A,errorMessageProps:j}=JN({...e,"aria-label":tk(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:x?"textarea":"input",value:S,onChange:C},N),{isFocusVisible:U,isFocused:Y,focusProps:oe}=rr({autoFocus:f,isTextInput:!0}),{isHovered:O,hoverProps:L}=Pi({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:I,isFocusVisible:w}=rr(),{pressProps:k}=Bd({isDisabled:!!(e!=null&&e.isDisabled),onPress:F}),_=r.validationState==="invalid",V=g.useMemo(()=>{var J;return(!e.labelPlacement||e.labelPlacement==="inside")&&!a?"outside":(J=e.labelPlacement)!=null?J:"inside"},[e.labelPlacement,a]),W=!r.placeholder&&V!=="outside-left"&&!x,H=!!y||e.isClearable,Q=!!a||!!l||!!u,te=!!r.placeholder,q=!!l||!!u,ae=V==="outside"||V==="outside-left",ve=V==="inside",Ft=!!p,ue=g.useMemo(()=>ph({...o,isInvalid:_,isClearable:H,labelPlacement:V,isLabelPlaceholder:W&&!Ft}),[...Object.values(o),_,V,H,W,Ft]),Ga=g.useCallback((J={})=>({className:ue.base({class:T}),"data-focus-visible":X(U),"data-readonly":X(e.isReadOnly),"data-focus":X(Y),"data-hover":X(O),"data-required":X(e.isRequired),"data-invalid":X(_),"data-disabled":X(e.isDisabled),"data-has-elements":X(Q),"data-has-helper":X(q),...J}),[ue,T,Y,O,_,q,Q,U,e.isReadOnly,e.isRequired,e.isDisabled]),Qa=g.useCallback((J={})=>({className:ue.label({class:d==null?void 0:d.label}),...M,...J}),[ue,M,d==null?void 0:d.label]),Xa=g.useCallback((J={})=>({ref:N,className:ue.input({class:le(d==null?void 0:d.input,S?"is-filled":"")}),...we(oe,B,di(h),J),required:e.isRequired,"aria-readonly":X(e.isReadOnly),"aria-required":X(e.isRequired),onChange:Si(B.onChange,P)}),[ue,S,oe,B,h,d==null?void 0:d.input,e.isReadOnly,e.isRequired,P]),Vt=g.useCallback((J={})=>({"data-hover":X(O),className:ue.inputWrapper({class:le(d==null?void 0:d.inputWrapper,S?"is-filled":"")}),onClick:yf=>{var bf;yf.target===yf.currentTarget&&((bf=N.current)==null||bf.focus())},...we(J,L),style:{cursor:"text",...J.style}}),[ue,O,S,d==null?void 0:d.inputWrapper]),Q1=g.useCallback((J={})=>({...J,className:ue.innerWrapper({class:le(d==null?void 0:d.innerWrapper,J==null?void 0:J.className)})}),[ue,d==null?void 0:d.innerWrapper]),X1=g.useCallback((J={})=>({...J,className:ue.mainWrapper({class:le(d==null?void 0:d.mainWrapper,J==null?void 0:J.className)})}),[ue,d==null?void 0:d.mainWrapper]),Y1=g.useCallback((J={})=>({...J,className:ue.helperWrapper({class:le(d==null?void 0:d.helperWrapper,J==null?void 0:J.className)})}),[ue,d==null?void 0:d.helperWrapper]),q1=g.useCallback((J={})=>({...J,...A,className:ue.description({class:le(d==null?void 0:d.description,J==null?void 0:J.className)})}),[ue,d==null?void 0:d.description]),J1=g.useCallback((J={})=>({...J,...j,className:ue.errorMessage({class:le(d==null?void 0:d.errorMessage,J==null?void 0:J.className)})}),[ue,j,d==null?void 0:d.errorMessage]),Z1=g.useCallback((J={})=>({...J,role:"button",tabIndex:0,"data-focus-visible":X(w),className:ue.clearButton({class:le(d==null?void 0:d.clearButton,J==null?void 0:J.className)}),...we(k,I)}),[ue,w,k,I,d==null?void 0:d.clearButton]);return{Component:R,classNames:d,domRef:N,label:a,description:l,startContent:p,endContent:m,labelPlacement:V,isClearable:H,isInvalid:_,hasHelper:q,shouldLabelBeOutside:ae,shouldLabelBeInside:ve,hasPlaceholder:te,errorMessage:u,getBaseProps:Ga,getLabelProps:Qa,getInputProps:Xa,getMainWrapperProps:X1,getInputWrapperProps:Vt,getInnerWrapperProps:Q1,getHelperWrapperProps:Y1,getDescriptionProps:q1,getErrorMessageProps:J1,getClearButtonProps:Z1}}var N1=Ie((e,t)=>{const{Component:n,label:r,description:o,isClearable:i,startContent:s,endContent:a,labelPlacement:l,hasPlaceholder:u,hasHelper:c,shouldLabelBeOutside:d,shouldLabelBeInside:f,errorMessage:p,getBaseProps:m,getLabelProps:y,getInputProps:P,getInnerWrapperProps:b,getInputWrapperProps:h,getMainWrapperProps:v,getHelperWrapperProps:S,getDescriptionProps:C,getErrorMessageProps:R,getClearButtonProps:T}=ZN({...e,ref:t}),x=r?E.jsx("label",{...y(),children:r}):null,N=g.useMemo(()=>i?E.jsx("span",{...T(),children:a||E.jsx(gk,{})}):a,[i,T]),F=g.useMemo(()=>c?E.jsx("div",{...S(),children:p?E.jsx("div",{...R(),children:p}):o?E.jsx("div",{...C(),children:o}):null}):null,[c,p,o,S,R,C]),M=g.useMemo(()=>s||N?E.jsxs("div",{...b(),children:[s,E.jsx("input",{...P()}),N]}):E.jsx("input",{...P()}),[s,N,P,b]),B=g.useMemo(()=>d?E.jsxs("div",{...v(),children:[E.jsxs("div",{...h(),children:[l==="outside"&&!u?x:null,M]}),F]}):E.jsxs(E.Fragment,{children:[E.jsxs("div",{...h(),children:[x,M]}),F]}),[l,F,d,f,u,x,M,p,o,v,h,R,C]);return E.jsxs(n,{...m(),children:[d&&(l==="outside-left"||u)?x:null,B]})});N1.displayName="NextUI.Input";var e$=N1,ws="right-scroll-bar-position",Ss="width-before-scroll-bar",t$="with-scroll-bars-hidden",n$="--removed-body-scroll-bar-size";function r$(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function o$(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function i$(e,t){return o$(t||null,function(n){return e.forEach(function(r){return r$(r,n)})})}function s$(e){return e}function a$(e,t){t===void 0&&(t=s$);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function l$(e){e===void 0&&(e={});var t=a$(null);return t.options=Lt({async:!0,ssr:!1},e),t}var $1=function(e){var t=e.sideCar,n=Ty(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Lt({},n))};$1.isSideCarExport=!0;function u$(e,t){return e.useMedium(t),$1}var M1=l$(),Gl=function(){},Ka=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Gl,onWheelCapture:Gl,onTouchMoveCapture:Gl}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,P=e.as,b=P===void 0?"div":P,h=e.gapMode,v=Ty(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,C=i$([n,t]),R=Lt(Lt({},v),o);return g.createElement(g.Fragment,null,c&&g.createElement(S,{sideCar:M1,removeScrollBar:u,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:h}),s?g.cloneElement(g.Children.only(a),Lt(Lt({},R),{ref:C})):g.createElement(b,Lt({},R,{className:l,ref:C}),a))});Ka.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ka.classNames={fullWidth:Ss,zeroRight:ws};var Cm,c$=function(){if(Cm)return Cm;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function d$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c$();return t&&e.setAttribute("nonce",t),e}function f$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function p$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var h$=function(){var e=0,t=null;return{add:function(n){e==0&&(t=d$())&&(f$(t,n),p$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},m$=function(){var e=h$();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},L1=function(){var e=m$(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},g$={left:0,top:0,right:0,gap:0},Ql=function(e){return parseInt(e||"",10)||0},v$=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ql(n),Ql(r),Ql(o)]},y$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return g$;var t=v$(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},b$=L1(),x$=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(t$,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(s,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(ws,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(Ss,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(ws," .").concat(ws,` {
right: 0 `).concat(r,`;
}
.`).concat(Ss," .").concat(Ss,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(n$,": ").concat(a,`px;
}
`)},w$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=g.useMemo(function(){return y$(o)},[o]);return g.createElement(b$,{styles:x$(i,!t,o,n?"":"!important")})},Rc=!1;if(typeof window<"u")try{var Zi=Object.defineProperty({},"passive",{get:function(){return Rc=!0,!0}});window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Rc=!1}var pr=Rc?{passive:!1}:!1,S$=function(e){return e.tagName==="TEXTAREA"},A1=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!S$(e)&&n[t]==="visible")},P$=function(e){return A1(e,"overflowY")},C$=function(e){return A1(e,"overflowX")},Em=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=O1(e,r);if(o){var i=j1(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},E$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},k$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},O1=function(e,t){return e==="v"?P$(t):C$(t)},j1=function(e,t){return e==="v"?E$(t):k$(t)},T$=function(e,t){return e==="h"&&t==="rtl"?-1:1},R$=function(e,t,n,r,o){var i=T$(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{var p=j1(e,a),m=p[0],y=p[1],P=p[2],b=y-P-i*m;(m||b)&&O1(e,a)&&(d+=b,f+=m),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(o&&d===0||!o&&s>d)||!c&&(o&&f===0||!o&&-s>f))&&(u=!0),u},es=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},km=function(e){return[e.deltaX,e.deltaY]},Tm=function(e){return e&&"current"in e?e.current:e},N$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$$=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},M$=0,hr=[];function L$(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(M$++)[0],i=g.useState(L1)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=EC([e.lockRef.current],(e.shards||[]).map(Tm),!0).filter(Boolean);return y.forEach(function(P){return P.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(y,P){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var b=es(y),h=n.current,v="deltaX"in y?y.deltaX:h[0]-b[0],S="deltaY"in y?y.deltaY:h[1]-b[1],C,R=y.target,T=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in y&&T==="h"&&R.type==="range")return!1;var x=Em(T,R);if(!x)return!0;if(x?C=T:(C=T==="v"?"h":"v",x=Em(T,R)),!x)return!1;if(!r.current&&"changedTouches"in y&&(v||S)&&(r.current=C),!C)return!0;var N=r.current||C;return R$(N,P,y,N==="h"?v:S,!0)},[]),l=g.useCallback(function(y){var P=y;if(!(!hr.length||hr[hr.length-1]!==i)){var b="deltaY"in P?km(P):es(P),h=t.current.filter(function(C){return C.name===P.type&&C.target===P.target&&N$(C.delta,b)})[0];if(h&&h.should){P.cancelable&&P.preventDefault();return}if(!h){var v=(s.current.shards||[]).map(Tm).filter(Boolean).filter(function(C){return C.contains(P.target)}),S=v.length>0?a(P,v[0]):!s.current.noIsolation;S&&P.cancelable&&P.preventDefault()}}},[]),u=g.useCallback(function(y,P,b,h){var v={name:y,delta:P,target:b,should:h};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),c=g.useCallback(function(y){n.current=es(y),r.current=void 0},[]),d=g.useCallback(function(y){u(y.type,km(y),y.target,a(y,e.lockRef.current))},[]),f=g.useCallback(function(y){u(y.type,es(y),y.target,a(y,e.lockRef.current))},[]);g.useEffect(function(){return hr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,pr),document.addEventListener("touchmove",l,pr),document.addEventListener("touchstart",c,pr),function(){hr=hr.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,pr),document.removeEventListener("touchmove",l,pr),document.removeEventListener("touchstart",c,pr)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:$$(o)}):null,p?g.createElement(w$,{gapMode:e.gapMode}):null)}const A$=u$(M1,L$);var _1=g.forwardRef(function(e,t){return g.createElement(Ka,Lt({},e,{ref:t,sideCar:A$}))});_1.classNames=Ka.classNames;const O$=_1;var[j$,lo]=Da({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),_$={enter:{height:"calc(100vh - var(--navbar-height) - 1px)",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},D1=Ie((e,t)=>{var n,r;const{className:o,children:i,portalContainer:s,motionProps:a,style:l,...u}=e,c=He(t),{slots:d,isMenuOpen:f,height:p,disableAnimation:m,classNames:y}=lo(),P=le(y==null?void 0:y.menu,o),b=g.useCallback(({children:v})=>E.jsx(O$,{forwardProps:!0,enabled:f,removeScrollBar:!1,children:v}),[f]),h=m?E.jsx(b,{children:E.jsx("ul",{ref:c,className:(n=d.menu)==null?void 0:n.call(d,{class:P}),"data-open":X(f),style:{"--navbar-height":p},...u,children:i})}):E.jsx(g1,{children:f?E.jsx(b,{children:E.jsx(hf.ul,{ref:c,layoutScroll:!0,animate:"enter",className:(r=d.menu)==null?void 0:r.call(d,{class:P}),"data-open":X(f),exit:"exit",initial:"exit",style:{"--navbar-height":p,...l},variants:_$,...we(a,u),children:i})}):null});return E.jsx(sE,{portalContainer:s,children:h})});D1.displayName="NextUI.NavbarMenu";var I1=D1,D$={visible:{y:0,transition:{ease:wm.easeOut}},hidden:{y:"-100%",transition:{ease:wm.easeIn}}},I$=typeof window<"u";function Rm(e){return I$?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var F$=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=g.useRef(o?Rm(t==null?void 0:t.current):{x:0,y:0});let s=null;const a=()=>{const l=Rm(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,s=null};return g.useEffect(()=>{if(!o)return;const l=()=>{n?s===null&&(s=setTimeout(a,n)):a()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current};function V$(e){var t;const[n,r]=so(e,mh.variantKeys),{ref:o,as:i,parentRef:s,height:a="4rem",shouldHideOnScroll:l=!1,disableScrollHandler:u=!1,onScrollPositionChange:c,isMenuOpen:d,isMenuDefaultOpen:f,onMenuOpenChange:p=()=>{},motionProps:m,className:y,classNames:P,...b}=n,h=i||"nav",v=He(o),S=g.useRef(0),C=g.useRef(0),[R,T]=g.useState(!1),[x,N]=Id(d,f,p),F=()=>{if(v.current){const U=v.current.offsetWidth;U!==S.current&&(S.current=U)}};hC({ref:v,onResize:()=>{var U;((U=v.current)==null?void 0:U.offsetWidth)!==S.current&&(F(),N(!1))}}),g.useEffect(()=>{var U;F(),C.current=((U=v.current)==null?void 0:U.offsetHeight)||0},[]);const M=g.useMemo(()=>mh({...r,hideOnScroll:l}),[...Object.values(r),l]),B=le(P==null?void 0:P.base,y);F$({elementRef:s,isEnabled:l||!u,callback:({prevPos:U,currPos:Y})=>{c==null||c(Y.y),l&&T(oe=>{const O=Y.y>U.y&&Y.y>C.current;return O!==oe?O:oe})}});const A=(U={})=>({...we(b,U),"data-hidden":X(R),"data-menu-open":X(x),ref:v,className:M.base({class:le(B,U==null?void 0:U.className)}),style:{"--navbar-height":a,...U==null?void 0:U.style}}),j=(U={})=>({...U,"data-menu-open":X(x),className:M.wrapper({class:le(P==null?void 0:P.wrapper,U==null?void 0:U.className)})});return{Component:h,slots:M,domRef:v,height:a,isHidden:R,disableAnimation:(t=e.disableAnimation)!=null?t:!1,shouldHideOnScroll:l,isMenuOpen:x,classNames:P,setIsMenuOpen:N,motionProps:m,getBaseProps:A,getWrapperProps:j}}var F1=Ie((e,t)=>{const{children:n,...r}=e,o=V$({...r,ref:t}),i=o.Component,[s,a]=ck(n,I1),l=E.jsxs(E.Fragment,{children:[E.jsx("header",{...o.getWrapperProps(),children:s}),a]});return E.jsx(j$,{value:o,children:o.shouldHideOnScroll?E.jsx(hf.nav,{animate:o.isHidden?"hidden":"visible",initial:!1,variants:D$,...we(o.getBaseProps(),o.motionProps),children:l}):E.jsx(i,{...o.getBaseProps(),children:l})})});F1.displayName="NextUI.Navbar";var B$=F1,V1=Ie((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=He(t),{slots:u,classNames:c}=lo(),d=le(c==null?void 0:c.brand,o);return E.jsx(a,{ref:l,className:(n=u.brand)==null?void 0:n.call(u,{class:d}),...s,children:i})});V1.displayName="NextUI.NavbarBrand";var z$=V1,B1=Ie((e,t)=>{var n;const{as:r,className:o,children:i,justify:s="start",...a}=e,l=r||"ul",u=He(t),{slots:c,classNames:d}=lo(),f=le(d==null?void 0:d.content,o);return E.jsx(l,{ref:u,className:(n=c.content)==null?void 0:n.call(c,{class:f}),"data-justify":s,...a,children:i})});B1.displayName="NextUI.NavbarContent";var Nc=B1,z1=Ie((e,t)=>{var n;const{as:r,className:o,children:i,isActive:s,...a}=e,l=r||"li",u=He(t),{slots:c,classNames:d}=lo(),f=le(d==null?void 0:d.item,o);return E.jsx(l,{ref:u,className:(n=c.item)==null?void 0:n.call(c,{class:f}),"data-active":X(s),...a,children:i})});z1.displayName="NextUI.NavbarItem";var U1=z1,W1=Ie((e,t)=>{var n;const{className:r,children:o,...i}=e,s=He(t),{slots:a,isMenuOpen:l,classNames:u}=lo(),c=le(u==null?void 0:u.menuItem,r);return E.jsx("li",{ref:s,className:(n=a.menuItem)==null?void 0:n.call(a,{class:c}),"data-open":X(l),...i,children:o})});W1.displayName="NextUI.NavbarMenuItem";var U$=W1;function W$(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=mf({...e,onPress:Si(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:we(i,{"aria-pressed":r})}}var H1=Ie((e,t)=>{var n;const{as:r,icon:o,className:i,onChange:s,autoFocus:a,srOnlyText:l,...u}=e,c=r||"button",d=He(t),{slots:f,classNames:p,isMenuOpen:m,setIsMenuOpen:y}=lo(),b=XN({...u,isSelected:m,onChange:M=>{s==null||s(M),y(M)}}),{buttonProps:h,isPressed:v}=W$(e,b,d),{isFocusVisible:S,focusProps:C}=rr({autoFocus:a}),{isHovered:R,hoverProps:T}=Pi({}),x=le(p==null?void 0:p.toggle,i),N=g.useMemo(()=>typeof o=="function"?o(m):o||E.jsx("span",{className:f.toggleIcon({class:p==null?void 0:p.toggleIcon})}),[o,f.toggleIcon,p==null?void 0:p.toggleIcon]),F=g.useMemo(()=>l||(b.isSelected?"close navigation menu":"open navigation menu"),[l,m]);return E.jsxs(c,{ref:d,className:(n=f.toggle)==null?void 0:n.call(f,{class:x}),"data-focus-visible":X(S),"data-hover":X(R),"data-open":X(m),"data-pressed":X(v),...we(h,C,T,u),children:[E.jsx("span",{className:f.srOnly(),children:F}),N]})});H1.displayName="NextUI.NavbarMenuToggle";var H$=H1;function K$(e){const[t,n]=so(e,dh.variantKeys),{as:r,children:o,isLoaded:i=!1,className:s,classNames:a,...l}=t,u=r||"div",c=g.useMemo(()=>dh({...n}),[...Object.values(n),o]),d=le(a==null?void 0:a.base,s);return{Component:u,children:o,slots:c,classNames:a,getSkeletonProps:(m={})=>({"data-loaded":X(i),className:c.base({class:le(d,m==null?void 0:m.className)}),...l}),getContentProps:(m={})=>({className:c.content({class:le(a==null?void 0:a.content,m==null?void 0:m.className)})})}}var K1=Ie((e,t)=>{const{Component:n,children:r,getSkeletonProps:o,getContentProps:i}=K$({...e});return E.jsx(n,{ref:t,...o(),children:E.jsx("div",{...i(),children:r})})});K1.displayName="NextUI.Skeleton";var Nm=K1;function G$({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const Q$=g.forwardRef(G$),X$=Q$;function Y$({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{d:"M12 15a3 3 0 100-6 3 3 0 000 6z"}),g.createElement("path",{fillRule:"evenodd",d:"M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z",clipRule:"evenodd"}))}const q$=g.forwardRef(Y$),J$=q$;function Z$({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z",clipRule:"evenodd"}))}const eM=g.forwardRef(Z$),tM=eM;function nM(e){return e>=1e6?(e/1e6).toFixed(2)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function rM(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oM(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function $c({video:e,uploaderAvatar:t}){const n=_a();return E.jsxs(vf,{isPressable:!0,onPress:()=>n(e.url),shadow:"none",children:[E.jsx(HN,{children:E.jsx("img",{className:"w-full rounded-xl",src:e.thumbnail})}),E.jsxs(C1,{className:"flex gap-3 flex-row",children:[E.jsx(DN,{className:"flex-none",src:t||e.uploaderAvatar}),E.jsxs("div",{className:"flex gap-3 flex-col",children:[E.jsx(Pm,{color:"foreground",href:`#${e.url}`,children:e.title}),E.jsx(Pm,{color:"foreground",href:`#${e.uploaderUrl}`,children:E.jsxs("div",{className:"flex flex-row items-center",children:[E.jsx("p",{className:"text-md",children:e.uploaderName}),e.uploaderVerified&&E.jsx(X$,{className:"w-6 h-6 p-1"})]})}),E.jsxs("div",{className:"flex flex-row items-center",children:[E.jsx(J$,{className:"w-6 h-6 p-1"}),E.jsx("p",{className:"flex-none text-md",children:`${nM(e.views)} ${e.uploadedDate}`})]})]})]})]})}function G1(){return E.jsxs(vf,{isPressable:!0,shadow:"none",className:"space-y-5 p-4",children:[E.jsx(Nm,{className:"rounded-lg",children:E.jsx("div",{className:"rounded-lg h-56 bg-default-300 p-4"})}),E.jsx(C1,{className:"flex gap-3 flex-row",children:E.jsx(Nm,{className:"flex rounded-full w-12 h-12"})})]})}function $m({children:e}){return E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:e})}function iM(){const[e,t]=g.useState([]);return g.useEffect(()=>{async function n(){const r=await window.piped_api.trending("US");t(r)}e.length===0&&n()}),e.length===0?E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:[...Array(20).keys()].map(n=>E.jsx(G1,{},n))}):E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:e.map(n=>E.jsx($c,{video:n},n.url))})}function sM(){return E.jsxs(B$,{children:[E.jsxs(Nc,{children:[E.jsx(H$,{className:"sm:hidden"}),E.jsx(z$,{children:E.jsx(Ro,{className:"font-bold text-inherit",to:"/trending",children:"ULTYT"})})]}),E.jsx(Nc,{className:"sm:flex gap-4",justify:"start",children:E.jsx(U1,{children:E.jsx(e$,{isClearable:!0,radius:"lg",placeholder:"Type to search...",startContent:E.jsx(tM,{className:"h-6 w-6"})})})}),E.jsx(aM,{})]})}function Mm(e){let t,n;return e?(t=U$,n=I1):(t=U1,n=Nc),E.jsxs(n,{className:"hidden sm:flex gap-4",justify:"center",children:[E.jsx(t,{children:E.jsx(Ro,{to:"/trending",children:"Trending"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/feed",children:"Feed"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/playlists",children:"Playlists"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/preferences",children:"Preferences"})})]})}function aM(){return E.jsxs(E.Fragment,{children:[Mm(!1),Mm(!0)]})}function lM(){const[e,t]=g.useState(),[n,r]=g.useState(),{id:o}=wP(),[i,s]=GP(),a=i.get("tabId")||"videos";return g.useEffect(()=>{async function l(){const c=await window.piped_api.channel(o||"");t(c)}async function u(c){const d=await window.piped_api.channelTabs(e==null?void 0:e.tabs[c].data);r(d)}e||l(),!n&&a!=="videos"&&u(a)}),e?E.jsxs("div",{className:"grid grid-rows p-4",children:[E.jsxs(vf,{radius:"lg",shadow:"none",children:[E.jsx("div",{className:"p-4",children:E.jsx("img",{className:"w-full rounded-xl",src:e.bannerUrl})}),E.jsx(WN,{className:"p-4 justify-between ",children:E.jsx("div",{className:"flex flex-col",children:E.jsx("div",{className:"flex flex-row gap-2 text-xl font-bold pl-2",children:e.name})})})]}),E.jsxs("div",{className:"flex flex-row flex-wrap gap-2 mt-4",children:[E.jsx(Sm,{onClick:()=>{s({tabId:"videos"})},className:"text-xl font-bold mt-4",children:"Videos"},"videos"),e.tabs.map((l,u)=>E.jsx(Sm,{onClick:()=>{s({tabId:String(u)}),r(void 0)},className:"text-xl font-bold mt-4",children:rM(l.name)},l.name))]}),a!=="videos"?E.jsx($m,{children:n==null?void 0:n.content.map(l=>l.type==="stream"?(l=l,E.jsx($c,{video:l,uploaderAvatar:e.avatarUrl},l.url)):E.jsx("div",{className:"",children:"Soon..."},Math.random()))}):E.jsx($m,{children:e.relatedStreams.map(l=>E.jsx($c,{video:l,uploaderAvatar:e.avatarUrl},l.url))})]}):E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:[...Array(20).keys()].map(l=>E.jsx(G1,{},l))})}function uM(){return window.piped_api=new fy,E.jsxs(UP,{children:[E.jsx(sM,{}),E.jsxs(_P,{children:[E.jsx(vs,{path:"/",element:E.jsx(OP,{to:"/trending"})}),E.jsx(vs,{path:"/trending",element:E.jsx(iM,{})}),E.jsx(vs,{path:"/channel/:id",element:E.jsx(lM,{})})]})]})}Yl.createRoot(document.getElementById("root")).render(E.jsx(ie.StrictMode,{children:E.jsx(aE,{children:E.jsx("main",{className:`${localStorage.getItem("theme")||oM()} text-foreground bg-background`,children:E.jsx(uM,{})})})}));